/* ================================================
   ROHAN HINGE — PORTFOLIO
   Unified warm paper theme
   Barlow Condensed (hero) + Gaegu (labels)
   + Libre Baskerville (mid headings) + Inter (body)
================================================ */

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }

/* ===== UNIFIED PALETTE ===== */
/* To change accent color: edit --rust below */
/* To change background: edit --paper below */
/* To change text: edit --ink below */
:root {
  --paper:       #f4f1eb;
  --paper-2:     #edeae2;
  --paper-3:     #e6e2d8;
  --ink:         #2a2430;
  --ink-2:       #4e4560;
  --ink-3:       #8a8098;
  --rust:        #da8728;
  --rust-soft:   #c9ad50;
  --rust-dim:    rgba(184, 92, 56, 0.10);
  --brass:       #c8a96e;
  --brass-soft:  #d4b87a;
  --white:       #ffffff;
  --border:      rgba(42, 36, 48, 0.10);
  --border-2:    rgba(42, 36, 48, 0.18);
  --grid-color:  rgba(100, 120, 180, 0.06);
}

/* ===== BASE ===== */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(rgba(100,120,180,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,120,180,0.025) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-attachment: fixed;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  background: transparent;
  transition: background 0.4s ease, padding 0.3s ease; 
  border-color: 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.solid {
  background: rgba(244, 241, 235, 0.97);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  padding: 14px 60px;
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: 'Gaegu', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--rust); }

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 16, 28, 0.92) 0%,
    rgba(20, 16, 28, 0.45) 50%,
    rgba(20, 16, 28, 0.20) 100%
  );
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #1c1820 0%, #2a1a16 60%, #1c1820 100%);
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  max-width: 900px;
}

.hero-sub {
  font-family: 'Gaegu', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Big hero name — keep Barlow Condensed, stays dominant */
.hero-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 2px;
  color: #f0ebe0;
  margin-bottom: 24px;
  text-shadow:
    0 0 40px rgba(0,0,0,0.9),
    0 4px 24px rgba(0,0,0,0.8),
    2px 2px 0 rgba(0,0,0,0.5);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(240,235,224,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 16px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: scrolldrop 2s ease-in-out infinite;
}

@keyframes scrolldrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.hero-scroll-indicator span {
  font-family: 'Gaegu', cursive;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(240,235,224,0.5);
  writing-mode: vertical-rl;
}

/* ===== PILL NAV (sticky section nav) ===== */
/* To change pill nav background: edit background below */
.pill-nav-wrap {
  position: sticky;
  top: 57px;
  z-index: 990;
  background: rgba(244, 241, 235, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.pill-nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pill-nav::-webkit-scrollbar { display: none; }

.pill {
  font-family:'Gaegu', cursive;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 18px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.pill:hover { color: var(--ink); }

.pill.active {
  color: var(--rust) !important;
  border-bottom: 2px solid var(--rust) !important;
}

/* ===== PROJ HERO (project page hero) ===== */
.proj-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.proj-hero-text {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  max-width: 1000px;
}

/* Keep proj-title as Barlow Condensed — stays dominant */
.proj-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 2px;
  color: #f0ebe0;
  margin-bottom: 16px;
  text-shadow:
    0 0 40px rgba(0,0,0,0.95),
    0 4px 24px rgba(0,0,0,0.9),
    2px 2px 0 rgba(0,0,0,0.6);
}

.proj-hero-desc {
  font-family: 'Gaegu', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(240,235,224,0.6);
  text-transform: uppercase;
}

/* ===== PROJECT BODY ===== */
.proj-body {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== FOOTER ===== */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 60px;
  font-family: 'Gaegu', cursive;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--ink-3);
  background: var(--paper-2);
  border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .navbar       { padding: 18px 24px; }
  .navbar.solid { padding: 12px 24px; }
  .hero-text    { padding: 0 24px 60px; }
  .hero-name    { font-size: clamp(3.5rem, 14vw, 6rem); }
  .proj-hero-text { padding: 0 24px 60px; }
  .proj-body    { padding: 40px 24px; }
  .footer       { padding: 20px 24px; flex-direction: column; gap: 6px; }
}