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

/* DOOM-TECH DESIGN SYSTEM SYSTEM TOKENS */
:root {
  /* Colors */
  --bg-base: hsl(120, 8%, 4%);       /* Matte Obsidian Black */
  --bg-surface: hsl(135, 10%, 8%);   /* Gunmetal Charcoal */
  --bg-surface-elevated: hsl(135, 10%, 12%); /* Elevated Dark Gunmetal */
  
  --primary: #10b981;                /* Glowing Emerald Green */
  --primary-rgb: 16, 185, 129;
  --primary-dark: #064e3b;           /* Latverian Forest Green */
  --primary-light: #34d399;          /* High-energy Neon Green */
  
  --accent-gold: #c5a850;            /* Latverian Royal Gold */
  --accent-gold-rgb: 197, 168, 80;
  --accent-silver: #94a3b8;          /* Burnished Silver */
  
  --text-primary: #f8fafc;           /* Platinum White */
  --text-secondary: #cbd5e1;         /* Cool Grey */
  --text-muted: #64748b;             /* Steel Muted Grey */
  
  --border-dim: hsla(135, 10%, 16%, 0.8);
  --border-glow: hsla(145, 100%, 50%, 0.25);
  --border-gold-glow: hsla(45, 65%, 52%, 0.25);
  
  /* Fonts */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Gradients */
  --grad-hero: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-light) 70%, var(--accent-gold) 100%);
  --grad-doom: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px -5px rgba(16, 185, 129, 0.25);
  --shadow-glow-gold: 0 0 25px -5px rgba(197, 168, 80, 0.2);
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
  --border-radius: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-base);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

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

/* UTILITY CLASSES */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.glowing-bg {
  position: relative;
}
.glowing-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: var(--grad-glow);
  z-index: -1;
  pointer-events: none;
}

.glassmorphism {
  background: rgba(18, 22, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dim);
}

/* GLOWING BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-base);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--bg-base);
  box-shadow: var(--shadow-glow-gold);
}
.btn-gold:hover {
  background: #d9c072;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(197, 168, 80, 0.35);
}

/* FLOATING HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(8, 9, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.logo-link span {
  color: var(--primary);
}

.logo-svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.6));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-light);
}

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

/* MOBILE NAV HAMBURGER */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  position: relative;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.mobile-nav-toggle span:last-child {
  margin-bottom: 0;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  background: radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(197, 168, 80, 0.04) 0%, transparent 40%);
  overflow: hidden;
}

/* DOOM-TECH GRID EFFECT */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(16, 185, 129, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  z-index: 10;
}

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

.hero-badge {
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--primary-light);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulseGreen 2s infinite;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

/* HERO GRAPHIC / MOCKUP CONTAINER */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.doom-mask-container {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--bg-surface-elevated) 0%, rgba(18, 22, 19, 0) 70%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: floatDoom 6s ease-in-out infinite;
}

.doom-shield {
  position: absolute;
  width: 90%;
  height: 90%;
  border: 2px dashed rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  animation: spinShield 40s linear infinite;
}

.doom-shield-inner {
  position: absolute;
  width: 75%;
  height: 75%;
  border: 1px solid rgba(197, 168, 80, 0.2);
  border-radius: 50%;
  animation: spinShieldInverse 20s linear infinite;
}

.doom-symbol {
  width: 160px;
  height: 160px;
  fill: var(--primary);
  filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.5));
}

/* SECTIONS BASE */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  background-image: var(--grad-doom);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* MISSION SECTION */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

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

.mission-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.mission-card {
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.mission-card:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.mission-card-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.mission-card-title svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

/* APP SHOWCASE SECTION */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.app-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.app-card-img {
  width: 100%;
  height: 200px;
  background-color: var(--bg-surface-elevated);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-dim);
}

.app-card-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

.app-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--bg-base);
  border: 2px solid var(--border-dim);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  transition: var(--transition-smooth);
}

.app-card:hover .app-icon-wrapper {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.app-icon {
  width: 44px;
  height: 44px;
  fill: var(--primary);
}

.app-card:hover .app-icon {
  fill: var(--primary-light);
}

.app-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-tag {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.app-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
}

.app-card:hover .app-title {
  color: var(--primary-light);
}

.app-card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.app-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-features-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

.app-btn {
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-dim);
  background: var(--bg-surface-elevated);
  transition: var(--transition-smooth);
}

.app-card:hover .app-btn {
  background: var(--primary);
  color: var(--bg-base);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

/* CONTACT SECTION */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-channel-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.contact-channel-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-channel-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-form-wrapper {
  padding: 3rem;
  border-radius: var(--border-radius);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

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

/* FOOTER SECTION */
.footer {
  background-color: var(--bg-base);
  border-top: 1px solid var(--border-dim);
  padding: 5rem 0 3rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--primary);
}

.footer-logo-svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 320px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-title {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link-item a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
  transition: var(--transition-smooth);
}

.social-icon:hover svg {
  fill: var(--bg-base);
}

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

.footer-legal-link:hover {
  color: var(--text-primary);
}

/* STANDALONE LEGAL PAGES STYLING */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  background-color: var(--bg-base);
}

.legal-header {
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.legal-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: var(--text-secondary);
}

.legal-content section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-top: 1rem;
}

.legal-content h2::after {
  display: none;
}

.legal-content ul {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ANIMATIONS */
@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes floatDoom {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes spinShield {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinShieldInverse {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* INTERSECTION OBSERVER ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* TOAST STYLING */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translateY(50px);
  opacity: 0;
  animation: slideToastIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-dim);
}

.toast.success {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: var(--shadow-glow);
}

.toast-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes slideToastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-badge {
    align-self: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .doom-mask-container {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .nav-links {
    display: none; /* Handled by mobile menu class */
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  /* Mobile Menu Overlay Style */
  .header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-base);
    padding: 3rem 1.5rem;
    gap: 2.5rem;
    align-items: flex-start;
    border-top: 1px solid var(--border-dim);
    animation: slideMenuDown 0.4s forwards ease;
    z-index: 999;
  }
  
  .header.nav-open .mobile-nav-toggle span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .header.nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .header.nav-open .mobile-nav-toggle span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

@keyframes slideMenuDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
