/* --- 1. GLOBAL & VARIABLES --- */
:root {
  --color-dark: #1a1a1a;
  --color-light: #f4f4f4;
  --color-accent: #007bff; /* Professional blue */
  --font-heading: "Oswald", sans-serif;
  --font-body: "Lato", sans-serif;

  /* NEW: Variables for Polaroids */
  --font-caption: "Kalam", cursive;
  --color-desk-bg: #1a1a1a;
  --color-desk-surface: #01b4f5;
  --color-polaroid-bg: #fff;
  --color-text-dark: #333;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--color-light);
  color: var(--color-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}
a {
  color: var(--color-accent);
  text-decoration: none;
}
ul {
  list-style: none;
}

/* --- 2. NAVIGATION --- */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(5px);
  width: 100%;
}

.main-nav .nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

/* --- STREAMLINED NAVIGATION --- */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- Mobile Navigation --- */

/* The Hamburger Button */
.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above the nav links */
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}

/* --- 3. HERO (NEW LAYOUT) --- */

/* 1. Hero Section Container */
.hero-section {
  height: 100vh;
  width: 100%;
  position: relative; /* This is the anchor for all positioned children */
  overflow: hidden; /* Clips the video */
  color: white;
}

/* 2. The Video Background Container */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Behind content */
}

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

/* 4. Split Name Styling (NEW) */
.name-part {
  position: absolute;
  z-index: 2; /* On top of video and overlay */

  /* Responsive large font size */
  font-size: 8.5vw;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  top: 30%;
  transform: translateY(-50%);
}

.name-nathan {
  /* "50% left of center" (at the left edge) */
  left: 0;
  text-align: left;
  padding-left: 5%; /* Padding from screen edge */
}

.name-broxton {
  /* "50% right of center" (at the right edge) */
  right: 0;
  text-align: right;
  padding-right: 5%; /* Padding from screen edge */
}

/* 5. Actions Container Styling (NEW) */
.hero-actions-container {
  position: absolute;
  z-index: 2;

  /* "in the lower 30% of the view window" */
  bottom: 15%;

  /* Center the container horizontally */
  left: 50%;
  transform: translateX(-50%);

  text-align: center;
}

.actor-tag {
  display: block; /* Sits on its own line */
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

/* 6. Button Styling (THIS IS YOUR ORIGINAL STYLE) */
.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  border: 2px solid var(--color-accent);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Fixes button text color on dark backgrounds */
.content-section-dark a.cta-button {
  color: #fff;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--color-accent);
}

/* --- 6.8 INTERACTIVE ABOUT PAGE --- */
.passion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 350px;
  perspective: 1000px; /* 3D effect */
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* This is the hover/focus trigger for the flip */
.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 10px;

  /* Centering content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

/* Front of the card */
.flip-card-front {
  background-color: var(--color-dark);
  color: var(--color-light);
}
.flip-card-front h3 {
  font-size: 1.8rem;
  color: var(--color-light);
}
.flip-card-front p {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 300;
  margin-bottom: 0;
}

/* Back of the card */
.flip-card-back {
  background-color: var(--color-light);
  color: var(--color-dark);
  transform: rotateY(180deg);
}
.flip-card-back h4 {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.flip-card-back p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* 7. Scroll Arrow */
.scroll-down-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%; /* Center the arrow */
  margin-left: -1rem; /* Adjust for half its width */
  width: 2rem;
  height: 2rem;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(-45deg);
  }
  40% {
    transform: translateY(-15px) rotate(-45deg);
  }
  60% {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --- 4. GENERAL SECTION STYLING --- */
.content-section {
  padding: 4rem 5%;
  max-width: 1100px;
  margin: 0 auto;
}

.content-section-dark {
  padding: 4rem 5%;
  background-color: var(--color-dark);
  color: var(--color-light);
}

.content-section-dark a {
  color: var(--color-accent);
}

/* --- 5. SECTION-SPECIFIC STYLES --- */

/* --- REELS (from index.html, now unused but kept for safety) --- */
/* You can delete these if the reels page works well */
.reel-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.reel-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.secondary-reels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.secondary-reels h3 {
  text-align: center;
  margin-top: 0.5rem;
}

/* --- HEADSHOTS (headshots.html) --- */
.headshot-section {
  padding: 4rem 2%; /* Less horizontal padding */
  background-color: var(--color-desk-bg);
  color: #f4f4f4; /* Light text for dark bg */
}

.headshot-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.workspace {
  position: relative;
  width: 90vw;
  height: 70vh;
  max-width: 1200px;
  max-height: 800px;
  margin: 0 auto;
  background-color: var(--color-desk-surface);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.polaroid {
  position: absolute;
  background: var(--color-polaroid-bg);
  padding: 1rem 1rem 2.5rem 1rem; /* Adjusted bottom padding */
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 200px;
  height: auto;
  user-select: none;
  touch-action: none;
  transform-origin: center;
  transition: left 0.3s ease-out, top 0.3s ease-out, transform 0.3s ease-out,
    transform 0.1s ease-out, opacity 0.1s ease-out;
}

.polaroid img,
.polaroid figcaption {
  pointer-events: none; /* <-- Restored this */
}

.polaroid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.polaroid figcaption {
  font-family: var(--font-caption);
  color: var(--color-text-dark);
  text-align: center;
  font-size: 1.5rem;
  margin-top: 0.75rem;
}

.polaroid.dragging {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  cursor: grabbing;
  z-index: 1000 !important;
  transition: none;
}

/* Kept the cool push effect */
.polaroid.pushed {
  transform: scale(0.98) rotate(1deg); /* Shrink slightly and rotate */
  opacity: 0.95; /* Optional: Make it slightly transparent */
}

/* The backdrop remains */
.spotlight-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  opacity: 0;
  display: none;
  transition: opacity 0.5s ease;
  z-index: 1500; /* Original z-index */
  cursor: pointer;
}

.spotlight-backdrop.visible {
  display: block;
}

/* --- HEADSHOT SPOTLIGHT (REVERTED) --- */
.polaroid.spotlight {
  top: 50% !important;
  left: 50% !important;

  /* Use vw for responsive width on smaller screens */
  width: 75vw !important;
  height: auto !important; /* Maintain aspect ratio */

  /* --- ADD THIS: Cap the maximum width on large screens --- */
  max-width: 700px !important; /* Adjust 700px as needed */

  /* Keep max-height constraint */
  max-height: 80vh !important;

  /* Keep centering transform */
  transform: translate(-50%, -50%) rotate(0deg) !important;

  z-index: 2000 !important;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  cursor: default;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Ensure the image inside scales correctly */
.polaroid.spotlight img {
  width: 100%; /* Fill the container width */
  height: 100%; /* Fill the container height */
  object-fit: contain; /* Fit while maintaining aspect ratio */
  border-radius: 5px; /* Keep this if you want rounded image corners */
  box-shadow: none; /* Remove shadow from image if polaroid has it */
}

/* --- ABOUT (about.html) --- */
.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 5px;
  margin: 0 auto;
}

.about-bio ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 1rem;
}

/* --- RESUME (from index.html, now unused) --- */
/* You can delete these if the resume page works well */
.resume-list {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}
.resume-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #444;
}
.resume-list li:last-child {
  border-bottom: none;
}
#resume .cta-button {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin: 2rem auto 0 auto;
}

/* --- CONTACT (index.html) --- */
#contact {
  /* Target by ID for specificity */
  opacity: 1; /* Default visible state (if not hidden) */
  /* Keep transition for smooth fade */
  transition: opacity 0.6s ease-in-out;
}

/* SIMPLIFIED HIDING RULE */
#contact.initially-hidden {
  opacity: 0;
  pointer-events: none; /* Prevent interaction while hidden */
  /* Removed height/overflow changes */
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.rep-card {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  min-width: 280px;
}

.rep-card strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.rep-card p {
  margin-bottom: 0.25rem;
}

.social-links {
  text-align: center;
  margin-top: 2rem;
}

.social-links a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 1rem;
  text-transform: uppercase;
}

/* --- FOOTER --- */
.site-footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-dark);
  color: #aaa;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

/* --- 6. APPEAR ON SCROLL --- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  will-change: opacity, transform; /* Helps browser performance */
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* --- 6.5 CURSOR FOLLOWER --- */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;

  /* Hides it at first and keeps it off the document flow */
  pointer-events: none;
  opacity: 0;

  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.1s linear;
  z-index: 9999;
}

body:hover .cursor-follower {
  opacity: 1;
}

/* Hide on mobile where there is no cursor */
@media (max-width: 767px) {
  .cursor-follower {
    display: none;
  }
}

/* --- 6.7 NEW PAGE STYLES (MEDIA & PRESS) --- */

/* Style for the active navigation link */
.main-nav ul li a.is-active,
.nav-links li a.is-active {
  /* Added .nav-links */
  color: var(--color-accent);
}

/* Simple hero for sub-pages */
.page-hero {
  padding: 8rem 5% 4rem;
  background-color: var(--color-dark);
  color: var(--color-light);
  text-align: center;
}
.page-hero h1 {
  font-size: 3.5rem;
}
.page-hero .tagline {
  font-size: 1.25rem;
  color: #ccc;
  font-family: var(--font-body);
}

/* The Media Timeline "Journey" */
.media-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* The central "journey" line */
.media-timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--color-accent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 1;
}

/* The container for each press item */
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  z-index: 2;
}

/* Push items to the left */
.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 70px; /* Space for the circle */
  text-align: right;
}

/* Push items to the right */
.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 70px; /* Space for the circle */
  text-align: left;
}

/* The circle on the timeline */
.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--color-light);
  border: 4px solid var(--color-accent);
  top: 30px;
  border-radius: 50%;
  z-index: 3;
}

/* Position the circle for right-side items */
.timeline-item:nth-child(even)::after {
  left: -10px;
}

/* The content card for each press item */
.timeline-content {
  padding: 1.5rem;
  background-color: var(--color-desk-surface); /* Re-using your desk color */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.timeline-content img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 1rem;
}
.timeline-content .timeline-date {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}
.timeline-content h3 {
  font-size: 1.4rem;
  color: var(--color-light);
}
.timeline-content p {
  color: #ccc;
  font-size: 0.95rem;
}
.timeline-content .cta-button {
  margin-top: 1rem;
}

/* Container to maintain video aspect ratio (16:9) */
.timeline-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  height: 0;
  overflow: hidden;
  margin-top: 1rem; /* Space above video */
  margin-bottom: 1rem; /* Space below video */
  border-radius: 8px; /* Match card radius */
  background-color: #000; /* Black background while loading */
}

.timeline-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0; /* Remove default iframe border */
}

/* Optional: Adjust spacing if a video item is used */
.timeline-content.video-item h3 {
  margin-bottom: 0.5rem; /* Less space below title if video follows */
}

/* Remove default image margin if video is present */
.timeline-content.video-item img {
  display: none; /* Hide default image if video container exists */
}

/* --- 6.9 INTERACTIVE REELS PAGE --- */
.main-reel-viewer {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.main-reel-viewer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.reel-thumbnail {
  background: var(--color-dark);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.reel-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.reel-thumbnail h3 {
  color: var(--color-light);
  text-align: center;
  font-size: 1.1rem;
  padding: 1rem 0;
  margin: 0;
}

.reel-thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.reel-thumbnail:hover img {
  transform: scale(1.05);
}

/* Style for the currently active thumbnail */
.reel-thumbnail.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
}

/* --- 6.95 SOCIAL HUB STYLES (media.html) --- */

#social-hub {
  background: linear-gradient(
    135deg,
    #eee,
    #fff
  ); /* Subtle gradient background */
  padding-top: 3rem;
  padding-bottom: 4rem;
}

#social-hub h2 {
  margin-bottom: 0.5rem;
}

.social-intro {
  text-align: center;
  color: #555;
  margin-bottom: 2.5rem;
}

.social-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px; /* Limit width */
  margin: 0 auto;
}

.social-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Space between buttons */
  flex-wrap: wrap; /* Allow wrapping on small screens */
  margin-bottom: 1rem;
}

.social-button {
  background-color: var(--color-light);
  border: 2px solid #ddd;
  border-radius: 50%; /* Circular buttons */
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden; /* For pseudo-element transition */
}

.social-button .platform-icon {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  transition: color 0.3s ease;
  z-index: 2;
}

/* Platform-specific hover effects (using pseudo-elements) */
.social-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1;
}

.social-button.tiktok::before {
  background-color: #000;
} /* TikTok Black */
.social-button.instagram::before {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
} /* Instagram Gradient */
.social-button.youtube::before {
  background-color: #ff0000;
} /* YouTube Red */
.social-button.twitch::before {
  background-color: #9146ff;
} /* Twitch Purple */

.social-button:hover::before,
.social-button.active::before {
  transform: scale(1.1); /* Grow effect */
}

.social-button:hover .platform-icon,
.social-button.active .platform-icon {
  color: #fff; /* White icon text on hover/active */
}
.social-button.instagram:hover .platform-icon, /* Keep Instagram icon dark for gradient */
.social-button.instagram.active .platform-icon {
  color: var(--color-dark);
}

.social-button:active {
  transform: translateY(2px); /* Click feedback */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-display {
  position: relative;
  width: 100%;
  min-height: 400px; /* Adjust as needed */
  background-color: var(--color-light);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden; /* Clip contents */
}

.social-feed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px; /* Padding around the embed */
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  pointer-events: none; /* Prevent interaction when hidden */
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.social-feed.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto; /* Allow interaction when visible */
  z-index: 10; /* Ensure active feed is on top */
}

/* Placeholder styling (if you keep them temporarily) */
.embed-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  background-color: #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-body);
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
}
.embed-placeholder small {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #777;
}

/* Responsive adjustments for social hub */
@media (max-width: 480px) {
  .social-button {
    width: 50px;
    height: 50px;
  }
  .social-button .platform-icon {
    font-size: 1.2rem;
  }
  .social-nav {
    gap: 1rem;
  }
}

/* --- 6.96 SOCIAL LINKS SECTION (media.html) --- */

#social-links-section {
  /* Optional: Add a distinct background or keep default */
  background-color: var(--color-light); /* Or maybe var(--color-dark) */
  color: var(--color-dark); /* Adjust text color if bg is dark */
}

#social-links-section h2 {
  margin-bottom: 0.5rem;
}

#social-links-section .social-intro {
  text-align: center;
  color: #555; /* Adjust if bg is dark */
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.social-link-grid {
  display: grid;
  /* Creates 2 columns on medium screens, 4 on large */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px; /* Adjust max width */
  margin: 0 auto;
}

.social-link-card {
  background-color: #fff; /* Card background */
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden; /* For pseudo-elements */
  border: 1px solid #eee; /* Subtle border */
}

.social-link-card::before {
  /* Background color wash effect on hover */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.social-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.social-link-card:hover::before {
  opacity: 0.15; /* Wash intensity */
  transform: scaleY(1);
}

/* Platform-specific wash colors */
.social-link-card.tiktok:hover::before {
  background-color: #000;
}
.social-link-card.instagram:hover::before {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  opacity: 0.2;
}
.social-link-card.youtube:hover::before {
  background-color: #ff0000;
}
.social-link-card.twitch:hover::before {
  background-color: #9146ff;
}

/* Ensure content stays above the wash */
.social-link-card > * {
  position: relative;
  z-index: 2;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.social-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff; /* White icon fill */
}

/* Specific icon background colors */
.tiktok-icon {
  background-color: #000;
}
.instagram-icon {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.instagram-icon svg {
  fill: #fff;
} /* Instagram icon is often white on gradient */
.youtube-icon {
  background-color: #ff0000;
}
.twitch-icon {
  background-color: #9146ff;
}

.social-link-card:hover .social-icon {
  transform: scale(1.1) rotate(-5deg); /* Bounce/rotate icon on hover */
}

.social-link-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  color: var(--color-dark); /* Card title color */
}

.social-link-card p {
  color: #666; /* Card description color */
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  min-height: 40px; /* Prevent height changes */
}

.social-cta {
  /* Uses existing .cta-button style, but we can override */
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  /* Optional: Add platform-specific border colors */
  /* border-color: transparent; */
  transition: all 0.3s ease;
}

.social-link-card.tiktok .social-cta {
  border-color: #000;
  color: #000;
  background: transparent;
}
.social-link-card.tiktok .social-cta:hover {
  background: #000;
  color: #fff;
}

.social-link-card.instagram .social-cta {
  border-color: #e1306c;
  color: #e1306c;
  background: transparent;
}
.social-link-card.instagram .social-cta:hover {
  background: #e1306c;
  color: #fff;
}

.social-link-card.youtube .social-cta {
  border-color: #ff0000;
  color: #ff0000;
  background: transparent;
}
.social-link-card.youtube .social-cta:hover {
  background: #ff0000;
  color: #fff;
}

.social-link-card.twitch .social-cta {
  border-color: #9146ff;
  color: #9146ff;
  background: transparent;
}
.social-link-card.twitch .social-cta:hover {
  background: #9146ff;
  color: #fff;
}

/* --- 6.97 SOCIAL POSTS GRID (media.html) --- */

#social-posts-grid {
  background-color: var(--color-dark); /* Dark section background */
  color: var(--color-light);
  padding: 5rem 5%;
}

#social-posts-grid h2 {
  color: var(--color-light);
  margin-bottom: 0.5rem;
}

#social-posts-grid .section-intro {
  text-align: center;
  color: #ccc;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.social-grid-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(220px, 1fr)
  ); /* Responsive grid, 4x4 effectively on large screens */
  gap: 1.5rem; /* Space between cards */
  max-width: 1000px; /* Limit overall grid width */
  margin: 0 auto;
}

.social-post-card {
  background-color: #2a2a2a; /* Darker card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s ease;
  position: relative;
}

.social-post-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-post-card-image {
  width: 100%;
  height: 180px; /* Fixed height for image area */
  object-fit: cover; /* Cover the area, cropping if necessary */
  display: block;
  transition: transform 0.3s ease;
}

.social-post-card:hover .social-post-card-image {
  transform: scale(1.05);
}

.social-post-card-content {
  padding: 1rem;
  position: relative;
}

.card-platform-icon {
  position: absolute;
  top: -20px; /* Position above content */
  left: 10px;
  background-color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-platform-icon svg {
  width: 20px;
  height: 20px;
}
.card-platform-icon.tiktok-icon svg {
  fill: #000;
}
.card-platform-icon.instagram-icon svg {
  fill: url(#instagramGradientSmall);
} /* Use SVG gradient */
.card-platform-icon.youtube-icon svg {
  fill: #ff0000;
}
.card-platform-icon.twitch-icon svg {
  fill: #9146ff;
}

.social-post-card h3 {
  font-size: 1.1rem;
  margin-top: 0.5rem; /* Space from icon */
  margin-bottom: 0.5rem;
  color: var(--color-light);
  min-height: 48px; /* Ensure consistent height for titles across cards */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit title to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-post-card p {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit caption to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Social Post Spotlight Modal --- */
#social-post-backdrop {
  /* Reuses .spotlight-backdrop from headshots for the dark overlay */
  z-index: 1550; /* Slightly higher than headshot backdrop */
}

.social-post-spotlight {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7); /* Starts smaller */
  opacity: 0;
  pointer-events: none;
  background-color: var(
    --color-light
  ); /* Light background for the modal itself */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 650px; /* Max width for desktop */
  width: 90vw; /* Responsive width */
  max-height: 90vh; /* Max height */
  overflow-y: auto; /* Scroll if content is too long */
  display: flex;
  flex-direction: column;
  z-index: 1600; /* Above backdrop */
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.social-post-spotlight.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.spotlight-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  gap: 1rem;
}

.spotlight-platform-logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: contain;
}

.spotlight-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--color-dark);
}

.spotlight-body {
  padding: 1.5rem;
}

.spotlight-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.spotlight-caption {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.spotlight-link {
  display: block; /* Make it a block element */
  width: fit-content;
  margin: 0 auto;
  font-size: 1rem;
}

/* --- Responsive adjustments for Social Posts Grid --- */
@media (max-width: 767px) {
  .social-grid-container {
    grid-template-columns: repeat(
      auto-fit,
      minmax(180px, 1fr)
    ); /* Smaller cards on mobile */
    gap: 1rem;
  }
  .social-post-card-image {
    height: 150px; /* Shorter image height on mobile */
  }
  .social-post-card h3 {
    font-size: 1rem;
    min-height: 40px;
  }
  .social-post-card p {
    font-size: 0.8rem;
  }
  .social-post-spotlight {
    width: 95vw;
    max-width: 95vw;
    max-height: 85vh;
  }
  .spotlight-header {
    padding: 1rem;
  }
  .spotlight-header h3 {
    font-size: 1.1rem;
  }
  .spotlight-body {
    padding: 1rem;
  }
  .spotlight-image {
    max-height: 300px;
    margin-bottom: 1rem;
  }
  .spotlight-caption {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .spotlight-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* --- 7. ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Remove parallax if needed */
  /* .hero-section {
    background-attachment: scroll;
  } */

  .scroll-down-arrow,
  .polaroid,
  .polaroid.spotlight,
  .flip-card-inner {
    animation: none;
    transition: none;
  }
}

/* --- 8. RESPONSIVE --- */

/* Mobile styles */
@media (max-width: 767px) {
  /* Mobile Navigation Styles from Section 2 */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex; /* Ensure flex for column layout */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .nav-links.is-active {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle.is-active .hamburger {
    background: transparent;
  }
  .nav-toggle.is-active .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .nav-toggle.is-active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Mobile Hero Adjustments from Section 3 */
  .name-part {
    font-size: 12vw;
  }
  .name-nathan {
    left: 0;
    padding-left: 5%;
  }
  .name-broxton {
    right: 0;
    padding-right: 5%;
  }
  .hero-actions-container {
    bottom: 25%;
    width: 90%;
  }

  /* Mobile Media Timeline from Section 6.7 */
  .media-timeline::after {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
    padding-left: 60px;
  }
  .timeline-item::after,
  .timeline-item:nth-child(even)::after {
    left: 20px;
  }

  /* Mobile Headshots from Section 5 */
  .polaroid {
    width: 150px;
  }
  .polaroid img {
    height: 150px;
  }

  /* --- Mobile Spotlight Size (Adjusted) --- */
  .polaroid.spotlight {
    /* Make it slightly smaller on mobile, e.g., 85% of viewport width */
    width: 85vw !important;
    max-width: 85vw !important; /* Ensure vw is the primary constraint */
    /* Keep max-height for very tall/narrow screens */
    max-height: 75vh !important;
  }
  /* --- End Mobile Spotlight Size --- */

  /* Mobile Cursor Hiding from Section 6.5 */
  .cursor-follower {
    display: none;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 3rem;
  }

  /* Ensure desktop nav is visible */
  .nav-links {
    display: flex !important; /* Use important to override mobile fixed positioning */
    position: static;
    transform: none;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    width: auto;
    height: auto;
  }
  .nav-toggle {
    display: none !important;
  } /* Hide hamburger */

  /* Tablet secondary reels */
  .secondary-reels {
    grid-template-columns: 1fr 1fr;
  }

  /* Tablet about layout */
  .about-container {
    grid-template-columns: 300px 1fr;
  }

  /* Tablet polaroid size */
  .polaroid {
    width: 200px;
  }
  .polaroid img {
    height: 200px;
  }

  /* Tablet spotlight size will use the default rule:
     (width: 75vw, max-width: 700px) */
}

/* Desktop styles */
@media (min-width: 1024px) {
  /* No specific desktop spotlight override needed if the base rule
    (width: 75vw, max-width: 700px) is desired for large screens too. */
}

/* --- ACCESSIBILITY OVERRIDES --- */
/* This was Section 7, but logically fits better after base styles and responsiveness */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Remove parallax if needed */
  /* .hero-section {
    background-attachment: scroll;
  } */

  .scroll-down-arrow,
  .polaroid,
  .polaroid.spotlight,
  .flip-card-inner {
    animation: none;
    transition: none;
  }
}
