/* =============================================
   KEYSERTRON - Design System & Styles
   Soluciones en reciclaje de residuos electrónicos
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors */
  --green-primary: #2E7D32;
  --green-light: #4CAF50;
  --green-dark: #1B5E20;
  --green-glow: #00E676;
  --navy-primary: #003366;
  --navy-dark: #001a33;
  --navy-light: #004080;
  --blue-accent: #0277BD;
  --blue-chip: #1565C0;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #001a33 0%, #003366 40%, #1B5E20 100%);
  --gradient-card: linear-gradient(135deg, rgba(0,51,102,0.4) 0%, rgba(46,125,50,0.2) 100%);
  --gradient-cta: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
  --gradient-cta-hover: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  --gradient-text: linear-gradient(135deg, #4CAF50, #00E676);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
  --shadow-glow-green: 0 0 30px rgba(46,125,50,0.3);
  --shadow-glow-blue: 0 0 30px rgba(2,119,189,0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: #050a0e;
  color: var(--gray-200);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---- Section Defaults ---- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--green-light);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green-light);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(46,125,50,0.4);
}

.btn-primary:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(46,125,50,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--green-light);
  color: var(--green-light);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ---- NAVIGATION ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
}

.nav-logo-text span {
  color: var(--green-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-300);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 10000;
  pointer-events: auto;
  touch-action: manipulation;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

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

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

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

/* ---- HERO SECTION ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: radial-gradient(ellipse at 30% 50%, rgba(46,125,50,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(0,51,102,0.1) 0%, transparent 50%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0.8) 70%, var(--gray-900) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

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

.hero-content {
  position: relative;
}

/* ---- MASCOT ---- */
/* .hero-mascot - see enhanced MASCOT TECH FRAME version below */

.mascot-img {
  width: 420px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 30px rgba(0,230,118,0.4)) drop-shadow(0 0 60px rgba(46,125,50,0.2));
  transition: filter 0.4s ease;
  cursor: pointer;
  will-change: transform;
  position: relative;
  z-index: 3;
  animation: mascotGlowBreath 4s ease-in-out infinite;
}

@keyframes mascotGlowBreath {
  0%, 100% {
    filter: drop-shadow(0 0 25px rgba(0,230,118,0.35)) drop-shadow(0 0 60px rgba(46,125,50,0.2));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0,230,118,0.55)) drop-shadow(0 0 80px rgba(46,125,50,0.3)) drop-shadow(0 0 120px rgba(0,230,118,0.1));
  }
}

.mascot-img:hover {
  filter: drop-shadow(0 0 40px rgba(0,230,118,0.6)) drop-shadow(0 0 80px rgba(46,125,50,0.35)) drop-shadow(0 0 5px rgba(0,230,118,0.8));
}

.mascot-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,230,118,0.18) 0%, rgba(46,125,50,0.12) 30%, rgba(46,125,50,0.04) 55%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: mascotGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.mascot-shadow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: mascotShadow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mascotFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-14px) rotate(1deg);
  }
  50% {
    transform: translateY(-20px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes mascotGlowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes mascotShadow {
  0%, 100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scaleX(0.75);
    opacity: 0.3;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(46,125,50,0.15);
  border: 1px solid rgba(46,125,50,0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--gray-300);
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.6s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.6s ease 0.8s forwards;
  opacity: 0;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-light);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ---- SERVICES SECTION ---- */
.services {
  background: linear-gradient(180deg, rgba(5,10,14,0.95) 0%, rgba(0,26,51,0.6) 50%, rgba(5,10,14,0.95) 100%);
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: rgba(5,15,25,0.6);
  border: 1px solid rgba(46,125,50,0.12);
  backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
  overflow: hidden;
  cursor: default;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,230,118,0.06) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(5,15,25,0.8);
  border-color: rgba(0,230,118,0.35);
  box-shadow: 0 0 30px rgba(46,125,50,0.2), 0 0 60px rgba(0,230,118,0.08), inset 0 0 30px rgba(46,125,50,0.03);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(46,125,50,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: rgba(46,125,50,0.2);
  transform: scale(1.1);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--green-light);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- ABOUT SECTION ---- */
.about {
  background: rgba(5,10,14,0.95);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-container {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.05);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-floating-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(46,125,50,0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-glow-green);
}

.about-floating-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-floating-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.about-floating-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.about-floating-label {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.about-content h2 .highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content > p {
  color: var(--gray-400);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(46,125,50,0.1);
  border: 1px solid rgba(46,125,50,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--green-light);
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* ---- PROCESS SECTION ---- */
.process {
  background: linear-gradient(180deg, rgba(5,10,14,0.95) 0%, rgba(0,26,51,0.5) 100%);
  position: relative;
  overflow: hidden;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* process-timeline::before - see enhanced version below */


.process-step {
  text-align: center;
  position: relative;
}

/* process-number - see enhanced version below */


.process-step:hover .process-number {
  background: var(--gradient-cta);
  color: var(--white);
  border-color: var(--green-light);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-green);
}

.process-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.process-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--green-light);
}

/* ---- IMPACT/STATS SECTION ---- */
.impact {
  background: rgba(0,13,26,0.9);
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(46,125,50,0.1) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(2,119,189,0.1) 0%, transparent 60%);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.impact-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: rgba(5,15,25,0.5);
  border: 1px solid rgba(46,125,50,0.1);
  transition: all var(--transition-normal);
  position: relative;
}

.impact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,230,118,0.2), transparent 40%, transparent 60%, rgba(46,125,50,0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.impact-card:hover::before {
  opacity: 1;
}

.impact-card:hover {
  transform: translateY(-4px);
  background: rgba(5,15,25,0.7);
  border-color: rgba(0,230,118,0.3);
  box-shadow: 0 0 25px rgba(0,230,118,0.1), 0 8px 32px rgba(0,0,0,0.3);
}

.impact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--green-light);
  opacity: 0.8;
}

.impact-value {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.impact-value .counter-suffix {
  font-size: 1.5rem;
  color: var(--green-light);
}

.impact-label {
  font-size: 0.95rem;
  color: var(--gray-400);
}

/* ---- CONTACT SECTION ---- */
.contact {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--gray-900) 100%);
}

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

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--gray-400);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(46,125,50,0.1);
  border: 1px solid rgba(46,125,50,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--green-light);
}

.contact-item-label {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.contact-item-value {
  font-weight: 600;
  color: var(--white);
}

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--gradient-cta);
  border-color: var(--green-light);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--gray-300);
}

.social-link:hover svg {
  color: var(--white);
}

/* Contact Form */
.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-300);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-light);
  background: rgba(46,125,50,0.05);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select option {
  background: var(--gray-800);
  color: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--green-light);
  margin: 0 auto 16px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray-400);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--gray-400);
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-logo-text span {
  color: var(--green-light);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--green-light);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---- CHATBOT ---- */
.chatbot-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-cta);
  border: none;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(46,125,50,0.5), 0 0 40px rgba(0,230,118,0.15);
  transition: all var(--transition-spring);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(46,125,50,0.6);
}

.chatbot-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--white);
  transition: transform var(--transition-normal);
}

.chatbot-toggle.active svg {
  transform: rotate(180deg);
}

.chatbot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

.chatbot-window {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 380px;
  max-height: 520px;
  border-radius: var(--radius-lg);
  background: rgba(5,10,18,0.98);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(0,230,118,0.15);
  box-shadow: 0 8px 60px rgba(0,0,0,0.5), 0 0 30px rgba(0,230,118,0.05);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-spring);
  overflow: hidden;
}

.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--navy-primary), var(--green-dark));
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5,15,25,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(0,230,118,0.3);
}

.chatbot-header-info h4 {
  font-size: 1rem;
  font-weight: 700;
}

.chatbot-header-info p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-glow);
  display: inline-block;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 320px;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.chat-message {
  display: flex;
  gap: 8px;
  animation: fadeInUp 0.3s ease;
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.bot .chat-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
  color: var(--gray-200);
}

.chat-message.user .chat-bubble {
  background: var(--gradient-cta);
  border-bottom-right-radius: 4px;
  color: var(--white);
}

.chat-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(5,15,25,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid rgba(0,230,118,0.2);
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 16px;
}

.quick-reply-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(46,125,50,0.1);
  border: 1px solid rgba(46,125,50,0.3);
  color: var(--green-light);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.quick-reply-btn:hover {
  background: rgba(46,125,50,0.2);
  border-color: var(--green-light);
  transform: translateY(-1px);
}

.chatbot-input {
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.chatbot-input input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.chatbot-input input:focus {
  border-color: var(--green-light);
}

.chatbot-input input::placeholder {
  color: var(--gray-500);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-cta);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chatbot-send:hover {
  transform: scale(1.05);
}

.chatbot-send svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ---- CIRCUIT BOARD CANVAS ---- */
.circuit-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ---- SCANLINE OVERLAY ---- */
.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 230, 118, 0.008) 2px,
    rgba(0, 230, 118, 0.008) 4px
  );
  mix-blend-mode: screen;
}

.scanline-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.15), transparent);
  animation: scanSweep 6s linear infinite;
}

@keyframes scanSweep {
  0% { top: -4px; }
  100% { top: 100%; }
}

/* ---- CIRCUIT CORNER DECORATIONS ---- */
.circuit-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}

.circuit-corner::before,
.circuit-corner::after {
  content: '';
  position: absolute;
  background: rgba(0, 230, 118, 0.25);
}

.circuit-corner-tl {
  top: 0;
  left: 24px;
}
.circuit-corner-tl::before {
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
}
.circuit-corner-tl::after {
  top: 0;
  left: 0;
  width: 1px;
  height: 40px;
}

.circuit-corner-tr {
  top: 0;
  right: 24px;
}
.circuit-corner-tr::before {
  top: 0;
  right: 0;
  width: 40px;
  height: 1px;
}
.circuit-corner-tr::after {
  top: 0;
  right: 0;
  width: 1px;
  height: 40px;
}

.circuit-corner-bl {
  bottom: 0;
  left: 24px;
}
.circuit-corner-bl::before {
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
}
.circuit-corner-bl::after {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 40px;
}

.circuit-corner-br {
  bottom: 0;
  right: 24px;
}
.circuit-corner-br::before {
  bottom: 0;
  right: 0;
  width: 40px;
  height: 1px;
}
.circuit-corner-br::after {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 40px;
}

/* ---- MASCOT TECH FRAME ---- */
.hero-mascot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mascot::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  pointer-events: none;
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: techRingRotate 20s linear infinite;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(0, 230, 118, 0.2) 10%,
    transparent 20%,
    transparent 50%,
    rgba(46, 125, 50, 0.15) 60%,
    transparent 70%
  );
}

.hero-mascot::after {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  pointer-events: none;
  border: 1px dashed rgba(0, 230, 118, 0.06);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: techRingRotate 30s linear infinite reverse;
}

@keyframes techRingRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---- SECTION DIVIDER GLOW ---- */
.services::before,
.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.3), transparent);
  z-index: 2;
}

/* ---- DATA STREAM EFFECT (vertical text-like particles) ---- */
@keyframes dataStream {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% {
    transform: translateY(200vh);
    opacity: 0;
  }
}

/* ---- ENHANCED PROCESS TIMELINE ---- */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 230, 118, 0.15) 10%, 
    rgba(0, 230, 118, 0.3) 50%, 
    rgba(0, 230, 118, 0.15) 90%, 
    transparent
  );
  opacity: 1;
  animation: circuitPulseH 4s ease-in-out infinite;
}

@keyframes circuitPulseH {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.process-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(5,15,25,0.9);
  border: 2px solid rgba(0,230,118,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-light);
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
  box-shadow: 0 0 15px rgba(0,230,118,0.08);
}

/* ---- GLOWING TEXT EFFECT ---- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
}

/* Make all sections sit above the canvas */
.section, .footer {
  position: relative;
  z-index: 2;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15,23,42,0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition-normal);
    border-left: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-mascot {
    order: -1;
    margin-bottom: 0;
  }

  .mascot-img {
    width: 280px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .process-timeline::before {
    display: none;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .chatbot-window {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 96px;
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .mascot-img {
    width: 220px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

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

  .impact-value {
    font-size: 2rem;
  }
}
