/* Theme Variables (Light by default, Dark option) */
:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --text: #0b0f19;
  --text-muted: #4b5563;
  --border: #e2e8f0;
  --accent: #ff4d00;
  --accent-light: #fff5f0;
  --accent-dim: rgba(255, 77, 0, 0.15);
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --input-bg: #f8fafc;
  --footer-bg: #f1f5f9;
  --section-bar-bg: rgba(248, 250, 252, 0.8);
  --font-sans: 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --bg: #050505;
  --bg-subtle: #0c0c0e;
  --text: #eee8de;
  --text-muted: rgba(238, 232, 222, 0.45);
  --border: rgba(255, 77, 0, 0.2);
  --accent-light: rgba(255, 77, 0, 0.05);
  --card-bg: rgba(12, 12, 14, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --input-bg: #0a0a0c;
  --footer-bg: #000000;
  --section-bar-bg: rgba(12, 12, 14, 0.5);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Custom WebGL fixed background canvas */
.webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   INTRO OVERLAY — Scroll-driven zoom animation
   ============================================= */
.intro-overlay {
  position: relative;
  z-index: 15; /* above page content z-index of 10 */
  height: 300vh; /* scroll distance for the animation */
}

.intro-overlay.done {
  display: none;
}

.intro-spacer {
  height: 100%; /* fills the overlay */
}

/* Animated title inside the torus hole */
.intro-title {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translate(-50%, 100vh); /* starts below the screen */
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: none; /* controlled by JS */
}

.intro-logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.15));
}

.intro-text-main {
  font-family: var(--font-sans);
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.intro-text-sub {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Scroll hint at the bottom of the first viewport */
.scroll-hint {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.25rem;
}

.chevron {
  font-size: 1.6rem;
  line-height: 0.7;
  opacity: 0;
  animation: chevron-pulse 2s infinite;
}

.chevron.c1 { animation-delay: 0s; }
.chevron.c2 { animation-delay: 0.25s; }
.chevron.c3 { animation-delay: 0.5s; }

@keyframes chevron-pulse {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; transform: translateY(0); }
  80%, 100% { opacity: 0; transform: translateY(6px); }
}

/* Hide page content during intro — also disable pointer events */
body.intro-active header,
body.intro-active section,
body.intro-active footer,
body.intro-active .hiring-bar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body:not(.intro-active) header,
body:not(.intro-active) section,
body:not(.intro-active) footer,
body:not(.intro-active) .hiring-bar {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.6s ease;
}

/* Page content elements overlaying WebGL */
header, section, footer, .hiring-bar {
  position: relative;
  z-index: 10;
  background: transparent !important;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.5rem 4rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .container {
  background: rgba(10, 10, 14, 0.88);
}

/* Header */
header {
  border-bottom: 1px solid var(--card-border);
  padding: 1.8rem 0;
}

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

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
}

.logo-shield-img {
  height: 45px;
  width: auto;
  display: block;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.logo-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: uppercase;
}

.logo-subtitle {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #050505;
  padding: 0.9rem 2.2rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 4px;        /* Sharp Fracture Corners */
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-whatsapp {
  background: #128c7e;
  border-color: #128c7e;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #075e54;
  border-color: #075e54;
  color: #ffffff;
}

/* Sections */
section {
  padding: 10rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-title-wrap {
  margin-bottom: 5rem;
  max-width: 900px;
}

.section-badge {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.section-title-wrap h2 {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  padding: 14rem 0 12rem;
}

.hero-tag {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 2rem;
  display: inline-block;
}

.hero h1 {
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.hero .section-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 720px;
  line-height: 1.6;
}

/* Grid & Cards - Fracture Terminal Style */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 3.5rem 3rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(255, 77, 0, 0.06);
  transform: translateY(-4px);
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  background: rgba(255, 77, 0, 0.02);
  border-color: var(--accent);
}

.price {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}

.price-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Features */
.feature-list {
  list-style: none;
  margin: 2rem 0;
}

.feature-list li {
  margin-bottom: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.feature-list li span.material-symbols-outlined {
  color: var(--accent);
  font-size: 1.5rem;
}

/* Hiring Partners */
.hiring-bar {
  padding: 5rem 0;
  background: var(--section-bar-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.company-logos img {
  filter: none;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.company-logos img:hover {
  opacity: 1;
  transform: scale(1.08);
}

.company-logo-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Force company logos to have a clean white background in dark mode */
[data-theme="dark"] .company-logo-card {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Registration Form */
.registration-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 4.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.form-control {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.6rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 1.05rem;
}

.radio-option input[type="radio"] {
  accent-color: var(--accent);
  width: 1.2rem;
  height: 1.2rem;
}

.faq-item {
  margin-bottom: 2rem;
  border-bottom: none;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
}

.faq-item h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.faq-item p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 7rem 0 5rem;
  background: var(--footer-bg);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Video Reels */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.video-card {
  position: relative;
  aspect-ratio: 9/16;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(255,77,0,0.15);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}

.video-card:hover .video-play-btn {
  background: var(--accent);
}

.video-card:hover .video-play-btn span {
  color: #050505 !important;
}

/* Video Modal Popup */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.is-active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 450px;
  aspect-ratio: 9/16;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 60px rgba(0,0,0,0.85);
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #ffffff;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.video-modal-close:hover {
  background: var(--accent);
}

.video-modal-close:hover span {
  color: #050505 !important;
}

/* Scanline HUD aesthetic layer */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 5;
  opacity: 0.3;
}

/* ============================================
   SCROLL REVEAL STYLES (Smooth entry)
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-2, .form-row {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .grid-2 {
    gap: 2.5rem;
  }
}

@media (max-width: 500px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Terminal cursor blink */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
