/* =========================================================================
   KV Digital — shared dark theme
   Modern, dark, glassy. Per-app accents are set via [data-accent] on <body>.
   ========================================================================= */

:root {
  /* Base dark palette */
  --bg:            #0a0e1a;
  --bg-2:          #0f1525;
  --surface:       #141b2e;
  --surface-2:     #1b2440;
  --surface-glass: rgba(27, 36, 64, 0.55);
  --border:        rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text:          #eef2ff;
  --text-muted:    #9aa6c4;
  --text-dim:      #6b7793;

  /* Brand accent (portfolio default = indigo/violet) */
  --accent:        #7c8bff;
  --accent-2:      #a855f7;
  --accent-soft:   rgba(124, 139, 255, 0.14);
  --accent-glow:   rgba(124, 139, 255, 0.35);

  --radius:        20px;
  --radius-sm:     12px;
  --shadow:        0 1px 2px rgba(0,0,0,.4), 0 24px 60px -24px rgba(0,0,0,.65);
  --shadow-accent: 0 18px 50px -18px var(--accent-glow);

  --maxw:          1120px;
  --font:          "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Per-app accent themes ---- */
body[data-accent="subio"] {
  --accent:      #818cf8;
  --accent-2:    #34d399;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --accent-glow: rgba(99, 102, 241, 0.40);
}
body[data-accent="plantask"] {
  --accent:      #38bdf8;
  --accent-2:    #818cf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-glow: rgba(56, 189, 248, 0.38);
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(124,139,255,.12), transparent 60%),
    radial-gradient(800px 600px at 8% 0%, rgba(168,85,247,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.muted { color: var(--text-muted); }

/* =========================================================================
   Navbar
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 32px; height: 32px; }
.brand .logo-text b { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0a0e1a !important; font-weight: 700;
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; }
.btn svg.gp-ico { width: 17px; height: 19px; }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0a0e1a; box-shadow: var(--shadow-accent);
}
.btn-ghost {
  background: var(--surface-glass);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

/* =========================================================================
   Hero (home)
   ========================================================================= */
.hero { padding: 92px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 6vw, 62px); font-weight: 800; margin: 0 0 20px;
}
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); max-width: 540px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge b { font-size: 26px; font-weight: 800; }
.hero-badge span { font-size: 13px; color: var(--text-dim); }

/* Floating phone cluster in hero */
.hero-art { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero-art .blob {
  position: absolute; inset: 0; margin: auto; width: 360px; height: 360px;
  background: radial-gradient(circle at 50% 40%, var(--accent-glow), transparent 70%);
  filter: blur(20px); border-radius: 50%;
}
.hero-art .phone-float { position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }

/* =========================================================================
   App cards (home grid)
   ========================================================================= */
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
.app-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.app-card::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)), transparent);
  opacity: .8;
}
.app-card[data-app="subio"]    { --card-accent: #818cf8; }
.app-card[data-app="plantask"] { --card-accent: #38bdf8; }
.app-card .app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-card .app-icon { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.app-card h3 { font-size: 23px; margin: 0; }
.app-card .app-tag { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.app-card p { color: var(--text-muted); font-size: 15.5px; margin: 0 0 22px; }
.app-card .features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.app-card .features li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text-muted); }
.app-card .features li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 3px;
  background: var(--card-accent, var(--accent));
}
.app-card .card-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--card-accent, var(--accent)); }
.link-arrow:hover { text-decoration: none; gap: 11px; }

/* =========================================================================
   Generic section pieces
   ========================================================================= */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 8px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 26px; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; }
.feature p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* =========================================================================
   Screenshot gallery — every shot renders at one uniform phone size
   regardless of the source image dimensions (object-fit handles it).
   ========================================================================= */
.shots { margin-top: 52px; }
.shots-rail {
  display: flex; gap: 24px; overflow-x: auto; padding: 8px 4px 28px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shots-rail::-webkit-scrollbar { height: 8px; }
.shots-rail::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }

.phone {
  flex: none; scroll-snap-align: center;
  width: 248px;                 /* uniform width  */
  aspect-ratio: 9 / 19.5;       /* uniform phone aspect ratio */
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3450, #161d31);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  position: relative;
  cursor: zoom-in;
  transition: transform .2s ease;
}
.phone:hover { transform: translateY(-6px); }
.phone::before { /* notch */
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 6px; border-radius: 999px; background: rgba(0,0,0,.55); z-index: 2;
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 22px; overflow: hidden;
  background: var(--surface-2);
}
.phone .screen img {
  width: 100%; height: 100%;
  object-fit: cover;            /* uniform size — fills the frame, crops overflow */
  object-position: top center;
  display: block;
}
/* Placeholder shown until real screenshots are dropped in */
.phone .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(148,163,184,.05) 0 12px, transparent 12px 24px),
    var(--surface-2);
  color: var(--text-dim); font-size: 12.5px; font-weight: 600; padding: 16px;
}
.shots-hint { text-align: center; color: var(--text-dim); font-size: 13.5px; margin-top: 4px; }

/* =========================================================================
   Lightbox
   ========================================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 8, 16, .9); backdrop-filter: blur(6px); padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 420px); max-height: 88vh; border-radius: 24px; border: 1px solid var(--border-strong); }
.lightbox .close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.contact-info p { color: var(--text-muted); font-size: 16.5px; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points .ic { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-points .ic svg { width: 21px; height: 21px; }
.contact-points b { display: block; font-size: 15px; }
.contact-points span { color: var(--text-muted); font-size: 14px; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text);
  font-family: inherit; font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 600; min-height: 20px; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #f87171; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* =========================================================================
   App landing hero
   ========================================================================= */
.app-hero { padding: 84px 0 56px; }
.app-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-hero .app-icon-lg { width: 84px; height: 84px; margin-bottom: 22px; filter: drop-shadow(0 12px 28px rgba(0,0,0,.5)); }
.app-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 18px; }
.app-hero p.lead { font-size: 18px; color: var(--text-muted); max-width: 520px; margin: 0 0 30px; }
.store-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-weight: 600; font-size: 14px; margin-bottom: 26px; }
.back-link:hover { color: var(--text); text-decoration: none; }

/* =========================================================================
   Privacy policy
   ========================================================================= */
.policy { max-width: 820px; margin: 0 auto; padding: 60px 0 40px; }
.policy .updated {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.policy h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 14px; }
.policy h2 { font-size: 22px; margin: 40px 0 12px; }
.policy h2 .num { color: var(--accent); font-weight: 800; margin-right: 10px; }
.policy h3 { font-size: 16.5px; margin: 22px 0 6px; }
.policy p, .policy li { color: var(--text-muted); font-size: 15.5px; }
.policy ul { list-style: none; padding-left: 2px; }
.policy ul li { position: relative; padding-left: 24px; margin: 9px 0; }
.policy ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-2); }
.policy code { background: var(--surface-2); color: var(--accent); padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.callout {
  margin: 18px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2); border-radius: 14px; font-size: 14.5px; color: var(--text-muted);
}
.callout strong { color: var(--text); }
.policy .divider { height: 1px; background: var(--border); border: 0; margin: 30px 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { border-top: 1px solid var(--border); padding: 52px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer .brand { margin-bottom: 12px; }
.footer p { color: var(--text-dim); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14.5px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: 13.5px; }

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero-grid, .app-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 340px; order: -1; }
  /* App pages already show the icon inline with the text — the floating
     duplicate just pushes content down once the grid stacks. */
  .app-hero .hero-art { display: none; }
  .apps-grid, .feature-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Tighter hero: keep the floating logo but stop it eating half the screen */
  .hero { padding: 56px 0 48px; }
  .hero-art { min-height: 220px; }
  .hero-art .blob { width: 220px; height: 220px; }
  .hero-art .phone-float { width: 120px; height: 120px; }

  /* 16px stops iOS Safari from auto-zooming into focused fields */
  .field input, .field textarea { font-size: 16px; }

  .lightbox { padding: 14px; }
  .lightbox .close { top: 10px; right: 12px; padding: 12px; }
}

/* =========================================================================
   Reduced motion — skip decorative animation entirely
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .phone-float { animation: none; }
  .btn:hover, .nav-cta:hover, .app-card:hover, .project-card:hover,
  .feature:hover, .phone:hover { transform: none; }
}

/* =========================================================================
   Active nav link
   ========================================================================= */
.nav-links a.active { color: var(--text); }
.nav-links a.active:not(.nav-cta) { position: relative; }
.nav-links a.active:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px;
}

/* =========================================================================
   Inner page hero
   ========================================================================= */
.page-hero { padding: 76px 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 16px; }
.page-hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p.lead { color: var(--text-muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* =========================================================================
   Projects (showcase) page
   ========================================================================= */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
.project-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)), transparent);
}
.project-card[data-app="subio"]    { --card-accent: #818cf8; }
.project-card[data-app="plantask"] { --card-accent: #38bdf8; }
.project-card .p-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.project-card .app-icon { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.project-card h3 { font-size: 24px; margin: 0; }
.project-card .p-tag { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.project-card > p { color: var(--text-muted); font-size: 15.5px; margin: 0 0 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { font-size: 12.5px; font-weight: 600; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.project-card .p-actions { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* =========================================================================
   About page
   ========================================================================= */
.about-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: center; margin-top: 28px; }
.about-portrait { display: grid; place-items: center; }
.avatar-card {
  width: 260px; height: 320px; border-radius: 26px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong); display: grid; place-items: center; box-shadow: var(--shadow);
}
.avatar-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 10%, var(--accent-glow), transparent 60%); opacity: .5; }
.avatar-card .mono { width: 128px; height: 128px; position: relative; z-index: 1; filter: drop-shadow(0 12px 28px rgba(0,0,0,.45)); }
.about-intro h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 18px; }
.about-intro p { color: var(--text-muted); font-size: 16.5px; margin: 0 0 14px; }
.about-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.skills { margin-top: 72px; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.skill-cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 24px; transition: border-color .2s ease; }
.skill-cat:hover { border-color: var(--border-strong); }
.skill-cat h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); margin: 0 0 14px; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip { font-size: 13.5px; font-weight: 600; color: var(--text); background: var(--accent-soft); border: 1px solid var(--border-strong); padding: 7px 13px; border-radius: 999px; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { text-align: center; }
.cta-band .inner {
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 56px 32px;
  position: relative; overflow: hidden;
}
.cta-band .inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 0%, var(--accent-glow), transparent 60%); opacity: .35; }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; position: relative; }
.cta-band p { color: var(--text-muted); font-size: 17px; margin: 0 0 26px; position: relative; }
.cta-band .actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; text-align: center; }
  .about-portrait { order: -1; }
  .about-tags { justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Real app icons (PNG) — rounded, with depth
   ========================================================================= */
img.app-icon, img.app-icon-lg {
  border-radius: 24%;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05) inset;
  object-fit: cover;
}
img.app-icon-lg { border-radius: 26%; }

/* =========================================================================
   Project showcase rows (Projects page)
   ========================================================================= */
.showcase { display: grid; gap: 72px; margin-top: 8px; }
.showcase-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-shots { order: 1; }
.showcase-text .p-head { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.showcase-text .p-head .app-icon { width: 50px; height: 50px; flex: none; }
.showcase-text h2 { font-size: clamp(26px, 4vw, 36px); margin: 0; }
.showcase-text .p-tag { font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.showcase-text > p { color: var(--text-muted); font-size: 16px; margin: 0 0 20px; }
.showcase-text .p-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 24px; }

.showcase-shots {
  display: flex; justify-content: center; align-items: flex-start; gap: 18px;
  padding: 8px; position: relative;
}
.showcase-shots::before {
  content: ""; position: absolute; inset: 6% 8%; border-radius: 40px; z-index: 0;
  background: radial-gradient(60% 60% at 50% 30%, var(--accent-glow), transparent 70%);
  filter: blur(28px); opacity: .55;
}
.showcase-shots .phone { position: relative; z-index: 1; width: 214px; }
.showcase-shots .phone:nth-child(2) { transform: translateY(26px); }
.showcase-shots .phone:hover { transform: translateY(-4px); }
.showcase-shots .phone:nth-child(2):hover { transform: translateY(20px); }

/* smaller phone variant for in-card use */
.phone.sm { width: 200px; border-radius: 26px; }
.phone.sm::before { width: 70px; }

/* screenshot preview on home project cards */
.card-shot {
  display: flex; gap: 14px; justify-content: center; margin: 4px 0 24px;
  padding: 24px 10px 0; position: relative; overflow: hidden; border-radius: 16px;
  height: 224px;
  background: radial-gradient(80% 90% at 50% 0%, var(--accent-soft), transparent 70%);
  transition: background .2s ease;
}
.card-shot:hover { background: radial-gradient(80% 90% at 50% 0%, var(--accent-soft), transparent 60%); }
.card-shot .phone { width: 150px; border-radius: 22px; }
.card-shot .phone::before { width: 54px; height: 5px; top: 11px; }
.card-shot .phone:nth-child(2) { transform: translateY(18px); }

@media (max-width: 900px) {
  .showcase-row { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .showcase-row.reverse .showcase-text { order: 1; }
  .showcase-row.reverse .showcase-shots { order: 2; }
  .showcase-text .p-head { justify-content: center; }
  .showcase-text .p-actions { justify-content: center; }
}

/* Phone mockups must fit two-up inside a narrow viewport.
   (Kept after the base .phone width rules so these win on mobile.) */
@media (max-width: 560px) {
  .showcase-shots { gap: 12px; }
  .showcase-shots .phone { width: clamp(128px, 42vw, 214px); }
  .card-shot { gap: 10px; }
  .card-shot .phone { width: clamp(110px, 34vw, 150px); }
}
