:root {
  /* Prefer a light color scheme to discourage UA forced dark rendering */
  color-scheme: light;
  --blue: #0b1d7c;
  --blue-light: #1e3a8a;
  --blue-dark: #0a1b6b;
  --lime: #bcff5e;
  --lime-bright: #a3ff4a;
  --white: #ffffff;
  --black: #0f0f23;
  --gray: #1f2937;
  --gray-light: #6b7280;
  --gray-lighter: #9ca3af;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --gradient-primary: linear-gradient(
    135deg,
    var(--blue) 0%,
    var(--blue-light) 50%,
    var(--accent) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--lime) 0%,
    var(--lime-bright) 100%
  );
  --gradient-tertiary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  --max-width: 1440px;
  --font-primary: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --font-display: "Space Grotesk", var(--font-primary);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --container-padding: 2rem;
  --header-height: 72px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--black);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 1000;
  transition: width var(--transition-fast);
  box-shadow: 0 0 10px rgba(11, 29, 124, 0.5);
}

/* Animated Background Particles */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(11, 29, 124, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(188, 255, 94, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(6, 182, 212, 0.04) 0%,
      transparent 50%
    );
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--black);
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 3.5rem, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  margin: 0 0 1.5rem;
  color: var(--gray);
  font-size: 1.1rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(11, 29, 124, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(11, 29, 124, 0.6),
      0 0 60px rgba(188, 255, 94, 0.3);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(100px) skewY(10deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
    filter: blur(0px);
  }
}

.animate-fade-in {
  animation: fadeIn 1s var(--transition-slow) both;
}

.animate-fade-up {
  animation: fadeInUp 1s var(--transition-slow) 0.3s both;
}

.animate-fade-up-delayed {
  animation: fadeInUp 1s var(--transition-slow) 0.6s both;
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-text {
  animation: textReveal 1.2s var(--bounce) 0.2s both;
}

/* Scroll Reveal Animations - Fixed for visibility */
.scroll-reveal {
  opacity: 1; /* Changed from 0 to 1 for immediate visibility */
  transform: translateY(0); /* Reset transform for immediate visibility */
  transition: all 0.8s var(--bounce);
}

.scroll-reveal.animate-in {
  opacity: 0;
  transform: translateY(50px);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-stagger {
  opacity: 1; /* Changed from 0 to 1 for immediate visibility */
  transform: translateY(0) scale(1); /* Reset transform for immediate visibility */
  transition: all 0.6s var(--bounce);
}

.scroll-reveal-stagger.animate-in {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
}

.scroll-reveal-stagger.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
}

.logo {
  width: 240px;
  transition: all var(--transition-base);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation - Professional and Mature Styling */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-base);
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.nav-link:hover {
  color: var(--blue);
  background: rgba(11, 29, 124, 0.08);
  transform: none; /* Removed excessive transform */
}

.nav-link:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Active nav link indicator */
.nav-link.active {
  color: var(--blue);
  background: rgba(11, 29, 124, 0.1);
  font-weight: 600;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--black);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

.mobile-nav-cta {
  display: none;
}

/* Buttons - Professional and Corporate Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  position: relative;
  transition: all var(--transition-base);
  letter-spacing: 0.025em;
  text-transform: none;
}

.btn:focus {
  outline: 2px solid rgba(11, 29, 124, 0.5);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 29, 124, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(11, 29, 124, 0.3);
}

.btn-secondary {
  background: rgba(11, 30, 124, 0.3);
  color: var(--white);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 29, 124, 0.2);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(11, 29, 124, 0.2);
}

/* Remove excessive animations */
.pulse-glow {
  animation: none; /* Removed distracting pulse animation */
}

/* Simplified magnetic effect */
.magnetic-btn {
  transition: transform 0.2s ease;
}

.magnetic-btn:hover {
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-primary);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-secondary);
  bottom: -150px;
  left: -150px;
  animation-delay: 2s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--gradient-tertiary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(20px, -10px) scale(1.05);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  margin-bottom: 0;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--gray-light);
  max-width: 90%;
  margin-bottom: 0;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.tech-visualization {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  animation: floatIcon 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-icon ion-icon {
  font-size: 2rem;
  color: var(--blue);
}

.icon-1 {
  top: 0%;
  left: 0%;
  animation-delay: 0s;
}
.icon-2 {
  top: 0%;
  right: 5%;
  animation-delay: 1s;
}
.icon-3 {
  bottom: 5%;
  left: -10%;
  animation-delay: 2s;
}
.icon-4 {
  bottom: 10%;
  right: -10%;
  animation-delay: 3s;
}
.icon-5 {
  top: 45%;
  left: -10%;
  animation-delay: 4s;
}
.icon-6 {
  top: 40%;
  right: -10%;
  animation-delay: 5s;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.hero-image {
  width: 640px;
  /* height: 400px; */
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

/* Global visibility fallback */
.section {
  opacity: 1;
  visibility: visible;
}

.section * {
  opacity: 1;
  visibility: visible;
}

/* Section Spacing */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--black);
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Services Section - Enhanced visibility */
.services {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(11, 29, 124, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(188, 255, 94, 0.03) 0%,
      transparent 50%
    );
  z-index: 1;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 3;
}

.service-card {
  background: rgba(255, 255, 255, 0.95); /* Increased opacity */
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 29, 124, 0.1); /* Made border more visible */
  transition: all var(--transition-base);
  cursor: pointer;
  box-shadow: var(--shadow); /* Added default shadow */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 1); /* Full opacity on hover */
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.service-icon ion-icon {
  font-size: 3rem;
  color: var(--blue);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--black);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Toast notifications */
#toastContainer {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2000;
  pointer-events: none; /* allow clicks through when empty */
}

.toast {
  pointer-events: auto;
  background: rgba(18, 20, 28, 0.98);
  color: white;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.5);
  max-width: 360px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 220ms var(--transition-base), opacity 200ms ease;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast .toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.toast.success {
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 1),
    rgba(6, 182, 212, 1)
  );
}

.toast.error {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 1),
    rgba(234, 88, 12, 1)
  );
}

.toast button.close-toast {
  background: transparent;
  border: none;
  color: inherit;
  margin-left: auto;
  cursor: pointer;
  font-size: 1rem;
}

/* Back-to-top styles */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  background: rgba(109, 173, 19, 0.9);
  color: #fff;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
  border: none;
  cursor: pointer;
  z-index: 9999;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:focus,
.back-to-top:hover {
  outline: none;
  box-shadow: 0 8px 26px rgba(2, 6, 23, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.back-to-top ion-icon {
  font-size: 20px;
  display: inline-block;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.service-card p {
  color: var(--gray); /* Made darker for better contrast */
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 1rem;
}

.service-bg-shape {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.03;
  transition: all var(--transition-slow);
}

.service-card:hover .service-bg-shape {
  opacity: 0.08;
  transform: scale(1.2);
}

/* About Section - Fixed text colors */
.about {
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.5) 0%,
      rgba(30, 41, 59, 0.5) 50%,
      rgba(51, 65, 85, 0.5) 100%
    ),
    url("../img/nasa.jpg");
  /* background-image: url("../img/nasa.jpg"); */
  color: var(--white);
}

.about .section-title {
  color: var(--white);
  text-align: center;
  margin-bottom: 1rem;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--lime);
  margin-bottom: 0;
}

.about p {
  color: rgba(255, 255, 255, 0.9); /* Made more visible */
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number,
.stat-number--label {
  font-size: 3rem;
  font-weight: 800;
  color: var(--lime);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* Why Section - Fixed visibility */
.why {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.why .section-title {
  color: var(--black);
  text-align: center;
  margin-bottom: 2rem;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(11, 29, 124, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(6, 182, 212, 0.05) 0%,
      transparent 50%
    );
  animation: parallaxMove 15s ease-in-out infinite;
}

@keyframes parallaxMove {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(3deg);
  }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.why-item {
  background: rgba(255, 255, 255, 0.95); /* Made more opaque for visibility */
  backdrop-filter: blur(15px);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.why-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

.why-icon ion-icon {
  font-size: 3.5rem;
  color: var(--blue);
}

.why-item h3 {
  margin-bottom: 1rem;
  color: var(--black);
}

.why-item p {
  color: var(--gray); /* Made darker for better visibility */
  line-height: 1.6;
  margin-bottom: 0;
}

.why-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: -1;
}

.why-item:hover .why-glow {
  opacity: 0.05;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.neural-network {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: nodeGlow 3s ease-in-out infinite;
}

.node-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.node-2 {
  top: 30%;
  right: 20%;
  animation-delay: 0.5s;
}
.node-3 {
  bottom: 40%;
  left: 30%;
  animation-delay: 1s;
}
.node-4 {
  bottom: 30%;
  right: 15%;
  animation-delay: 1.5s;
}
.node-5 {
  top: 60%;
  left: 60%;
  animation-delay: 2s;
}

@keyframes nodeGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.connection {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--lime) 50%,
    transparent 100%
  );
  height: 1px;
  animation: connectionPulse 4s ease-in-out infinite;
}

.connection-1 {
  top: 25%;
  left: 12%;
  width: 200px;
  transform: rotate(15deg);
  animation-delay: 0s;
}

.connection-2 {
  top: 35%;
  right: 25%;
  width: 150px;
  transform: rotate(-30deg);
  animation-delay: 1s;
}

.connection-3 {
  bottom: 45%;
  left: 35%;
  width: 180px;
  transform: rotate(45deg);
  animation-delay: 2s;
}

.connection-4 {
  bottom: 35%;
  right: 20%;
  width: 120px;
  transform: rotate(-60deg);
  animation-delay: 3s;
}

@keyframes connectionPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact .section-title,
.contact p {
  color: var(--white);
  text-align: center;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(244, 252, 227, 0.2);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  border: 2px solid #5c940d;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
}

.form-input {
  width: 100%;
  max-width: 100%; /* for textarea specifically */
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.form-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.form-input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(188, 255, 94, 0.2);
  background: rgba(255, 255, 255, 0.85);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.85rem;
}

.footer-contact h4,
.footer-nav h4,
.footer-social h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  font-family: var(--font-display);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-item ion-icon {
  color: var(--lime);
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.contact-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

.contact-item a:hover {
  color: var(--lime);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0.75rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--lime);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--lime);
  color: var(--black);
  transform: translateY(-2px);
}

.social-links ion-icon {
  font-size: 1.3rem;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--lime);
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.newsletter-btn:hover {
  background: var(--lime-bright);
  transform: translateY(-1px);
}

.newsletter-btn ion-icon {
  font-size: 1.1rem;
}

/* Responsive Design */

@media (max-width: 1280px) {
  .hero-image {
    width: 480px;
  }

  .header-inner {
    padding: 1.25rem;
  }

  .icon-1 {
    top: 5%;
    left: 10%;
  }
  .icon-2 {
    top: 5%;
    right: 10%;
  }
  .icon-3 {
    bottom: 0%;
    left: 5%;
  }
  .icon-4 {
    bottom: 0%;
    right: 5%;
  }
  .icon-5 {
    top: 45%;
    left: 0%;
  }
  .icon-6 {
    top: 40%;
    right: 0%;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    height: 400px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image {
    width: 420px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-stats {
    flex-direction: row;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-height, 72px); /* place below header */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    transform: translateY(-12px) scaleY(0.98);
    transform-origin: top center;
    transition: transform var(--transition-base), opacity var(--transition-base);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 150;
    border: 1px solid #eee;
  }

  .main-nav.open {
    transform: translateY(12px) scaleY(1);
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul li {
    margin: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    color: var(--black);
    border-radius: 8px;
  }

  .main-nav a:focus {
    outline: 3px solid rgba(30, 58, 138, 0.12);
    outline-offset: 2px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(15, 15, 35, 0.06);
    transition: background var(--transition-base),
      border-color var(--transition-base);
  }

  .nav-toggle:focus {
    outline: 3px solid rgba(30, 58, 138, 0.12);
    outline-offset: 2px;
  }

  /* Mobile: show header CTA inside the menu, hide desktop header CTA */
  .header-ctas .header-cta {
    display: none; /* keep header CTA hidden on small screens */
  }

  .mobile-nav-cta {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }

  .mobile-nav-cta .nav-get-started {
    display: inline-flex;
    width: 100%;
    max-width: 360px;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(11, 29, 124, 0.12);
    color: var(--white);
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 3rem;
  }
  .header-inner {
    padding: 1rem 1.6rem;
  }

  .hero {
    padding: 100px 0 40px;
  }

  .floating-icon {
    width: 4rem;
    height: 4rem;
  }

  .section {
    padding: 40px 0;
  }

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

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

  .hero-ctas {
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
  }

  .footer-brand {
    grid-column: span 2;
    text-align: center;
    align-items: center;
  }

  .about-stats {
    flex-direction: column;
  }
}

/* HubSpot Meetings Modal Styles */
.hs-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.hs-modal[aria-hidden="false"] {
  display: flex;
}
.hs-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}
.hs-modal-panel {
  position: relative;
  width: min(960px, 95%);
  max-height: 90vh;
  background: var(--white);
  border-radius: 12px;
  overflow: scroll;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.5);
  z-index: 10001;
}
.hs-modal-panel .meetings-iframe-container {
  width: 100%;
  height: 80vh;
}
.hs-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--gray);
  padding: 8px;
  cursor: pointer;
  z-index: 10002;
}
.hs-modal-close:focus {
  outline: 3px solid rgba(11, 29, 124, 0.12);
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .hs-modal-panel .meetings-iframe-container {
    height: 75vh;
  }

  .logo {
    height: 40px;
  }

  .main-nav {
    top: 65px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-contact {
    grid-column: span 2;
  }

  .footer-social {
    grid-column: span 2;
  }

  .newsletter-form {
    /* flex-direction: column; */
    gap: 0.75rem;
  }

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

  .hero-visual {
    height: 300px;
  }

  .hero-image {
    width: 250px;
    height: 250px;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}
