/* ═══════════════════════════════════════════
SKILLS PAGE
═══════════════════════════════════════════ */

:root {
  --black:      #000000;
  --dark:       #141414;
  --mid:        #2a2a2a;
  --dim:        #505050;
  --muted:      #808080;
  --light:      #c0c0c0;
  --white:      #ffffff;
  --film-gold:  #f8bc1e;
  --accent: var(--film-gold);
  --font-display: 'Neue Montreal', sans-serif;
  --font-mono:    'Neue Montreal Mono', 'Neue Montreal', monospace;
  --nav-h:       80px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
main { flex: 1; margin-top: var(--nav-h); }

/* ── Film Grain ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.035;
  z-index: 9999;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--mid);
  transition: border-color 0.4s;
}
.nav.scrolled { border-bottom: 1px solid rgba(255,255,255,0.12); }
.nav-logo { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); }
.nav-logo-img { height: 56px; width: 56px; object-fit: contain; mix-blend-mode: lighten; transition: opacity 0.2s; }
.nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 36px; }
.nav-link { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; color: var(--muted); transition: color 0.2s; position: relative; }
.nav-link.active { color: var(--white); }
.nav-link.active::after { width: 100%; }
.nav-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease-out); }
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-menu-btn { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-menu-btn span { display: block; width: 22px; height: 1px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-in-out);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-close { position: absolute; top: 20px; right: 24px; font-size: 1.2rem; color: var(--muted); }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.mobile-nav-link { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 10vw, 4rem); letter-spacing: 0.05em; color: var(--dim); transition: color 0.2s; }
.mobile-nav-link:hover { color: var(--white); }

/* ── SCROLL LOGO SECTION ── */
.scroll-container { height: 600vh; position: relative; }
.sticky-stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-wrap {
  position: relative;
  width: min(calc(100vh - var(--nav-h) - 40px), 85vw);
  height: min(calc(100vh - var(--nav-h) - 40px), 85vw);
}

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
  transform-origin: center center;
}

#ring-outer  { inset: 0; }
#ring-inner  { inset: 17.5%; width: 65%; height: 65%; }
#ring-center { inset: 35%;   width: 30%; height: 30%; }

/* ── Text panel sits inside the inner ring ── */
.logo-text-panel {
  position: absolute;
  inset: 24%; /* Pulled in further to keep text from clipping the rings */
  width: 52%;
  height: 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.skills-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8vmin;
  padding: 4%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.panel-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 3.8vmin, 2rem);
  letter-spacing: 0.18em;
  line-height: 1.05;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4vmin;
}

.panel-intro {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.5vmin, 0.9rem);
  letter-spacing: 0.05em;
  color: var(--light);
  line-height: 1.4;
  max-width: 95%;
  margin-bottom: 0.6vmin;
}

.skills-list { list-style: none; display: flex; flex-direction: column; gap: 1vmin; width: 100%; }
.skill-item { display: flex; align-items: baseline; gap: 1vmin; justify-content: center; }
.skill-label { font-family: var(--font-mono); font-size: clamp(0.55rem, 1.2vmin, 0.75rem); color: var(--accent); opacity: 0.6; flex-shrink: 0; }
.skill-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.65rem, 1.6vmin, 0.95rem);
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.3;
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.25em; color: var(--muted); }
.hint-line { width: 1px; height: 30px; background: var(--muted); animation: hintPulse 1.8s ease-in-out infinite; }

@keyframes hintPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1);   }
}

/* ── FOOTER ── */
.footer { display: flex; align-items: flex-start; justify-content: space-between; padding: 40px 48px 48px; border-top: 1px solid var(--mid); margin-top: auto; }
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.2em; }
.footer-sub { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.footer-info { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
}

@media (max-width: 768px) {
  /* On mobile, we break out of the circle constraints so text is readable */
  .logo-text-panel {
    inset: 0;
    width: 90%;
    height: 90%;
    margin: 0 auto;
  }
  .skills-panel {
    padding: 10%;
    justify-content: center;
  }
  .panel-header { font-size: 1.8rem; margin-bottom: 1rem; }
  .skill-name { font-size: 0.9rem; line-height: 1.4; text-align: center; }
  .skill-item { margin-bottom: 0.5rem; }
}