/* ===== Enchanted Forest — VP Web Studio ===== */

:root {
  --midnight: #0a0a0a;
  --midnight-deep: #000000;
  --teal: #0f3d4a;
  --twilight: #2b6ca3;
  --forest: #1e3b2e;
  --moss: #6b7b16;
  --lantern: #ffa726;
  --wildflower: #b11e5e;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-script: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
html, body { height: 100%; margin: 0; }

body {
  background: var(--midnight-deep);
  color: #eaf2f5;
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -30;
  background: #000000;
}

body::after {
  content: "";
  position: fixed; inset: 0; z-index: -10; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }

main { flex: 1; display: flex; flex-direction: column; }

::selection { background: var(--wildflower); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--midnight-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--twilight), var(--lantern)); border-radius: 999px; }

/* ===== Reusable surfaces ===== */
.glass {
  background: linear-gradient(160deg, rgba(15,61,74,0.55), rgba(11,30,51,0.55));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,167,38,0.14);
  border-radius: 16px;
}

.gilded {
  border: 1px solid rgba(255,167,38,0.45);
  box-shadow: inset 0 0 0 1px rgba(255,167,38,0.12), 0 10px 30px rgba(0,0,0,0.4);
}

.gilded-corners { position: relative; }
.gilded-corners::before, .gilded-corners::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--lantern); opacity: 0.75; pointer-events: none;
}
.gilded-corners::before { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.gilded-corners::after { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 10px 0; }

.arch-top { border-radius: 50% 50% 20px 20px / 100px 100px 20px 20px; }

.text-gradient {
  background: linear-gradient(100deg, var(--lantern) 0%, var(--wildflower) 45%, var(--twilight) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.bg-grid {
  background-image: linear-gradient(rgba(255,167,38,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,167,38,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 12px;
  padding: 14px 28px; font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-3px) scale(1.04); }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-primary {
  background: linear-gradient(90deg, var(--lantern), var(--wildflower), var(--twilight));
  background-size: 200% auto;
  background-position: 0% 50%;
  color: var(--midnight); box-shadow: 0 0 25px rgba(255,167,38,0.35);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 0 20px rgba(255,167,38,0.55), 0 0 45px rgba(177,30,94,0.4), 0 0 65px rgba(43,108,163,0.25);
}
.btn-ghost {
  background: linear-gradient(135deg, rgba(43,108,163,0.28), rgba(177,30,94,0.22));
  border-color: rgba(255,167,38,0.5); color: #fff;
  box-shadow: 0 0 16px rgba(43,108,163,0.25);
}
.btn-ghost:hover {
  border-color: var(--lantern); color: var(--lantern);
  background: linear-gradient(135deg, rgba(255,167,38,0.22), rgba(177,30,94,0.3));
  box-shadow: 0 0 26px rgba(255,167,38,0.4);
}

/* ===== Loader ===== */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--midnight-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .6s ease, transform .6s ease;
}
.loader.hide { opacity: 0; transform: scale(1.05); pointer-events: none; }
.loader-grid { position: absolute; inset: 0; opacity: .4; }
.loader-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,167,38,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,167,38,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.loader-box {
  position: relative; height: 96px; width: 96px; border: 1px solid rgba(255,167,38,0.3);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  animation: loaderGlow 1.8s ease-in-out infinite;
}
.loader-icon {
  font-family: var(--font-mono); font-size: 36px; font-weight: 700;
  background: linear-gradient(100deg, var(--lantern), var(--wildflower), var(--twilight));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: spinY 2.4s linear infinite;
}
.loader-text { margin-top: 24px; font-family: var(--font-mono); font-size: 14px; color: var(--twilight); }
.loader-bar { margin-top: 20px; height: 4px; width: 224px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--twilight), var(--lantern), var(--wildflower)); transition: width .2s; }
.blink { animation: blink 1.1s step-end infinite; color: var(--lantern); }

@keyframes loaderGlow { 0%,100% { box-shadow: 0 0 20px rgba(255,167,38,0.25); } 50% { box-shadow: 0 0 55px rgba(255,167,38,0.55); } }
@keyframes spinY { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(1.5deg); } }
@keyframes flicker { 0%,18%,22%,25%,53%,57%,100% { opacity: 1; } 20%,24%,55% { opacity: .6; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Enchanted background (canopy + fireflies) — disabled for plain black ===== */
.enchanted-bg { display: none; }
.canopy { position: absolute; opacity: .35; filter: blur(6px); border-radius: 50%; background: var(--forest); }
.canopy.hi { filter: blur(6px); background: var(--moss); opacity: .1; }
.firefly { position: absolute; border-radius: 999px; background: var(--lantern); box-shadow: 0 0 12px 4px rgba(255,167,38,0.7); animation: float 6s ease-in-out infinite; }
.lantern-glow { display: none; }
.wildflower-deco { position: absolute; opacity: .7; }

/* ===== Site logo ===== */
.site-logo {
  position: absolute; top: 16px; left: 180px; z-index: 55; display: block;
  height: 56px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6));
}
.site-logo img { height: 100%; width: auto; display: block; }
@media (max-width: 639px) {
  .site-logo { top: 10px; left: 14px; height: 42px; }
}

/* ===== Folder nav ===== */
.folder-nav { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 60; }
.folder-nav-inner { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.folder-toggle {
  background: none; padding: 0; border: none; height: 48px; overflow: hidden;
  clip-path: polygon(22px 0%, 100% 0%, 100% 100%, 22px 100%, 0% 50%);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.folder-toggle-body {
  display: flex; align-items: center; gap: 8px; height: 100%; width: 48px;
  background: linear-gradient(90deg, var(--lantern), rgba(255,167,38,.9));
  border: 2px solid rgba(255,167,38,.7); border-right: none;
  padding-left: 24px; padding-right: 16px; color: var(--midnight);
  transition: width .35s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}
.folder-toggle-label { font-family: var(--font-serif); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.folder-toggle-body i { width: 20px; height: 20px; flex-shrink: 0; }
@media (min-width: 640px) {
  .folder-nav.open .folder-toggle-body, .folder-nav:hover .folder-toggle-body { width: 128px; }
  .folder-nav.open .folder-toggle-label, .folder-nav:hover .folder-toggle-label { opacity: 1; }
}

.folder-tabs { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.folder-tab {
  display: block; height: 48px; overflow: hidden;
  clip-path: polygon(18px 0%, 100% 0%, 100% 100%, 18px 100%, 0% 50%);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.folder-tab-body {
  display: flex; align-items: center; gap: 10px; height: 100%; width: 40px;
  background: linear-gradient(90deg, rgba(15,61,74,.95), rgba(11,30,51,.95));
  border: 2px solid rgba(255,167,38,.4); border-right: none;
  padding-left: 20px; padding-right: 16px; color: #eaf2f5;
  transition: width .35s cubic-bezier(.2,.8,.2,1), background .3s;
  white-space: nowrap;
}
.folder-tab.active .folder-tab-body { background: linear-gradient(90deg, var(--wildflower), rgba(177,30,94,.9)); border-color: var(--lantern); color: #fff; width: 138px; }
.folder-tab-body i { width: 16px; height: 16px; flex-shrink: 0; }
.folder-tab-label { font-family: var(--font-serif); font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .2s; }
.folder-tab.active .folder-tab-label { opacity: 1; }
.folder-tab-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.3); flex-shrink: 0; }
.folder-tab.active .folder-tab-dot { background: var(--lantern); box-shadow: 0 0 8px rgba(255,167,38,.9); }
@media (min-width: 640px) {
  .folder-nav:hover .folder-tab-body { width: 158px; }
  .folder-tab.active .folder-tab-body { width: 158px; }
  .folder-nav:hover .folder-tab-label { opacity: 1; }
}

/* ===== Section heading ===== */
.section-heading { max-width: 640px; margin: 0 auto; text-align: center; }
.section-heading.left { text-align: left; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid rgba(255,167,38,.3); background: rgba(255,167,38,.1);
  padding: 6px 16px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--lantern);
}
.section-heading h2 {
  margin-top: 16px; font-size: 34px; font-weight: 700; color: #f8fafc;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.section-heading.left h2 { justify-content: flex-start; }
.section-heading p { margin-top: 16px; color: #94a3b8; line-height: 1.7; }
.flourish { height: 16px; width: 56px; opacity: .8; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 150px 0 64px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { position: relative; display: grid; gap: 48px; width: 100%; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.hero h1 { font-size: 44px; font-weight: 700; line-height: 1.2; color: #f8fafc; margin: 24px 0; }
.hero h1 .typed { display: block; min-height: 1.3em; }
.hero p.lead { max-width: 560px; color: #94a3b8; font-size: 17px; line-height: 1.7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.code-bg { position: absolute; inset: 0; overflow: hidden; opacity: .16; pointer-events: none; }
.code-col { position: absolute; top: 0; display: flex; flex-direction: column; gap: 16px; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; color: #64748b; animation: codeScroll linear infinite; }
@keyframes codeScroll { from { transform: translateY(0); } to { transform: translateY(-900px); } }
.code-bg .fade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--midnight-deep), transparent, var(--midnight-deep)); }

.floating-snippet {
  position: absolute; border-radius: 10px; padding: 12px 16px; font-family: var(--font-mono); font-size: 11px;
  color: rgba(43,108,163,.9); box-shadow: 0 10px 20px rgba(0,0,0,.3); animation: float 8s ease-in-out infinite;
  z-index: 1;
}
@media (min-width: 1024px) {
  .floating-snippet[data-show-lg] { display: block !important; }
}

.terminal { max-width: 420px; width: 100%; margin-left: auto; border-radius: 12px; overflow: hidden; }
.terminal-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.2); padding: 10px 16px; }
.terminal-head span { height: 12px; width: 12px; border-radius: 999px; }
.terminal-head span:nth-child(1) { background: rgba(177,30,94,.8); }
.terminal-head span:nth-child(2) { background: rgba(255,167,38,.8); }
.terminal-head span:nth-child(3) { background: rgba(107,123,22,.8); }
.terminal-head small { margin-left: 12px; font-family: var(--font-mono); font-size: 11px; color: #64748b; }
.terminal-body { min-height: 200px; padding: 16px; font-family: var(--font-mono); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.terminal-body .cmd { color: var(--lantern); }
.terminal-body .out { padding-left: 16px; color: var(--moss); }

/* ===== Marquee ===== */
.marquee-wrap { border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(0,0,0,.15); padding: 20px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; gap: 40px; animation: marquee 32s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; color: #64748b; white-space: nowrap; }

.hero .marquee-wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }

/* ===== Stats ===== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { border-radius: 16px; padding: 28px 24px; text-align: center; }
.stat-card .value { font-family: var(--font-mono); font-size: 36px; font-weight: 700; }
.stat-card .label { margin-top: 8px; font-size: 14px; color: #cbd5e1; }

/* ===== Sections / grids ===== */
section { position: relative; padding: 80px 0; }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ===== Service / tilt cards ===== */
.tilt-card { border-radius: 16px; padding: 24px; }
.service-icon { display: flex; height: 48px; width: 48px; align-items: center; justify-content: center; border-radius: 12px; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.4); margin-bottom: 16px; }
.service-icon i { width: 24px; height: 24px; }
.tilt-card h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: #f1f5f9; margin: 0 0 8px; }
.tilt-card p { font-size: 14px; line-height: 1.7; color: #94a3b8; margin: 0; }

/* ===== Skills panel ===== */
.skills-panel { position: relative; margin-top: 56px; border-radius: 24px; padding: 40px 24px; overflow: hidden; }
@media (min-width: 640px) { .skills-panel { padding: 40px; } }
.skills-panel h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--lantern); text-shadow: 0 0 12px rgba(255,167,38,.45); margin: 0; }
.skills-divider { margin-top: 12px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--lantern), rgba(255,167,38,.4), transparent); box-shadow: 0 0 8px rgba(255,167,38,.6); }
.skills-grid { position: relative; margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 16px; row-gap: 36px; }
@media (min-width: 640px) { .skills-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(8, 1fr); } }

.skill-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.skill-badge {
  position: relative; display: flex; height: 68px; width: 68px; align-items: center; justify-content: center;
  border-radius: 18px;
}
.skill-badge i { width: 26px; height: 26px; color: #fff; position: relative; filter: drop-shadow(0 0 4px rgba(255,255,255,.5)); }
.skill-badge .glyph { position: relative; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.5)); }
.skill-icon-img { position: relative; width: 28px; height: 28px; filter: drop-shadow(0 0 5px rgba(255,255,255,.55)); }
.skill-item p { max-width: 88px; font-size: 12px; font-weight: 500; color: #cbd5e1; margin: 0; }

/* ===== Sparkles ===== */
.sparkle-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparkle { position: absolute; border-radius: 999px; background: var(--lantern); box-shadow: 0 0 8px 2px rgba(255,167,38,.8); animation: flicker 4s ease-in-out infinite; }

/* ===== Portrait frame ===== */
.portrait-wrap { position: relative; margin: 0 auto; width: 100%; max-width: 384px; padding-top: 24px; perspective: 1200px; }
.portrait-glow { position: absolute; inset: -24px; border-radius: 50% 50% 20px 20px / 100px 100px 20px 20px; background: linear-gradient(135deg, rgba(43,108,163,.3), rgba(177,30,94,.2), rgba(255,167,38,.3)); filter: blur(30px); }
.portrait-ring { position: absolute; inset: -12px; border-radius: 50% 50% 20px 20px / 100px 100px 20px 20px; border: 1px solid rgba(255,167,38,.3); animation: sway 10s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(0); } 25% { transform: rotate(1.2deg); } 75% { transform: rotate(-1.2deg); } }
.leaf { position: absolute; top: -16px; height: 64px; width: 80px; z-index: 2; }
.leaf.left { left: -24px; }
.leaf.right { right: -24px; transform: scaleX(-1); }
.portrait-frame { position: relative; overflow: hidden; border: 4px solid rgba(255,167,38,.5); box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,18,32,.75), transparent 60%); pointer-events: none; }
.portrait-tag { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; background: rgba(0,0,0,.4); padding: 10px 16px; backdrop-filter: blur(6px); }
.portrait-tag .dot { height: 8px; width: 8px; border-radius: 999px; background: var(--moss); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.nameplate { position: relative; margin: -20px auto 0; max-width: 88%; border-radius: 12px; background: rgba(11,30,51,.9); padding: 12px 24px; text-align: center; backdrop-filter: blur(6px); }
.nameplate .name { font-family: var(--font-serif); font-size: 18px; color: var(--lantern); margin: 0; }
.nameplate .role { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin: 2px 0 0; }
.nameplate .sig { position: absolute; right: -8px; top: -12px; transform: rotate(-8deg); font-family: var(--font-script); font-size: 22px; color: rgba(177,30,94,.8); }

/* ===== Workflow ===== */
.workflow-panel { position: relative; border-radius: 24px; padding: 32px; overflow: hidden; }
@media (min-width: 640px) { .workflow-panel { padding: 48px; } }
.workflow-row { position: relative; display: grid; gap: 32px; }
@media (min-width: 640px) { .workflow-row { grid-template-columns: repeat(3, 1fr); } }
.workflow-row .line { position: absolute; left: 0; right: 0; top: 32px; height: 1px; display: none; background-image: repeating-linear-gradient(90deg, var(--lantern) 0 10px, transparent 10px 18px); }
@media (min-width: 640px) { .workflow-row .line { display: block; } }
.workflow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.workflow-circle { position: relative; z-index: 1; display: flex; height: 64px; width: 64px; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid var(--lantern); background: var(--midnight-deep); box-shadow: 0 0 24px rgba(255,167,38,.4); color: var(--lantern); }
.workflow-circle i, .workflow-circle svg { width: 24px; height: 24px; color: var(--lantern); }
.workflow-num { position: absolute; bottom: -8px; right: -8px; display: flex; height: 24px; width: 24px; align-items: center; justify-content: center; border-radius: 999px; background: var(--wildflower); font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #fff; }
.workflow-step h3 { font-family: var(--font-serif); font-weight: 600; color: #f1f5f9; margin: 0; }
.workflow-step p { max-width: 180px; font-size: 14px; line-height: 1.6; color: #94a3b8; margin: 0; }
.workflow-connector { display: flex; justify-content: center; margin: 32px 0; }

/* ===== Projects ===== */
.project-card { border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.project-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(15,61,74,.4); flex-shrink: 0; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-thumb-fallback { display: flex; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--teal), var(--midnight), var(--forest)); font-family: var(--font-mono); font-size: 28px; color: rgba(255,167,38,.7); }
.project-link-btn { position: absolute; right: 12px; top: 12px; display: flex; height: 36px; width: 36px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,167,38,.6); background: rgba(6,18,32,.8); color: var(--lantern); }
.project-info { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; background: #000000; }
.project-info .tag { width: fit-content; border-radius: 999px; border: 1px solid rgba(43,108,163,.5); padding: 2px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--twilight); }
.project-info .desc { font-size: 12px; line-height: 1.6; color: #cbd5e1; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-info .tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.project-info .tech span {
  border-radius: 999px; padding: 5px 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #dcdcdc 100%);
  color: #0a0a0a;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 -3px 4px rgba(0,0,0,.15),
    0 3px 6px rgba(0,0,0,.5);
}
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,167,38,.15); padding: 14px 16px; }
.project-footer h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: #f1f5f9; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-footer .domain { font-family: var(--font-mono); font-size: 11px; color: #64748b; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-footer .arrow { flex-shrink: 0; display: flex; height: 28px; width: 28px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,167,38,.15); color: var(--lantern); }
.project-footer .arrow i { width: 14px; height: 14px; }

/* ===== High-demand website samples ===== */
.demand-card { border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.demand-thumb { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.demand-emoji { font-size: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.demand-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.demand-watermark { position: absolute; right: 10px; bottom: 8px; width: 46px; height: auto; opacity: .75; z-index: 2; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.demand-footer { border-top: 1px solid rgba(255,167,38,.15); padding: 14px 16px; }
.demand-footer h3 { font-family: var(--font-serif); font-size: 14px; font-weight: 600; color: #f1f5f9; margin: 0; line-height: 1.4; }

/* ===== Contact ===== */
.info-card { display: flex; flex-direction: column; align-items: center; gap: 10px; border-radius: 16px; padding: 28px 20px; text-align: center; }
.info-card .ic { display: flex; height: 48px; width: 48px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--lantern), var(--wildflower)); color: var(--midnight); }
.info-card .ic i { width: 20px; height: 20px; }
.info-card .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #64748b; }
.info-card .val { font-weight: 500; color: #f1f5f9; }

.contact-form { border-radius: 16px; padding: 24px; }
@media (min-width: 640px) { .contact-form { padding: 32px; } }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-top: 20px; }
.field:first-child { margin-top: 0; }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 12px; color: #94a3b8; }
.field input, .field textarea {
  width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  padding: 12px 16px; font-size: 14px; color: #f1f5f9; font-family: var(--font-sans); outline: none; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #64748b; }
.field input:focus, .field textarea:focus { border-color: rgba(255,167,38,.6); background: rgba(255,255,255,.07); }
.form-submit { margin-top: 24px; width: 100%; justify-content: center; }
@media (min-width: 640px) { .form-submit { width: auto; } }
.form-msg { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.form-msg.success { color: var(--moss); }
.form-msg.error { color: var(--wildflower); }
.form-msg i { width: 16px; height: 16px; }

.social-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.social-list a { display: flex; height: 44px; width: 44px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,167,38,.3); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.social-list a i { width: 18px; height: 18px; }

/* ===== Social icons ===== */
.social-3d-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.social-3d {
  position: relative; display: flex; height: 48px; width: 48px; align-items: center; justify-content: center;
  border-radius: 12px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--lantern), var(--wildflower));
  transition: transform .25s ease, box-shadow .25s ease;
}
.social-3d i, .social-3d svg { position: relative; z-index: 1; width: 20px; height: 20px; transform: translateY(2px); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.2); margin-top: auto; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; padding: 40px 24px; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-logo { font-family: var(--font-mono); font-size: 18px; font-weight: 700; margin: 0; }
.footer-tag { margin: 4px 0 0; font-size: 14px; color: #64748b; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--font-mono); font-size: 14px; color: #94a3b8; }
.footer-nav a:hover { color: var(--lantern); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,.05); padding: 20px 24px; font-size: 12px; color: #64748b; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: var(--lantern); }

/* ===== Reveal (animation removed — content shows immediately) ===== */
.reveal { opacity: 1; transform: none; }

/* ===== Page hero (inner pages) ===== */
.page-hero { position: relative; padding: 150px 0 64px; text-align: center; }
.page-hero .container { max-width: 720px; }
.page-hero h1 { font-size: 40px; font-weight: 700; color: #f8fafc; margin: 20px 0; }
.page-hero p { font-size: 17px; line-height: 1.7; color: #94a3b8; }

.cta-panel { border-radius: 24px; padding: 56px 32px; text-align: center; max-width: 768px; margin: 0 auto; animation: glow 3s ease-in-out infinite; }
@media (min-width: 640px) { .cta-panel { padding: 56px 64px; } }
.cta-panel i.rocket { width: 36px; height: 36px; color: var(--lantern); }
.cta-panel h2 { font-size: 30px; font-weight: 700; color: #f8fafc; margin: 20px 0 16px; }
.cta-panel p { max-width: 560px; margin: 0 auto; color: #94a3b8; }
.cta-panel .btn { margin-top: 32px; }
@keyframes glow { 0%,100% { box-shadow: 0 0 18px rgba(255,167,38,.25), 0 0 40px rgba(177,30,94,.12); } 50% { box-shadow: 0 0 32px rgba(255,167,38,.5), 0 0 70px rgba(177,30,94,.28); } }

.narrow { max-width: 896px; margin: 0 auto; }

/* ===== Legal pages (privacy / terms) ===== */
.legal-content { border-radius: 20px; padding: 32px; }
@media (min-width: 640px) { .legal-content { padding: 48px; } }
.legal-content h2 { font-family: var(--font-serif); font-size: 20px; color: var(--lantern); margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 14px; line-height: 1.8; color: #cbd5e1; margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; }
.legal-content li { font-size: 14px; line-height: 1.8; color: #cbd5e1; margin-bottom: 6px; }
.legal-content strong { color: #f1f5f9; }
.legal-content a { color: var(--twilight); text-decoration: underline; }
.legal-updated { font-family: var(--font-mono); font-size: 12px; color: #64748b; margin-bottom: 24px; }

/* ===== Philosophy strip (about) ===== */
.philosophy-grid { display: grid; gap: 32px; padding: 32px; border-radius: 24px; }
@media (min-width: 640px) { .philosophy-grid { grid-template-columns: repeat(3, 1fr); padding: 48px; } }
.philosophy-grid .num { font-family: var(--font-mono); font-size: 30px; font-weight: 700; }
.philosophy-grid h3 { margin: 8px 0; color: #f1f5f9; }
.philosophy-grid p { margin: 0; font-size: 14px; color: #94a3b8; }

/* ===== What I Do checklist (about) ===== */
.checklist-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 16px 32px; border-radius: 24px; padding: 32px; }
@media (min-width: 640px) { .checklist-grid { grid-template-columns: repeat(2, 1fr); padding: 40px; } }
.check-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e2e8f0; }
.check-item .ck { display: flex; height: 26px; width: 26px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(135deg, var(--lantern), var(--wildflower)); color: var(--midnight); }
.check-item .ck i { width: 15px; height: 15px; stroke-width: 3; }

/* ===== Mission & Vision (about) ===== */
.mission-vision-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .mission-vision-grid { grid-template-columns: repeat(2, 1fr); } }
.mv-card { border-radius: 20px; padding: 32px; }
.mv-icon { display: flex; height: 48px; width: 48px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--twilight), var(--wildflower)); color: #fff; margin-bottom: 16px; }
.mv-icon i { width: 22px; height: 22px; }
.mv-card h3 { font-family: var(--font-serif); font-size: 20px; color: var(--lantern); margin: 0 0 12px; }
.mv-card p { margin: 0; font-size: 14px; line-height: 1.7; color: #94a3b8; }

/* ===== About hero ===== */
.about-hero { position: relative; padding: 50px 0 64px; overflow: hidden; }
.about-hero-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .about-hero-grid { grid-template-columns: .85fr 1.15fr; } }
.about-hero h1 { font-size: 40px; font-weight: 700; color: #f8fafc; margin: 20px 0 4px; }
.about-hero .credential { font-family: var(--font-mono); font-size: 13px; color: var(--lantern); margin: 0 0 8px; }
.about-hero .role { font-family: var(--font-mono); font-size: 17px; color: var(--twilight); margin: 0; }
.about-hero p.bio { max-width: 560px; margin-top: 18px; color: #94a3b8; line-height: 1.7; }
.fact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.fact-list div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #cbd5e1; }
.fact-list .fi { display: flex; height: 32px; width: 32px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--lantern); }
.fact-list .fi i { width: 16px; height: 16px; }

@media (max-width: 639px) {
  .hero h1, .about-hero h1, .page-hero h1 { font-size: 32px; }
  section { padding: 56px 0; }
  .folder-tab.active .folder-tab-body { width: 120px; }
  .portrait-wrap { width: calc(100% - 110px); margin: 0 110px 0 0; }
}
