/* ==============================
   DESIGN TOKENS
============================== */
:root {
  --bg:         #0e0c0a;
  --bg-alt:     #141210;
  --surface:    #1c1915;
  --cream:      #f0ead8;
  --cream-muted:#b8b0a0;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --red-accent: #c04b3a;
  --border:     rgba(201,168,76,0.18);
  --radius:     4px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-title:   'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--bg); }

/* ==============================
   CUSTOM CURSOR
============================== */
#cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s;
  opacity: 0.6;
}
body:hover #cursor-ring { opacity: 1; }

/* ==============================
   SCROLLBAR
============================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ==============================
   NOISE OVERLAY
============================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ==============================
   NAVBAR
============================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4rem;
  mix-blend-mode: normal;
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(14,12,10,0.92);
  backdrop-filter: blur(12px);
  padding: 0.9rem 4rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span {
  width: 24px; height: 1.5px;
  background: var(--cream);
  transition: all 0.3s;
}

/* ==============================
   HERO — SECTION 1
============================== */
#beranda {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 4rem;
  overflow: hidden;
}

/* Animated background lines */
#beranda::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    linear-gradient(var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  animation: gridPulse 8s ease-in-out infinite alternate;
}
@keyframes gridPulse {
  from { opacity: 0.15; }
  to   { opacity: 0.3; }
}

.hero-text {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}
.hero-name em {
  font-style: italic;
  color: var(--gold);
}
.hero-tagline {
  margin-top: 1.6rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cream-muted);
  max-width: 420px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.9s 0.75s forwards;
}
.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 1s forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--cream-muted);
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%    { transform: scaleY(0); transform-origin: top; }
  50%   { transform: scaleY(1); transform-origin: top; }
  50.01%{ transform: scaleY(1); transform-origin: bottom; }
  100%  { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero Photo */
.hero-photo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5rem;
  opacity: 0;
  animation: fadeIn 1.2s 0.6s forwards;
}
.photo-frame {
  position: relative;
  width: 360px;
  max-width: 100%;
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 1px solid var(--gold);
  z-index: -1;
  border-radius: 2px;
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: var(--gold);
  opacity: 0.08;
  z-index: -1;
}
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.photo-placeholder svg { opacity: 0.3; }
.photo-placeholder p {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--cream-muted);
  text-transform: uppercase;
}
.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.photo-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 80px; height: 80px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  animation: rotateBadge 12s linear infinite;
}
@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==============================
   SECTION BASE
============================== */
section {
  position: relative;
  z-index: 1;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 4rem;
}
.section-label {
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
}
.section-title em { font-style: italic; color: var(--gold); }
.divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 2rem 0;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==============================
   TENTANG SAYA — SECTION 2
============================== */
#tentang { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}

.vm-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.vm-card {
  padding: 1.8rem;
  background: var(--surface);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.vm-card h4 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.vm-card p {
  font-size: 0.9rem;
  color: var(--cream-muted);
  line-height: 1.8;
}

.about-bio {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--cream);
  margin-bottom: 2.5rem;
}
.about-bio strong { color: var(--gold); font-weight: 600; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 3rem;
}
.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.skill-name {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--cream-muted);
}
.skill-bar {
  height: 2px;
  background: var(--surface);
  border-radius: 1px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  transition: width 1.2s ease;
  border-radius: 1px;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-3.5px);
}
.timeline-year {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
}
.timeline-sub {
  font-size: 0.82rem;
  color: var(--cream-muted);
  margin-top: 0.2rem;
}

/* ==============================
   PROYEK — SECTION 3
============================== */
#proyek { background: var(--bg); }

.projects-intro {
  max-width: 550px;
  margin-bottom: 4rem;
}
.projects-intro p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream-muted);
  line-height: 1.9;
  margin-top: 1.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 3rem;
  letter-spacing: 4px;
  color: var(--gold);
  opacity: 0.25;
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .project-thumb-inner {
  opacity: 0.5;
  transform: scale(1.08);
}
.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(14,12,10,0.8));
}
.project-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.25rem 0.8rem;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
}

.project-body { padding: 1.6rem; }
.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.project-body p {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.75;
  margin-bottom: 1.4rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s;
}
.project-link:hover { gap: 0.9rem; }

.projects-count {
  font-family: var(--font-title);
  font-size: 12rem;
  color: var(--surface);
  position: absolute;
  right: 4rem;
  top: 5rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ==============================
   KONTAK — SECTION 4
============================== */
#kontak { background: var(--bg-alt); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: start;
}
.contact-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--cream-muted);
}
.contact-text strong { color: var(--cream); }

.contact-email-big {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--gold);
  margin: 2rem 0;
  word-break: break-all;
  display: block;
  transition: color 0.3s;
}
.contact-email-big:hover { color: var(--gold-light); }

/* Social links */
.socials { display: flex; flex-direction: column; gap: 1rem; }
.social-item {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.2s;
  text-decoration: none;
}
.social-item:hover {
  border-color: var(--gold);
  transform: translateX(6px);
}
.social-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--gold);
}
.social-info { flex: 1; }
.social-info .label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.social-info .handle {
  font-size: 1rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
}
.social-arrow { color: var(--gold); opacity: 0.5; transition: opacity 0.3s; }
.social-item:hover .social-arrow { opacity: 1; }

/* ==============================
   REFLEKSI — SECTION 5
============================== */
#refleksi { background: var(--bg); }

.refleksi-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  margin-top: 4rem;
}

.design-rationale h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.design-rationale p {
  font-size: 0.9rem;
  color: var(--cream-muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.rationale-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.rationale-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--cream-muted);
  line-height: 1.7;
}
.rationale-list li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Testimonials */
.testimonials { display: flex; flex-direction: column; gap: 1.5rem; }
.testimonial-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-avatar {
  width: 36px; height: 36px;
  background: var(--gold);
  opacity: 0.7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bg);
}
.testimonial-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cream);
}
.testimonial-role {
  font-size: 0.72rem;
  color: var(--cream-muted);
}
.stars { color: var(--gold); font-size: 0.75rem; letter-spacing: 2px; }

/* ==============================
   FOOTER
============================== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--cream-muted);
}
.footer-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--gold);
}
footer a { color: var(--gold); }

/* ==============================
   KEYFRAMES
============================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  nav { padding: 1.2rem 2rem; }
  nav.scrolled { padding: 0.8rem 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  #beranda {
    grid-template-columns: 1fr;
    padding: 0 2rem;
    text-align: center;
  }
  .hero-photo-wrap { order: -1; padding-top: 8rem; padding-bottom: 2rem; }
  .hero-cta { justify-content: center; }
  .hero-tagline { margin: 1.6rem auto 0; }

  .section-inner { padding: 5rem 2rem; }

  .about-grid,
  .contact-layout,
  .refleksi-grid { grid-template-columns: 1fr; gap: 3rem; }

  .projects-count { display: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
  .photo-frame { width: 260px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}
