/* ============================================
   MEGASPEED.AI — SHARED STYLESHEET
   ============================================ */

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

:root {
  /* Green Theme based on reference image */
  --primary: #00d26a;       /* Vibrant Green */
  --primary-hover: #00b359;
  --primary-dim: rgba(0, 210, 106, 0.15);
  
  --bg-dark: #050505;       /* Deep Black */
  --bg-darker: #000000;
  --bg-card: #0a0a0a;
  --bg-section: #080808;
  
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --text-light: #d0d0d0;
  
  --border: rgba(255, 255, 255, 0.1);
  --nav-h: 70px;
}

html { scroll-behavior: smooth; }

body {
  /* Switched to Inter/System fonts for wider, cleaner look */
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0 32px; height: var(--nav-h);
  gap: 60px; /* Add spacing between logo and menu items */
}
.logo {
  display: flex; align-items: center; cursor: pointer;
  flex-shrink: 0;
}
.logo-img {
  max-height: 24px; width: auto; display: block;
}
/* Removed old .logo-icon and .logo-text styles as they are replaced by image logo */

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 0; cursor: pointer; font-size: 14px;
  font-weight: 500; color: var(--text-light);
  background: none; border: none; transition: color 0.2s;
}
.nav-link-btn:hover { color: #fff; }
.nav-link-btn svg { width: 10px; height: 10px; opacity: 0.7; transition: transform 0.2s; }
.nav-item.open .nav-link-btn svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: #111; border: 1px solid var(--border);
  min-width: 240px; opacity: 0; pointer-events: none;
  transition: all 0.2s ease;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  padding: 8px;
}
.nav-item.open .dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 10px 16px; font-size: 13px;
  color: var(--text-light); border-radius: 6px;
  transition: all 0.2s;
}
.dropdown a:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Contact Button in Nav */
.nav-btn-contact {
  background: var(--primary); color: #000;
  padding: 8px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.nav-btn-contact:hover { background: var(--primary-hover); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #000; z-index: 999;
  overflow-y: auto; padding: 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav-item { border-bottom: 1px solid var(--border); }
.mobile-nav-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; font-size: 15px; font-weight: 600; color: #fff;
  cursor: pointer;
}
.mobile-nav-sub { display: none; padding-bottom: 12px; }
.mobile-nav-sub.open { display: block; }
.mobile-nav-sub a {
  display: block; padding: 10px 16px; font-size: 14px;
  color: var(--text-gray);
  transition: color 0.2s;
}
.mobile-nav-sub a:hover { color: var(--primary); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative; height: 750px; width: 100%;
  overflow: hidden; background: #000;
}
.slides-container {
  position: relative; height: 100%; width: 100%;
}
.slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0; transition: opacity 0.8s ease-in-out;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; z-index: 10; }

.circuit-svg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; max-width: 800px; height: auto; opacity: 0.15;
  pointer-events: none; z-index: 1;
}

.slide-content {
  position: relative; z-index: 20; text-align: center;
  max-width: 900px; padding: 0 20px;
}

.slide-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 24px;
}
.slide-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.slide-title .accent { color: var(--primary); }
.slide-desc {
  font-size: 18px; color: var(--text-gray); font-weight: 400;
  line-height: 1.6; max-width: 640px; margin: 0 auto 40px;
}
.slide-btns {
  display: flex; gap: 16px; justify-content: center;
}

/* Slider Controls */
.slider-controls {
  position: absolute; bottom: 120px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 12px; z-index: 30;
}
.slider-dot {
  width: 40px; height: 3px; background: rgba(255,255,255,0.2);
  cursor: pointer; transition: all 0.3s;
}
.slider-dot.active { background: var(--primary); }

/* Stats Bar */
.hero-stats-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.8); border-top: 1px solid var(--border);
  backdrop-filter: blur(10px); z-index: 40;
}
.hero-stats-inner {
  max-width: 1300px; margin: 0 auto; height: 80px;
  display: flex; align-items: center; justify-content: space-around;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 24px; font-weight: 700; color: #fff;
  font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  color: var(--text-gray); letter-spacing: 0.05em;
}

/* Solutions Overlay */
.solution-card {
  position: relative; display: block; height: 320px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.solution-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.5s;
}
.solution-card:hover .solution-bg { transform: scale(1.05); }
.sol-circuit {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.3;
}
.sol-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, transparent 80%);
  opacity: 0.8; transition: opacity 0.3s;
}
.solution-card:hover .sol-overlay { opacity: 0.9; }
.sol-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px;
}
.sol-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px; letter-spacing: 0.05em;
}
.sol-title {
  font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.sol-desc {
  font-size: 13px; color: var(--text-gray); line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden; transition: all 0.3s;
}
.solution-card:hover .sol-desc { max-height: 60px; opacity: 1; margin-top: 8px; }

/* Subpage Hero (Keep existing) */
.page-hero {
  position: relative; padding: 160px 32px 100px;
  min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 40, 20, 0.4) 0%, #050505 70%);
  overflow: hidden;
}
.page-hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.page-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 20px; display: inline-block;
}
.page-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.page-title .accent { color: var(--primary); }
.page-subtitle {
  font-size: 18px; color: var(--text-gray); font-weight: 400;
  line-height: 1.6; max-width: 640px; margin: 0 auto 40px;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; background: var(--primary); color: #000;
  font-size: 14px; font-weight: 600; border-radius: 4px;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; background: transparent;
  border: 1px solid var(--border); color: #fff;
  font-size: 14px; font-weight: 600; border-radius: 4px;
  cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* ===== SECTIONS ===== */
.section { padding: 100px 32px; }
.section-inner { max-width: 1300px; margin: 0 auto; }
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px; display: block;
}
.section-title {
  font-size: 36px; font-weight: 700; color: #fff;
  margin-bottom: 48px; letter-spacing: -0.01em;
}
.gold-line {
  width: 40px; height: 3px; background: var(--primary);
  margin-bottom: 24px; border-radius: 2px;
}

/* Cards & Grid */
.feat-grid, .infra-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feat-card, .infra-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 40px 32px; border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s;
}
.feat-card:hover, .infra-card:hover {
  transform: translateY(-5px); border-color: var(--primary);
}
.feat-card h4, .infra-card h4 {
  font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 12px;
}
.feat-card p, .infra-card p {
  font-size: 14px; color: var(--text-gray); line-height: 1.6;
}
.big-stat {
  font-size: 48px; font-weight: 800; color: var(--primary);
  line-height: 1; margin-bottom: 8px;
}

/* Stats Bar */
.stat-block { text-align: center; padding: 20px; }
.stat-lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--text-gray); letter-spacing: 0.05em; margin-top: 8px; }

/* Footer */
footer {
  background: #020202; border-top: 1px solid var(--border);
  padding: 80px 32px 40px;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 60px; border-bottom: 1px solid var(--border);
}
.footer-col h5 {
  font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14px; color: var(--text-gray); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 30px; display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-gray);
}

/* Cookie Banner */
#cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  background: #111; border: 1px solid var(--border);
  padding: 16px 24px; border-radius: 8px; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1200px; margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideUp 0.5s ease forwards;
}
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.btn-cookie {
  padding: 8px 16px; font-size: 12px; font-weight: 600; border-radius: 4px;
  cursor: pointer; border: 1px solid var(--border); background: transparent; color: #fff;
}
.btn-cookie.accept { background: var(--primary); border-color: var(--primary); color: #000; }

/* Responsive */
@media (max-width: 1024px) {
  .feat-grid, .infra-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .feat-grid, .infra-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .page-title { font-size: 36px; }
}

/* Animation Utilities */
.fade-in { animation: fadeIn 0.8s ease forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.2s; } .d3 { animation-delay: 0.3s; }
/* ===== BACKGROUNDS ===== */
.slide-1-bg {
  background: radial-gradient(circle at 70% 50%, #051508 0%, #000000 80%);
}
.slide-2-bg {
  background: radial-gradient(circle at 30% 50%, #051015 0%, #000000 80%);
}
.slide-3-bg {
  background: radial-gradient(circle at 50% 50%, #080515 0%, #000000 80%);
}
.sol-1 {
  background: linear-gradient(135deg, #05101a 0%, #000000 100%);
}
.sol-2 {
  background: linear-gradient(135deg, #1a0a05 0%, #000000 100%);
}
.sol-3 {
  background: linear-gradient(135deg, #051a0a 0%, #000000 100%);
}

/* ===== MODAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.statement-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.statement-modal.open { opacity: 1; pointer-events: auto; }
.statement-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}
.statement-dialog {
  position: relative; z-index: 2; width: 90%; max-width: 600px;
  background: #111; border: 1px solid var(--border);
  padding: 32px; border-radius: 12px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: slideUpModal 0.4s ease;
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.statement-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-gray);
  font-size: 24px; cursor: pointer; line-height: 1;
}
.statement-close:hover { color: #fff; }
.statement-title {
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.statement-date {
  font-size: 13px; color: var(--primary); margin-bottom: 20px; font-weight: 600;
}
.statement-body p {
  font-size: 14px; color: var(--text-gray); line-height: 1.6; margin-bottom: 16px;
}
.statement-sign {
  margin-top: 24px; font-weight: 700; color: #fff; font-size: 14px;
}

