/* ─────────────────────────────── Reset ─────────────────────────────── */
:root {
  --accent-color: #ff66cc; /* Fallback, overridden by PHP */
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #000;
  font-family: 'Roboto Condensed', sans-serif;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

/* ─────────────────────────────── Wrapper ─────────────────────────────── */
.wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ─────────────────────────────── Sidebar ─────────────────────────────── */
.sidebar {
  width: 20%;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 10;
}

.menu-container {
  text-align: center;
}

.logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.logo video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ─────────────────────────────── Menu ─────────────────────────────── */
.menu ul {
  list-style: none;
  padding: 0;
}

.menu ul li {
  margin: 20px 0;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.menu ul li a:hover,
.menu ul li a.active {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

/* ─────────────────────────────── Content Area ─────────────────────────────── */
.content {
  width: 80%;
  margin-left: 20%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ─────────────────────────────── Video Gallery ─────────────────────────────── */
.video-gallery {
  display: flex;
  flex-direction: column;
}

.video-block {
  width: 100%;
  min-height: 100vh;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform;
}

.video-block.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
}

.video-text {
  position: absolute;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  color: white;
}

.video-text h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 50px;
  font-weight: 700;
}

.video-text p {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;
  margin-top: 8px;
}

/* Project Tag (e.g., Short Film) */
.project-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(255, 102, 204, 0.2);
  border: 1px solid var(--accent-color);
  border-radius: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
}

/* Coming Soon Block */
.coming-soon-block {
  position: relative;
  pointer-events: none;
}

.coming-soon-block .video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.coming-soon-block .video-text h1 {
  color: #fff;
}

.coming-soon-block video {
  filter: grayscale(50%);
}

/* ─────────────────────────────── Modal YouTube Popup ─────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 70%;
  max-width: 1100px;
  aspect-ratio: 16/9;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.close-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10000;
}
.close-btn:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

/* ─────────────────────────────── Mobile Header ─────────────────────────────── */
.mobile-header {
  display: none;
  justify-content: center;
  align-items: center;
  background-color: black;
  height: 120px;
  padding: 0 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.mobile-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-logo-video {
  height: 60px;
  display: block;
}

.hamburger {
  position: absolute;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* ─────────────────────────────── Mobile Menu ─────────────────────────────── */
.mobile-menu {
  display: none;
  background-color: #111;
  position: fixed;
  top: 120px;
  width: 100%;
  z-index: 998;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu ul li {
  padding: 15px;
}

.mobile-menu ul li a {
  color: white;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
}

/* ─────────────────────────────── Contact / Photography Pages ─────────────────────────────── */
.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 40px;
}

.contact-text {
  text-align: center;
  color: white;
  max-width: 600px;
}

.contact-text h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-text p {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;
  margin-top: 8px;
}

.contact-text a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-text a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────── Language Switcher ─────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  color: #fff;
  user-select: none;
}

.lang-switcher span {
  cursor: pointer;
  padding: 0 3px;
  transition: color .2s;
}

.lang-switcher span.active,
.lang-switcher .active-lang {
  color: var(--accent-color);
}

.lang-switcher span:hover {
  opacity: .75;
}

@media(max-width: 768px) {
  .lang-switcher { left: 20px; right: auto; }
}

/* ─────────────────────────────── 3D Parallax Panels ─────────────────────────────── */
#container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 40px auto;
  position: relative;
}

.panel {
  width: 300px;
  height: 400px;
  perspective: 800px;
  position: relative;
  transition: transform 0.3s ease, z-index 0s;
  z-index: 1;
}

.panel-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 1.5rem 2.5rem 5rem rgba(0,0,0,0.13);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  transition: transform 0.3s ease;
}

.panel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.panel-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 1;
  pointer-events: none;
}

.panel-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 20px;
  transform: translateZ(60px) scale(0.92);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.panel:hover {
  z-index: 10;
}

@media (max-width: 980px) {
  #container { gap: 16px; padding: 24px; flex-wrap: wrap; }
  .panel { width: 260px; height: 360px; }
}

/* ─────────────────────────────── Mobile Responsive Fix ─────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .hamburger { display: block; }
  .content {
    width: 100%;
    margin-left: 0;
    padding-top: 140px; /* space for mobile header */
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Fix contact page clipping on mobile */
  .contact-content {
    height: auto !important;
    min-height: 100vh;
    padding-top: 140px !important;
    overflow-y: auto !important;
  }
  
  /* Allow reels horizontal scroll */
  .content {
    overflow-x: visible !important;
    overflow-y: auto !important;
  }

  .video-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 16px;
  }

  .video-block {
    width: 100%;
    max-width: 600px;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .video-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
  }

  .video-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 8px;
  }
  .video-text h1 { font-size: 28px; }
  .video-text p { font-size: 14px; }

  #container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 160px;
    gap: 20px;
    padding: 0;
    width: 100%;
  }

  .panel {
    width: 90%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
  }

  .panel:hover {
    transform: none;
    z-index: 1;
  }
}

/* ─────────────────────────────── Reels Section ─────────────────────────────── */
.reels-section {
  padding: 20px 0;
  background: #000;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  padding: 0 25px 25px;
  background: #000;
}

.reel-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: visible;
  cursor: pointer;
  text-decoration: none;
  background: #111;
  perspective: 800px;
  transition: z-index 0s;
  z-index: 1;
}

.reel-item:hover {
  z-index: 100;
}

.reel-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease, filter 0.4s ease;
  filter: grayscale(100%);
}

.reel-item:hover .reel-preview {
  filter: grayscale(0%);
  box-shadow: 0 15px 40px rgba(255, 102, 204, 0.25), 0 5px 15px rgba(0, 0, 0, 0.5);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease-out;
  pointer-events: none;
  transform-style: preserve-3d;
}

.reel-item:hover .reel-overlay {
  opacity: 1;
}

.reel-title {
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  transform: translateZ(20px);
}

.reel-platform {
  color: var(--accent-color);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateZ(20px);
}

/* Reels Grid Responsive */
@media (max-width: 1200px) {
  .reels-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .reels-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .reels-section .video-wrapper { height: 30vh; }
  
  /* Reels container - allow overflow */
  .reels-section {
    width: 100%;
    overflow: visible !important;
    padding: 0 !important;
  }
  
  /* Horizontal scrolling reels */
  .reels-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 15px 20px !important;
    width: 100%;
    /* Reset grid */
    grid-template-columns: none !important;
  }
  
  .reels-grid::-webkit-scrollbar {
    display: none;
  }
  
  .reel-item {
    flex: 0 0 70vw;
    min-width: 70vw;
    width: 70vw;
    max-width: 70vw;
    scroll-snap-align: center;
    border-radius: 12px;
    aspect-ratio: 9 / 16;
    /* Disable all transforms */
    transform: none !important;
    transition: none !important;
    perspective: none !important;
  }
  
  .reel-item:hover,
  .reel-item:active {
    transform: none !important;
    z-index: 1 !important;
  }
  
  .reel-preview,
  .reel-overlay {
    transform: none !important;
    transition: none !important;
  }
  
  .reel-preview { 
    border-radius: 12px;
    filter: none;
  }
  
  .reel-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 15px;
    border-radius: 12px;
  }
  
  .reel-title { font-size: 14px; }
  .reel-platform { font-size: 11px; }
}

@media (max-width: 480px) {
  .reel-item {
    flex: 0 0 85vw !important;
    min-width: 85vw !important;
    max-width: 85vw !important;
    width: 85vw !important;
  }
}

/* GDPR Cookie - hidden by default to prevent flash */
#gdpr-cookie { display: none !important; }
#gdpr-cookie.show { display: block !important; }

