/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap");

/* Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Styles */
body {
  font-family: "Inter", sans-serif;
  background: none;
  color: #eee;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

.page-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("images/hero-bg-desktop.jpg") center center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.page-wrapper {
  max-width: 100%;
  overflow-x: hidden;
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  z-index: 0;
}

/* Page-wide overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* Content on top of overlay */
header,
main,
footer,
.button-section {
  position: relative;
  z-index: 1;
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: #fff;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}
h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}
p {
  margin-bottom: 1rem;
}

/* Nav & Footer */
header {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
}
/* Footer */
footer {
  font-size: 0.9rem;
}

footer p {
  color: #777;
}

nav a {
  color: #ccc;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
}
nav a.active,
nav a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  z-index: 1;
}

.hero h1,
.hero p {
  margin: 0.5rem 0;
}

.page-title h2 {
  font-size: 2rem;
}

/* Main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  max-width: 100vw;
  margin: 0 auto;
  padding: 2rem;
  overflow-x: hidden;
}

/* Resume / Bio Table */
.resume-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.bio-table {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.bio-table div {
  flex: 1 1 150px;
}

/* Button Section */
.button-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.button-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Button Style */
.button,
.spotlight-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  line-height: 1;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  gap: 0.5rem;
  box-sizing: border-box;
}

.button {
  background: #00aaff;
  color: white;
}

.button:hover {
  background: #008ecc;
}

.spotlight-pill {
  background: #fff;
  color: #000;
}

.spotlight-pill:hover {
  background-color: #f8f8f8;
}

.spotlight-pill img {
  height: 20px;
  width: 20px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.button-group img {
  display: inline-block;
  vertical-align: middle;
  height: 20px;
}

.button-group .button {
  background: #00aaff;
  color: white;
}

.button-group .button:hover {
  background: #008ecc;
}

.button-group .spotlight-pill {
  background: #fff;
  color: #000;
}

.button-group .spotlight-pill:hover {
  background: #f8f8f8;
}

.bio-section {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.credit-row {
  display: contents; /* allows children to span grid */
}

.credit-row > div {
  padding: 0.2rem 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
}
 ̰ .credit-film {
  font-weight: bold;
}

.credit-role {
  font-style: italic;
}

.credit-info {
  font-size: 0.95em;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .credits-grid {
    grid-template-columns: 1fr;
  }

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

  .credit-row > div {
    padding: 0.5rem 0;
  }
}

/* Reel Video */
.aspect-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.aspect-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-title {
  font-weight: bold;
  margin: 0.5em 0 0.25em;
  font-size: 1rem;
  text-align: center;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.image-wrapper {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.image-wrapper img {
  width: 100%;
  display: block;
}
.image-wrapper .credit {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: 0.5rem 1rem;
  }
  .hero {
    padding: 2rem 0;
  }
  nav a {
    display: inline;
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.8rem;
  }
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  .button,
  .spotlight-pill {
    width: auto;
    max-width: 90%;
    text-align: center;
    justify-content: center;
  }
  .spotlight-pill img {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .page-wrapper::before {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
      url("images/hero-bg-mobile.jpg") center center / cover no-repeat;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .page-wrapper::before {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
      url("images/hero-bg-mobile-landscape.jpg") center center / cover no-repeat;
  }
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Google Font */
body {
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Scroll-to-top button */
.scroll-top {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.scroll-top:hover {
  background: #555;
}

/* Smooth scrolling for in-page anchors */
html {
  scroll-behavior: smooth;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
}
.contact-form button {
  padding: 0.75rem;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form {
  width: 90%; /* fills most of the parent width */
  max-width: 1000px; /* caps max width */
  min-width: 600px;
  margin: 0 auto; /* centers horizontally */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  box-sizing: border-box;
}

.contact-form label {
  font-size: 1rem;
  color: #ccc;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background: #222;
  color: #fff;
  box-sizing: border-box;
  width: 100%;
  resize: vertical; /* allows vertical resize only for textarea */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  padding: 1rem;
  font-size: 1rem;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.contact-form button:hover {
  background: #666;
}

/* Responsive for small screens */
@media (max-width: 600px) {
  .contact-form {
    width: 95%;
    min-width: 320px;
    padding: 1.5rem;
    gap: 0.75rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* Social Icons */
.social-icon {
  height: 24px;
  width: 24px;
  margin: 0 8px;
  vertical-align: middle;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 1;
}

.success-message {
  color: green;
  margin-bottom: 1em;
}

.error-message {
  color: red;
  margin-bottom: 1em;
}

/* Toggle Content Container (hidden by default) */
.toggle-content {
  display: none;
  max-height: 1000px;
  overflow-x: hidden;
  word-wrap: break-word;
  background-color: #2a2a2a;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* Visible state (expanded section) */
.toggle-content.visible {
  max-height: 1000px; /* Large enough for your content */
  opacity: 1;
  background-color: #2a2a2a;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.toggle-content,
reviews {
  overflow-wrap: break-word;
  word-break: break-word;
}

.toggle-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 0;
  text-align: left;
}

footer {
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #eee;
  font-size: 0.8rem;
}

footer p {
  margin: 0.5rem 0;
  color: #eee;
}

footer a {
  display: inline-block;
  margin: 0 0.5rem;
}

footer .social-icon {
  height: 24px;
  width: 24px;
  vertical-align: middle;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer .social-icon:hover {
  opacity: 1;
}

/* === Privacy Policy Modal === */

#privacy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  padding: 40px 20px;
  overflow-y: auto;
  font-family: system-ui, -apple-system, sans-serif;
}

#privacy-modal .modal-content {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  padding: 30px 35px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#privacy-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #555;
  cursor: pointer;
}

/* Typography */
#privacy-modal h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: #333;
}

#privacy-modal h3 {
  color: #333;
  margin-top: 1.5em;
  font-size: 1.2em;
}

#privacy-modal p,
#privacy-modal ul {
  color: #444;
  font-size: 0.96em;
  line-height: 1.6;
  margin-bottom: 1em;
}

#privacy-modal ul {
  padding-left: 1.2em;
}

#privacy-modal a {
  color: #0066cc;
  text-decoration: underline;
}

#privacy-modal small {
  color: #777;
  font-size: 0.9em;
}

#privacy-link {
  font-family: inherit;
  color: inherit;
  text-decoration: underline; /* Keeps it underlined as you wanted */
  font-size: inherit;
}

details {
  display: block;
  width: 100%;
}

details summary {
  display: list-item;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  padding: 0.75em 1em;
  font-size: 1.2rem;
  font-weight: 600;
  color: #eee;
  background: transparent;
  border: none;
  margin-top: 1.5em;
}

details summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

details[open] summary {
  background-color: rgba(255, 255, 255, 0.15);
}

details ul {
  margin-left: 1.5em;
  padding: 0.5em 0;
  color: #ddd;
}
