/* ============================================
   LOGAN RAMSEY EPK — Cinematic Dark Theme
   ============================================ */

:root {
  --gold: #c9a96e;
  --gold-light: #dfc08a;
  --dark: #0a0a0a;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --dark-4: #222222;
  --text: #e8e8e8;
  --text-muted: #999999;
  --text-dim: #666666;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background var(--transition), padding var(--transition);
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* --- Hero --- */
#hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 50%, var(--dark) 100%);
  overflow: hidden;
}

#hero.has-image {
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  animation: fadeUp 1s ease 0.2s both;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease 0.5s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  animation: fadeUp 1s ease 0.8s both;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  animation: none;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--dark-2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 100px;
}

.photo-placeholder,
.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--dark-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-3);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  padding: 0.8rem;
  background: var(--dark-3);
  border-left: 2px solid var(--gold);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--dark-4);
  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
}

/* --- Headshots --- */
.headshot-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--dark-4);
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
}

.headshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.headshot-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--dark-3);
}

.headshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.headshot-card:hover img {
  transform: scale(1.05);
}

.headshot-card .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--text);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.headshot-card:hover .caption { opacity: 1; }

.placeholder-card {
  aspect-ratio: 3/4;
  background: var(--dark-3);
  border: 2px dashed var(--dark-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Resume --- */
.resume-section {
  margin-bottom: 3rem;
}

.resume-section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dark-4);
}

.resume-table {
  width: 100%;
  border-collapse: collapse;
}

.resume-table tr {
  border-bottom: 1px solid var(--dark-3);
}

.resume-table td {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  vertical-align: top;
}

.resume-table td:first-child {
  font-weight: 500;
  color: var(--white);
  width: 30%;
}

.resume-table td:nth-child(2) {
  color: var(--text);
  width: 30%;
}

.resume-table td:nth-child(3) {
  color: var(--text-muted);
  width: 40%;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: var(--dark-3);
  border: 1px solid var(--dark-4);
  color: var(--text);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.resume-loading {
  text-align: center;
  color: var(--text-dim);
  padding: 3rem;
}

/* --- Reel --- */
.reel-placeholder {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--dark-3);
  border: 2px dashed var(--dark-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.play-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.reel-card {
  background: var(--dark-3);
  overflow: hidden;
}

.reel-card .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.reel-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.reel-card .reel-info {
  padding: 1rem;
}

.reel-card .reel-info h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.reel-card .reel-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-card {
  background: var(--dark-3);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--gold);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--dark-3);
  border: 1px solid var(--dark-4);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-status.success { color: #4caf50; }
.form-status.error { color: #f44336; }

/* --- Footer --- */
footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--dark-3);
}

footer p {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--gold); }

.lightbox-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

#lightbox-caption {
  position: absolute;
  bottom: 2rem;
  text-align: center;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-2);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 2rem;
    transition: right var(--transition);
    border-left: 1px solid var(--dark-4);
  }

  .nav-links.open { right: 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 300px;
    margin: 0 auto;
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .headshot-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .reel-grid {
    grid-template-columns: 1fr;
  }

  .resume-table td {
    display: block;
    width: 100%;
    padding: 0.3rem 1rem;
  }

  .resume-table td:first-child {
    padding-top: 0.8rem;
  }

  .resume-table td:last-child {
    padding-bottom: 0.8rem;
  }
}
