/* Base Reset */
/* Make hero mobile-friendly */


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

html, body {
  height: 100%;
  background: transparent;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

@media (max-width: 480px) {
  html {
    font-size: 90%;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #7F00FF, #E100FF);

  color: #111;
  overflow-x: hidden;
  padding-top: 80px;
}

/* Navbar */

 .navbar {
  width: 100%;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.1); /* transparent white layer */
  backdrop-filter: blur(10px); /* blur effect */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* subtle bottom border */
  z-index: 1000;
}
/* Force navbar white in dark mode */
body.dark-mode .navbar {
  background: #ffffff !important;
  color: #111 !important;
}

body.dark-mode .nav-links li a {
  color: #111 !important;
}

body.dark-mode .logo {
  color: #111 !important;
}

.theme-switch {
  position: relative;
  width: 50px;
  height: 25px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 25px;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  font-size: 14px;
  color: #fff;
}

.sun-icon, .moon-icon {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-switch input:checked + .switch {
  background-color: #4CAF50;
}

.theme-switch input:checked + .switch .sun-icon {
  opacity: 0;
  transform: scale(0.6);
}

.theme-switch input:checked + .switch .moon-icon {
  opacity: 1;
  transform: scale(1.2);
}

.theme-switch input:not(:checked) + .switch .sun-icon {
  opacity: 1;
  transform: scale(1.2);
}

.theme-switch input:not(:checked) + .switch .moon-icon {
  opacity: 0;
  transform: scale(0.6);
}
body.dark-mode {
  background: #121212;
  color: #ffffff;
}

/* Navbar in Dark Mode */
body.dark-mode .navbar {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

/* Navbar links */
body.dark-mode .nav-links li a {
  color: #fff;
}

.theme-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-left: 20px;
  border: none;
  outline: none;
}

.toggle-icon {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: left 0.3s ease, background 0.3s ease;
}

/* Dark Mode Active Slide */
body.dark-mode .theme-toggle {
  background: #555;
}

body.dark-mode .toggle-icon {
  left: 27px; /* Slide to right */
}

/* Theme Colors for Dark Mode */
body.dark-mode {
  background: #121212;
  color: #ffffff;
}

body.dark-mode .navbar {
  background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .nav-links li a {
  color: #ffffff;
}

body.dark-mode .hero-left h1,
body.dark-mode .hero-text h1,
body.dark-mode .hero-left .tagline,
body.dark-mode .hero-text span {
  color: #ffffff;
}

body.dark-mode .btn.primary {
  background: #333;
  color: #fff;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #FFD700; /* golden on hover */

}

.navbar .logo {
  font-size: 24px;
  font-weight: 700;
}

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

.nav-links li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #1900ff;
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}
/* --- Card-like styling for all sections --- */
.card-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  margin: 40px auto;
  max-width: 1100px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Dark mode variant */
body.dark-mode .card-section {
  background: #1e1e1e;
  color: #f5f5f5;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.05);
}
 

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  min-height: 100vh;
}

.hero-left {
  flex: 1 1 500px;
  z-index: 1;
}

.hero-left .tagline {
  font-size: 14px;
  color: #FEFBC7;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-left h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: #111;
}

.hero-left h1 span {
  color: #a5a488;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn.primary {
  background: #fff;
  color: #060000;
}

.btn.outline {
  border: 2px solid #999;
  color: #999;
}

.hero-right {

  flex: 1 1 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}



.hero {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 11;
  min-width: 500px;
}

.hero-text .tagline {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: 3.75rem;
  line-height: 0.9;
  min-width: 250px;
  font-weight: 700;
  color: #111;
  margin: 15px 0 26px;
  margin-bottom: 30px;
 
}

.hero-left h1 span {
  color: #a5a488;
}
.hero-text span {
  color: #fff; /* accent, adjust if needed */
}

.buttons {
  margin: 16px 0;
}

.btn.primary {
  padding: 10px 22px;
  background: #fff;
  color: #111;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
}

.hero-social-icons {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 1rem;
  color: #fff;
  transition: 0.3s ease;
}

.hero-social-icons a:hover {
  background-color: #fff;
  color: #111;
  transform: scale(1.2) translateY(-3px);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

.hero-social-icons a.github:hover {
  color: #333;
}
.hero-social-icons a.X:hover {
  color: #f8f8f8;
}
.hero-social-icons a.instagram:hover {
  color: #E1306C;
}
.hero-social-icons a.linkedin:hover {
  color: #0077B5;
}


.hero-image {
  flex: 1;
  min-width: 500px;
  display: flex;
  justify-content: center;
}

.hero-image img {
 width: 500px;         /* adjust size if needed */
  height: 500px;        /* keep width & height equal */
  object-fit: cover;    /* to fit face properly */
  border-radius: 50%;   /* makes it round */
  border: 4px solid #fff; /* optional white border */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* light shadow */
}
/* Match Skills, Projects, Contact with other sections */
.card-section {
  max-width: 1100px;       /* same as .container */
  margin: 40px auto;       /* consistent spacing */
  padding: 40px 20px;      /* same inner spacing */
  border-radius: 12px;     /* subtle curve like other sections */
  background: #ffffff;     /* light background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* subtle shadow like experience */
}

/* Dark Mode */
body.dark-mode .card-section {
  background: #1e1e1e;
  color: #f5f5f5;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}


/* About Section */
.about-section { 
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 10;
  padding: 80px 0;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  margin: 40px 0;
}




.container {
  max-width: 1100px;
  margin: auto;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-img img {
  width: 300px;
  max-width: 400px;
  height: 450px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 15px;
}

.about-content p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.about-details p {
  margin: 6px 0;
}

.interests {
  margin-top: 15px;
}

.interests span {
  display: inline-block;
  margin-right: 15px;
  background: #e0e0e0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
}

#education {
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  margin: 40px 0;
}

#education h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

#education p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

#education ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 20px;
}

#education li {
  font-size: 17px;
  color: #444;
  line-height: 1.5;
}

#experience {
  padding: 40px 20px;
  background-color: #f4f4f4;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#experience h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

#experience ul {
  list-style-type: disc;
  padding-left: 20px;
}

#experience li {
  font-size: 17px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 25px;
}

#experience li ul {
  list-style-type: circle;
  padding-left: 20px;
  margin-top: 10px;
}

#experience em {
  color: #666;
  font-style: normal;
  font-weight: 500;
}



.skills-section {
  background: #f4f4f4;
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
}

.skills-section h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 40px;
  font-weight: 700;
}

.skills-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.skills-track {
  display: flex;
  gap: 20px; /* 👈 This creates the gap between cards */
  width: max-content;
  animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.skill-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  width: 160px;
  margin: 0; /* no margin needed now */
  flex: 0 0 auto;
}

.skill-card:hover {
  transform: scale(1.05);
}

.skill-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.skill-card h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin: 10px 0 4px;
}

.level-label {
  font-size: 14px;
  font-weight: 600;
  color: #777;
}


/* Projects Section */
.projects-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.projects-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.project-card {
  position: relative;
  width: 280px;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background: #f9f9f9; /* fallback bg in case image fails */
}



.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px; /* matches card border */
  transition: all 0.5s ease;
}



.project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  transition: opacity 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
  filter: blur(2px);
}

.project-card:hover .project-info {
  opacity: 1;
}

.project-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.project-info a {
  padding: 6px 14px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s;
}

.project-info a:hover {
  background: #000;
  color: #fff;
}

/* Contact Section */
.contact-section {
  padding: 80px 20px;
  background: #f5f5f5;
  text-align: center;

  /* Center everything vertically & horizontally */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-section .container {
  max-width: 600px;
  margin: auto;
  width: 100%;
}

.contact-form {
  margin-top: 30px;
  padding: 0 10px;
  text-align: center; /* Centers button */
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.contact-form .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn:hover {
  background: #333;
  transform: scale(1.05);
}

/* Confirmation Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-content p {
  font-size: 18px;
  margin-bottom: 15px;
}

.popup-content button {
  padding: 8px 20px;
  background: #111;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.popup-content button:hover {
  background: #333;
}
/* CONTACT SECTION */
.contact-section {
  padding: 80px 20px;
  background: #f5f5f5;
  text-align: center;

  /* Center horizontally only to avoid footer overlap */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section .container {
  max-width: 600px;
  margin: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Override Get In Touch background in dark mode */
body.dark-mode #contact {
  background: #1e1e1e !important;   /* solid dark background */
  color: #f5f5f5 !important;
}


.contact-form {
  margin-top: 30px;
  width: 100%;
  text-align: center; /* Centers button */
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

.contact-form textarea {
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.contact-form .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn:hover {
  background: #333;
  transform: scale(1.05);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* Pushes footer to the bottom */
}

footer {
  width: 100vw; /* Ensures full screen width */
  background: #0f2027;
  color: #ffffff;
  text-align: center;
  padding: 2em;
  font-size: 17px;
  box-sizing: border-box;
  margin: 0;
}

.footer h3 {
  font-size: 20px;
}

.footer p {
  margin: 0;
  font-size: 17px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 15px;
  transition: color 0.3s ease;
}

.social-icons a.github:hover { color: #333; }
.social-icons a.X:hover { color: #f8f8f8; }
.social-icons a.instagram:hover { color: #E1306C; }
.social-icons a.linkedin:hover { color: #0077B5; }

.footer .copyright {
  font-size: 13px;
  color: #ccc;
  margin-top: 5px;
}






/* --- Fix for about & contact sections (REPLACE previous debug override) --- */
.about-section {
  display: block;
  visibility: visible;
  opacity: 1;
  background-color: #f8f9fa;
  min-height: auto;
  padding: 40px 20px;
}

/* Keep contact centered horizontally but NOT stretched to overlap footer */
.contact-section {
  display: flex !important;        /* override the old debug rule */
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;     /* don't vertically center across the viewport */
  text-align: center;
  background: #f5f5f5;
  padding: 80px 20px;
  min-height: 0;
  margin-bottom: 80px;             /* gives breathing room so footer is not overlapped */
}

/* Ensure footer sits above content and doesn't visually overlap */
footer {
  position: relative;
  z-index: 10;
}

/* Optional: vertically center contact only on very large screens */
@media (min-height: 900px) and (min-width: 1000px) {
  .contact-section {
    justify-content: center;
    min-height: 60vh;
    margin-bottom: 0;
  }
}


/* Responsive Navbar & Layout */
@media (max-width: 991px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    max-width: 100%;
  }

  .hero-left {
    margin-bottom: 40px;
  }

  .bg-skew {
    display: none;
  }

  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    display: none;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

@media (max-width: 768px) {
  .about-grid {
    flex-direction: column;
    text-align: center;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 95%;
    height: 220px;
  }

  .footer h3 {
    font-size: 20px;
  }

  .footer p {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 18px;
    margin: 0 8px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .contact-form .btn {
    width: 100%;
  }
}
/* Make navbar mobile-friendly */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

/* Hide menu initially on small screens */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

@media (max-width: 768px) {
  html {
    font-size: 90%;
  }

  .navbar {
    padding: 15px 20px;
  }

  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    right: 15px;
    width: 200px;
    border-radius: 8px;
    padding: 10px 0;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .hero-text {
    min-width: auto;
    width: 100%;
    margin-bottom: 20px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.1rem;
  }

  .hero-image {
    min-width: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    width: 80%;
    max-width: 300px;
    height: auto;
  }

  .about-grid {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    max-width: 300px;
    height: auto;
  }

  .skills-slider {
    overflow-x: auto;
  }

  .skills-track {
    animation: none;
  }

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

  .project-card {
    width: 95%;
    height: 220px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .contact-form .btn {
    width: 100%;
  }

  .footer-container h3 {
    font-size: 18px;
  }

  .footer-container p {
    font-size: 14px;
  }

  .footer-social-icons a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text h2 {
    font-size: 1rem;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-social-icons {
    justify-content: center;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .skills-section h2 {
    font-size: 1.8rem;
  }

  .projects-section h2 {
    font-size: 1.8rem;
  }

  .contact-section h2 {
    font-size: 1.8rem;
  }
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* keeps it above footer */
  text-align: center;
  background: linear-gradient(90deg, #7f00ff, #e100ff); /* Violet gradient */
  padding: 80px 20px;
  margin-bottom: 0; /* remove gap since bg flows into footer */
}

.contact-section .container {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.9); /* slight white bg for form contrast */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
  margin-top: 20px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

.contact-form textarea {
  resize: none;
}

.contact-form .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn:hover {
  background: #333;
  transform: scale(1.05);
}


/* Force all h2 to be black in dark mode */
body.dark-mode h2 {
  color: #000000 !important;
  opacity: 1 !important;
}

/* But keep hero section headings white in dark mode */
body.dark-mode .hero h1,
body.dark-mode .hero h2,
body.dark-mode .hero h3,
body.dark-mode .hero p {
  color: #ffffff !important;
}
/* Always show nav links, disable mobile menu */
.menu-icon,
#menu-toggle {
  display: none !important; /* hide hamburger & checkbox */
}

.nav-links {
  display: flex !important;  /* keep links always visible */
  flex-direction: row !important; /* always horizontal */
  position: static !important; /* no dropdown */
  background: transparent !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0;
}


/* Always show nav links */
.nav-links {
  display: flex !important;
  flex-direction: row !important;
  position: static !important;
  background: transparent !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0;
  gap: 20px;
}

/* Make nav scrollable on small screens */
@media (max-width: 768px) {
  .nav-links {
    overflow-x: auto;       /* horizontal scroll */
    white-space: nowrap;    /* prevent wrapping */
    scrollbar-width: none;  /* hide scrollbar (Firefox) */
  }

  .nav-links::-webkit-scrollbar {
    display: none;          /* hide scrollbar (Chrome, Safari) */
  }

  .nav-links li {
    flex: 0 0 auto; /* prevent shrinking */
  }
}
@media (max-width: 768px) {
  .nav-links {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    scroll-behavior: smooth;           /* smooth scroll on modern browsers */
    scrollbar-width: none;             /* hide scrollbar (Firefox) */
  }

  .nav-links::-webkit-scrollbar {
    display: none; /* hide scrollbar (Chrome, Safari) */
  }

  .nav-links li {
    flex: 0 0 auto; /* prevent shrinking */
  }
}
