/* ═══════════════════════════════════════════════════════════
   SHARED STYLES — Ayu Arini Khastarina Portfolio
   ═══════════════════════════════════════════════════════════ */

:root {
  --void:        #1a0408;
  --abyss:       #220608;
  --deep:        #2b080c;
  --surface:     #350a10;
  --mid:         #3f0c12;
  --crimson:     #9b1b30;
  --crimson-mid: #c0293f;
  --crimson-hot: #e8304a;
  --crimson-glow:#ff4d6a;
  --blood:       #6b0f1a;
  --gold:        #d4aa55;
  --gold-dim:    #8a6e30;
  --parchment:   #f5ede8;
  --silk:        #ddd0cb;
  --ash:         #b09898;
  --border:      rgba(220,80,100,0.22);
  --border-hot:  rgba(255,77,106,0.55);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
  background: var(--void);
  color: var(--silk);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-touch-callout: none;
}

button, a, [role="button"] {
  -webkit-user-select: none;
  user-select: none;
}

.btn-primary, .btn-outline {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* CRIMSON ATMOSPHERE */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 100% 55% at 50% -5%,  rgba(192,41,63,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 60%  60% at 95% 90%,  rgba(155,27,48,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50%  50% at 0%  50%,  rgba(155,27,48,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 80%  30% at 50% 100%, rgba(107,15,26,0.35) 0%, transparent 60%);
}

/* ─── NAV ─────────────────────────────────────────── */
:root {
  --nav-height: 76px; /* default nav height used to offset fixed nav */
}

body {
  padding-top: var(--nav-height);
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  padding: 0;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(6,4,10,0.88);
}
nav .page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
}

/* Shared centered page shell used to align major content */
.page-shell {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  :root { --nav-height: 96px; }
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--parchment); text-decoration: none;
}
.nav-logo span { color: var(--crimson-glow); font-style: italic; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ash); text-decoration: none; transition: color 0.3s;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--crimson-glow); }

/* HAMBURGER */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 601;
}
.hamburger-menu span {
  width: 24px; height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: block;
}
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ─── SECTIONS ────────────────────────────────────── */
section { padding: 7rem 5rem; position: relative; z-index: 1; }
.section-header {
  display: flex; align-items: baseline; gap: 1.6rem;
  margin-bottom: 4rem; border-bottom: 1px solid var(--border);
  padding-bottom: 1.6rem;
}
.section-num {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: var(--crimson-glow); letter-spacing: 0.2em;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700;
  color: var(--parchment);
}
.section-title em { color: var(--crimson-glow); font-style: italic; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  padding: 1rem 2.4rem; background: var(--crimson);
  color: var(--parchment); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--crimson-mid); transition: all 0.3s;
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover { background: var(--crimson-hot); border-color: var(--crimson-glow); box-shadow: 0 0 24px rgba(232,48,74,0.35); }
.btn-outline {
  padding: 1rem 2.4rem; background: transparent;
  color: var(--gold); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--gold-dim); transition: all 0.3s;
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }

/* ─── UTILS ───────────────────────────────────────── */
.teal-rule {
  width: 60px; height: 2px;
  background: linear-gradient(to right, var(--crimson-glow), var(--gold));
  margin: 2.2rem 0;
}
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

img { max-width: 100%; height: auto; display: block; }
input, button, select { font-size: 16px; }

/* ─── TOOL CHIPS ──────────────────────────────────── */
.project-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tool-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.1em; padding: 0.3rem 0.8rem;
  background: rgba(155,27,48,0.15); border: 1px solid var(--blood);
  color: var(--crimson-glow);
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  padding: 4rem 5rem; background: var(--abyss);
  border-top: 2px solid var(--crimson);
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 3rem; align-items: start;
  position: relative; z-index: 1;
}
.footer-photo {
  width: 180px; height: 220px;
  border-radius: 12px;
  border: 2px solid var(--crimson-mid);
  overflow: hidden;
  background: var(--deep); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(155,27,48,0.25);
}
.footer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.footer-photo-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.55rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ash); padding: 1rem;
  width: 100%; height: 100%;
}
.footer-photo-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.footer-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
  font-weight: 700; color: var(--parchment);
}
.footer-sub { font-size: 1rem; color: var(--ash); margin-top: 0.3rem; }
.footer-quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1rem; color: var(--crimson-glow); margin-top: 0.6rem;
  line-height: 1.5;
}
.footer-contact {
  font-size: 1rem; color: var(--silk); line-height: 2.2; text-align: right;
}
.footer-contact a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--crimson-glow); }
.footer-contact .wa-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: #4ade80; font-size: 1rem;
}
.footer-contact .wa-link:hover { color: #86efac; }

.contact-card-section {
  position: relative;
  width: min(1220px, calc(100% - 3rem));
  margin: 4rem auto;
  padding: 0 1.5rem;
  z-index: 1;
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(24px);
  border-radius: 0;
  padding: 2.5rem;
  box-shadow: 0 40px 110px rgba(155, 27, 48, 0.24);
}
.contact-card-image {
  position: relative;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}
.contact-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.contact-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-card-image-overlay {
  display: none;
}
.contact-card-image-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--parchment);
  font-weight: 700;
}
.contact-card-image-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--ash);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-card-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 1.6rem;
}
.contact-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
}
.contact-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 4vw, 4.2rem);
  color: var(--parchment);
  text-align: center;
  line-height: 1.05;
  margin: 0;
}
.contact-card-copy {
  max-width: 520px;
  color: var(--ash);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  margin: 0 auto;
}
.contact-card-actions {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  padding: 1.05rem 1.2rem;
  border-radius: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--parchment);
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-action-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}
.contact-action-btn .contact-icon {
  width: 1.6rem;
  height: 1.6rem;
  min-width: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
}
.contact-action-btn svg { width: 1rem; height: 1rem; display: block; }

.footer-strip {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(18px);
  padding: 1rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ash);
  font-size: 0.95rem;
  margin-top: 4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 50px rgba(155,27,48,0.14);
}
.footer-strip div:last-child { text-align: right; }

@media (max-width: 960px) {
  .contact-card-section {
    width: calc(100% - 2rem);
    margin: 4rem auto;
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 1.6rem;
  }
  .contact-card-image { min-height: 300px; }
  .contact-card-actions { gap: 0.85rem; }
  .footer-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .contact-card-image { min-height: 240px; }
  .contact-card-title { font-size: 2rem; }
  .contact-action-btn { width: 100%; justify-content: center; }
  .footer-strip { padding: 1rem; }
}

/* ─── TABLET ──────────────────────────────────────── */
@media (max-width: 960px) {
  html { font-size: 15px; }
  nav { padding: 1rem 1.5rem; }
  .hamburger-menu { display: flex; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  footer { grid-template-columns: auto 1fr; padding: 3rem 1.5rem; }
  .footer-contact { grid-column: 1 / -1; text-align: left; }
}

/* ─── MOBILE ──────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 14px; }
  nav {
    padding: 0.9rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
  }
  .nav-logo { font-size: 1.1rem; }
  .hamburger-menu { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(6, 4, 10, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    list-style: none; z-index: 599;
  }
  .nav-links.active { max-height: 500px; }
  .nav-links li { border-bottom: 1px solid rgba(220, 80, 100, 0.15); }
  .nav-links a {
    display: block; padding: 1rem 1.5rem; font-size: 0.75rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ash); text-decoration: none; transition: all 0.3s;
  }
  .nav-links a:hover { background: rgba(155, 27, 48, 0.1); color: var(--crimson-glow); }
  section { padding: 3.5rem 1.2rem; }
  .section-header { flex-direction: column; gap: 0.8rem; margin-bottom: 2.5rem; padding-bottom: 1.2rem; }
  .section-title { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  footer { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.2rem; }
  .footer-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 8px; }
  .footer-contact { text-align: left; font-size: 0.9rem; line-height: 2; }
  .btn-primary, .btn-outline {
    width: 100%; padding: 0.95rem 1.8rem; font-size: 0.75rem;
    text-align: center; min-height: 48px;
  }
}

@media (max-width: 480px) {
  html { font-size: 13px; }
  nav { padding: 0.8rem; }
  .nav-logo { font-size: 0.95rem; }
  .nav-links { top: 52px; }
  .nav-links a { padding: 0.9rem 1.2rem; font-size: 0.7rem; }
  footer { padding: 1.5rem 1rem; gap: 1rem; }
  .footer-sub { font-size: 0.85rem; }
  .footer-quote { font-size: 0.85rem; }
}