/* =========================================================
   Portfolio — Vincencius Ferly Cristiawan
   Tema: Blueprint / Spec-sheet
   ========================================================= */

:root{
  --bg:#0A1A2F;
  --bg-alt:#0F2545;
  --grid-line:rgba(125,211,252,0.09);
  --grid-line-strong:rgba(125,211,252,0.18);
  --ink:#EAF1FB;
  --muted:#87A0C4;
  --accent:#FF6B4A;
  --cyan:#7DD3FC;
  --sheet:#0D2038;
  --sheet-border:rgba(125,211,252,0.22);
  --radius:2px;
}
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:'Inter', sans-serif;
    line-height:1.6;
    overflow-x:hidden;
  }
  ::selection{ background:var(--accent); color:#0A1A2F; }

  /* blueprint grid backdrop */
  .grid-bg{
    position:fixed; inset:0; z-index:0; pointer-events:none;
    background-image:
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size:44px 44px;
    mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
  }

  .mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.02em; }
  .display{ font-family:'Space Grotesk', sans-serif; }

  a{ color:inherit; text-decoration:none; }

  .wrap{
    max-width:1080px;
    margin:0 auto;
    padding:0 32px;
    position:relative;
    z-index:1;
  }

  /* ---------- Nav / title block ---------- */
  header.titleblock{
    border-bottom:1px solid var(--sheet-border);
    position:sticky; top:0;
    background:rgba(10,26,47,0.86);
    backdrop-filter:blur(10px);
    z-index:10;
  }
  .titleblock-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 32px;
    max-width:1080px; margin:0 auto;
  }
  .tb-name{ font-size:14px; letter-spacing:0.08em; color:var(--ink); }
  .tb-nav{ display:flex; gap:28px; }
  .tb-nav a{
    font-size:12px; letter-spacing:0.08em; color:var(--muted);
    transition:color .2s ease;
  }
  .tb-nav a:hover{ color:var(--cyan); }
  .tb-index{ color:var(--accent); }

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    padding:120px 0 96px;
    border-bottom:1px solid var(--sheet-border);
  }
  .coord{
    position:absolute; top:24px; right:32px;
    font-size:11px; color:var(--muted); opacity:.7;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:10px;
    font-size:12px; color:var(--accent);
    margin-bottom:28px;
  }
  .eyebrow::before{
    content:""; width:22px; height:1px; background:var(--accent);
  }
  h1.name{
    font-size:clamp(40px, 7vw, 84px);
    font-weight:600;
    line-height:1.02;
    letter-spacing:-0.01em;
    max-width:900px;
  }
  .role{
    margin-top:20px;
    font-size:clamp(16px,2.4vw,22px);
    color:var(--cyan);
    font-family:'Space Grotesk', sans-serif;
    font-weight:500;
  }
  .hero-desc{
    margin-top:28px;
    max-width:560px;
    color:var(--muted);
    font-size:16px;
  }
  .hero-actions{
    display:flex; flex-wrap:wrap; gap:14px;
    margin-top:40px;
  }
  .btn{
    padding:13px 22px;
    font-size:13px;
    border:1px solid var(--sheet-border);
    transition:all .2s ease;
    display:inline-flex; align-items:center; gap:8px;
  }
  .btn-solid{
    background:var(--accent);
    color:#0A1A2F;
    border-color:var(--accent);
    font-weight:600;
  }
  .btn-solid:hover{ background:#ff7f60; }
  .btn-ghost{ color:var(--ink); }
  .btn-ghost:hover{ border-color:var(--cyan); color:var(--cyan); }

  /* dimension line divider with label */
  .dim{
    display:flex; align-items:center; gap:14px;
    margin:0 0 6px;
    color:var(--muted);
    font-size:11px;
  }
  .dim::before, .dim::after{
    content:""; height:1px; background:var(--sheet-border); flex:1;
  }
  .dim-tick{ position:relative; }

  /* ---------- section shared ---------- */
  section{ padding:96px 0; border-bottom:1px solid var(--sheet-border); position:relative; }
  .section-head{ margin-bottom:56px; }
  .section-title{
    font-size:clamp(28px,4vw,40px);
    font-weight:600;
  }
  .section-sub{ color:var(--muted); margin-top:12px; max-width:540px; font-size:15px; }

  /* ---------- Hero: layout dua kolom ---------- */
  .hero-grid{
    display:grid;
    grid-template-columns:1.15fr 0.85fr;
    gap:56px;
    align-items:center;
  }
  .badge-pill{
    display:inline-flex; align-items:center; gap:9px;
    padding:8px 16px;
    border:1px solid var(--sheet-border);
    border-radius:999px;
    background:rgba(125,211,252,0.05);
    font-size:11.5px;
    color:var(--cyan);
    margin-bottom:26px;
  }
  .badge-pill .dot{
    width:6px; height:6px; border-radius:50%;
    background:var(--accent);
    flex-shrink:0;
  }
  .name-accent{ color:var(--cyan); }
  .social-row{ display:flex; gap:12px; margin-top:32px; }
  .social-btn{
    width:38px; height:38px;
    border:1px solid var(--sheet-border);
    border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    color:var(--muted);
    transition:border-color .2s ease, color .2s ease;
  }
  .social-btn svg{ width:16px; height:16px; }
  .social-btn:hover{ border-color:var(--cyan); color:var(--cyan); }

  .hero-photo-card{
    position:relative;
    aspect-ratio:3/4;
    max-width:320px;
    margin-left:auto;
    border:1px solid var(--sheet-border);
    border-radius:18px;
    overflow:hidden;
    background:linear-gradient(165deg,#0D2038,#081627);
    box-shadow:0 0 70px rgba(125,211,252,0.07);
  }
  .hero-photo-card img{
    width:100%; height:100%;
    object-fit:cover;
    display:block;
  }
  .hero-photo-placeholder{
    position:absolute; inset:0;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:12px;
    color:var(--muted);
  }
  .hero-photo-placeholder svg{ width:42px; height:42px; opacity:.35; }
  .hero-photo-placeholder span{ font-size:11px; letter-spacing:0.04em; }

  @media (max-width:820px){
    .hero-grid{ grid-template-columns:1fr; }
    .hero-photo-card{ margin:0; max-width:260px; }
  }

  /* ---------- About v2: kartu kiri + fitur kanan ---------- */
  .about-grid-v2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:28px;
    align-items:stretch;
  }
  .about-main-card{
    border:1px solid var(--sheet-border);
    background:var(--sheet);
    padding:36px;
    display:flex; flex-direction:column; justify-content:center; gap:18px;
  }
  .about-tag{
    display:inline-flex; align-items:center; gap:8px;
    font-size:12px; color:var(--cyan);
  }
  .about-tag .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); }
  .about-main-card h3{
    font-size:23px; line-height:1.3;
    font-family:'Space Grotesk',sans-serif; font-weight:600;
  }
  .about-main-card p{ color:var(--muted); font-size:14.5px; }

  .feature-list{ display:flex; flex-direction:column; gap:14px; }
  .feature-card{
    border:1px solid var(--sheet-border);
    background:var(--sheet);
    padding:20px;
    display:flex; gap:14px; align-items:flex-start;
    transition:border-color .2s ease;
  }
  .feature-card:hover{ border-color:var(--cyan); }
  .feature-icon{
    width:38px; height:38px; flex-shrink:0;
    border:1px solid var(--sheet-border);
    border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    color:var(--cyan);
  }
  .feature-icon svg{ width:18px; height:18px; }
  .feature-card h4{ font-size:14px; font-weight:600; margin-bottom:4px; }
  .feature-card p{ font-size:13px; color:var(--muted); }

  @media (max-width:820px){
    .about-grid-v2{ grid-template-columns:1fr; }
  }

  /* ---------- About (lama, disimpan agar tidak error jika masih dirujuk) ---------- */
  .about-grid{
    display:grid; grid-template-columns:1fr 1fr; gap:60px;
  }
  .about-body p{ color:var(--muted); font-size:16px; margin-bottom:16px; }
  .about-body strong{ color:var(--ink); font-weight:600; }
  .stat-sheet{
    border:1px solid var(--sheet-border);
    background:var(--sheet);
    padding:28px;
  }
  .stat-row{
    display:flex; justify-content:space-between; align-items:baseline;
    padding:14px 0;
    border-bottom:1px dashed var(--sheet-border);
    font-size:14px;
  }
  .stat-row:last-child{ border-bottom:none; }
  .stat-label{ color:var(--muted); }
  .stat-value{ color:var(--cyan); }

  /* ---------- Work / project cards ---------- */
  .work-list{ display:flex; flex-direction:column; gap:2px; }
  .frame{
    position:relative;
    border:1px solid var(--sheet-border);
    background:var(--sheet);
    padding:40px;
    display:grid;
    grid-template-columns:220px 1fr;
    gap:36px;
    margin-bottom:24px;
    transition:border-color .25s ease, transform .25s ease;
  }
  .frame:hover{ border-color:var(--cyan); transform:translateY(-2px); }
  .frame-corner{
    position:absolute; width:14px; height:14px;
    border:0 solid var(--accent);
    opacity:0; transition:opacity .25s ease;
  }
  .frame:hover .frame-corner{ opacity:1; }
  .fc-tl{ top:-1px; left:-1px; border-top-width:2px; border-left-width:2px; }
  .fc-tr{ top:-1px; right:-1px; border-top-width:2px; border-right-width:2px; }
  .fc-bl{ bottom:-1px; left:-1px; border-bottom-width:2px; border-left-width:2px; }
  .fc-br{ bottom:-1px; right:-1px; border-bottom-width:2px; border-right-width:2px; }

  .mock{
    aspect-ratio:9/16;
    max-height:280px;
    background:linear-gradient(180deg, #0B2038, #081627);
    border:1px solid var(--sheet-border);
    position:relative;
    overflow:hidden;
    justify-self:start;
  }
  .mock .bar{ height:34px; border-bottom:1px solid var(--grid-line-strong); display:flex; align-items:center; padding:0 10px; gap:5px;}
  .mock .dot{ width:5px; height:5px; border-radius:50%; background:var(--muted); opacity:.5; }
  .mock .body{ padding:12px; display:flex; flex-direction:column; gap:8px; }
  .mock .block{ background:var(--grid-line-strong); border-radius:2px; }
  .mock .row{ display:flex; gap:8px; }
  .mock.mock-wide{ aspect-ratio:16/9; max-height:none; width:100%; }
  .mock-img{
    width:100%; height:100%;
    object-fit:cover;
    object-position:top;
    display:block;
  }

  /* ---------- Phone-trio mockup (khusus proyek mobile) ---------- */
  .frame-mobile{ grid-template-columns:266px 1fr; }
  .frame-web{ grid-template-columns:1fr; }
  .frame-web .mock-wide{ margin-bottom:8px; }
  .phone-trio{
    display:flex; gap:10px;
    justify-self:start;
  }
  .phone-unit{ display:flex; flex-direction:column; align-items:center; gap:8px; }
  .phone-shell{
    width:74px;
    aspect-ratio:9/19.5;
    background:linear-gradient(180deg, #0B2038, #081627);
    border:1.5px solid var(--sheet-border);
    border-radius:13px;
    position:relative;
    overflow:hidden;
  }
  .phone-shell::before{
    content:"";
    position:absolute; top:7px; left:50%; transform:translateX(-50%);
    width:22px; height:4px; border-radius:2px;
    background:var(--grid-line-strong);
  }
  .phone-screen{
    position:absolute; inset:4px; top:16px;
    border:1px dashed var(--sheet-border);
    border-radius:7px;
    display:flex; align-items:center; justify-content:center;
  }
  .phone-screen svg{ width:15px; height:15px; opacity:.4; }
  /* Kalau sudah punya screenshot: hapus .phone-screen lalu pasang
     <img class="phone-img" src="nama-file.png"> langsung di dalam .phone-shell */
  .phone-img{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
    border-radius:13px;
  }
  .phone-label{ font-size:10px; color:var(--muted); letter-spacing:0.04em; }

  /* Versi 1 layar saja (bukan trio), dibesarkan supaya tidak kosong sebelah */
  .phone-solo{ justify-content:center; align-items:center; height:100%; }
  .phone-solo .phone-shell{ width:130px; }
  .phone-solo .phone-shell::before{ width:30px; }

  @media (max-width:720px){
    .frame-mobile{ grid-template-columns:1fr; }
    .phone-trio{ justify-content:flex-start; }
  }

  .frame-content{ display:flex; flex-direction:column; }
  .frame-index{ font-size:11px; color:var(--accent); margin-bottom:10px; }
  .frame-title{ font-size:22px; font-weight:600; font-family:'Space Grotesk',sans-serif; }
  .frame-role{ color:var(--cyan); font-size:13px; margin-top:6px; }
  .frame-desc{ color:var(--muted); font-size:14.5px; margin-top:16px; max-width:520px; }
  .chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
  .chip{
    font-size:11px; padding:5px 10px;
    border:1px solid var(--sheet-border);
    color:var(--muted);
  }
  .frame-links{ margin-top:22px; display:flex; gap:18px; }
  .frame-links a{ font-size:12px; color:var(--ink); border-bottom:1px solid var(--accent); padding-bottom:2px; }
  .frame-links a:hover{ color:var(--accent); }

  @media (max-width:720px){
    .frame{ grid-template-columns:1fr; }
    .mock{ max-height:200px; }
    .about-grid{ grid-template-columns:1fr; }
  }

  /* ---------- Skills ---------- */
  .skill-groups{ display:grid; grid-template-columns:repeat(2,1fr); gap:32px; }
  .skill-group-title{ font-size:12px; color:var(--accent); margin-bottom:14px; }
  .skill-chips{ display:flex; flex-wrap:wrap; gap:10px; }
  .skill-chip{
    font-size:13px; padding:8px 14px;
    border:1px solid var(--sheet-border);
    color:var(--ink);
    transition:border-color .2s ease, color .2s ease;
  }
  .skill-chip:hover{ border-color:var(--cyan); color:var(--cyan); }
  @media (max-width:720px){ .skill-groups{ grid-template-columns:1fr; } }

  /* ---------- Contact / footer ---------- */
  footer{ padding:96px 0 60px; }
  .contact-title{
    font-size:clamp(32px,6vw,60px);
    font-weight:600;
    max-width:640px;
  }
  .contact-sub{ color:var(--muted); margin-top:18px; max-width:480px; }
  .contact-links{ margin-top:44px; display:flex; flex-wrap:wrap; gap:16px; }
  .footer-meta{
    margin-top:80px; padding-top:24px;
    border-top:1px solid var(--sheet-border);
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
    font-size:12px; color:var(--muted);
  }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *{ transition:none !important; }
  }
