/* ----------------------
   Global / Base styles
   ---------------------- */
:root{
  --bg:#0c0c0c;
  --panel:#111;
  --muted:#777;
  --text:#e0e0e0;
  --accent:#fff;
  --max-w:900px;
  --gap:1rem;
}

* { box-sizing: border-box; }

::selection {
  background: #444;   /* highlight background */
  color: #fff;        /* highlight text color */
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html,body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1, h2, h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Main container — centralized for all pages */
main {
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 0 20px 80px;
  line-height: 1.5;
}

/* Headings */
h1, h2 {
  color: var(--accent);
  font-weight: 400;
  margin: 0 0 12px 0;
}

/* Homepage image */
.home-photo {
  display: block;
  margin: 20px auto;
  max-width: 33%;
  border-radius: 0px;
  box-shadow: 0 0px 0px rgba(0,0,0,0.4);
}

/* Links, footer */
a { color: #cfcfcf; }
a:hover { color: var(--accent); }

footer {
  text-align: center;
  padding: 22px 12px;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  margin-top: 40px;
}

/* Social links */
.social-links { margin-top: 18px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.social-links a { color: #cfcfcf; text-decoration:none; }

/* Small utilities */
.center { text-align:center; }
.small { font-size:0.95rem; color:var(--muted); }

/* ----------------------
   projects-specific styles
   Scoped under .projects so it won't overwrite globals
   ---------------------- */
.projects {
  /* we use slightly larger max-width for projects pages if desired */
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 80px;
}

/* Playlists row (side-by-side on desktop, stacked on small screens) */
.projects .playlist-row {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Each playlist column */
.projects .playlist {
  background: transparent; /* keep minimalist */
  flex: 1 1 44%;
  min-width: 280px;
  padding: 6px 0;
}

/* Playlist heading style (no emoji) */
.projects .playlist h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  border-bottom: 1px solid #222;
  padding-bottom: 8px;
  color: var(--accent);
}

.track {
  display: flex;
  align-items: center;
  justify-content: space-between; /* keeps spacing even */
  gap: 15px; /* space between title and player */
  margin-bottom: 15px;
}

.track-title {
  flex-shrink: 0; /* prevents title from shrinking */
  font-size: 1rem;
  color: #ddd;
  width: 120px; /* optional, keeps titles aligned */
  text-align: right; /* gives a neat column-like look */
}

/* Videos row and video tiles */
.projects .video-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* each video column scaled to be smaller — half-size-ish */
.projects .video {
  flex: 1 1 48%;
  min-width: 260px;
  max-width: 48%;
}

/* ensure iframe fits its container and maintains 16:9 */
.projects .video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 0;
  background: #000;
  display: block;
}

.video-caption {
  font-size: 0.8rem;           /* smaller font */
  color: #666;                 /* dark gray like footer */
  text-align: center;          /* centered under the video */
  margin-top: 6px;             /* small spacing from video */
  letter-spacing: 0.3px;       /* subtle elegant spacing */
}

/* Responsive adjustments */
@media (max-width: 760px) {
  nav { gap: 12px; }
  main { margin: 40px 12px; padding: 0 14px 60px; }
  .projects .playlist { flex-basis: 100%; min-width: 100%; }
  .projects .video { flex-basis: 100%; max-width: 100%; }
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

footer {
  display: flex;
  justify-content: space-between; /* separates center and right items */
  align-items: center;
  background-color: #111;
  color: #ccc;
  text-align: right;
  padding: 10px 0px;
  gap: 10px;
}

.footer-center {
  flex: 1;
  text-align: center; /* centers the tagline */
}

.footer-right {
  text-align: right;
  white-space: nowrap; /* prevents wrapping if screen is narrow */
}

#contact {
/* display: flex;
flex-direction: column;
justify-content: center; /* vertical centering */
align-items: center; /* horizontal centering */
min-height: calc(100vh - 120px); /* keeps within viewport minus header/footer */
text-align: center;
}

/* Remove unnecessary scroll space on projects page */
.projects {
  max-width: 1000px;
  margin: 40px auto 0; /* Remove bottom margin */
  padding: 0 20px 40px; /* Reduce bottom padding */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto; /* allow scroll only if necessary */
}

main {
  flex: 1;
  margin-bottom: 0; /* prevents extra white space */
}

footer {
  margin-top: auto; /* pushes footer to bottom without adding scroll */
}

.home .intro {
  display: flex;
  align-items: center;        /* vertically center text with image */
  justify-content: center;    /* centers both on the page */
  gap: 40px;                  /* space between text and image */
  flex-wrap: wrap;            /* allows wrapping on small screens */
  text-align: center;
}

.home .intro img {
  max-width: 300px;           /* control image size */
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.home .intro h1 {
  margin-bottom: 0.5rem;
}

.home .intro p {
  max-width: 420px;
  line-height: 1.6;
}

.home .intro-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* makes it stack on smaller screens */
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.home .intro-content img {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: none;
}

.home .intro-content p {
  max-width: 420px;
  line-height: 1.6;
}

/* Plyr dark theme tweaks to match site */
.plyr {
  background: #0b0b0b;
  color: #4d4d4d;
  border-radius: 8px;
  border: none;
  box-shadow: none;
}

.plyr__controls {
  background: transparent;
}

.plyr--audio .plyr__control.plyr__control--overlaid {
  color: #fff;
}

/* reduce default padding so it sits well in columns */
.plyr__controls .plyr__control {
  padding: 6px;
}

/* ---------- Track row: title left, player right, vertically centered ---------- */
.projects .track {
  display: flex;
  align-items: center;      /* vertical centering */
  gap: 18px;                /* space between title and player */
  margin-bottom: 16px;
}

/* Title column on the left */
.projects .track-title {
  width: 160px;             /* fixed column width keeps titles aligned */
  flex-shrink: 0;           /* don't let title collapse */
  text-align: right;        /* right-aligned labels look like rack labels */
  color: #d6d6d6;
  font-size: 0.98rem;
  line-height: 1;           /* keep the title vertically compact */
  padding-right: 8px;
}

/* Make the player take the remaining horizontal space */
.projects .track audio.js-player,
.projects .track .plyr {
  flex: 1 1 auto;
  max-width: 100%;
}

/* ---------- Plyr dark theme overrides (minimal, contrast-optimized) ---------- */
/* player container */
.plyr {
  background: #0c0c0c;      /* dark bar */
  color: #444444;           /* icons / text */
  border-radius: 10px;
  border: none;
  box-shadow: none;
}

/* controls row background (smaller padding, flat) */
.plyr__controls {
  background: transparent; /* we use the player container background */
}

/* control icons / text */
.plyr__control,
.plyr__time,
.plyr__volume {
  color: #333333 !important;
}

/* progress bar track (background) and buffer */
.plyr .plyr__progress--played {
  background: #9a9a9a; /* played portion */
}
.plyr .plyr__progress {
  background: rgba(255,255,255,0.06); /* rail */
}

/* scrub handle */
.plyr .plyr__progress__container .plyr__progress__tooltip,
.plyr .plyr__progress__container .plyr__progress__handle {
  background: #cfcfcf;
}

/* reduce default spacing so players sit compactly */
.plyr__controls .plyr__control {
  padding: 6px 8px;
}

/* make the big overlay play button subtle (audio only) */
.plyr--audio .plyr__control.plyr__control--overlaid {
  opacity: 0.85;
}

/* Responsive: on very narrow screens stack title above player */
@media (max-width: 560px) {
  .projects .track {
    flex-direction: column;
    align-items: stretch;
  }
  .projects .track-title {
    width: 100%;
    text-align: left;
    padding-right: 0;
    margin-bottom: 8px;
  }
}

footer {
  width: 100%;
  padding: 20px 30px;
  font-size: 0.9rem;
  background: transparent;
  color: #444;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Center text (desktop) */
.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

/* Right text (desktop) */
.footer-right {
  margin-left: auto;
  padding-right: 30px;
  white-space: nowrap;
}

/* Left block for balance */
.footer-left {
  width: 200px;
}

/* Fix: your missing semicolon */
.video-caption {
  color: #444;
  font-size: 0.9rem;
}

/* ✅ MOBILE FIX — disable absolute centering so nothing overlaps */
@media (max-width: 600px) {

  footer {
    padding: 28px 20px 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px; /* spacing between lines */
    position: static; /* IMPORTANT */
  }

  .footer-center {
    position: static !important;  /* ✅ disable absolute */
    transform: none !important;   /* ✅ remove desktop transform */
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
  }

  .footer-right {
    width: 100%;
    text-align: center;
    margin: 0;
    padding-right: 0;
  }

  .footer-left {
    display: none; /* not needed on mobile */
  }
}


/* Mobile spacing tweaks for homepage */
@media (max-width: 600px) {

  footer {
    padding: 32px 20px 40px !important;
  }

  .footer-inner {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  .footer-center {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
  }

  .footer-right {
    position: static !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
  }

  .footer-left {
    display: none !important;
  }
}

/* Remove extra bottom padding on Contact page */
.contact {
  padding-bottom: 20px !important;
  margin-bottom: 0 !important;
}

/* -----------------------
   LEFT SIDEBAR LAYOUT
   ----------------------- */

body {
  display: flex;
  margin: 0;
  background: #0c0c0c;
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
}

/* Sidebar column */
.sidebar {
  width: 200px;
  background: #0d0d0d;
  padding: 30px 20px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  border-right: 1px solid #111;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Logo / Name */
.logo {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Navigation */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-nav a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: 0.2s ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: #fff;
}

/* Content area */
.content {
  margin-left: 240px; /* space for sidebar */
  padding: 40px;
  max-width: 900px; /* controls the width of your page content */
  width: 100%;
  margin-right: auto;
  margin-left: 240px;
  display: block;
}

/* center all content inside the content area */
.content {
  margin-left: 240px;
  margin-right: auto;
  max-width: 900px;
}

/* ensures the content block is centered in the remaining space */
@media (min-width: 900px) {
  .content {
    margin-left: calc(240px + (100vw - 240px - 900px) / 2);
  }
}

/* Responsive for mobile */
@media (max-width: 720px) {
  .sidebar {
    position: relative;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid #111;
  }

  .side-nav {
    flex-direction: row;
    gap: 16px;
  }

  .content {
    margin-left: 0;
    padding: 20px;
  }
}

.contact-wrapper {
  max-width: 600px;  /* adjust for taste */
  margin: 0 auto;   /* centers the whole block */
}

.contact-wrapper h1,
.contact-wrapper p {
  text-align: left;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  text-align: left;
}

/* --- Custom Audio Player --- */

.custom-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  padding: 8px 14px;
  border-radius: 10px;
  width: 260px;
}

.cp-play {
  background: none;
  border: none;
  color: #eee;
  font-size: 18px;
  cursor: pointer;
  width: 28px;
}

.cp-bar {
  flex: 1;
  height: 4px;
  background: #444;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.cp-progress {
  height: 100%;
  width: 0%;
  background: #888;
  border-radius: 2px;
}

.cp-time {
  font-size: 12px;
  color: #777;
}

/* Desktop columns */
.playlist-columns {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 40px;
}

.playlist-column {
  flex: 1;
  min-width: 320px;
  max-width: 450px;
}

@media (max-width: 900px) {
  .playlist-columns {
    flex-direction: column;
    gap: 30px;
  }
}

.film-header {
  text-align: center;
  margin-top: 50px;
}

.film-header h2 {
  margin-bottom: 30px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* vertical centering */
  height: 100vh;
  padding-top: 0;
}

.sidebar img {
  margin-bottom: 40px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
}

/* -----------------------
   MOBILE NAVIGATION
----------------------- */
.mobile-nav {
  display: none;
  width: 100%;
  background: #111;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-logo {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-burger {
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
}

/* Dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 10px 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #eee;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1rem;
}

.mobile-menu a:hover {
  color: #fff;
}


/* -----------------------
   RESPONSIVE BREAKPOINT
----------------------- */
@media (max-width: 900px) {
  
  /* Hide desktop sidebar */
  .sidebar {
    display: none;
  }

  /* Show mobile nav */
  .mobile-nav {
    display: block;
  }

  /* Let page content be full width */
  .content {
    margin-left: 0 !important;
    padding: 0 20px;
  }
}

.custom-player {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ccc;
    padding: 6px 0;
}

.cp-play {
    background: none;
    border: none;
    font-size: 16px;
    color: #ccc;
    cursor: pointer;
}

.cp-bar {
    position: relative;
    width: 160px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
}

.cp-progress {
    height: 100%;
    width: 0%;
    background: #888;
    border-radius: 3px;
}

.cp-volume {
    width: 80px;
    cursor: pointer;
}

.cp-time {
    font-size: 12px;
    color: #777;
}

/* Volume wrapper (button + hidden drawer) */
.cp-volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* The volume icon */
.cp-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #ccc;
    padding: 0;
}

/* Hidden drawer container */
.cp-volume-drawer {
    position: absolute;
    bottom: 100%;
    right: 0;
    padding: 6px;
    background: #111;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.6);
    display: none;
}

/* Vertical slider inside drawer */
.cp-volume {
    width: 80px;
}

/* Show drawer on hover (desktop) */
.cp-volume-wrapper:hover .cp-volume-drawer {
    display: block;
}

/* Mobile toggle class */
.cp-volume-wrapper.open .cp-volume-drawer {
    display: block;
}

.custom-player {
    width: 260px;    /* Prevents the time display from being cut off */
}

.cp-time {
    color: #ccc;
    font-size: 12px;
    flex-shrink: 0;   /* Prevent shrinking */
    margin-left: 8px;
}
.custom-player {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
    background: #222;
    padding: 6px 10px;
    border-radius: 10px;
}

.cp-icon {
    width: 15px;
    height: 15px;
    display: block;
}

.cp-bar {
    flex: 1;
    height: 4px;
    background: #444;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.cp-progress {
    height: 100%;
    background: #aaa;
    border-radius: 3px;
    width: 0%;
}

.cp-play {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 15px;
}

.cp-volume-wrapper {
    position: relative;
}

.cp-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
}

.cp-time {
    color: #ccc;
    font-size: 11px;
    margin-left: 4px;
    flex-shrink: 0;
}
