* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #808080;
  --light-gray: #f5f5f5;
  --gold: #d4af37;
}

/* Dark Mode Variables */
body.dark-mode {
  --black: #ffffff;
  --white: #0a0a0a;
  --gray: #b0b0b0;
  --light-gray: #1a1a1a;
  --gold: #d4af37;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.8;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Luxury Lines */
.luxury-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--black), transparent);
  margin: 80px 0;
  opacity: 0.3;
}

.vertical-line {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--black);
  opacity: 0.25;
  z-index: 9;
}

.vertical-line.left {
  left: 60px;
}

.vertical-line.right {
  right: 60px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 60px;
  right: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-top: 0;
  transition: background-color 0.3s ease;
}

body.dark-mode header {
  background: rgba(10, 10, 10, 0.98);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Dark mode border adjustments */
body.dark-mode .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .skill-list li {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .tag {
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--black);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
  color: var(--gray);
  opacity: 0.7;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
  border-bottom-color: var(--black);
}

body.dark-mode .budget-option label {
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .budget-option input[type="radio"]:checked+label {
  border-color: var(--black);
}

body.dark-mode footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .quill-editor {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .ql-toolbar.ql-snow {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .ql-editor {
  color: var(--black);
}

body.dark-mode .ql-editor.ql-blank::before {
  color: var(--gray);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-cta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-nav {
  padding: 12px 30px;
  border: 1px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  transition: all 0.3s;
}

.btn-nav:hover {
  background: var(--black);
  color: var(--white);
}

.btn-nav.primary {
  background: var(--black);
  color: var(--white);
}

.btn-nav.primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Dark Mode Toggle Button */
#darkModeToggle {
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  margin-left: 5px;
  /* filter: grayscale(1) brightness(0); */
}

.dark-mode-icon {
  transition: transform 0.3s ease;
}

body.dark-mode .dark-mode-icon::before {
  content: '☀️';
  filter: grayscale(0) brightness(100);
}

body.dark-mode .dark-mode-icon {
  display: inline-block;
}

body.dark-mode .dark-mode-icon::after {
  content: '';
}

body:not(.dark-mode) .dark-mode-icon::before {
  content: '🌙';
  filter: grayscale(1) brightness(0);
}

.logo {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 50px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover:after {
  width: 100%;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-content {
  width: 100%;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-name {
  font-size: 120px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 60px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.btn-hero {
  padding: 18px 45px;
  border: 1px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  transition: all 0.3s;
  display: inline-block;
}

.btn-hero:hover {
  background: var(--black);
  color: var(--white);
}

.btn-hero.primary {
  background: var(--black);
  color: var(--white);
}

.btn-hero.primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 60px;
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 300;
}

/* Section Headers */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  margin-bottom: 80px;
}

.section-number {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--gray);
  margin-bottom: 20px;
  font-weight: 300;
}

.section-title {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  font-weight: 300;
  max-width: 600px;
}

/* Experience */
.experience-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  padding: 60px 0;
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.05); */
  transition: all 0.3s;
}

.experience-item:hover {
  /* padding-left: 20px; */
}

.experience-date {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gray);
  font-weight: 300;
  padding-top: 15px;
  text-align: right;
}

.experience-content h3 {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.experience-company {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
  font-weight: 300;
}

.experience-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 30px;
}

.experience-description strong {
  color: var(--black);
  font-weight: 400;
  display: block;
  margin-bottom: 15px;
}

.experience-description ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.experience-description ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.8;
}

.experience-description ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 20px;
  line-height: 1.4;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 300;
  transition: all 0.3s;
}

.tag:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--white);
  padding: 0 60px;
}

.project-card {
  background: var(--white);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
}

body.dark-mode .project-card {
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}

.project-card:hover {
  background: var(--light-gray);
}

.project-card:hover .project-link {
  opacity: 1;
  transform: translateX(0);
}

.project-number {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gray);
  margin-bottom: 20px;
  font-weight: 300;
}

.project-card h3 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.project-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 30px;
}

.project-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--black);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.skill-category h4 {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: 400;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: var(--gray);
  font-weight: 300;
  transition: all 0.3s;
}

.skill-list li:hover {
  color: var(--black);
  padding-left: 10px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px;
}

.contact-info h4 {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: 400;
}

.contact-item {
  margin-bottom: 40px;
}

.contact-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 300;
}

.contact-value {
  font-size: 18px;
  font-weight: 300;
}

.contact-value a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-value a:hover {
  color: var(--gold);
}

.cta-box {
  background: var(--black);
  color: var(--white);
  padding: 80px 60px;
  position: relative;
  transition: background-color 0.3s ease;
}

body.dark-mode .cta-box {
  background: var(--black);
  color: var(--white);
}

.cta-box h3 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: -1px;
  line-height: 1.3;
}

.cta-box p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--gray);
}

.btn-primary {
  display: inline-block;
  padding: 20px 50px;
  border: 1px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--black);
}

/* Footer */
footer {
  padding: 60px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 0 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gray);
  font-weight: 300;
}

.social-links {
  display: flex;
  gap: 30px;
}

.social-links a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--gold);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Popup Form Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
}

.popup-form {
  background: var(--white);
  max-width: 750px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 40px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-form {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: var(--black);
}

.popup-form h3 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.popup-form p {
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 300;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  background: transparent;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--black);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: 15px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23808080' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  padding-right: 30px;
}

.budget-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.budget-option {
  position: relative;
}

.budget-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.budget-option label {
  display: block;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.budget-option input[type="radio"]:checked+label {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.budget-option label:hover {
  border-color: var(--black);
}

.form-submit {
  width: 100%;
  padding: 20px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.form-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Standalone Form Page Styles */
.project-form-wrapper {
  max-width: 750px;
  margin: 0 auto;
}

.standalone-form {
  padding: 60px 0;
}

.file-input {
  width: 100%;
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 0.3s;
}

.file-input::-webkit-file-upload-button {
  padding: 10px 20px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.file-input::-webkit-file-upload-button:hover {
  background: var(--black);
  color: var(--white);
}

.file-input::file-selector-button {
  padding: 10px 20px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.file-input::file-selector-button:hover {
  background: var(--black);
  color: var(--white);
}

/* Quill WYSIWYG Editor Customization */
.quill-editor {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  background: transparent;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.ql-container.ql-snow {
  border: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--black);
}

.ql-editor {
  min-height: 150px;
  padding: 15px 0;
  line-height: 1.8;
}

.ql-editor.ql-blank::before {
  color: var(--gray);
  font-style: normal;
  font-weight: 300;
}

.ql-snow .ql-stroke {
  stroke: var(--gray);
}

.ql-snow .ql-fill {
  fill: var(--gray);
}

.ql-snow .ql-picker-label {
  color: var(--gray);
  border: none;
}

.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active,
.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active {
  color: var(--black);
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: var(--black);
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
  fill: var(--black);
}

.ql-snow a {
  color: var(--black);
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
  font-weight: 300;
  line-height: 1.4;
}

.ql-editor ul, .ql-editor ol {
  padding-left: 1.5em;
}

/* Focus state for editor */
.quill-editor:focus-within {
  border-bottom-color: var(--black);
}

/* Custom Calendly Popup Styles */
.calendly-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.calendly-popup-overlay.active {
  display: flex;
  opacity: 1;
}

.calendly-popup-container {
  background: var(--gold);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.calendly-popup-overlay.active .calendly-popup-container {
  transform: translateY(0);
}

.calendly-popup-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--white);
  font-size: 24px;
  cursor: pointer;
  color: var(--black);
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.calendly-popup-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Mobile Responsive for Calendly Popup */
@media (max-width: 768px) {
  .calendly-popup-container {
    max-width: 100%;
    max-height: 100vh;
  }

  .calendly-popup-close {
    top: 10px;
    right: 10px;
  }
}

/* Tablet Responsive (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  header {
    left: 40px;
    right: 40px;
  }

  nav {
    padding: 20px 30px;
    flex-wrap: wrap;
    gap: 15px;
  }

  .vertical-line.left {
    left: 40px;
  }

  .vertical-line.right {
    right: 40px;
  }

  .nav-cta {
    display: flex;
    gap: 10px;
  }

  .logo {
    font-size: 16px;
  }

  .nav-links {
    gap: 30px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero-name {
    font-size: 80px;
  }

  .hero-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 48px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .hero-cta {
    flex-wrap: wrap;
    gap: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .experience-date {
    text-align: left;
    padding-top: 0;
  }

  .project-card {
    padding: 60px 40px;
  }

  .cta-box {
    padding: 60px 40px;
  }

  footer {
    margin: 0 40px;
  }
}

/* Mobile Landscape and Small Tablets (900px and below) */
@media (max-width: 900px) {
  .nav-cta {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .nav-links {
    gap: 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  header {
    left: 20px;
    right: 20px;
  }

  nav {
    padding: 15px 20px;
  }

  .vertical-line {
    display: none;
  }

  .logo {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    width: 100%;
    justify-content: space-between;
  }

  .btn-nav {
    padding: 10px 20px;
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-name {
    font-size: 48px;
    margin-bottom: 15px;
  }

  .hero-title {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .hero-label {
    font-size: 10px;
    margin-bottom: 20px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
    padding: 15px 30px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
  }

  .stat-number {
    font-size: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .experience-item {
    padding: 40px 0;
    gap: 15px;
  }

  .experience-content h3 {
    font-size: 24px;
  }

  .experience-description ul li {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .projects-grid {
    padding: 0 20px;
  }

  .project-card {
    padding: 40px 30px;
  }

  .project-card h3 {
    font-size: 28px;
  }

  .project-card p {
    font-size: 14px;
  }

  .project-link {
    opacity: 1;
    transform: translateX(0);
  }

  .skill-category h4 {
    font-size: 14px;
  }

  .skill-list li {
    font-size: 13px;
    padding: 12px 0;
  }

  .contact-grid {
    gap: 40px;
  }

  .contact-info h4 {
    font-size: 14px;
  }

  .contact-value {
    font-size: 16px;
  }

  .cta-box {
    padding: 40px 30px;
  }

  .cta-box h3 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .cta-box p {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .btn-primary {
    padding: 15px 35px;
    width: 100%;
    text-align: center;
  }

  footer {
    margin: 0 20px;
    padding: 40px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Form responsive */
  .project-form-wrapper {
    padding: 0;
  }

  .standalone-form {
    padding: 40px 0;
  }

  .budget-options {
    grid-template-columns: 1fr;
  }

  .form-submit {
    font-size: 10px;
  }

  /* Calendly popup mobile */
  .calendly-popup-container {
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
  }

  .calendly-popup-close {
    top: 10px;
    right: 10px;
  }

  .calendly-popup-overlay {
    padding: 0;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .hero-name {
    font-size: 36px;
  }

  .hero-title {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-number {
    font-size: 12px;
  }

  .experience-content h3 {
    font-size: 20px;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .cta-box h3 {
    font-size: 24px;
  }

  .btn-nav {
    padding: 8px 15px;
    font-size: 9px;
  }

  #darkModeToggle {
    font-size: 16px;
  }

  .hero-stats {
    margin-top: 40px;
    padding-top: 30px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 10px;
  }
}
