/* ===================================================
   SABBIR HOSEN JOY PORTFOLIO — style.css
   =================================================== */

:root {
  --primary: #cf8462;
  --primary-dark: #b56a49;
  --primary-light: #e39c7b;
  --primary-glow: rgba(207, 132, 98, 0.15);
  --primary-glow-strong: rgba(207, 132, 98, 0.35);

  --accent: #cf8462;
  --second: #b8acae;
  --second-light: #ffffff;
  --third: #cf8462;
  --fourth: #cf8462;

  --bg: #090707; /* Deep cinematic charcoal/near-black */
  --bg-card: #140f10; 

  --bg-glass: rgba(20, 15, 16, 0.6);
  --bg-glass-hover: rgba(30, 22, 24, 0.85);
  --border-glass: rgba(207, 132, 98, 0.12);
  --border-glass-hover: rgba(207, 132, 98, 0.5);

  --text: #ffffff;
  --text-muted: #aca3a5;
  --text-dim: #7a6e71;
  --white: #ffffff;

  --nav-h: 80px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Base Link Styles */
a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-circle {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loaderSpin 0.8s linear infinite;
}
@keyframes loaderSpin {
  100% { transform: rotate(360deg); }
}

/* Canvas Cinematic Background */
#cinematicBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

/* Section Rhythms (Dark -> Lighter -> Dark) */
.section-lighter {
  background: linear-gradient(180deg, rgba(207, 132, 98, 0.01) 0%, rgba(30, 22, 24, 0.6) 50%, rgba(207, 132, 98, 0.01) 100%);
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(9, 7, 7, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
  position: relative;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--primary);
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

.mt-50 {
  margin-top: 50px;
}

/* Premium Glass Card */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

/* Sweep gradient on hover for interactive elements */
.interactive-hover::before, .interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  z-index: 1;
  pointer-events: none;
}

.interactive-hover:hover::before, .interactive-card:hover::before {
  left: 150%;
}

.interactive-hover:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow), 0 0 25px var(--primary-glow);
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-label {
  display: none;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 56px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 999;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(9, 7, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-glass);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: .95rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link.active {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 80%;
}

.btn-resume-nav {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--border-glass-hover);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-resume-nav:hover {
  background: var(--primary);
  color: var(--bg-card);
  box-shadow: 0 0 15px var(--primary-glow-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1000;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: transform var(--transition), opacity var(--transition);
}

/* ===================================================
   HERO REDESIGN
   =================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  background: transparent;
}

.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden; z-index: 0; pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15; 
  animation: ambientDrift 25s infinite alternate ease-in-out;
}

.bg-shape-1 {
  width: 700px; height: 700px;
  background: var(--primary);
  top: -15%; right: -10%;
}

.bg-shape-2 {
  width: 500px; height: 500px;
  background: var(--primary-dark);
  bottom: -10%; left: -10%;
  animation-delay: -12s;
}

@keyframes ambientDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 60px) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-glow);
  border: 1px solid var(--border-glass-hover);
  color: var(--primary-light);
  font-size: .8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary);
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.accent-name {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow-strong);
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mono-text {
  font-family: monospace;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 400;
}

/* Buttons */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.main-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-hero {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--primary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: 1;
}

.btn-hero:hover::before { left: 150%; }
.btn-hero i { position: relative; z-index: 2; }

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow-strong);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--primary);
  border-color: var(--border-glass-hover);
}
.btn-secondary:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: inset 0 0 10px var(--primary-glow), 0 8px 25px rgba(0,0,0,0.3);
}

.btn-resume {
  background: transparent;
  color: var(--white);
  border-color: var(--primary-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-resume:hover {
  background: var(--primary-glow-strong);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Social Icons */
.hero-socials { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--primary-glow-strong);
}

/* Enhanced Portrait Lighting */
.hero-right {
  display: flex; justify-content: flex-end; position: relative;
}
.portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex; justify-content: center;
  animation: floatPortrait 6s infinite ease-in-out;
}
.portrait-glow {
  position: absolute;
  top: 30%;
  left: 50%; 
  transform: translate(-50%, -50%);
  width: 130%; height: 130%;
  z-index: 0;
  pointer-events: none;
}
.glow-layer {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.layer-1 {
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(227, 156, 123, 0.45) 0%, transparent 60%);
  filter: blur(35px);
  animation: pulseGlow 4s infinite alternate ease-in-out;
}
.layer-2 {
  width: 65%; height: 65%;
  background: radial-gradient(circle, rgba(207, 132, 98, 0.6) 0%, transparent 70%);
  filter: blur(20px);
  animation: pulseGlow 3s infinite alternate-reverse ease-in-out;
}
.layer-3 {
  width: 95%; height: 95%;
  background: radial-gradient(circle, rgba(181, 106, 73, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  animation: ambientDrift 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.profile-photo {
  width: 100%; height: auto;
  position: relative; z-index: 1;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  transition: transform var(--transition), filter var(--transition);
}

@keyframes floatPortrait {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Staged Entrance Animations */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUpAnim 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 150ms; }
.delay-2 { animation-delay: 300ms; }
.delay-3 { animation-delay: 450ms; }
.delay-4 { animation-delay: 600ms; }
.delay-5 { animation-delay: 750ms; }
.delay-6 { animation-delay: 900ms; }
.delay-7 { animation-delay: 1050ms; }
@keyframes fadeUpAnim {
  to { opacity: 1; transform: translateY(0); }
}

/* ABOUT SECTION */
.technical-about {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.about-container {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
}

.about-left { display: flex; gap: 32px; position: sticky; top: 120px; }
.vertical-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: monospace; color: var(--primary);
  font-size: 0.85rem; letter-spacing: 6px; text-transform: uppercase;
  opacity: 0.9; border-right: 1px solid var(--border-glass); padding-right: 20px;
}
.about-intro { flex: 1; }
.about-intro .headline {
  font-family: var(--font-heading); font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15; color: var(--white); margin-bottom: 32px; font-weight: 700;
}
.justified-text { text-align: justify; }
.about-intro .intro-desc {
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px;
}

.philosophy-quote {
  margin-top: 40px; border-left: 2px solid var(--primary); padding: 24px;
  background: linear-gradient(90deg, var(--primary-glow) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-top: 1px solid var(--border-glass); border-right: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass);
}
.philosophy-quote i { color: var(--primary); font-size: 1.4rem; margin-bottom: 16px; display: block; }
.philosophy-quote p { color: var(--white); font-size: 1.1rem; font-style: italic; font-weight: 500; line-height: 1.6; }

.about-right { display: flex; flex-direction: column; margin-top: 80px; margin-left: 40px; }
.system-profile { padding: 0; }
.profile-header {
  background: rgba(0,0,0,0.4); border-bottom: 1px solid var(--border-glass);
  padding: 14px 24px; font-family: monospace; color: var(--text-dim);
  font-size: 0.85rem; display: flex; align-items: center; gap: 12px;
}
.profile-grid { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.profile-item {
  display: grid; grid-template-columns: 120px 1fr; align-items: start; gap: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08); padding-bottom: 20px;
}
.profile-item:last-child { border-bottom: none; padding-bottom: 0; }
.p-label { font-family: monospace; color: var(--primary); font-size: 0.85rem; letter-spacing: 1px; }
.p-value { color: var(--white); font-size: 0.95rem; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-glass);
  padding: 6px 12px; border-radius: 4px; font-size: 0.8rem; color: var(--text-muted);
}
.tech-list { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; font-family: monospace; }

.modern-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.modern-stat-card {
  padding: 36px 20px; text-align: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.modern-stat-card .stat-icon { color: var(--primary); font-size: 1.8rem; margin-bottom: 16px; transition: transform var(--transition); }
.modern-stat-card:hover .stat-icon { transform: scale(1.15) translateY(-2px); }
.modern-stat-card h3 {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px; line-height: 1;
}
.modern-stat-card p { color: var(--text-muted); font-size: 0.9rem; font-weight: 400; }
.highlight-stat { border-color: var(--border-glass-hover); }

/* INTRO VIDEO */
.video-container {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; padding: 0;
}
.video-container iframe { width: 100%; height: 100%; border: none; display: block; }

/* SKILLS - Technical Arsenal (compact) */
.skills-section { padding: 64px 0; }
.skills-section .section-subtitle { margin-bottom: 32px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.premium-skill-card { 
  padding: 20px; 
  z-index: 2; 
  position: relative;
}
.premium-skill-card::after {
  content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
  transition: width 0.6s ease;
}
.premium-skill-card:hover::after { width: 100%; }

.skill-cat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.skill-cat-icon {
  width: 38px; height: 38px; background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-glass); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: .95rem; flex-shrink: 0;
  transition: transform 0.5s ease;
}
.skill-category:hover .skill-cat-icon { 
  transform: scale(1.1) rotate(-5deg); 
  box-shadow: 0 0 15px var(--primary-glow); 
  border-color: var(--primary); 
}
.skill-cat-header h3 { 
  font-family: var(--font-heading); 
  font-size: 1rem; 
  font-weight: 500; 
  color: var(--white); 
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: .78rem; font-weight: 400; padding: 5px 12px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-glass); color: var(--text-muted);
  background: rgba(0,0,0,0.2); transition: all var(--transition);
}
.pill:hover {
  border-color: var(--primary); color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--primary-glow);
  background: var(--bg-glass-hover);
}
.pill i { color: var(--primary); }
@media(max-width:960px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }

/* PROJECTS */
.project-card-wrap, .early-projects-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px; 
  max-width: 1132px; 
  margin: 0 auto; 
}

.early-projects-grid { margin-top: 28px; }

.project-card { 
  padding: 40px; 
  z-index: 2; 
  transform-style: preserve-3d; 
  perspective: 1000px; 
  border: 1px solid rgba(207, 132, 98, 0.2);
  display: flex;
  flex-direction: column;
}

/* Make inner content flex to match heights */
.project-card .project-desc {
  flex-grow: 1;
}

.project-card .project-links {
  margin-top: auto;
}

.tilt-card { transition: transform 0.1s ease, box-shadow 0.1s ease; } 
.interactive-card:hover { border-color: var(--primary); box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 20px var(--primary-glow); z-index: 10; }

.project-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; transform: translateZ(30px); }
.project-icon {
  width: 56px; height: 56px; background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-glass); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.5rem; flex-shrink: 0;
}
.interactive-card:hover .project-icon { background: var(--primary-glow); border-color: var(--primary); color: var(--white); }
.project-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.project-subtitle { color: var(--primary-light); font-size: .9rem; }
.project-desc { color: var(--text-muted); font-size: .95rem; line-height: 1.8; margin-bottom: 24px; transform: translateZ(20px); }
.project-features, .tech-stack { margin-bottom: 24px; transform: translateZ(20px); }
.project-features h4, .tech-stack h4 {
  font-family: var(--font-heading); font-size: .85rem; font-weight: 500; color: var(--white);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.project-features h4 i, .tech-stack h4 i { color: var(--primary); }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.features-list li { font-size: .9rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.features-list li i { color: var(--primary); font-size: .75rem; flex-shrink: 0; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-pill {
  font-size: .8rem; font-weight: 400; padding: 6px 14px; border-radius: 20px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass); color: var(--text-muted);
  transition: all var(--transition);
}
.tilt-card:hover .tech-pill:hover {
  border-color: var(--primary); color: var(--white); background: var(--primary-glow);
}
.project-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; transform: translateZ(30px); }
.btn-project {
  font-size: .9rem; font-weight: 500; padding: 12px 24px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--primary); color: var(--primary);
  transition: all var(--transition);
}
.btn-project:hover { background: var(--primary); color: var(--bg-card); box-shadow: 0 4px 15px var(--primary-glow-strong); }
/* ACHIEVEMENTS (Redesigned with Animations) */

.award-showcase-wrapper {
  margin-bottom: 60px;
}
.award-showcase {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 24px;
}
.showcase-main {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
}
.showcase-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.showcase-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.showcase-thumbnails::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.thumb-btn {
  flex: 0 0 120px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.5;
  background: #000;
  transition: all var(--transition);
}
.thumb-btn.active, .thumb-btn:hover {
  opacity: 1;
  border-color: var(--primary);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievements-grid-compact { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
  gap: 20px; 
}
.award-card { 
  padding: 24px; 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
  text-align: left;
  gap: 12px;
}
.award-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.achiev-icon { 
  color: var(--primary); 
  font-size: 1.4rem; 
  flex-shrink: 0; 
  width: 44px; 
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease; 
}
.award-title-wrap {
  display: flex;
  flex-direction: column;
}
.award-card h4 { 
  font-family: var(--font-heading); 
  font-size: 1.05rem; 
  font-weight: 500; 
  color: var(--white); 
  margin-bottom: 2px; 
  line-height: 1.3; 
}
.award-event { 
  font-size: .8rem; 
  color: var(--primary-light); 
  font-weight: 400;
}
.award-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  border-top: 1px dashed rgba(255,255,255,0.06);
  padding-top: 12px;
  width: 100%;
}
.award-card:hover .achiev-icon { 
  transform: scale(1.1) rotate(5deg); 
  box-shadow: 0 0 15px var(--primary-glow);
  border-color: var(--primary);
  color: var(--white);
  background: var(--primary-glow);
}
.featured-award {
  border: 1px solid var(--primary);
  box-shadow: 0 8px 32px var(--primary-glow);
  position: relative;
  overflow: hidden;
}
.featured-award::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--primary-glow-strong), transparent 60%);
  pointer-events: none;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: var(--bg-card);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* EXPERIENCE */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border-glass));
  transform-origin: top; transform: scaleY(0); transition: transform 1s ease-out;
}
.experience-section.visible .timeline::before { transform: scaleY(1); }

.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -37px; top: 28px; width: 12px; height: 12px;
  background: var(--primary); border-radius: 50%; border: 3px solid var(--bg-card);
  box-shadow: 0 0 15px var(--primary-glow-strong);
  opacity: 0; transform: scale(0); transition: all 0.5s ease-out;
}
.timeline-item.visible .timeline-dot { opacity: 1; transform: scale(1); animation: dotPulse 2s infinite ease-in-out alternate; }
@keyframes dotPulse { 0% { box-shadow: 0 0 5px var(--primary); } 100% { box-shadow: 0 0 15px var(--primary-light); } }

.timeline-content { padding: 32px; }
.exp-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.exp-icon {
  width: 48px; height: 48px; background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-glass); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.2rem; flex-shrink: 0;
}
.timeline-content:hover .exp-icon { background: var(--primary-glow); border-color: var(--primary); color: var(--white); }
.exp-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.exp-company { font-size: .85rem; color: var(--primary-light); font-weight: 400; margin-bottom: 6px; }
.exp-type {
  font-size: .75rem; font-weight: 400; padding: 4px 12px; border-radius: 20px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass); color: var(--text-muted);
}
.exp-desc { font-size: .95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.resp-list h4 { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 12px; }
.resp-list ul { display: flex; flex-direction: column; gap: 8px; }
.resp-list li { font-size: .9rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 10px; }
.resp-list li i { color: var(--primary); font-size: .8rem; margin-top: 5px; }

/* CP */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cp-card { padding: 32px; display: flex; align-items: center; gap: 20px; cursor: pointer; transform-style: preserve-3d; perspective: 1000px; }
.cp-card:hover { border-color: var(--border-glass-hover); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--primary-glow); }
.cp-logo { flex-shrink: 0; transform: translateZ(20px); }
.cp-info { flex: 1; transform: translateZ(20px); }
.cp-info h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.cp-handle { color: var(--primary); font-size: .9rem; font-weight: 400; font-family: monospace; margin-bottom: 4px; }
.cp-desc { font-size: .85rem; color: var(--text-muted); }
.cp-link-icon { color: var(--text-dim); font-size: 1rem; transition: color var(--transition); transform: translateZ(20px); }
.cp-card:hover .cp-link-icon { color: var(--primary); transform: translateZ(20px) scale(1.1); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.contact-card { padding: 24px; display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 50px; height: 50px; background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm); border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.3rem; flex-shrink: 0; transition: all var(--transition);
}
.contact-card:hover .contact-icon {
  background: var(--primary); color: var(--bg-card); border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow-strong); transform: scale(1.05);
}
.contact-info { flex: 1; }
.contact-info h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 500; color: var(--white); margin-bottom: 3px; }
.contact-info p { font-size: .85rem; color: var(--text-muted); }
.contact-arrow { color: var(--text-dim); transition: all var(--transition); }
.contact-card:hover .contact-arrow { color: var(--primary); transform: translateX(5px); }

/* FOOTER */
.footer {
  background: var(--bg); border-top: 1px solid var(--border-glass); padding: 50px 0; text-align: center;
  position: relative; z-index: 2;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; letter-spacing: 1px; }
.footer-tagline { font-size: .9rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-quote { font-size: .85rem; color: var(--text-dim); font-style: italic; margin-bottom: 24px; }
.footer-socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.footer-socials a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.2rem; transition: all var(--transition);
}
.footer-socials a:hover { color: var(--bg-card); background: var(--primary); border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 5px 15px var(--primary-glow-strong); }
.footer-copy { font-size: .8rem; color: var(--text-dim); }

/* ANIMATIONS (Scroll Reveal) */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

.stagger-child { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stagger-child.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media(max-width:960px) {
  .project-card-wrap, .early-projects-grid { grid-template-columns: 1fr; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-right { justify-content: center; order: -1; margin-bottom: 20px; }
  .portrait-wrapper { max-width: 320px; }
  .hero-cta { align-items: center; }
  .main-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-subtitle { justify-content: center; }
  .hero-description { margin: 0 auto 32px auto; }
  
  .about-container { grid-template-columns: 1fr; gap: 20px; }
  .about-left { position: relative; top: 0; flex-direction: column; gap: 20px; }
  .vertical-label { writing-mode: horizontal-tb; transform: none; border-right: none; border-bottom: 1px solid var(--border-glass); padding-right: 0; padding-bottom: 12px; width: 100%; letter-spacing: 4px; }
  .about-right { margin-top: 20px; margin-left: 0; }
  .modern-stats-grid { grid-template-columns: repeat(2, 1fr); }
  
  .achievements-grid-compact, .features-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width:768px) {
  section { padding: 70px 0; }
  
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; width: 100%;
    background: var(--bg-card); flex-direction: column; align-items: center;
    padding: 24px 0; border-bottom: 1px solid var(--border-glass);
    transform: translateY(-150%); opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 99;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  
  .tilt-card { transform: none !important; transition: none; } /* Disable heavy 3D tilt on mobile */
  
  .bg-shape-1 { width: 400px; height: 400px; }
  .bg-shape-2 { width: 300px; height: 300px; }
}

@media(max-width: 500px) {
  .profile-item { grid-template-columns: 1fr; gap: 8px; }
  .modern-stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .reveal-on-scroll, .stagger-child { opacity: 1; transform: none; }
}

/* ===================================================
   PROJECTS EXPANSION (featured / university / early / journey)
   Reuses existing tokens, cards, pills and buttons.
   =================================================== */
.reveal-item { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-item.visible { opacity: 1; transform: translateY(0); }
.anchor { scroll-margin-top: calc(var(--nav-h) + 20px); }
button.btn-project { font-family: var(--font-body); cursor: pointer; }
.btn-project:disabled { opacity: .45; cursor: not-allowed; border-style: dashed; }
.btn-project:disabled:hover { background: rgba(0,0,0,0.3); color: var(--primary); box-shadow: none; }

/* Journey strip */
.journey-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1132px; margin: 0 auto 64px; counter-reset: none; }
.journey-track li { position: relative; padding-top: 18px; border-top: 2px solid var(--border-glass); }
.journey-track li::before { content: ''; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary-glow-strong); }
.journey-track a, .journey-track li > div { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-glass); border: 1px solid var(--border-glass); transition: all var(--transition); }
.journey-track a:hover { border-color: var(--primary); background: var(--bg-glass-hover); transform: translateY(-3px); }
.j-num { font-family: monospace; font-size: .75rem; color: var(--primary); letter-spacing: 2px; }
.journey-track strong { font-weight: 500; font-size: .95rem; color: var(--white); }
.journey-track small { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.journey-track .j-now div { border-color: var(--border-glass-hover); background: linear-gradient(135deg, var(--primary-glow), transparent); }

/* Tier headings */
.tier-heading { max-width: 1132px; margin: 0 auto 28px; padding-left: 16px; border-left: 2px solid var(--primary); }
.tier-heading h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500; color: var(--white); line-height: 1.3; }
.tier-heading p { font-size: .9rem; color: var(--text-muted); }
.feature-wrap + .tier-heading, .project-card-wrap + .tier-heading { margin-top: 72px; }
.project-card-wrap { margin-bottom: 0; }

/* Featured cards (larger than university cards) */
.feature-wrap { display: grid; gap: 36px; max-width: 1132px; margin: 0 auto; }
.feature-card { padding: 40px; border: 1px solid rgba(207, 132, 98, 0.3); }
.feature-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; margin-bottom: 32px; }
.feature-intro .project-header { transform: none; }
.feature-summary { color: var(--text-muted); font-size: .98rem; line-height: 1.8; margin-bottom: 20px; }
.feature-card .project-features { margin-bottom: 28px; transform: none; }
.award-badges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.award-badge { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: .85rem; font-weight: 500; color: var(--white); padding: 8px 16px; border-radius: 99px; background: var(--primary-glow); border: 1px solid var(--border-glass-hover); }
.award-badge i { color: var(--primary-light); }
.award-badge.alt { background: rgba(0,0,0,0.3); border-color: var(--border-glass); color: var(--text-muted); }
.proto-note { font-size: .82rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; display: flex; gap: 10px; }
.proto-note i { color: var(--primary); margin-top: 4px; }
.feature-card .project-links { transform: none; margin-top: 0; }

/* Media slots */
.media-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: rgba(0,0,0,0.35); border: 1px dashed var(--border-glass-hover); display: flex; align-items: center; justify-content: center; }
.media-stage.has-media { border-style: solid; cursor: pointer; }
.media-stage img { width: 100%; height: 100%; object-fit: cover; }
.media-ph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-dim); font-size: .85rem; text-align: center; padding: 16px; }
.media-ph i { font-size: 1.8rem; color: var(--primary); opacity: .7; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--primary); background: rgba(9,7,7,0.75); color: var(--primary); font-size: 1.3rem; cursor: pointer; box-shadow: 0 0 25px var(--primary-glow-strong); }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.gallery-strip[hidden] { display: none; }
.tile-ph, .gallery-strip button { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: rgba(0,0,0,0.3); border: 1px dashed var(--border-glass); padding: 0; overflow: hidden; }
.gallery-strip button { border-style: solid; cursor: pointer; transition: border-color var(--transition); }
.gallery-strip button:hover { border-color: var(--primary); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }

/* Zone ladder */
.zone-ladder { display: grid; gap: 8px; }
.zone-ladder li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); border-left: 3px solid var(--primary); background: rgba(207, 132, 98, calc(var(--z) * 0.035)); font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.zone-ladder strong { color: var(--white); font-weight: 500; margin-right: 6px; }
.z-dist { font-family: monospace; color: var(--primary-light); font-size: .95rem; }

/* Water tank comparison + flow */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.compare-item { padding: 20px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass); }
.compare-item.is-mine { border-color: var(--border-glass-hover); background: linear-gradient(135deg, var(--primary-glow), rgba(0,0,0,0.3)); }
.compare-item h5, .more-grid h5 { font-family: var(--font-heading); font-size: .95rem; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.compare-item p, .more-grid p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.flow-steps li { counter-increment: step; position: relative; padding: 14px 14px 14px 44px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass); font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.flow-steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; font-family: monospace; color: var(--primary); font-size: 1rem; }
.flow-steps b { color: var(--white); font-weight: 500; }

/* Expandable details */
.project-more { border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 24px; animation: moreFade 0.5s ease; }
.project-more[hidden] { display: none; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@keyframes moreFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Early timeline (reuses Experience timeline look) */
.early-timeline { max-width: 900px; margin: 0 auto; }
.projects-section.visible .early-timeline::before { transform: scaleY(1); }
.early-card { padding: 24px 28px; }
.early-card .exp-header { margin-bottom: 12px; align-items: center; }
.early-card .exp-icon { width: 40px; height: 40px; font-size: 1rem; }
.early-card .exp-title { font-size: 1rem; }
.early-card .exp-desc { font-size: .9rem; margin-bottom: 14px; }
.early-card .tech-pills { margin-bottom: 4px; }

/* Media modal */
.media-modal { position: fixed; inset: 0; z-index: 10001; background: rgba(9,7,7,0.92); display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.media-modal[hidden] { display: none; }
.mm-body { max-width: 1000px; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mm-body img { max-height: 72vh; width: auto; border-radius: var(--radius-sm); }
.mm-body video, .mm-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); background: #000; }
.mm-cap { color: var(--text-muted); font-size: .9rem; text-align: center; }
.mm-close, .mm-nav { position: absolute; background: var(--bg-glass); border: 1px solid var(--border-glass-hover); color: var(--primary); border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mm-close { top: 12px; right: 12px; }
.mm-prev { left: 12px; } .mm-next { right: 12px; }
.mm-nav[hidden] { display: none; }

@media(max-width:960px) {
  .journey-track { grid-template-columns: repeat(2, 1fr); }
  .feature-top { grid-template-columns: 1fr; gap: 24px; }
  .compare-grid, .more-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  .feature-card { padding: 24px; }
  .zone-ladder li { grid-template-columns: 1fr; gap: 4px; }
  .reveal-item.tilt-card { transform: none; }
}
@media(max-width:560px) {
  .journey-track, .flow-steps { grid-template-columns: 1fr; }
  .early-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .reveal-item { opacity: 1; transform: none; } }

.journey-track, .zone-ladder, .flow-steps { list-style: none; }

/* ===================================================
   DOCUMENTARIES SECTION (3 videos + full-width CTA banner)
   =================================================== */
.documentaries-section { 
  border-top: 1px solid var(--border-glass); 
}

.documentary-grid { 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; 
  max-width: none;   /* use the full container width: no empty side space */
  margin: 0 auto;
}

.documentary-grid .project-card {
  width: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.documentary-grid .project-desc {
  flex-grow: 1; 
}

/* CTA becomes a full-width banner under the videos */
.documentary-grid .youtube-cta-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "icon title btn" "icon desc btn";
  column-gap: 28px;
  row-gap: 4px;
  align-items: center;
  text-align: left;
  padding: 28px 36px !important;
}
.youtube-cta-icon { grid-area: icon; font-size: 3.2rem; color: #ff0000; margin: 0; filter: drop-shadow(0 0 15px rgba(255,0,0,0.3)); }
.youtube-cta-title { grid-area: title; align-self: end; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--white); margin: 0; }
.youtube-cta-desc { grid-area: desc; align-self: start; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin: 0; max-width: 62ch; }
.documentary-grid .btn-youtube { grid-area: btn; white-space: nowrap; }
.btn-youtube { background: var(--primary); color: var(--bg-card) !important; border: none; font-weight: 600; padding: 12px 24px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-youtube:hover { background: var(--primary-light); box-shadow: 0 8px 25px var(--primary-glow-strong); transform: translateY(-3px); color: var(--bg-card) !important; }

@media(max-width:960px) {
  .documentary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:640px) {
  .documentary-grid { grid-template-columns: 1fr; }
  .documentary-grid .youtube-cta-card {
    grid-template-columns: 1fr; grid-template-areas: "icon" "title" "desc" "btn";
    justify-items: center; text-align: center; row-gap: 10px; padding: 28px 20px !important;
  }
}


/* =====================================================================
   PHASE 1 — reorganization additions
   (About video facade, nav "More" dropdown, hero intro link,
    filterable achievements list, thumbnail snap-scroll)
   ===================================================================== */

/* Hero: small "watch intro" link */
.hero-intro-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: .9rem; color: var(--text-muted); transition: color var(--transition);
}
.hero-intro-link i { color: var(--primary); font-size: 1.1rem; }
.hero-intro-link:hover { color: var(--primary-light); }

/* Nav: "More" dropdown */
.nav-more { position: relative; }
.nav-more-toggle {
  font-family: var(--font-body); font-size: .95rem; font-weight: 400;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  padding: 8px 12px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--transition);
}
.nav-more-toggle i { font-size: .65rem; transition: transform var(--transition); }
.nav-more-toggle:hover, .nav-more.has-active .nav-more-toggle { color: var(--primary); }
.nav-more.open .nav-more-toggle i { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 190px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: rgba(20, 15, 16, 0.96); border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm); padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition); z-index: 120;
}
.nav-more:hover .nav-dropdown, .nav-more.open .nav-dropdown, .nav-more:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-dropdown .nav-link { display: block; white-space: nowrap; }
.nav-dropdown .nav-link::after { display: none; }
.nav-dropdown .nav-link:hover { background: var(--primary-glow); }

/* About: video introduction */
.about-video { max-width: 900px; margin: 90px auto 0; scroll-margin-top: 100px; }
.about-video-title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500;
  color: var(--white); margin-bottom: 8px; display: flex; align-items: center; gap: 12px;
}
.about-video-title i { color: var(--primary); font-size: 1.2rem; }
.about-video .section-subtitle { margin-bottom: 24px; }
.video-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.btn-project-sm { padding: 8px 16px; font-size: .85rem; }
.video-facade { position: relative; }
.video-facade-btn {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: none;
  background: #000; cursor: pointer; display: block;
}
.video-facade-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity var(--transition), transform .6s ease; }
.video-facade-btn:hover img, .video-facade-btn:focus-visible img { opacity: 1; transform: scale(1.03); }
.play-circle {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9,7,7,0.78); border: 1px solid var(--primary); color: var(--primary);
  font-size: 1.4rem; box-shadow: 0 0 30px var(--primary-glow-strong); transition: all var(--transition);
}
.video-facade-btn:hover .play-circle { background: var(--primary); color: var(--bg-card); transform: scale(1.08); }

/* Achievements: sub-headings */
.ach-subhead {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; color: var(--white);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.ach-subhead i { color: var(--primary); font-size: 1rem; }
.featured-grid { margin-bottom: 70px; }

/* Achievements: thumbnail strip becomes snap-scroll */
.showcase-thumbnails { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.thumb-btn { scroll-snap-align: start; }

/* Achievements: filter tabs */
.ach-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ach-head .ach-subhead { margin-bottom: 0; }
.ach-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ach-filter {
  font-family: var(--font-body); font-size: .85rem; cursor: pointer;
  padding: 8px 14px; border-radius: 99px; color: var(--text-muted);
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass);
  display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition);
}
.ach-filter span { font-size: .72rem; opacity: .7; font-family: monospace; }
.ach-filter:hover { border-color: var(--primary); color: var(--white); }
.ach-filter.active { background: var(--primary-glow); border-color: var(--primary); color: var(--white); }

/* Achievements: compact expandable rows */
.ach-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.award-row {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
  animation: rowIn .35s ease both;
}
.award-row[hidden] { display: none; }
.award-row:hover, .award-row[open] { border-color: var(--border-glass-hover); background: var(--bg-glass-hover); }
.award-row summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 16px;
}
.award-row summary::-webkit-details-marker { display: none; }
.award-row summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.award-row .achiev-icon { width: 38px; height: 38px; font-size: 1.1rem; }
.award-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.award-row-title { font-family: var(--font-heading); font-size: .95rem; font-weight: 500; color: var(--white); line-height: 1.3; }
.award-row .award-event { font-size: .75rem; line-height: 1.4; }
.row-chevron { color: var(--text-muted); font-size: .75rem; transition: transform var(--transition); flex-shrink: 0; }
.award-row[open] .row-chevron { transform: rotate(180deg); color: var(--primary); }
.award-row .award-desc { margin: 0 16px 14px; padding-top: 12px; width: auto; font-size: .85rem; }
.ach-more { display: flex; justify-content: center; margin-top: 28px; }
.ach-more .btn-project { cursor: pointer; font-family: var(--font-body); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Phase 1 — responsive */
@media(max-width:960px) {
  .ach-list { grid-template-columns: 1fr; }
  .about-video { margin-top: 60px; }
}
@media(max-width:768px) {
  .nav-more-toggle { display: none; }
  .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    background: none; border: none; box-shadow: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    display: flex; flex-direction: column; align-items: center;
  }
  .nav-more:hover .nav-dropdown, .nav-more.open .nav-dropdown, .nav-more:focus-within .nav-dropdown { transform: none; }
  .play-circle { width: 56px; height: 56px; font-size: 1.1rem; }
  .ach-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .award-row { animation: none; } }


/* Achievements: featured star inside the full list */
.award-row.is-featured { border-color: rgba(207, 132, 98, 0.35); }
.row-star { color: var(--primary); font-size: .85rem; flex-shrink: 0; filter: drop-shadow(0 0 6px var(--primary-glow)); }
.ach-star-note { font-family: var(--font-body); font-size: .75rem; font-weight: 400; color: var(--text-muted); margin-left: 10px; }
.ach-star-note i { color: var(--primary); font-size: .7rem; }

/* Video introduction: autoplay unmute button */
.video-unmute {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border-radius: 20px; font-size: .8rem; font-family: var(--font-body);
  color: var(--white); background: rgba(9,7,7,0.82); border: 1px solid var(--primary);
  transition: all var(--transition);
}
.video-unmute i { color: var(--primary); }
.video-unmute:hover { background: var(--primary); color: var(--bg-card); }
.video-unmute:hover i { color: var(--bg-card); }
.video-unmute[hidden] { display: none; }
