@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,600;0,700;1,400&family=Titillium+Web:wght@400;600&family=Space+Mono:wght@400;700&display=swap');

/* ── EXACT DITTO PALETTE & FONTS ── */
:root {
  --bg-deep: #000000;
  --bg-panel: #050505;
  --border-dim: rgba(255, 0, 0, 0.15);
  
  --stark-red: #e60000;
  --stark-red-glow: rgba(230, 0, 0, 0.5);
  --stark-cyan: #00e5ff;
  
  --text-white: #ffffff;
  --text-grey: #8a8a8a;
  --text-dim: #444444;

  --font-title: 'Chakra Petch', sans-serif;
  --font-body: 'Titillium Web', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: initial; } /* Managed by Lenis */
body {
  background-color: var(--bg-deep);
  background-image: 
    linear-gradient(rgba(255, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(230, 0, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(230, 0, 0, 0.03) 0%, transparent 40%);
  background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Faint scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.3;
}

::selection { background: var(--stark-red); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TRACKING MARKERS ── */
.tracker-left, .tracker-right {
  position: fixed; top: 0; bottom: 0; width: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 100; pointer-events: none;
}
.tracker-left { left: 0; border-right: 1px solid rgba(255,0,0,0.1); }
.tracker-right { right: 0; border-left: 1px solid rgba(255,0,0,0.1); }

.tracker-lines { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 2rem 0; width: 100%; gap: 1rem;}
.t-line { width: 1px; flex: 1; background: rgba(255,0,0,0.15); }
.t-dots { display: flex; flex-direction: column; gap: 4px; }
.t-dots span { width: 3px; height: 3px; background: var(--stark-red); border-radius: 50%; box-shadow: 0 0 5px var(--stark-red); }

.tracker-nav-dots { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem 0; }
.nav-dot { 
  font-family: var(--font-mono); color: var(--text-dim); font-size: 0.65rem; 
  transform: rotate(-90deg); letter-spacing: 0.2em; transition: var(--transition);
}
.nav-dot.active { color: var(--stark-red); font-weight: bold; text-shadow: 0 0 5px var(--stark-red); }

.r-icons { display: flex; flex-direction: column; gap: 2rem; }
.r-icons svg { width: 12px; height: 12px; opacity: 0.5; }

/* ── HEADER ── */
.main-header {
  position: fixed; top: 0; left: 60px; right: 60px; height: 80px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 3rem; z-index: 90;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 1rem; }
.brand-logo { width: 32px; height: 32px; }
.brand-text h1 { font-family: var(--font-title); font-size: 1.1rem; letter-spacing: 0.15em; color: var(--text-white); }
.brand-text p { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.3em; color: var(--stark-red); margin-top: -2px;}

.main-nav { display: flex; gap: 3.5rem; }
.main-nav a {
  font-family: var(--font-title); font-size: 0.75rem; letter-spacing: 0.15em;
  color: var(--text-grey); transition: var(--transition); text-transform: uppercase;
  position: relative; padding-bottom: 5px;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-white); }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%;
  height: 2px; background: var(--stark-red); box-shadow: 0 0 5px var(--stark-red);
}

.btn-connect {
  font-family: var(--font-mono); font-size: 0.7rem; border: 1px solid var(--text-dim);
  padding: 0.6rem 1.5rem; border-radius: 20px; transition: var(--transition);
  display: flex; align-items: center; gap: 0.5rem; color: var(--text-grey); letter-spacing: 0.1em;
}
.btn-connect:hover { border-color: var(--stark-red); color: var(--text-white); }
.btn-connect .plus { color: var(--stark-red); font-weight: bold;}

/* ── COMMON UTILS ── */
main { margin: 0 60px; position: relative; } 
/* Faint HUD crosses in background */
main::before {
  content: '+ + + + + + + + + + + +';
  position: absolute; top: 10%; right: -20px;
  font-family: var(--font-mono); font-size: 0.5rem; color: rgba(255,0,0,0.2);
  writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 2rem;
  z-index: 0;
}
section { padding: 6rem 4rem; position: relative; z-index: 1;}

.section-sub {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem;
}
.section-num { color: var(--stark-red); font-weight: bold; }
.sub-text { color: var(--text-grey); }

.section-title { font-family: var(--font-title); font-size: 3rem; line-height: 1.1; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 0.05em;}
.highlight { color: var(--stark-red); }

.btn-red-outline {
  display: inline-flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--stark-red); padding: 0.75rem 2rem; border-radius: 25px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em;
  color: var(--text-white); transition: var(--transition);
}
.btn-red-outline:hover { background: rgba(230,0,0,0.1); }
.btn-red-outline .arrow { color: var(--stark-red); background: rgba(255,0,0,0.1); border-radius: 50%; padding: 4px 6px; }

/* ── 01. HERO SECTION ── */
.section-hero { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 2rem; overflow: hidden; height: 100vh;}

.hero-left { z-index: 10; padding-left: 2rem;}
.sys-init { font-family: var(--font-mono); color: var(--stark-red); font-size: 0.7rem; letter-spacing: 0.15em; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem;}
.dot-red { width: 6px; height: 6px; background: var(--stark-red); border-radius: 50%; box-shadow: 0 0 8px var(--stark-red); animation: blink 1s infinite;}
@keyframes blink { 0%, 100% { opacity: 1;} 50% { opacity: 0.2;} }

.hero-title { font-family: var(--font-title); font-size: 3.5rem; line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase;}
.hero-desc { font-family: var(--font-body); font-size: 1rem; color: var(--text-grey); margin-bottom: 2.5rem; line-height: 1.7; max-width: 300px;}
.hero-subtitle { font-family: var(--font-mono); font-size: 0.8rem; color: var(--stark-cyan); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; }

.hero-center { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-reactor-container { 
  position: absolute; width: 1200px; height: 850px; display: flex; align-items: center; justify-content: center; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.15) 0%, transparent 60%);
}
.reactor-img { 
  width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none;}

.hero-right { z-index: 10; display: flex; flex-direction: column; gap: 2rem; align-items: flex-end; padding-right: 2rem;}

.status-panel { border: 1px solid rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 8px; width: 100%; max-width: 280px; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);}
.panel-head { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-grey); letter-spacing: 0.15em; margin-bottom: 1.5rem; }

.progress-list li { margin-bottom: 1.2rem; }
.progress-list li:last-child { margin-bottom: 0; }
.prog-info { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-white); margin-bottom: 0.4rem;}
.prog-bar { width: 100%; height: 2px; background: var(--stark-red); box-shadow: 0 0 10px var(--stark-red), 0 0 20px var(--stark-red); }

.mode-panel { border: 1px solid rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 8px; width: 100%; max-width: 280px; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);}
.mode-inner { display: flex; justify-content: space-between; align-items: center; }
.mode-text h3 { font-family: var(--font-title); font-size: 1.2rem; margin-bottom: 0.25rem; }
.mode-text p { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-grey); line-height: 1.4;}
.mode-reticle { width: 40px; height: 40px; position: relative; border: 1px dashed var(--stark-red); border-radius: 50%; animation: spin 10s linear infinite;}
.reticle-dot-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; background: var(--stark-red); border-radius: 50%; box-shadow: 0 0 8px var(--stark-red); }
@keyframes spin { 100% { transform: rotate(360deg); } }

.scroll-down-indicator {
  position: absolute; bottom: 40px; right: 6rem;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-grey);
  display: flex; align-items: center; gap: 0.5rem; letter-spacing: 0.15em; z-index: 10;
}
.arrow-down { color: var(--stark-red); background: rgba(255,0,0,0.1); border-radius: 50%; padding: 2px 5px;}

/* ── 02. ABOUT SECTION ── */
.section-about { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 2rem; position: relative; padding: 8rem 4rem;}

.about-left { padding-left: 2rem; z-index: 10;}
.about-desc { font-size: 1rem; color: var(--text-grey); margin-bottom: 3rem; line-height: 1.7; max-width: 320px;}

.stats-grid { display: flex; gap: 2rem; margin-bottom: 3rem; }
.stat-item { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-val { font-family: var(--font-title); font-size: 1.8rem; color: var(--stark-red); line-height: 1;}
.stat-item p { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-grey); letter-spacing: 0.1em; line-height: 1.4;}

.about-center { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; z-index: 1;}
.about-reactor-container { position: absolute; width: 700px; height: 700px; display: flex; align-items: center; justify-content: center;}
.reactor-tilted-img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; opacity: 0.8;}

.about-right { display: flex; flex-direction: column; gap: 1.5rem; padding-right: 2rem; z-index: 10;}
.feature-box { display: flex; gap: 1.5rem; align-items: flex-start; }
.feat-icon-box { 
  width: 50px; height: 50px; border: 1px dashed rgba(255,255,255,0.2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(0,0,0,0.5);
}
.feat-text h4 { font-family: var(--font-title); font-size: 0.9rem; margin-bottom: 0.25rem; letter-spacing: 0.05em; color: var(--text-white);}
.feat-text p { font-size: 0.8rem; color: var(--text-grey); line-height: 1.5;}

/* ── 03. PROJECTS SECTION ── */
.section-projects { padding: 8rem 4rem; position: relative; }
.section-projects::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 50%, rgba(230,0,0,0.05) 0%, transparent 50%); z-index: -1;
}
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; padding: 0 2rem;}
.proj-head-left .section-title { margin-bottom: 0; }
.proj-head-right { display: flex; align-items: center; gap: 2rem; margin-bottom: 1rem;}
.slider-controls { display: flex; gap: 1rem; }
.slider-btn { background: none; border: 1px solid rgba(255,255,255,0.2); color: var(--text-white); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-size: 0.8rem;}
.slider-btn:hover { border-color: var(--stark-red); color: var(--stark-red); }

.projects-grid { display: flex; gap: 1.5rem; overflow-x: auto; padding: 0 2rem 2rem 2rem; scrollbar-width: none; }
.projects-grid::-webkit-scrollbar { display: none; }
.project-card { 
  min-width: 320px; flex: 1; border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
  background: rgba(255,255,255,0.01); display: flex; flex-direction: column; transition: var(--transition);
}
.project-card:hover { border-color: rgba(255,0,0,0.3); }
.proj-img-wrap { width: 100%; height: 180px; position: relative; overflow: hidden; border-radius: 12px 12px 0 0;}
.proj-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: var(--transition); }
.project-card:hover .proj-img-wrap img { filter: grayscale(0%); transform: scale(1.05); }
.proj-img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.proj-img-overlay.red-tint { background: rgba(255,0,0,0.2); }

.proj-info { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; position: relative;}
.proj-info h3 { font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.proj-info p { font-size: 0.85rem; color: var(--text-grey); margin-bottom: 1.5rem; }
.tech-tags { display: flex; gap: 0.5rem; flex-wrap: wrap;}
.tech-tags span { font-family: var(--font-mono); font-size: 0.6rem; padding: 0.25rem 0.6rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: var(--text-grey); }
.proj-link { 
  position: absolute; top: 12px; right: 12px; z-index: 2; text-decoration: none;
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
  font-size: 0.9rem; color: var(--text-white); background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  opacity: 0.85;
}
.proj-link:hover { border-color: var(--stark-red); color: var(--stark-red); background: rgba(255,0,0,0.2); opacity: 1; transform: scale(1.08); }

/* ── 04. JOURNEY (TIMELINE) SECTION ── */
.section-journey { padding: 8rem 4rem; position: relative; }
.section-journey::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 250px;
  background: radial-gradient(ellipse at bottom center, rgba(255,0,0,0.3) 0%, transparent 60%); z-index: -1; pointer-events: none;
}
.section-journey::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--stark-red); box-shadow: 0 0 20px var(--stark-red), 0 -10px 40px rgba(255,0,0,0.5); z-index: -1;
}
.journey-header { text-align: left; margin-bottom: 5rem; padding: 0 2rem;}
.journey-desc { font-size: 1rem; color: var(--text-grey); max-width: 400px; line-height: 1.6;}

.timeline-container { position: relative; padding: 2rem; }
.timeline-line { 
  position: absolute; top: 46px; left: 2rem; right: 2rem; height: 2px; 
  background: var(--stark-red); 
  box-shadow: 0 0 15px var(--stark-red), 0 0 30px var(--stark-red);
  z-index: 1; 
}
.timeline-dot {
  position: absolute; width: 12px; height: 12px; background: #fff; border-radius: 50%;
  top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  z-index: 2;
}
.timeline-nodes { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.time-node { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; position: relative; }

.node-icon-wrap {
  width: 50px; height: 50px; border-radius: 50%; background: var(--bg-panel);
  border: 2px solid var(--stark-red); display: flex; align-items: center; justify-content: center;
  color: var(--stark-red); position: relative; 
  box-shadow: 0 0 20px rgba(230,0,0,0.8), inset 0 0 15px rgba(230,0,0,0.5);
}

.node-content h4 { font-family: var(--font-mono); color: var(--stark-red); font-size: 0.75rem; margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.node-content h5 { font-family: var(--font-title); font-size: 1rem; margin-bottom: 0.5rem; letter-spacing: 0.05em; color: var(--text-white);}
.node-content p { font-size: 0.8rem; color: var(--text-grey); max-width: 180px; margin: 0 auto; line-height: 1.5;}

/* ── 05. SKILLS SECTION ── */
.section-skills { display: flex; align-items: center; justify-content: space-between; padding: 8rem 6rem; position: relative;}
.section-skills::before {
  content: ''; position: absolute; bottom: 0; right: 10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%); z-index: -1;
}
.skill-left-box {
  border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
  background: rgba(255,255,255,0.02); padding: 1.5rem 2rem;
  display: inline-block; box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.skill-box-header {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-grey); letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.skills-left { flex: 1; }
.skill-dial { display: flex; align-items: center; gap: 1.5rem; }
.dial-circle { width: 100px; height: 100px; position: relative; }
.dial-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-title); font-size: 1.2rem; font-weight: bold; }
.dial-info h4 { font-family: var(--font-title); letter-spacing: 0.05em; font-size: 1rem; margin-bottom: 0.25rem; }
.dial-info p { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-grey); letter-spacing: 0.1em; }

.skills-right { flex: 1.5; }
.tools-container { 
  display: flex; flex-wrap: wrap; gap: 2.5rem; padding: 2.5rem 3rem; justify-content: center; 
  background: rgba(255,255,255,0.02);
  position: relative;
  /* Massive red aura below */
  box-shadow: 0 50px 100px 20px rgba(230,0,0,0.15), inset 0 0 40px rgba(230,0,0,0.05);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  border-radius: 12px;
}
.tools-container::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(255,255,255,0.05); 
  border-right: 0; border-top: 0; /* Let clip path handle the chamfer edge visually */
  pointer-events: none; z-index: -1;
  background: radial-gradient(circle at bottom, rgba(230,0,0,0.1) 0%, transparent 80%);
}
.tool-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.tool-item svg { transition: var(--transition); }
.tool-item:hover svg { transform: scale(1.1); }
.tool-item span { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-grey); }

/* ── 06. CONTACT SECTION ── */
.section-contact { display: flex; align-items: center; justify-content: space-between; padding: 8rem 6rem; border-top: 1px solid rgba(255,255,255,0.05); position: relative;}
.section-contact::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(230,0,0,0.08) 0%, transparent 60%); z-index: -1; pointer-events: none;
}
.contact-left { max-width: 300px; }
.contact-desc { font-size: 1rem; color: var(--text-grey); margin-top: 1.5rem; line-height: 1.6; }

.contact-center { flex: 1; display: flex; justify-content: center; align-items: center;}
.contact-reactor-container { 
  width: 600px; height: 600px; position: relative; 
  background: radial-gradient(circle, rgba(230, 0, 0, 0.2) 0%, transparent 65%);
}
.reactor-red-img { 
  width: 100%; height: 100%; object-fit: contain; 
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 70%);
  mask-image: radial-gradient(circle, black 40%, transparent 70%);
  filter: drop-shadow(0 0 30px var(--stark-red)) drop-shadow(0 0 60px rgba(230,0,0,0.4));
  animation: float-reactor 6s ease-in-out infinite;
}
@keyframes float-reactor { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.contact-right { max-width: 300px; }
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1.25rem; align-items: center; }
.c-icon { width: 36px; height: 36px; border: 1px solid rgba(255,0,0,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,0,0,0.05); }
.c-info h5 { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-grey); letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.c-info p, .c-info a { font-size: 0.85rem; color: var(--text-white); transition: var(--transition); }
.c-info a:hover { color: var(--stark-red); }

/* ── FOOTER ── */
.main-footer {
  margin: 0 60px; padding: 2rem 4rem; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-grey); letter-spacing: 0.05em;
}
.heart { color: var(--stark-red); }
.foot-right a { transition: var(--transition); display: flex; align-items: center; gap: 0.5rem;}
.foot-right a:hover { color: var(--text-white); }

/* ── GSAP UTILS ── */
.gs-reveal, .gs-reveal-scroll { opacity: 0; visibility: hidden; }

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress { position: fixed; top: 80px; left: 60px; right: 60px; height: 2px; background: transparent; z-index: 89; }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--stark-red); box-shadow: 0 0 10px var(--stark-red); transform-origin: left; }

/* ── MAGNETIC BUTTONS ── */
.btn-primary, .btn-secondary, .btn-connect, .btn-red-outline { will-change: transform; }

/* ── CURSOR GLOW (desktop only) ── */
.cursor-glow { position: fixed; top: 0; left: 0; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(230,0,0,0.06) 0%, transparent 70%); pointer-events: none; z-index: 1; transition: opacity 0.3s; }

/* ── MARQUEE STRIP ── */
.marquee-strip { overflow: hidden; white-space: nowrap; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 1; }
.marquee-inner { display: inline-flex; animation: marquee 22s linear infinite; }
.marquee-inner span { font-family: var(--font-title); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--text-dim); padding: 0 2rem; text-transform: uppercase; }
.marquee-inner span.red { color: var(--stark-red); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── REACTOR PARALLAX LAYERS ── */
.hero-reactor-container, .about-reactor-container, .contact-reactor-container { will-change: transform; }


/* Buttons (formatted) */
.btn-primary, .btn-secondary { padding: 0.8rem 1.8rem; border-radius: 30px; display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; position: relative; overflow: hidden; }
.btn-primary { background: transparent; border: 1px solid var(--stark-red); color: var(--text-white); box-shadow: 0 0 15px rgba(255,0,0,0.2), inset 0 0 10px rgba(255,0,0,0.1); }
.btn-primary:hover { background: rgba(230,0,0,0.1); box-shadow: 0 0 25px rgba(230,0,0,0.4), inset 0 0 15px rgba(230,0,0,0.2); }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-grey); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: var(--text-white); }
.hero-cta { display: flex; gap: 1.5rem; margin-top: 1rem; }


/* Old minified mobile responsiveness block removed to prevent conflicts */



/* Hero title word chunks for stagger animation */
.hero-title .word { display: inline-block; }

/* Button ripple */
.btn-primary, .btn-red-outline, .slider-btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.25); transform: scale(0); animation: ripple-anim 0.6s ease-out; pointer-events: none; }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* Project card hover lift */
.project-card { transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(255,0,0,0.12); }

/* Prevent fixed off-screen panels (mobile nav, cursor glow) from widening the page */
html, body { overflow-x: clip; }

/* ══════════════════════════════════════════════
   ██ RESPONSIVE LAYER (NEW) — TABLET & MOBILE ██
   ══════════════════════════════════════════════ */

/* ── HAMBURGER MENU BUTTON ── */
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,0,0,0.3);
  border-radius: 8px; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  cursor: pointer; position: relative; z-index: 101; flex-shrink: 0;
}
.hamburger { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 12px; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text-white); border-radius: 2px; transition: var(--transition); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.menu-toggle.active .hamburger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
.menu-toggle.active { border-color: var(--stark-red); }

/* ── MOBILE NAV PANEL (slide-in HUD) ── */
.mobile-nav {
  position: fixed; top: 0; right: 0; width: min(320px, 85vw); height: 100vh; height: 100dvh;
  background: rgba(5,5,5,0.97); backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255,0,0,0.2); z-index: 99;
  display: flex; flex-direction: column; padding: 7rem 2.5rem 2rem;
  transform: translateX(105%); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  font-family: var(--font-title); font-size: 1.3rem; letter-spacing: 0.15em;
  color: var(--text-grey); text-transform: uppercase; padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--text-white); }
.mobile-nav a.active { color: var(--stark-red); text-shadow: 0 0 8px rgba(255,0,0,0.5); }
.mobile-nav a.active::after { content: '◄'; font-size: 0.8rem; }
.mobile-nav .nav-socials { margin-top: auto; display: flex; gap: 1rem; padding-top: 2rem; }
.mobile-nav .nav-socials a { border: none; font-size: 0.75rem; font-family: var(--font-mono); padding: 0.6rem 1rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 98;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ── HAMBURGER CONNECT BUTTON (desktop keeps original) ── */
.btn-connect-mobile { display: none; }

/* ── TABLET (max-width: 1024px) ── */
@media (max-width: 1024px) {
  .tracker-left, .tracker-right { width: 40px; }
  main { margin: 0 40px; }
  .main-header { left: 40px; right: 40px; padding: 0 1.5rem; }
  .scroll-progress { left: 40px; right: 40px; }
  .main-nav { gap: 1.5rem; }
  .main-nav a { font-size: 0.65rem; letter-spacing: 0.08em; }
  .hero-reactor-container { width: 900px; height: 700px; }
  .section-skills { padding: 6rem 3rem; }
}

/* ── MOBILE (max-width: 768px) ── */
@media (max-width: 768px) {
  /* General */
  main { margin: 0; }
  section { padding: 4rem 1.25rem; }
  .main-header { left: 0; right: 0; padding: 0 1rem; height: 64px; }
  .scroll-progress { top: 64px; left: 0; right: 0; }
  .section-title { font-size: 2rem; }

  /* Hide desktop trackers & nav */
  .tracker-left, .tracker-right { display: none; }
  .main-nav { display: none; }
  .btn-connect { display: none; }
  .menu-toggle { display: block; }

  /* Footer */
  .main-footer { margin: 0; padding: 1.5rem 1.25rem; flex-direction: column; gap: 0.75rem; text-align: center; }

  /* Scroll down indicator */
  .scroll-down-indicator { right: 1.25rem; bottom: 24px; }

  /* Hero */
  .section-hero { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100dvh; padding-top: 6rem; text-align: center; justify-content: flex-start; }
  .hero-left { padding-left: 0; order: 1; }
  .hero-title { font-size: 2.4rem; }
  .hero-desc { max-width: 100%; margin-bottom: 2rem; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-center { order: 0; width: 100%; margin-bottom: 1.5rem; }
  .hero-reactor-container { position: relative; width: 100%; height: 55vw; max-height: 360px; min-height: 240px; }
  .hero-right { order: 2; align-items: center; padding-right: 0; }
  .status-panel, .mode-panel { max-width: 100%; }

  /* About */
  .section-about { display: flex; flex-direction: column; padding: 4rem 1.25rem; }
  .about-left { padding-left: 0; text-align: center; order: 1; }
  .about-desc { max-width: 100%; margin-bottom: 2rem; }
  .stats-grid { justify-content: center; margin-bottom: 2rem; }
  .about-center { order: 0; height: 45vw; max-height: 320px; width: 100%; margin-bottom: 2rem; }
  .about-reactor-container { position: relative; width: 100%; height: 100%; }
  .about-right { order: 2; padding-right: 0; }

  /* Projects */
  .section-projects { padding: 4rem 0 4rem; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 0 1.25rem; }
  .projects-grid { padding: 0 1.25rem 2rem; }
  .project-card { min-width: 280px; flex: 0 0 85vw; }

  /* Journey timeline → vertical */
  .section-journey { padding: 4rem 1.25rem; }
  .journey-desc { max-width: 100%; }
  .timeline-container { padding: 1rem 0 1rem 1.25rem; }
  .timeline-line { top: 0; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; transform: none; box-shadow: none; }
  .timeline-dot { left: 9px; top: 0; transform: translate(-50%, 0); }
  .timeline-dot:nth-child(1) { top: 8px; }
  .timeline-dot:nth-child(2) { top: 25%; }
  .timeline-dot:nth-child(3) { top: 50%; }
  .timeline-nodes { flex-direction: column; gap: 2.5rem; align-items: flex-start; }
  .time-node { align-items: flex-start; flex-direction: row; gap: 1.25rem; text-align: left; }
  .node-icon-wrap { flex-shrink: 0; margin-top: 4px; }
  .node-content p { max-width: 100%; margin: 0; }

  /* Skills */
  .section-skills { flex-direction: column; padding: 4rem 1.25rem; align-items: stretch; }
  .skills-left { margin-bottom: 2.5rem; }
  .skill-left-box { display: block; }
  .skill-dial { flex-direction: row; justify-content: flex-start; text-align: left; }
  .tools-container { padding: 1.5rem 1rem; gap: 1.5rem; }

  /* Contact */
  .section-contact { flex-direction: column; padding: 4rem 1.25rem; text-align: center; }
  .contact-left { max-width: 100%; margin-bottom: 0.5rem; }
  .contact-desc { margin-top: 1rem; }
  .contact-center { order: -1; width: 100%; margin-bottom: 2.5rem; }
  .contact-reactor-container { width: 70vw; height: 70vw; max-width: 300px; max-height: 300px; }
  .contact-right { max-width: 100%; }
  .contact-list { gap: 1.25rem; }
  .contact-item { justify-content: center; }

  /* Marquee */
  .marquee-inner span { font-size: 0.65rem; letter-spacing: 0.2em; padding: 0 1.25rem; }
}

/* ── SMALL PHONES (max-width: 420px) ── */
@media (max-width: 420px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .main-footer { font-size: 0.55rem; }
  .project-card { min-width: 260px; flex-basis: 90vw; }
  .stat-item { padding: 0 0.5rem; }
  .stat-val { font-size: 1.5rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cursor-glow { display: none; }
  html { scroll-behavior: auto; }
}

/* Touch devices: no cursor glow */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none; }
}
