/* ═══════════════════════════════════════════════════════════
   MICHAEL KINGSBERRY PORTFOLIO — STYLESHEET
   Dark cinematic design for a Multimedia Designer / Video Producer
═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Colors */
  --bg-0:           #07070f;
  --bg-1:           #0d0d18;
  --bg-2:           #131320;
  --bg-card:        #16162a;
  --bg-card-hover:  #1d1d35;
  --border:         #222238;
  --border-light:   #2d2d4a;

  --gold:           #c8a84b;
  --gold-dim:       rgba(200, 168, 75, 0.12);
  --gold-glow:      rgba(200, 168, 75, 0.25);
  --indigo:         #7c7cf8;
  --indigo-dim:     rgba(124, 124, 248, 0.12);

  --text-1:         #eeeef8;
  --text-2:         #9090b8;
  --text-3:         #55556e;

  /* Typography */
  --font-display:   'DM Serif Display', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-py:     7rem;
  --container-px:   1.5rem;
  --max-w:          1160px;

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-card:    0 4px 32px rgba(0,0,0,0.5);
  --shadow-hover:   0 8px 48px rgba(0,0,0,0.7);
  --shadow-glow:    0 0 48px rgba(200, 168, 75, 0.15);

  /* Transitions */
  --t-fast:    0.18s ease;
  --t-smooth:  0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg-0);
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* ─── TYPOGRAPHY SCALE ──────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 400; }

/* ─── UTILITIES ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section { padding-block: var(--section-py); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 52ch;
  margin-inline: auto;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--t-smooth);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: #07070f;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn--primary:hover {
  background: #deba60;
  box-shadow: 0 6px 32px rgba(200,168,75,0.4);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ─── TAGS ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(200,168,75,0.2);
}

.tag-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

/* ─── SCROLL REVEAL ANIMATION ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── VIDEO CONTAINER (responsive 16:9) ─────────────────── */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
}
.video-container iframe,
.video-container .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── VIDEO PLACEHOLDER ──────────────────────────────────── */
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0f20 0%, #1a1a30 100%);
  border: 1px solid var(--border-light);
  cursor: default;
}

.vp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.vp-icon { color: var(--gold); opacity: 0.5; }

.vp-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}

.vp-hint {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  transition: background var(--t-smooth), box-shadow var(--t-smooth);
}

.nav.scrolled {
  background: rgba(7, 7, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: #07070f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }

.nav-link--cta {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(200,168,75,0.25);
  margin-left: 0.5rem;
}
.nav-link--cta:hover {
  background: var(--gold);
  color: #07070f;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  border-radius: var(--r-sm);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all var(--t-smooth);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--container-px) 6rem;
  overflow: hidden;
}

/* Background orbs */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c8a84b, transparent 70%);
  top: -15%; left: -10%;
  animation-duration: 14s;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c7cf8, transparent 70%);
  bottom: -10%; right: -8%;
  animation-duration: 18s;
  animation-delay: -5s;
}
.hero-orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #c8a84b, transparent 70%);
  top: 60%; left: 50%;
  opacity: 0.1;
  animation-duration: 22s;
  animation-delay: -9s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s ease 0.2s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 1.0;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.9s ease 0.4s forwards;
}
.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.9s ease 0.6s forwards;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-up 0.9s ease 0.75s forwards;
}

.availability-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(74,222,128,0.6); }
  50%       { box-shadow: 0 0 16px rgba(74,222,128,0.9); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fade-up 0.9s ease 0.9s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
  opacity: 0;
  animation: fade-up 1s ease 1.4s forwards;
}
.hero-scroll__label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-scroll__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(1.4); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   FEATURED PROJECT
═══════════════════════════════════════════════════════════ */
.featured { background: var(--bg-1); }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--text-1);
  margin-bottom: 1rem;
}

.featured-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.featured-meta { display: flex; flex-direction: column; gap: 0.75rem; }
.featured-meta__row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.featured-meta__row:last-child { border-bottom: none; }
.featured-meta__row dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.featured-meta__row dd { font-size: 0.9rem; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════
   SELECTED WORK
═══════════════════════════════════════════════════════════ */
.work { background: var(--bg-0); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-smooth), box-shadow var(--t-smooth), border-color var(--t-smooth);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-light);
}

.work-card__body { padding: 1.25rem 1.4rem 1.6rem; }

.work-card__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.5rem;
}

.work-card__title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 0.45rem;
  transition: color var(--t-fast);
}
.work-card:hover .work-card__title { color: var(--gold); }

.work-card__desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════════ */
.skills {
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.skills::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(200,168,75,0.06), transparent);
  pointer-events: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.skill-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t-smooth), box-shadow var(--t-smooth), border-color var(--t-smooth);
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}

.skill-card__icon {
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.skill-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.6rem;
}

.skill-card__desc { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact { background: var(--bg-0); }

.contact-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: 4rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-1);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 0.82rem; color: var(--text-3); }

.footer-nav { display: flex; gap: 1.5rem; }
.footer-link {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 960px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --section-py: 5rem; }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-py: 4rem; --container-px: 1.25rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(7,7,15,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-smooth);
  }
  .nav-menu.open { max-height: 320px; }
  .nav-link {
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
    width: 100%;
  }
  .nav-link--cta {
    margin: 0.75rem 1.5rem 0;
    width: calc(100% - 3rem);
    text-align: center;
    border-radius: var(--r-md);
  }

  .nav-logo-text { display: none; }

  .work-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }

  .contact-card { padding: 2.5rem 1.5rem; }

  .hero-name { letter-spacing: -0.03em; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── FOCUS STYLES (accessibility) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
