:root{
  --bg: #0A0D13;
  --bg-elevated: #0F131B;
  --surface: #131822;
  --surface-hover: #171D29;
  --border: #212836;
  --border-soft: #1A2029;
  --text: #EEF1F5;
  --text-muted: #8D96A6;
  --text-dim: #565F70;
  --amber: #FFB454;
  --amber-dim: #FFB45422;
  --mint: #6EE7B7;
  --mint-dim: #6EE7B722;
  --danger: #FF6B6B;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

::selection{ background:var(--amber); color:#0A0D13; }

a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
input, textarea{ font-family:inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--amber);
  outline-offset:3px;
  border-radius:4px;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

section{ position:relative; }

/* ===== Page loader ===== */
.loader{
  position:fixed; inset:0; z-index:999;
  background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  transition:opacity 0.5s ease, visibility 0.5s ease;
}
.loader.done{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-mark{
  font-family:var(--font-mono);
  font-size:14px;
  color:var(--text-dim);
  display:flex; align-items:center; gap:12px;
}
.loader-bar{
  width:120px; height:2px;
  background:var(--border);
  border-radius:2px;
  overflow:hidden;
  position:relative;
}
.loader-bar::after{
  content:'';
  position:absolute; inset:0;
  width:40%;
  background:var(--amber);
  border-radius:2px;
  animation:loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderSlide{
  0%{ transform:translateX(-100%); }
  100%{ transform:translateX(350%); }
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--amber);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  font-weight:500;
}
.eyebrow::before{
  content:'';
  width:16px;
  height:1px;
  background:var(--amber);
}

.section-head{
  max-width:640px;
  margin-bottom:64px;
}
.section-head h2{
  font-family:var(--font-display);
  font-size:clamp(28px, 4vw, 42px);
  font-weight:600;
  letter-spacing:-0.02em;
  line-height:1.15;
  margin-bottom:16px;
}
.section-head p{
  color:var(--text-muted);
  font-size:16.5px;
  max-width:520px;
}

/* ===== Highlighted content ===== */
mark, .mark{
  background:none;
  color:var(--amber);
  font-weight:600;
  position:relative;
  padding:0 2px;
}
.mark-sweep{
  background-image:linear-gradient(var(--amber-dim), var(--amber-dim));
  background-repeat:no-repeat;
  background-size:0% 100%;
  background-position:left center;
  transition:background-size 0.7s cubic-bezier(.2,.8,.2,1);
  border-radius:4px;
}
.is-visible .mark-sweep{ background-size:100% 100%; }

.stat-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px 4px 8px;
  background:var(--amber-dim);
  border:1px solid #FFB45440;
  border-radius:100px;
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--amber);
  font-weight:600;
}

/* ===== Background texture ===== */
.bg-grid{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ===== Reveal on scroll (fast + punchy) ===== */
.reveal{
  opacity:0;
  transform:translateY(28px) scale(0.98);
  transition:opacity 0.55s cubic-bezier(.16,.9,.2,1), transform 0.55s cubic-bezier(.16,.9,.2,1);
}
.reveal.is-visible{ opacity:1; transform:translateY(0) scale(1); }
.reveal-stagger.is-visible > *{ transition-delay:calc(var(--i, 0) * 60ms); }

/* ===== Fast hero intro (plays on load, not on scroll) ===== */
.intro{
  opacity:0;
  transform:translateY(22px) scale(0.96);
  animation:introIn 0.65s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes introIn{
  to{ opacity:1; transform:translateY(0) scale(1); }
}

/* ===== Nav ===== */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:18px 0;
  transition:background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(10,13,19,0.78);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--border-soft);
  padding:14px 0;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  font-family:var(--font-mono);
  font-weight:600;
  font-size:16px;
  letter-spacing:-0.02em;
  display:flex;
  align-items:center;
  gap:8px;
}
.logo .dot{ color:var(--amber); }
.nav-links{
  display:flex;
  gap:36px;
  align-items:center;
}
.nav-links a{
  font-size:14px;
  color:var(--text-muted);
  transition:color 0.2s ease;
  position:relative;
}
.nav-links a:hover{ color:var(--text); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14.5px;
  font-weight:600;
  padding:12px 22px;
  border-radius:100px;
  border:1px solid transparent;
  transition:transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--amber);
  color:#14100a;
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px -8px rgba(255,180,84,0.45);
}
.btn-ghost{
  background:transparent;
  border-color:var(--border);
  color:var(--text);
}
.btn-ghost:hover{
  border-color:var(--amber);
  color:var(--amber);
  transform:translateY(-2px);
}
.btn-sm{ padding:9px 16px; font-size:13px; }

.nav-cta{ display:flex; align-items:center; gap:18px; }

.menu-toggle{
  display:none;
  background:none; border:none;
  width:32px; height:32px;
  position:relative;
}
.menu-toggle span{
  display:block;
  position:absolute;
  left:4px; right:4px;
  height:1.5px;
  background:var(--text);
  transition:all 0.3s ease;
}
.menu-toggle span:nth-child(1){ top:11px; }
.menu-toggle span:nth-child(2){ top:18px; }
.menu-toggle.open span:nth-child(1){ transform:translateY(3.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ transform:translateY(-3.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero{
  padding:168px 0 110px;
  position:relative;
}
.hero-inner{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:48px;
  align-items:center;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 14px 7px 10px;
  border:1px solid var(--border);
  border-radius:100px;
  background:var(--surface);
  font-size:13px;
  color:var(--text-muted);
  font-family:var(--font-mono);
  margin-bottom:28px;
}
.badge .pulse{
  width:7px; height:7px;
  border-radius:50%;
  background:var(--mint);
  position:relative;
  flex-shrink:0;
}
.badge .pulse::after{
  content:'';
  position:absolute;
  inset:-4px;
  border-radius:50%;
  border:1px solid var(--mint);
  animation:pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring{
  0%{ transform:scale(0.6); opacity:0.8; }
  100%{ transform:scale(2.2); opacity:0; }
}

.hero h1{
  font-family:var(--font-display);
  font-size:clamp(38px, 5.4vw, 66px);
  font-weight:600;
  line-height:1.06;
  letter-spacing:-0.03em;
  margin-bottom:24px;
}
.hero h1 .accent{ color:var(--amber); font-style:normal; }

.hero p.lead{
  font-size:18px;
  color:var(--text-muted);
  max-width:480px;
  margin-bottom:36px;
}
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:48px;
}

/* Hero profile photo (new) */
.hero-photo-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:32px;
}
.hero-photo{
  width:56px; height:56px;
  border-radius:50%;
  padding:2px;
  background:conic-gradient(var(--amber), var(--mint), var(--amber));
  flex-shrink:0;
  animation:spinRing 6s linear infinite;
}
@keyframes spinRing{ to{ transform:rotate(360deg); } }
.hero-photo .photo-inner{
  width:100%; height:100%;
  border-radius:50%;
  background:var(--surface) center/cover no-repeat;
  border:2px solid var(--bg);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.hero-photo .photo-inner img{ width:100%; height:100%; object-fit:cover; }
.hero-photo-name{ display:flex; flex-direction:column; }
.hero-photo-name strong{ font-size:14.5px; font-weight:600; }
.hero-photo-name span{ font-size:12.5px; color:var(--text-dim); font-family:var(--font-mono); }

.hero-meta{
  display:flex;
  gap:32px;
  flex-wrap:wrap;
}
.hero-meta div{ display:flex; flex-direction:column; gap:2px; }
.hero-meta .num{
  font-family:var(--font-display);
  font-size:22px;
  font-weight:600;
  color:var(--text);
}
.hero-meta .label{
  font-size:12.5px;
  color:var(--text-dim);
  font-family:var(--font-mono);
}

/* Phone mockup — signature element */
.phone-stage{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:560px;
}
.phone-stage::before{
  content:'';
  position:absolute;
  width:420px; height:420px;
  background:radial-gradient(circle, rgba(255,180,84,0.14), transparent 70%);
  filter:blur(10px);
  z-index:0;
}
.phone{
  position:relative;
  z-index:1;
  width:270px;
  height:552px;
  background:linear-gradient(160deg, #171C26, #0D1119);
  border-radius:38px;
  border:1px solid var(--border);
  box-shadow:0 40px 80px -30px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.03);
  padding:10px;
  animation:float 6s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{ transform:translateY(0) rotate(-1.2deg); }
  50%{ transform:translateY(-14px) rotate(1deg); }
}
.phone-notch{
  position:absolute;
  top:10px; left:50%;
  transform:translateX(-50%);
  width:90px; height:22px;
  background:#0A0D13;
  border-radius:0 0 14px 14px;
  z-index:3;
}
.phone-screen{
  width:100%; height:100%;
  background:#0B0F16;
  border-radius:29px;
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
}
.phone-statusbar{
  display:flex;
  justify-content:space-between;
  padding:14px 20px 4px;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-dim);
}
.phone-topbar{
  padding:14px 18px 8px;
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:8px;
}
.phone-topbar .led{ width:6px; height:6px; border-radius:50%; background:var(--mint); }

.phone-code{
  flex:1;
  padding:6px 18px;
  font-family:var(--font-mono);
  font-size:10.5px;
  line-height:1.9;
  color:var(--text-dim);
  overflow:hidden;
}
.phone-code .k{ color:#C792EA; }
.phone-code .s{ color:var(--mint); }
.phone-code .c{ color:var(--text-dim); }
.phone-code .f{ color:var(--amber); }
.phone-code div{
  white-space:pre;
  opacity:0;
  animation:typeIn 0.4s ease forwards;
}

.phone-app{
  position:absolute;
  inset:0;
  background:#0B0F16;
  display:flex;
  flex-direction:column;
  padding:44px 18px 18px;
  opacity:0;
  animation:appIn 8s ease-in-out infinite;
}
.phone-app .card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  margin-bottom:10px;
}
.phone-app .card .row1{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.phone-app .card .avatar{ width:26px; height:26px; border-radius:8px; background:linear-gradient(135deg, var(--amber), var(--mint)); flex-shrink:0; }
.phone-app .card .bar{ height:6px; border-radius:4px; background:var(--border); }
.phone-app .card .bar.w60{ width:60%; }
.phone-app .card .bar.w40{ width:40%; margin-top:6px; }
.phone-app .fab{
  position:absolute;
  bottom:22px; right:22px;
  width:44px; height:44px;
  border-radius:50%;
  background:var(--amber);
  display:flex; align-items:center; justify-content:center;
  color:#14100a;
  font-size:20px;
  font-weight:700;
  box-shadow:0 8px 20px -6px rgba(255,180,84,0.5);
}

.phone-compiling{
  position:absolute;
  inset:0;
  background:#0B0F16;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  opacity:0;
  animation:compileIn 8s ease-in-out infinite;
}
.spinner{
  width:34px; height:34px;
  border-radius:50%;
  border:2.5px solid var(--border);
  border-top-color:var(--amber);
  animation:spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.phone-compiling p{
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-dim);
}

@keyframes typeIn{ to{ opacity:1; } }
@keyframes appIn{
  0%, 8%{ opacity:0; transform:translateY(6px); }
  14%, 46%{ opacity:1; transform:translateY(0); }
  52%, 100%{ opacity:0; }
}
@keyframes compileIn{
  0%, 52%{ opacity:0; }
  58%, 92%{ opacity:1; }
  98%, 100%{ opacity:0; }
}

.float-chip{
  position:absolute;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:12px;
  z-index:2;
  box-shadow:0 20px 40px -20px rgba(0,0,0,0.6);
  backdrop-filter:blur(8px);
}
.float-chip.chip-1{ top:14%; left:-6%; animation:chipFloat 5s ease-in-out infinite; }
.float-chip.chip-2{ bottom:16%; right:-8%; animation:chipFloat 5.5s ease-in-out infinite reverse; }
@keyframes chipFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}
.float-chip .dot-status{ width:8px; height:8px; border-radius:50%; background:var(--mint); }

/* ===== Marquee tech strip ===== */
.marquee-wrap{
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft);
  padding:22px 0;
  overflow:hidden;
  background:var(--bg-elevated);
}
.marquee{
  display:flex;
  gap:56px;
  width:max-content;
  animation:scroll-marquee 32s linear infinite;
}
@keyframes scroll-marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.marquee span{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--text-dim);
  letter-spacing:0.02em;
  display:flex;
  align-items:center;
  gap:10px;
}
.marquee span::before{ content:'◆'; color:var(--amber); font-size:8px; }

/* ===== About ===== */
.about{ padding:140px 0; }
.about-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:72px;
  align-items:start;
}
.about-visual{
  position:sticky;
  top:120px;
  aspect-ratio:1/1.05;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid var(--border);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.about-photo-frame{
  position:relative;
  width:100%; height:100%;
}
.about-photo-frame .photo-slot{
  position:absolute;
  inset:18px;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(160deg, #171C26, #0C0F16);
  border:1px solid var(--border-soft);
  display:flex; align-items:center; justify-content:center;
}
.about-photo-frame .photo-slot img{ width:100%; height:100%; object-fit:cover; }
.about-photo-frame .photo-slot .fallback{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color:var(--text-dim);
  font-family:var(--font-mono);
  font-size:12px;
  text-align:center;
  padding:20px;
}
.about-photo-frame .photo-slot .fallback svg{ opacity:0.5; }
.about-photo-frame .corner-tag{
  position:absolute;
  bottom:32px; left:32px;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 14px;
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:8px;
  z-index:2;
}
.about-photo-frame .corner-tag .led{ width:6px; height:6px; border-radius:50%; background:var(--mint); animation:blink 1.6s ease-in-out infinite; }
@keyframes blink{ 50%{ opacity:0.3; } }

.about-copy p{
  color:var(--text-muted);
  font-size:16.5px;
  margin-bottom:20px;
  max-width:560px;
}
.about-copy p strong{ color:var(--text); font-weight:600; }
.about-highlights{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:36px;
}
.highlight-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:18px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);
  background:var(--bg-elevated);
  transition:border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.highlight-item:hover{ border-color:var(--border); background:var(--surface); transform:translateY(-3px); }
.highlight-item .ico{
  width:34px; height:34px;
  border-radius:9px;
  background:var(--amber-dim);
  color:var(--amber);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.highlight-item h4{ font-size:14.5px; font-weight:600; margin-bottom:3px; }
.highlight-item p{ font-size:13px; color:var(--text-dim); margin:0; }

/* ===== Skills ===== */
.skills{ padding:140px 0; background:var(--bg-elevated); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.skills-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:16px;
}
.skill-card{
  padding:26px 20px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  background:var(--surface);
  transition:transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.skill-card:hover{
  transform:translateY(-5px);
  border-color:var(--amber);
  background:var(--surface-hover);
}
.skill-card .ico{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  color:var(--amber);
}
.skill-card h4{ font-size:14.5px; font-weight:600; }
.skill-card span{ font-family:var(--font-mono); font-size:11.5px; color:var(--text-dim); }

/* ===== Projects ===== */
.projects{ padding:140px 0; }
.project-list{
  display:flex;
  flex-direction:column;
  gap:28px;
}
.project-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);
  background:var(--surface);
  overflow:hidden;
  transition:border-color 0.3s ease, transform 0.3s ease;
}
.project-card:hover{ border-color:var(--border); transform:translateY(-4px); }
.project-card:nth-child(even){ direction:rtl; }
.project-card:nth-child(even) > *{ direction:ltr; }

.project-visual{
  position:relative;
  background:linear-gradient(155deg, #151A24, #0C0F16);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:36px;
  min-height:340px;
  overflow:hidden;
  gap:18px;
}
.project-visual::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size:18px 18px;
  opacity:0.5;
}

/* Screenshot gallery */
.ss-gallery{
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:6px 4px 10px;
  max-width:100%;
  position:relative;
  z-index:1;
  scrollbar-width:thin;
  scrollbar-color:var(--border) transparent;
}
.ss-gallery::-webkit-scrollbar{ height:5px; }
.ss-gallery::-webkit-scrollbar-thumb{ background:var(--border); border-radius:10px; }
.ss-thumb{
  scroll-snap-align:start;
  flex-shrink:0;
  width:120px;
  height:220px;
  border-radius:16px;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  box-shadow:0 20px 40px -18px rgba(0,0,0,0.6);
  cursor:pointer;
  transition:transform 0.25s ease, border-color 0.25s ease;
  overflow:hidden;
  position:relative;
  padding:6px;
}
.ss-thumb:hover{ transform:translateY(-6px) scale(1.03); border-color:var(--amber); }
.ss-thumb .ss-inner{
  width:100%; height:100%;
  border-radius:11px;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 9px;
  overflow:hidden;
}
.ss-thumb .ss-label{
  position:absolute;
  bottom:6px; left:0; right:0;
  text-align:center;
  font-family:var(--font-mono);
  font-size:9px;
  color:var(--text-dim);
  background:linear-gradient(to top, rgba(10,13,19,0.85), transparent);
  padding:12px 4px 4px;
}
.ss-badge-row{
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
  z-index:1;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-dim);
}

.project-info{
  padding:44px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.project-num{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-dim); margin-bottom:12px; }
.project-info h3{ font-family:var(--font-display); font-size:26px; font-weight:600; margin-bottom:12px; letter-spacing:-0.01em; }
.project-info p{ color:var(--text-muted); font-size:15px; margin-bottom:22px; max-width:400px; }
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px; }
.tag{
  font-family:var(--font-mono);
  font-size:11.5px;
  padding:5px 11px;
  border-radius:100px;
  border:1px solid var(--border);
  color:var(--text-muted);
}
.project-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.project-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  color:var(--text);
  width:fit-content;
  padding-bottom:2px;
  border-bottom:1px solid var(--border);
  transition:border-color 0.2s ease, color 0.2s ease, gap 0.2s ease;
}
.project-link:hover{ color:var(--amber); border-color:var(--amber); gap:12px; }

.store-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:12px;
  background:#0F131B;
  border:1px solid var(--border);
  transition:border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.store-btn:hover{ border-color:var(--mint); transform:translateY(-2px); background:var(--surface-hover); }
.store-btn svg{ color:var(--mint); flex-shrink:0; }
.store-btn .store-txt{ display:flex; flex-direction:column; line-height:1.25; }
.store-btn .store-txt small{ font-size:9.5px; color:var(--text-dim); font-family:var(--font-mono); }
.store-btn .store-txt strong{ font-size:13px; font-weight:600; }

.no-store-tag{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 14px;
  border-radius:100px;
  border:1px dashed var(--border);
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--text-dim);
}
.no-store-tag .dot{ width:6px; height:6px; border-radius:50%; background:var(--text-dim); }

/* ===== Lightbox ===== */
.lightbox{
  position:fixed; inset:0; z-index:200;
  background:rgba(6,8,12,0.9);
  backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition:opacity 0.3s ease;
  padding:40px 20px;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox-frame{
  width:260px;
  max-height:80vh;
  aspect-ratio:9/18;
  background:var(--bg-elevated);
  border-radius:24px;
  border:1px solid var(--border);
  padding:8px;
  transform:scale(0.92);
  transition:transform 0.3s ease;
}
.lightbox.open .lightbox-frame{ transform:scale(1); }
.lightbox-frame .lb-inner{
  width:100%; height:100%;
  border-radius:18px;
  overflow:hidden;
  padding:16px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.lightbox-close{
  position:absolute;
  top:24px; right:24px;
  width:40px; height:40px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text);
  display:flex; align-items:center; justify-content:center;
}
.lightbox-close:hover{ border-color:var(--amber); color:var(--amber); }
.lightbox-nav{
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:44px; height:44px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text);
  display:flex; align-items:center; justify-content:center;
}
.lightbox-nav:hover{ border-color:var(--amber); color:var(--amber); }
.lightbox-nav.prev{ left:24px; }
.lightbox-nav.next{ right:24px; }
.lightbox-caption{
  position:absolute;
  bottom:24px; left:0; right:0;
  text-align:center;
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--text-muted);
}

/* ===== Timeline ===== */
.journey{ padding:140px 0; background:var(--bg-elevated); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.timeline{
  position:relative;
  max-width:760px;
  margin:0 auto;
}
.timeline::before{
  content:'';
  position:absolute;
  left:7px;
  top:8px;
  bottom:8px;
  width:1px;
  background:linear-gradient(to bottom, var(--border), var(--border) 90%, transparent);
}
.tl-item{
  position:relative;
  padding-left:44px;
  padding-bottom:52px;
}
.tl-item:last-child{ padding-bottom:0; }
.tl-dot{
  position:absolute;
  left:0; top:4px;
  width:15px; height:15px;
  border-radius:50%;
  background:var(--bg-elevated);
  border:2px solid var(--border);
  transition:border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.tl-item.is-visible .tl-dot{ border-color:var(--amber); background:var(--amber); box-shadow:0 0 0 4px var(--amber-dim); }
.tl-year{ font-family:var(--font-mono); font-size:12.5px; color:var(--amber); margin-bottom:6px; }
.tl-item h4{ font-size:18px; font-weight:600; margin-bottom:8px; font-family:var(--font-display); }
.tl-item p{ color:var(--text-muted); font-size:15px; max-width:520px; }

/* ===== Services ===== */
.services{ padding:140px 0; }
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.service-card{
  padding:32px 28px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  background:var(--surface);
  transition:border-color 0.25s ease, transform 0.25s ease;
  position:relative;
}
.service-card:hover{ border-color:var(--mint); transform:translateY(-4px); }
.service-card .ico{
  width:42px; height:42px;
  border-radius:11px;
  background:var(--mint-dim);
  color:var(--mint);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.service-card h4{ font-size:16.5px; font-weight:600; margin-bottom:10px; font-family:var(--font-display); }
.service-card p{ font-size:14px; color:var(--text-dim); }

/* ===== Stats ===== */
.stats{
  padding:100px 0;
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft);
  background:var(--bg-elevated);
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
.stat-item{ text-align:left; border-left:1px solid var(--border-soft); padding-left:24px; }
.stat-item .num{
  font-family:var(--font-display);
  font-size:clamp(34px, 4vw, 48px);
  font-weight:600;
  color:var(--amber);
  letter-spacing:-0.02em;
  display:flex;
  align-items:baseline;
  gap:2px;
}
.stat-item .label{
  color:var(--text-muted);
  font-size:14px;
  margin-top:6px;
}

/* ===== Testimonials ===== */
.testimonials{ padding:140px 0; }
.testi-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.testi-card{
  padding:30px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  background:var(--surface);
  transition:transform 0.25s ease, border-color 0.25s ease;
}
.testi-card:hover{ transform:translateY(-4px); border-color:var(--border); }
.testi-card .stars{ color:var(--amber); font-size:14px; letter-spacing:2px; margin-bottom:16px; }
.testi-card p{ font-size:15px; color:var(--text-muted); margin-bottom:24px; line-height:1.7; }
.testi-person{ display:flex; align-items:center; gap:12px; }
.testi-avatar{
  width:38px; height:38px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display);
  font-weight:600;
  font-size:14px;
  color:#14100a;
}
.testi-person h5{ font-size:14px; font-weight:600; }
.testi-person span{ font-size:12.5px; color:var(--text-dim); }

/* ===== Contact ===== */
.contact{ padding:140px 0; background:var(--bg-elevated); border-top:1px solid var(--border-soft); }
.contact-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:64px;
}
.contact-info h2{
  font-family:var(--font-display);
  font-size:clamp(28px, 3.6vw, 40px);
  font-weight:600;
  letter-spacing:-0.02em;
  line-height:1.2;
  margin-bottom:20px;
}
.contact-info > p{ color:var(--text-muted); font-size:16px; margin-bottom:40px; max-width:420px; }
.contact-channels{ display:flex; flex-direction:column; gap:4px; }
.channel{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 0;
  border-bottom:1px solid var(--border-soft);
  transition:gap 0.2s ease, color 0.2s ease;
}
.channel:hover{ gap:20px; color:var(--amber); }
.channel .ico{ width:20px; height:20px; color:var(--amber); flex-shrink:0; }
.channel .txt{ display:flex; flex-direction:column; }
.channel .txt .lbl{ font-size:11.5px; color:var(--text-dim); font-family:var(--font-mono); }
.channel .txt .val{ font-size:15px; font-weight:500; }

.contact-form{
  background:var(--surface);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);
  padding:40px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.field label{ font-size:12.5px; font-family:var(--font-mono); color:var(--text-muted); }
.field input, .field textarea{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:10px;
  padding:13px 15px;
  color:var(--text);
  font-size:14.5px;
  transition:border-color 0.2s ease, background 0.2s ease;
  resize:none;
}
.field input:focus, .field textarea:focus{
  outline:none;
  border-color:var(--amber);
  background:var(--bg);
}
.field input::placeholder, .field textarea::placeholder{ color:var(--text-dim); }
.contact-form .btn{ width:100%; margin-top:6px; padding:14px; font-size:15px; }
.form-note{ font-size:12px; color:var(--text-dim); margin-top:14px; text-align:center; }

/* ===== Footer ===== */
footer{ padding:44px 0; }
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:32px;
  border-top:1px solid var(--border-soft);
  flex-wrap:wrap;
  gap:16px;
}
.footer-inner p{ font-size:13.5px; color:var(--text-dim); }
.footer-inner p strong{ color:var(--text-muted); font-weight:500; }
.footer-socials{ display:flex; gap:20px; }
.footer-socials a{ font-size:13px; color:var(--text-dim); transition:color 0.2s ease; }
.footer-socials a:hover{ color:var(--amber); }

.back-to-top{
  position:fixed;
  bottom:28px; right:28px;
  width:46px; height:46px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text);
  z-index:60;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
.back-to-top:hover{ border-color:var(--amber); color:var(--amber); }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .phone-stage{ order:-1; min-height:420px; transform:scale(0.85); }
  .about-grid{ grid-template-columns:1fr; }
  .about-visual{ position:static; max-width:360px; margin:0 auto; }
  .skills-grid{ grid-template-columns:repeat(3, 1fr); }
  .project-card{ grid-template-columns:1fr; }
  .project-card:nth-child(even){ direction:ltr; }
  .services-grid{ grid-template-columns:repeat(2, 1fr); }
  .stats-grid{ grid-template-columns:repeat(2, 1fr); gap:32px; }
  .testi-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .nav-links{
    position:fixed;
    top:60px; left:16px; right:16px;
    background:var(--bg-elevated);
    border:1px solid var(--border-soft);
    border-radius:16px;
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
    gap:6px;
    transform:translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition:all 0.25s ease;
  }
  .nav-links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a{ padding:10px 4px; width:100%; }
  .menu-toggle{ display:block; }
  .nav-cta .btn-ghost{ display:none; }
  .skills-grid{ grid-template-columns:repeat(2, 1fr); }
  .services-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .hero{ padding-top:130px; }
  .about, .skills, .projects, .journey, .services, .testimonials, .contact{ padding:88px 0; }
}

@media (max-width: 480px){
  .container{ padding:0 20px; }
  .hero-meta{ gap:22px; }
  .project-info{ padding:28px; }
  .project-visual{ padding:24px; min-height:300px; }
  .contact-form{ padding:26px; }
  .lightbox-nav{ width:38px; height:38px; }
  .lightbox-nav.prev{ left:8px; }
  .lightbox-nav.next{ right:8px; }
}