/* Portfolio — Blaugrana Editorial (versi simpel) */

:root{
  --navy: #0B132B;
  --navy-card: rgba(22, 32, 63, 0.55);
  --crimson: #A50044;
  --crimson-soft: #6d0432;
  --gold: #EDBB00;
  --ink: #F4F1E8;
  --ink-muted: #A8AEC2;
  --line: rgba(244, 241, 232, 0.12);
  --font: 'Plus Jakarta Sans', sans-serif;
  --container: 1100px;
  --radius: 10px;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(160deg, var(--navy) 0%, #0d1638 45%, var(--crimson-soft) 130%);
  background-attachment: fixed;
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-weight: 800; margin: 0 0 10px; }
p{ margin: 0; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

a:focus-visible, label:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

/* Nav */
.nav{ position: sticky; top: 0; z-index: 50; background: rgba(11,19,43,0.75); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner{ display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: var(--container); margin: 0 auto; }
.logo{ font-weight: 700; font-size: 1.1rem; }
.logo span{ color: var(--gold); }
.nav-menu{ display: flex; gap: 32px; }
.nav-menu a{ font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-muted); }
.nav-menu a:hover, .nav-menu a.active{ color: var(--ink); }

.nav-toggle{ display: none; }
.hamburger{ display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span{ width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu{ max-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0 24px; transition: max-height 0.3s ease; }
.mobile-menu a{ padding: 12px 0; font-weight: 600; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.nav-toggle:checked ~ .mobile-menu{ max-height: 260px; padding: 10px 24px 20px; }
@media (max-width: 860px){ .nav-menu{ display: none; } .hamburger{ display: flex; } }

/* Hero */
.hero{ padding: 60px 0 30px; }
.hero-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.hero-left{ display: flex; gap: 18px; }
.hero-line{ width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--crimson)); align-self: stretch; min-height: 160px; }
.eyebrow-role{ color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.hero-name{ font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; }
.hero-desc{ color: var(--ink-muted); max-width: 34ch; margin: 14px 0 24px; }
.btn-outline{ display: inline-block; border: 1px solid var(--ink); padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; }
.btn-outline:hover{ border-color: var(--gold); background: var(--gold); color: var(--navy); }
.portrait-frame{
    width: min(320px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(237,187,0,0.15), rgba(165,0,68,0.35)), #1a2550;
    border: 2px solid rgba(237,187,0,0.25);
    overflow: hidden;
    margin-left: auto;
}

.portrait-frame img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transform: scale(1.15);
}
@media (max-width: 800px){ .hero-grid{ grid-template-columns: 1fr; text-align: center; } .hero-left{ flex-direction: column; align-items: center; } .hero-line{ width: 50px; height: 3px; min-height: 0; } .hero-desc{ margin-left:auto; margin-right:auto; } .portrait-frame{ margin: 0 auto; } }

.hero-social{ margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); justify-content: center; }
@media (min-width: 801px){ .hero-social{ justify-content: flex-start; } }

.social-row{ display: flex; gap: 14px; }
.social-row a{ width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0.72rem; font-weight: 700; color: var(--ink-muted); }
.social-row a:hover{ border-color: var(--gold); color: var(--gold); }

/* Sections */
.section{ padding: 70px 0; }
.section-tag{ color: var(--gold); font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; }
.section h2{ font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 32px; }

.glass{ background: var(--navy-card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); }

.skills-grid, .services-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.skill-card, .service-card{ padding: 24px; }
.skill-card h3, .service-card h3{ font-size: 1.05rem; margin-bottom: 6px; }
.skill-card p, .service-card p{ color: var(--ink-muted); font-size: 0.88rem; }
.skill-card.border-blue{ border-left: 2px solid #2E5EAA; }
.skill-card.border-crimson{ border-left: 2px solid var(--crimson); }

.projects-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.project-thumb{ aspect-ratio: 16/10; background: #1a2550; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.project-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.project-body{ padding: 18px; }
.project-body h3{ font-size: 1rem; margin-bottom: 10px; }
.tech-row{ display: flex; gap: 8px; margin-bottom: 12px; }
.tech-row span{ font-size: 0.7rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-muted); }
.project-link{ font-size: 0.85rem; font-weight: 600; color: var(--gold); }

/* Timeline */
.timeline{ border-left: 1px solid var(--line); padding-left: 26px; }
.timeline-item{ position: relative; padding-bottom: 26px; }
.timeline-item::before{ content:''; position: absolute; left: -31px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline-date{ color: var(--gold); font-size: 0.78rem; font-weight: 700; }
.timeline-item h3{ font-size: 1rem; margin-top: 6px; }

/* Achievements & Gallery */
.achieve-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.achieve-card{ padding: 20px; }
.achieve-card .year{ color: var(--crimson); font-size: 0.75rem; font-weight: 700; }
.achieve-card h3{ font-size: 0.95rem; margin-top: 8px; }

.gallery-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gallery-grid figure{ margin: 0; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: #16204a; border: 1px solid var(--line); }
.gallery-grid img{ width: 100%; height: 100%; object-fit: cover; }

/* About intro */
.about-intro{ display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px;  }
.about-text p{ color: var(--ink-muted); }
@media (max-width: 760px){ .about-intro{ grid-template-columns: 1fr; } }

/* Contact */
.contact-info-card{ padding: 22px; margin-bottom: 14px; }
.contact-info-card .label{ color: var(--gold); font-size: 0.76rem; font-weight: 700; }
.contact-info-card p:last-child{ margin-top: 8px; font-size: 1rem; }

/* Page head */
.page-head{ padding: 50px 0 10px; }
.page-head h1{ font-size: clamp(1.8rem, 4vw, 2.4rem); }

/* Footer */
.footer{ border-top: 1px solid var(--line); padding: 30px 0; margin-top: 30px; }
.footer-inner{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-inner p{ color: var(--ink-muted); font-size: 0.8rem; }
.footer-inner p b{ color: var(--gold); }
.footer-links{ display: flex; gap: 18px; }
.footer-links a{ font-size: 0.8rem; color: var(--ink-muted); }
.footer-links a:hover{ color: var(--gold); }

/* Navbar saat scroll */
.nav{ transition: box-shadow 0.3s ease; }
.nav.scrolled{ box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

/* Animasi muncul saat scroll */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show{
  opacity: 1;
  transform: none;
}

/* Lightbox */
.gallery-grid img, .achieve-card img{ cursor: zoom-in; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 9, 25, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}
.lightbox.open{ opacity: 1; visibility: visible; }
.lightbox img{
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
}