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

/* =========================================
   LOCAL BRAND FONT
   ========================================= */
@font-face {
  font-family: 'Toxigenesis';
  src: url('../fonts/toxigenesis bd.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #e5e7eb;
  --text-primary: #0f2543;
  --text-secondary: #3c3c3c;
  --border-subtle: #e5e7eb;
  --brand-gradient: linear-gradient(90deg, #ffa302 0%, #ff8934 50%, #fc4265 100%);

  /* Utility Colors */
  --text-primary-90: rgba(15, 37, 67, 0.9);
  --text-primary-60: rgba(15, 37, 67, 0.6);
  --text-primary-30: rgba(15, 37, 67, 0.3);
  --text-primary-10: rgba(15, 37, 67, 0.1);

  /* Hero accents */
  --hero-green: #1f9d5c;
  --hero-warm-1: #ff8a00;
  --hero-warm-2: #ff4d6d;

  /* Typography */
  --font-heading: 'Toxigenesis', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   GLOBAL TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

button, .btn, .cta-button {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Wide-tracked tagline look (e.g. "ENERGY SOLUTIONS") */
.brand-tagline, .logo-subtext {
  font-family: 'Montserrat', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(15, 37, 67, 0.05);
}

.nav-logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

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

.nav-links a {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  font-family: var(--font-body);
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  background: var(--brand-gradient);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 2px;
  font-weight: 600 !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(255, 163, 2, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 163, 2, 0.35);
}

/* ── Hamburger toggle (mobile only) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
/* X animation when open */
.navbar.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.navbar.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ── Backdrop ── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 37, 67, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.nav-locked { overflow: hidden; }

/* ═══════════════════════════════════════
   HERO SCROLL CONTAINER
═══════════════════════════════════════ */
.hero-scroll-container {
  position: relative;
  height: 300vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clean background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  z-index: 0;
  overflow: hidden;
}

/* Atmospheric color blobs */
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.hero-bg .blob.green {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #7be0a8, transparent 70%);
  top: -180px; right: -120px;
  animation: heroDrift1 18s ease-in-out infinite;
}
.hero-bg .blob.warm {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #ffd29e, transparent 70%);
  bottom: -200px; left: -140px;
  animation: heroDrift2 22s ease-in-out infinite;
}
.hero-bg .blob.sun {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #fff0c9, transparent 70%);
  top: 30%; left: 42%; opacity: 0.4;
  animation: heroDrift1 26s ease-in-out infinite;
}
@keyframes heroDrift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,40px); } }
@keyframes heroDrift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px,-30px); } }

/* Faint energy grid */
.hero-bg .grid-tex {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,37,67,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,37,67,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.6;
}

/* Subtle grain overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ═══════════════════════════════════════
   LEFT TEXT CONTENT
═══════════════════════════════════════ */
.hero-text-content {
  position: absolute;
  left: 48px;
  top: 56%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 560px;
  will-change: transform, opacity;
}

/* Eyebrow badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px 8px 11px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary-60);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px -10px rgba(15, 37, 67, 0.4);
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.2s ease forwards;
}
.hero-eyebrow b { color: var(--text-primary); font-weight: 700; }
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hero-green);
  box-shadow: 0 0 0 0 rgba(31, 157, 92, 0.5);
  animation: heroPulse 2.2s ease-out infinite;
}

.hero-headline {
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 26px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line > span {
  display: block;
  transform: translateY(108%);
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-headline .line:nth-child(1) > span { animation-delay: 0.34s; }
.hero-headline .line:nth-child(2) > span { animation-delay: 0.44s; }
.hero-headline .line:nth-child(3) > span { animation-delay: 0.54s; }

.hero-headline .grad {
  position: relative;
  background: linear-gradient(96deg, var(--hero-warm-1), var(--hero-warm-2) 55%, var(--hero-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-headline .grad::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.06em;
  width: 100%; height: 0.09em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hero-warm-1), var(--hero-warm-2), var(--hero-green));
  transform: scaleX(0);
  transform-origin: left;
  animation: heroUnderline 1s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Subtitle */
.hero-sub {
  max-width: 440px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary-60);
  opacity: 0;
  animation: heroFadeUp 0.8s 0.8s ease forwards;
}

/* CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.95s ease forwards;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border: none;
  border-radius: 13px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--brand-gradient);
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 16px 34px -12px rgba(255, 77, 109, 0.5);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -12px rgba(255, 77, 109, 0.6);
}

.hero-btn svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn:hover svg {
  transform: translateX(5px);
}

/* Play button */
.hero-play {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  transition: gap 0.25s ease;
}
.hero-play:hover { gap: 15px; }
.hero-play .ring {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--text-primary);
  display: grid;
  place-items: center;
  color: var(--text-primary);
  transition: background 0.25s ease, color 0.25s ease;
}
.hero-play:hover .ring { background: var(--text-primary); color: #fff; }

/* Stats strip */
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  opacity: 0;
  animation: heroFadeUp 0.8s 1.15s ease forwards;
}
.hero-stats .stat { position: relative; padding-left: 18px; }
.hero-stats .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--hero-warm-1), var(--hero-warm-2));
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 27px;
  color: var(--text-primary);
  line-height: 1;
}
.hero-stats .stat span {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary-60);
  margin-top: 6px;
  font-weight: 500;
}

/* Hero entrance keyframes */
@keyframes heroRise { to { transform: translateY(0); } }
@keyframes heroUnderline { to { transform: scaleX(1); } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 92, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(31, 157, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 92, 0); }
}

/* ═══════════════════════════════════════
   IMAGE CONTAINER
═══════════════════════════════════════ */
.hero-image-wrapper {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  will-change: transform, width, height, border-radius;
  /* Initial dimensions - positioned right side */
  border-radius: 20px;
  box-shadow: 0 30px 70px -30px rgba(15, 37, 67, 0.35);
}

/* ═══════════════════════════════════════
   IMAGE-SIDE DECORATIONS
═══════════════════════════════════════ */
.hero-decor {
  position: absolute;
  z-index: 8;
  top: 50%;
  right: 48px;
  width: 42vw;
  height: 62vh;
  transform: translateY(-50%);
  pointer-events: none;
  will-change: opacity;
}

.hero-decor .live-badge {
  position: absolute;
  top: 18px; right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 20, 12, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 14px;
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: heroCardIn 0.8s 1.4s ease forwards;
}
.hero-decor .live-badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: heroBlink 1.6s ease-in-out infinite;
}

.hero-decor .float-card {
  position: absolute;
  left: -26px; bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 20px 44px -18px rgba(15, 37, 67, 0.5);
  opacity: 0;
  animation: heroCardIn 0.8s 1.3s ease forwards, heroBob 6s 2.1s ease-in-out infinite;
}
.hero-decor .float-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--hero-green), #0f7a44);
  color: #fff;
}
.hero-decor .float-card b {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1;
}
.hero-decor .float-card span {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-primary-60);
  margin-top: 3px;
  font-weight: 500;
}

@keyframes heroBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes heroBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes heroCardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-image-wrapper img,
.hero-image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════
   OVERLAY TEXT (appears when image is full-screen)
═══════════════════════════════════════ */
.hero-overlay-text {
  position: absolute;
  z-index: 15;
  text-align: center;
  max-width: 750px;
  padding: 0 24px;
  will-change: opacity;
  pointer-events: none;
}

.hero-overlay-text h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  font-family: var(--font-heading);
}

.hero-overlay-text .overlay-divider {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  margin: 24px auto;
  border-radius: 2px;
}

.hero-overlay-text p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 1px 20px rgba(0,0,0,0.3);
}

/* Dark gradient overlay on image for text readability */
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 37, 67, 0.2) 0%,
    rgba(15, 37, 67, 0.4) 40%,
    rgba(15, 37, 67, 0.6) 100%
  );
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.1s linear;
}

/* ═══════════════════════════════════════
   SCROLL INDICATOR
═══════════════════════════════════════ */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  will-change: opacity;
  transition: opacity 0.4s ease;
}

.scroll-indicator span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary-60);
  font-family: var(--font-body);
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-primary-30);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}




/* ── Mobile nav drawer ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 104px 40px 40px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -24px 0 60px -22px rgba(15, 37, 67, 0.45);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
  }
  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .nav-links a {
    display: block;
    font-size: 1.2rem;
    padding: 12px 0;
  }
  .nav-links .lang-toggle { margin: 14px 0 0; }

  .navbar.menu-open .nav-links { transform: translateX(0); }
  .navbar.menu-open .nav-links li { opacity: 1; transform: none; }
  .navbar.menu-open .nav-links li:nth-child(1) { transition-delay: 0.10s; }
  .navbar.menu-open .nav-links li:nth-child(2) { transition-delay: 0.16s; }
  .navbar.menu-open .nav-links li:nth-child(3) { transition-delay: 0.22s; }
  .navbar.menu-open .nav-links li:nth-child(4) { transition-delay: 0.28s; }
  .navbar.menu-open .nav-links li:nth-child(5) { transition-delay: 0.34s; }
  .navbar.menu-open .nav-links li:nth-child(6) { transition-delay: 0.40s; }

  .navbar.menu-open ~ .nav-backdrop { opacity: 1; visibility: visible; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }

  .hero-text-content {
    left: 20px;
    max-width: 60%;
  }

  .hero-eyebrow {
    font-size: 11px;
    padding: 6px 12px 6px 9px;
    margin-bottom: 18px;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    margin-bottom: 18px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .hero-cta-row {
    gap: 16px;
    margin-top: 24px;
  }

  .hero-btn {
    padding: 12px 22px;
    font-size: 0.85rem;
  }

  /* Too dense to sit beside the image on small screens */
  .hero-play,
  .hero-stats,
  .hero-decor {
    display: none;
  }

}
