/* ==========================================
   WebAI - Complete Modern Design System
   Dark Theme with Purple/Blue/Cyan Gradients
   ========================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #0a0a0f;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(120, 119, 198, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(119, 198, 255, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between; /* Changed to space-between for better mobile layout */
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  margin-left: auto; /* push menu to the right on desktop */
  margin-right: 0;
}

/* Right-side container for theme toggle + hamburger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.75rem; /* small space between menu and toggle */
  flex-shrink: 0; /* Prevent actions from shrinking */
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Theme toggle button */
.theme-toggle {
  margin-left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Ensure hero content isn’t hidden beneath the fixed navbar
       and leave space at the bottom for the scroll indicator */
  padding-top: 100px; /* navbar is 70px; add extra breathing room */
  padding-bottom: 120px; /* room for scroll indicator below CTAs */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  animation: particleFloat calc(var(--i) * 2s + 10s) ease-in-out infinite
    alternate;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
}
.particle:nth-child(2) {
  top: 60%;
  left: 20%;
}
.particle:nth-child(3) {
  top: 40%;
  left: 70%;
}
.particle:nth-child(4) {
  top: 80%;
  left: 60%;
}
.particle:nth-child(5) {
  top: 10%;
  left: 80%;
}
.particle:nth-child(6) {
  top: 70%;
  left: 90%;
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 3; /* ensure it renders above hero content buttons */
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Section Styles */
.about-section,
.features-section,
.timeline-section,
.newsletter-section,
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.feature-item i {
  font-size: 1.2rem;
  color: #667eea;
}

.ai-visualization {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.neural-network {
  position: relative;
  width: 300px;
  height: 300px;
}

.node {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea, #f093fb);
  border-radius: 50%;
  animation: nodeGlow 2s ease-in-out infinite alternate;
}

.node:nth-child(1) {
  top: 50px;
  left: 50px;
}
.node:nth-child(2) {
  top: 100px;
  right: 50px;
}
.node:nth-child(3) {
  bottom: 100px;
  left: 50px;
}
.node:nth-child(4) {
  bottom: 50px;
  right: 50px;
}
.node:nth-child(5) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(102, 126, 234, 0.6),
    rgba(240, 147, 251, 0.6)
  );
  border-radius: 1px;
  animation: connectionPulse 3s ease-in-out infinite;
}

.connection:nth-child(6) {
  top: 60px;
  left: 70px;
  width: 160px;
  transform: rotate(15deg);
}

.connection:nth-child(7) {
  top: 150px;
  left: 70px;
  width: 160px;
  transform: rotate(-15deg);
}

.connection:nth-child(8) {
  bottom: 110px;
  left: 70px;
  width: 160px;
  transform: rotate(-15deg);
}

.connection:nth-child(9) {
  bottom: 60px;
  left: 70px;
  width: 160px;
  transform: rotate(15deg);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea, #f093fb);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Timeline Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #667eea, #f093fb);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 2rem;
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 2rem;
  padding-right: 0;
  margin-left: 50%;
}

.timeline-marker {
  position: absolute;
  top: 1rem;
  right: -0.6rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #0a0a0f;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -0.6rem;
  right: auto;
}

.timeline-marker.completed {
  background: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.timeline-marker.active {
  background: #f093fb;
  box-shadow: 0 0 20px rgba(240, 147, 251, 0.5);
  animation: pulse 2s infinite;
}

.timeline-marker.upcoming {
  background: rgba(255, 255, 255, 0.3);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.timeline-status {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.timeline-status.completed {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.timeline-status.active {
  background: rgba(240, 147, 251, 0.2);
  color: #f093fb;
}

.timeline-status.upcoming {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.progress-container {
  margin-top: 4rem;
  text-align: center;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.progress-percent {
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #f093fb);
  border-radius: 10px;
  animation: progressGlow 2s ease-in-out infinite alternate;
}

/* Newsletter Section */
.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.form-group input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #667eea, #f093fb);
  color: white;
  transform: translateY(-2px);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.contact-methods {
  display: grid;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.contact-method i {
  font-size: 1.5rem;
  color: #667eea;
  width: 40px;
  text-align: center;
}

.contact-method h4 {
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-method p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.contact-buttons {
  display: grid;
  gap: 1rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.email-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.linkedin-btn {
  background: linear-gradient(135deg, #0077b5, #005885);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: rgba(10, 10, 15, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #667eea;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Scroll Animations */
.slide-up,
.slide-in-left,
.slide-in-right,
.slide-in-up {
  opacity: 0; /* Start hidden for animations */
  transition: all 0.8s ease;
}

.slide-up {
  transform: translateY(50px); /* Start position for animation */
}

.slide-in-left {
  transform: translateX(-50px); /* Start position for animation */
}

.slide-in-right {
  transform: translateX(50px); /* Start position for animation */
}

.slide-in-up {
  transform: translateY(30px); /* Start position for animation */
}

.slide-up.animate,
.slide-in-left.animate,
.slide-in-right.animate,
.slide-in-up.animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* Keyframe Animations */
@keyframes logoGlow {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes nodeGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(240, 147, 251, 0.8);
  }
}

@keyframes connectionPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes progressGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(240, 147, 251, 0.8);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Light Theme Overrides */
body.light-theme {
  color: #0a0a0f;
  background: #f6f7fb;
}

body.light-theme::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(102, 126, 234, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(240, 147, 251, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(119, 198, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .nav-logo {
  color: #0a0a0f;
}

body.light-theme .nav-link {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .nav-link:hover {
  color: #000;
}

body.light-theme .theme-toggle {
  border-color: rgba(0, 0, 0, 0.15);
  color: #111;
}

body.light-theme .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.25);
}

body.light-theme .hero-subtitle {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .stat-label {
  color: rgba(0, 0, 0, 0.55);
}

body.light-theme .btn-secondary {
  color: #111;
  border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .scroll-arrow {
  border-color: rgba(0, 0, 0, 0.5);
}

body.light-theme .section-subtitle {
  color: rgba(0, 0, 0, 0.65);
}

/* Ensure general copy uses dark text in light mode */
body.light-theme p {
  color: rgba(0, 0, 0, 0.8);
}

/* Specific blocks that previously forced white text */
body.light-theme .about-text p,
body.light-theme .newsletter-content p {
  color: rgba(0, 0, 0, 0.8);
}

body.light-theme .feature-card,
body.light-theme .contact-method,
body.light-theme .timeline-content {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .feature-card p,
body.light-theme .contact-method p,
body.light-theme .timeline-content p {
  color: rgba(0, 0, 0, 0.75);
}

body.light-theme .timeline-status.upcoming {
  color: #333; /* dark text */
  background-color: #ddd3d3; /* light gray background */
}

body.light-theme .hamburger span {
  background: #231818;
}

body.light-theme .progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

body.light-theme .social-link {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.65);
}

/* Inputs in light theme */
body.light-theme .form-group input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0a0a0f;
}

body.light-theme .form-group input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

body.light-theme .footer {
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .footer-brand p,
body.light-theme .footer-bottom p,
body.light-theme .footer-column a {
  color: rgba(0, 0, 0, 0.65);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    padding-left: 3rem;
    padding-right: 0;
    margin-left: 0;
  }

  .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    left: 11px;
    right: auto;
  }
}

/* Contact Form Section */
.contact-form-section {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(240, 147, 251, 0.05) 100%
  );
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.form-group.required label::after {
  content: " *";
  color: #ff6b6b;
}

.form-group label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, #667eea, #f093fb);
  border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-submit {
  text-align: center;
}

.form-submit .btn {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

/* Light theme support for contact form */
body.light-theme .contact-form-section {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.03) 0%,
    rgba(240, 147, 251, 0.03) 100%
  );
}

body.light-theme .contact-form {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .form-group label {
  color: rgba(0, 0, 0, 0.8);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0a0a0f;
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
  background: rgba(0, 0, 0, 0.06);
}

body.light-theme .checkbox-label {
  color: rgba(0, 0, 0, 0.8);
}

body.light-theme .checkmark {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.04);
}

/* Responsive design for contact form */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }

  .form-submit .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1rem;
  }

  .contact-form-section {
    padding: 4rem 0;
  }
}

@media (min-width: 769px) {
  /* Ensure desktop layout keeps menu next to toggle on the right */
  .nav-menu {
    position: static;
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between; /* Ensure logo and actions are on opposite ends */
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 20px 1.25rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 1200;
  }

  body.light-theme .nav-menu {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .form-group {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px; /* Reduce padding on very small screens */
  }

  .nav-logo {
    font-size: 1.3rem; /* Slightly smaller logo text on very small screens */
  }

  .logo-icon {
    width: 35px; /* Slightly smaller logo icon */
    height: 35px;
  }

  .nav-actions {
    gap: 0.5rem; /* Reduce gap between hamburger and theme toggle */
  }

  .theme-toggle {
    width: 35px; /* Slightly smaller theme toggle */
    height: 35px;
  }

  .hamburger span {
    width: 22px; /* Slightly smaller hamburger lines */
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Contact Form Popup Modal */
.contact-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.contact-popup.active {
  opacity: 1;
  visibility: visible;
}

.contact-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-popup.active .contact-popup-overlay {
  opacity: 1;
}

.contact-popup-content {
  position: relative;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  transform: translateX(100%) scale(0.9);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
}

.contact-popup.active .contact-popup-content {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.contact-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-popup-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.popup-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: rotate(90deg);
}

.contact-popup-body {
  padding: 1.5rem 2rem 2rem;
}

.popup-subtitle {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.contact-popup.active .popup-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.popup-form .form-group {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.popup-form .form-group:nth-child(1) {
  transition-delay: 0.3s;
}
.popup-form .form-group:nth-child(2) {
  transition-delay: 0.4s;
}
.popup-form .form-group:nth-child(3) {
  transition-delay: 0.5s;
}
.popup-form .form-group:nth-child(4) {
  transition-delay: 0.6s;
}
.popup-form .form-group:nth-child(5) {
  transition-delay: 0.7s;
}

.contact-popup.active .popup-form .form-group {
  opacity: 1;
  transform: translateY(0);
}

/* Exit animations when popup is closing */
.contact-popup:not(.active) .popup-subtitle,
.contact-popup:not(.active) .popup-form .form-group {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.contact-popup:not(.active) .popup-subtitle {
  transition-delay: 0s;
}

.contact-popup:not(.active) .popup-form .form-group:nth-child(1) {
  transition-delay: 0s;
}
.contact-popup:not(.active) .popup-form .form-group:nth-child(2) {
  transition-delay: 0s;
}
.contact-popup:not(.active) .popup-form .form-group:nth-child(3) {
  transition-delay: 0s;
}
.contact-popup:not(.active) .popup-form .form-group:nth-child(4) {
  transition-delay: 0s;
}
.contact-popup:not(.active) .popup-form .form-group:nth-child(5) {
  transition-delay: 0s;
}

.popup-form .form-group input,
.popup-form .form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.popup-form .form-group input:focus,
.popup-form .form-group textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.popup-form .form-submit .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Light theme support for popup */
body.light-theme .contact-popup-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .contact-popup-header h3 {
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .popup-subtitle {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .popup-close-btn {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

/* Responsive design for popup */
@media (max-width: 768px) {
  .contact-popup-content {
    width: 95%;
    margin: 1rem auto;
    max-height: 95vh;
  }

  .contact-popup-header,
  .contact-popup-body {
    padding: 1rem 1.5rem;
  }

  .contact-popup-header h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .contact-popup-content {
    width: 98%;
    margin: 0.5rem auto;
  }

  .contact-popup-header,
  .contact-popup-body {
    padding: 1rem;
  }
}

/* Privacy Consent Banner */
.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  padding: 1rem 0;
}

.privacy-banner.show {
  transform: translateY(0);
}

.privacy-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.privacy-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

.privacy-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.privacy-actions .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.privacy-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #667eea;
}

/* Light theme support for privacy banner */
body.light-theme .privacy-banner {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .privacy-text p {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .privacy-link {
  color: rgba(0, 0, 0, 0.6);
}

body.light-theme .privacy-link:hover {
  color: #667eea;
}

/* Responsive design for privacy banner */
@media (max-width: 768px) {
  .privacy-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .privacy-actions {
    flex-direction: column;
    width: 100%;
  }

  .privacy-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
