/* ═══════════════════════════════════════════
   ARDA ERKAL — THE SEAMLESS VOID ARCHITECTURE
   ═══════════════════════════════════════════ */

:root {
  --void-black: #0a0a0f;
  --void-elevated: #12121a;
  --timelands-emerald: #10b981;
  --timelands-teal: #00f2c3;
  --brand-primary: #04BEF1;
  
  --text-primary: #ffffff;
  --text-secondary: #8a8a9a;
  --text-muted: #55556a;
  
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--void-black);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

::selection {
  background: rgba(0, 242, 195, 0.25);
  color: var(--text-primary);
}

a { cursor: none; }

/* ─── CUSTOM CURSOR ─── */
#custom-cursor {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999; mix-blend-mode: difference;
}
.cursor-dot {
  position: absolute; top: 0; left: 0; width: 8px; height: 8px;
  background: #fff; border-radius: 50%; transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
.cursor-ring {
  position: absolute; top: 0; left: 0; width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
body.cursor-hover .cursor-dot { width: 0px; height: 0px; }
body.cursor-hover .cursor-ring {
  width: 60px; height: 60px; border-color: #fff; background: rgba(255, 255, 255, 0.1);
}

/* ─── PRELOADER ─── */
#preloader {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--void-black); z-index: 9000; display: flex;
  align-items: center; justify-content: center; flex-direction: column;
}
.preloader-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader-logo { font-family: var(--font-heading); font-weight: 900; font-size: 3rem; color: var(--timelands-teal); letter-spacing: -0.05em; }
.preloader-counter { font-family: var(--font-heading); font-weight: 900; font-size: 5rem; line-height: 1; }
.preloader-bar-wrap { width: 200px; height: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; border-radius: 2px; }
.preloader-bar { width: 0%; height: 100%; background: var(--brand-primary); }
.preloader-text { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; }

/* ─── GLOBAL HEADER ─── */
.global-header {
  position: fixed; top: 0; left: 0; width: 100%; padding: 30px 5vw;
  display: flex; justify-content: space-between; align-items: center; z-index: 100; opacity: 0;
}
.header-logo { height: 40px; width: auto; pointer-events: none; }
.header-nav { display: flex; gap: 30px; }
.nav-link {
  color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.2em; font-weight: 600;
}

/* ─── ATMOSPHERE CANVAS ─── */
#atmosphere-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }

/* ─── TYPOGRAPHY ─── */
h1 { font-family: var(--font-heading); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; }
h2 { font-family: var(--font-body); font-weight: 300; line-height: 1.5; color: var(--text-secondary); }
.accent-cyan { color: var(--brand-primary); }
.accent-emerald { color: var(--timelands-emerald); }
.accent-teal { color: var(--timelands-teal); }

/* ─── SCROLL HINT ─── */
.scroll-tracker {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0;
}
.scroll-tracker span { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); }
.scroll-line {
  width: 1px; height: 36px; background: linear-gradient(to bottom, var(--timelands-teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ─── MASTER PINNED CONTAINER ─── */
#manifesto { position: relative; }
#manifesto-scroll-wrapper { width: 100%; min-height: 1000vh; /* Extremely long for seamless flow */ }
#pin-container { width: 100vw; height: 100vh; position: relative; overflow: hidden; z-index: 10; }
.scene {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 8vw; opacity: 0; visibility: hidden; pointer-events: none;
}
/* Active scene gets pointer events */
.scene.active { pointer-events: auto; }

.scene h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: 20px; }
.scene h2 { font-size: clamp(1.1rem, 2.5vw, 2rem); margin-bottom: 16px; max-width: 750px; }

/* ─── NAME REVEAL ─── */
.name-reveal {
  position: absolute;
  left: 0; right: 0; margin-inline: auto;
  top: 75vh;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; /* controlled by GSAP */
}
.name-prefix {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.6); letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 15px; opacity: 0;
}
.name-main {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 8rem); line-height: 1;
  letter-spacing: -0.02em; margin: 0; padding: 0;
  background: linear-gradient(to bottom, #ffffff 0%, #aaaaaa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  opacity: 0; /* Animated by GSAP */
  transform: scale(0.95);
}
.name-main:hover {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}
.name-line {
  width: 0; height: 1px; margin-top: 25px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  box-shadow: none;
}
.name-title {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem); color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.4em; text-transform: uppercase; margin-top: 25px; opacity: 0;
}

/* ─── SCENE 1 & 2 SPECIFICS ─── */
.scene-bg-portrait {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0;
  transform: scale(1.1); pointer-events: none;
}
.founder-video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; 
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.1) brightness(0.6);
}
.portrait-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(10,10,15,0.3) 0%, var(--void-black) 90%),
              linear-gradient(to bottom, var(--void-black) 0%, transparent 20%, var(--void-black) 100%);
}

.network-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70vmin; height: 70vmin; border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.15); z-index: -1;
  box-shadow: inset 0 0 120px rgba(16, 185, 129, 0.04);
}
.network-bg::before {
  content: ''; position: absolute; top: 15%; left: 15%; right: 15%; bottom: 15%;
  border-radius: 50%; border: 1px dashed rgba(4, 190, 241, 0.12);
}

/* ─── SCENE 3: THE DROP ─── */
.s3-t4.massive-text {
  font-size: clamp(3.5rem, 10vw, 8rem); text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-top: 20px; white-space: nowrap; letter-spacing: -0.05em;
}

/* ─── SCENE 4: THE MONOLITH ─── */
.data-monolith {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; width: 100%;
}
.data-value {
  font-family: var(--font-heading); font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900; color: #fff; line-height: 1; margin-bottom: 20px; letter-spacing: -0.04em;
  text-shadow: 0 0 80px rgba(255,255,255,0.1);
}
.counter-decimal { font-size: clamp(3rem, 7vw, 6rem); }
.data-label { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 600; color: var(--timelands-teal); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.data-desc { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary); max-width: 600px; line-height: 1.5; }
.data-conclusion { position: absolute; bottom: 10%; opacity: 0; }

/* ─── SCENE 5: THE TRINITY ─── */
.trinity-title { margin-bottom: 80px; }
.trinity-wrapper {
  position: relative; width: 100%; max-width: 900px; height: 400px;
  display: flex; justify-content: space-between; align-items: center;
}
.trinity-node {
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px); border-radius: 16px; padding: 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 30%; position: relative; z-index: 2; opacity: 0;
}
.trinity-icon { font-size: 2.5rem; margin-bottom: 16px; color: var(--brand-primary); display: flex; align-items: center; justify-content: center; }
.trinity-icon svg { width: 44px; height: 44px; stroke-width: 1.5; filter: drop-shadow(0 0 10px rgba(4, 190, 241, 0.5)); }
.trinity-node h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 8px; color: #fff; }
.trinity-node p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.trinity-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 195, 0.1) 0%, transparent 70%);
  border: 1px dashed rgba(0, 242, 195, 0.3); z-index: 1; opacity: 0;
  animation: spin 20s linear infinite;
}
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* ─── SCENE 6: HORIZONTAL SHOWCASE ─── */
#scene-6 { padding: 0; /* Override padding for full bleed */ align-items: flex-start; justify-content: center;}
.h-track-wrapper {
  display: flex; align-items: center; width: max-content; height: 100vh;
  padding-left: 10vw; /* Start position */
}
.h-intro { width: 40vw; min-width: 400px; position: relative; text-align: left; padding-right: 10vw; }
.massive-bg-text {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  font-family: var(--font-heading); font-weight: 900; font-size: 25vw;
  color: rgba(255, 255, 255, 0.02); z-index: -1; pointer-events: none; line-height: 1;
}
.showcase-title { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 20px; text-align: left; }
.h-intro p { color: var(--text-secondary); font-size: 1.2rem; line-height: 1.6; text-align: left;}

.h-track { display: flex; gap: 40px; }
.h-card {
  width: 400px; height: 500px; background: var(--void-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.h-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 242, 195, 0.05), transparent 70%);
}
.h-card h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 16px; color: #fff; z-index: 2; position: relative;}
.h-card p { color: var(--text-secondary); line-height: 1.6; font-size: 1.1rem; z-index: 2; position: relative;}

/* ─── SCENE 7: CONTACT ─── */
.contact-content { display: flex; flex-direction: column; align-items: center; }
.s5-t1 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 10px; }
.s5-t2 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 50px; }
.s5-cta-wrapper { display: flex; flex-direction: column; align-items: center; gap: 24px; pointer-events: auto; }
.s5-filter { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.s5-cta {
  display: flex; align-items: center; gap: 12px; padding: 20px 48px; background: transparent; color: var(--text-primary);
  text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 100px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.s5-cta svg { width: 20px; height: 20px; flex-shrink: 0; }
.s5-cta:hover {
  background: var(--text-primary); color: var(--void-black);
  border-color: var(--text-primary); box-shadow: 0 0 50px rgba(255, 255, 255, 0.15);
}

.massive-intro {
  position: absolute;
  left: 0; right: 0; margin-inline: auto;
  text-align: center;
  top: 55vh; /* Chest level */
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
  .global-header { padding: 20px 5vw; }
  #custom-cursor { display: none; }
  body { cursor: auto; }
  a { cursor: pointer; }
  
  /* Video Centering for Mobile Portrait */
  .founder-video {
    object-position: 50% 15%; /* Keep face in upper half */
  }
  
  /* Typography Adjustments */
  .scene h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .scene h2 { font-size: clamp(1rem, 5vw, 1.5rem); padding: 0 10px; }
  .name-reveal { top: 85vh; margin-top: 0; }
  .name-main { font-size: clamp(3rem, 15vw, 5rem); }
  
  /* Trinity Layout */
  .trinity-wrapper { flex-direction: column; height: auto; gap: 24px; padding-bottom: 50px; }
  .trinity-node { width: 100%; padding: 24px 20px; }
  .trinity-core { display: none; }
  
  /* Data Monolith Layout */
  .data-value { font-size: clamp(4rem, 20vw, 6rem); }
  .counter-decimal { font-size: clamp(2rem, 10vw, 3rem); }
  .data-desc { font-size: clamp(0.9rem, 4vw, 1rem); padding: 0 20px; }
  
  /* Horizontal Showcase Swipe Adjustments */
  .h-track-wrapper { padding-left: 5vw; }
  .h-intro { width: 85vw; min-width: auto; padding-right: 10vw; }
  .h-intro p { font-size: 1rem; }
  .massive-bg-text { font-size: 35vw; }
  .showcase-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .h-card { width: 80vw; max-width: 320px; height: 420px; padding: 30px; }
  .h-card h3 { font-size: 1.5rem; }
  .h-card p { font-size: 0.95rem; }
  
  /* Contact Scene */
  .s5-t2 { font-size: clamp(2rem, 10vw, 3.5rem); }
  .s5-cta { padding: 16px 32px; font-size: 1rem; }
}
