/* ============================================
   CHRIS MILLER - VIDEO EDITOR PORTFOLIO
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --bg-dark: #080808;
  --bg-card: #111111;
  --bg-elevated: #161616;
  --gold: #e6c04a;
  --gold-light: #f0d060;
  --gold-dim: #c9a832;
  --cream: #ffffff;
  --text: #f5f5f5;
  --text-muted: #c0c0c0;
  --border: #2a2a2a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Animated Wave Background ---------- */
.bg-wave {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.2) 0%,
    rgba(201, 162, 39, 0.15) 10%,
    rgba(201, 162, 39, 0.1) 15%,
    rgba(201, 162, 39, 0.05) 20%,
    transparent 25%,
    transparent 50%,
    transparent 75%,
    rgba(201, 162, 39, 0.05) 80%,
    rgba(201, 162, 39, 0.1) 85%,
    rgba(201, 162, 39, 0.15) 90%,
    rgba(201, 162, 39, 0.2) 100%
  );
  background-size: 400% 400%;
  animation: waveAnimation 10s ease infinite;
}

@keyframes waveAnimation {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, transparent 100%);
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 3.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cream);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger toggle hidden — nav stays inline on all screen sizes */
.nav-toggle {
  display: none;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 900px;
  margin-bottom: 3rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.hero-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Video Showcase */
.video-showcase {
  width: 100%;
  max-width: 1000px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.video-showcase video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 5;
}

.play-overlay:hover {
  background: rgba(0,0,0,0.2);
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: all 0.4s ease;
}

.play-overlay:hover .play-btn {
  transform: scale(1.1);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.2);
}

.play-btn svg {
  width: 36px;
  height: 36px;
  margin-left: 5px;
}

/* ---------- About Section ---------- */
.about {
  padding: 8rem 2rem;
  background: var(--bg-card);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: start;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1rem;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* Category Cards */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.category-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-dim);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.category-list {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.category-dist {
  font-size: 0.75rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ---------- Contact Section ---------- */
.contact {
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact .section-title {
  margin-bottom: 1rem;
}

.contact .section-title::before {
  left: 50%;
  transform: translateX(-50%);
}

.contact-text {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn-gmail:hover {
  background: #ea4335;
  border-color: #ea4335;
  color: white;
}

.btn.copied {
  background: #27ae60;
  border-color: #27ae60;
  color: white;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-4px);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 10rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-header .section-title {
  margin-bottom: 0.75rem;
}

.page-header .section-title::before {
  left: 50%;
  transform: translateX(-50%);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---------- Video Grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.4s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-dim);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.5);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: all 0.4s ease;
}

.video-card:hover .video-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%);
}

.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.video-card:hover .video-card-play {
  opacity: 1;
}

.video-card-play svg {
  width: 26px;
  height: 26px;
  fill: white;
  margin-left: 3px;
}

.video-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.video-card-meta {
  font-size: 0.8rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Video Modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  width: 90%;
  max-width: 1100px;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.video-modal-close:hover {
  color: var(--gold);
}

.video-modal video {
  width: 100%;
  border-radius: 12px;
}

/* ---------- Resume Section ---------- */
.resume-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.resume-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.resume-download:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.resume-download svg {
  width: 18px;
  height: 18px;
}

/* ---------- Resume Desktop/Mobile Swap ---------- */
.resume-mobile {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* --- Nav: compact inline, no hamburger --- */
  .nav {
    padding: 1rem 1rem;
  }
  
  .nav.scrolled {
    padding: 0.75rem 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
  
  /* --- Hero --- */
  .hero {
    min-height: auto;
    padding: 5.5rem 1.25rem 2.5rem;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-tagline {
    font-size: 0.95rem;
  }
  
  .play-btn {
    width: 64px;
    height: 64px;
  }
  
  .play-btn svg {
    width: 28px;
    height: 28px;
  }
  
  /* --- About / Categories --- */
  .about, .contact {
    padding: 4rem 1.25rem;
  }
  
  .categories {
    grid-template-columns: 1fr;
  }
  
  .category-card {
    padding: 2rem 1.5rem;
  }
  
  /* --- Page Header --- */
  .page-header {
    padding: 6.5rem 1.25rem 2.5rem;
  }

  /* --- Video Grid --- */
  .video-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .video-card-title {
    font-size: 1rem;
  }
  
  /* --- Contact --- */
  .contact-email {
    font-size: 1.1rem;
    word-break: break-all;
  }
  
  /* --- Resume: swap to Google Docs viewer on mobile --- */
  .resume-desktop {
    display: none;
  }
  
  .resume-mobile {
    display: block;
  }
  
  .resume-container {
    padding: 1.25rem;
  }
}

@media (max-width: 400px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
}

/* ---------- Mobile Only Elements ---------- */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }
}