/* Fullscreen video background */
* { box-sizing: border-box; }
html,body { height: 100%; margin: 0; font-family: Arial, Helvetica, sans-serif; min-width: 320px; }
:root { --headline-top: 100px; --headline-left: 50%; --headline-size: clamp(2.5rem, 6vw, 6rem); --morph-gap: 16px; }

/* Load Diamonds font */
@font-face {
  font-family: 'LookinDiamonds';
  src: url('Assets/Lookin-\' Like Diamonds.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Load Dream Orphans font */
@font-face {
  font-family: 'DreamOrphans';
  src: url('Assets/dream_orphans/Dream Orphans.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DreamOrphans';
  src: url('Assets/dream_orphans/Dream Orphans Bd.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Navigation Bar */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  gap: 40px;
  z-index: 10000;
}

.nav-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 300ms ease;
  padding: 8px 0;
  position: relative;
  display: inline-block;
  font-family: 'DreamOrphans', Arial, Helvetica, sans-serif;
}

.nav-button:hover {
  color: #f0f;
  transform: scale(1.2);
  text-shadow: 0 0 10px #f0f, 0 0 20px #f0f;
}


.video-wrap { position: relative; width: 100%; height: 100vh; overflow: hidden; }
#bg-video { position: absolute; top: 50%; left: 50%; width: auto; height: 100%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; z-index: 0; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); z-index: 1; }
.content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; height: 100%; }
.headline { color: #fff; font-size: var(--headline-size); letter-spacing: 1px; margin: 0; text-align: center; font-weight: 700; }

/* Load custom font placed in public/assets */
@font-face {
  font-family: 'AngstromCustom';
  src: url('Assets/angstrom.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Move headline to center */
.headline.top-left { position: fixed; top: var(--headline-top); left: var(--headline-left); transform: translateX(-50%); text-align: center; z-index: 9999; padding: 0; margin: 0; font-family: 'AngstromCustom', Arial, Helvetica, sans-serif; }

/* Mobile adjustments (split the difference) */
@media (max-width: 640px) {
  :root { --headline-top: 80px; --headline-left: clamp(12px, 5vw, 16px); --morph-gap: 12px; }
  .headline.top-left { font-size: var(--headline-size); padding: 6px 10px; }
}

/* Grid overlay for layout (10px increments) */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 10px 10px, 10px 10px;
  opacity: 0.9;
  display: block;
}
.grid-overlay .grid-label { position: absolute; color: rgba(255,255,255,0.8); font-size: 11px; background: rgba(0,0,0,0.45); padding: 2px 4px; border-radius: 3px; pointer-events: none; z-index: 9999; }
.grid-toggle { position: fixed; right: 18px; top: 18px; z-index: 10000; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.12); padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.grid-toggle:focus { outline: 2px solid rgba(255,255,255,0.12); }
.hidden { display: none !important; }

/* Circular conveyor belt text */
/* Responsive tweaks */
@media (max-width: 640px) {
  /* removed curved text rules */
}

/* Morphing text effect */
@import url("https://fonts.googleapis.com/css?family=Raleway:900&display=swap");

#subtitle, #container {
  position: fixed;
  left: var(--headline-left);
  top: calc(var(--headline-top) + var(--headline-size) + var(--morph-gap));
  max-width: calc(100vw - 40px);
  width: fit-content;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'DreamOrphans', "Raleway", sans-serif;
  font-size: clamp(1.25rem, 3vw, 3rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
}

#text1, #text2 {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap; /* prevent long words/phrases from wrapping */
}

#filters {
  display: none;
}

/* Sections */
.section { position: relative; width: 100%; min-height: 100vh; }

/* Hero stays fixed while scrolling */
#hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

/* Gallery scrolls over hero and fades in */
#gallery {
  position: relative;
  z-index: 2;
  margin-top: 100vh;
}



/* Overlay squares on the gallery image - hidden by default, shown with gallery */
.square { position: fixed; width: 100px; height: 100px; background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.6); z-index: 4; backdrop-filter: blur(2px); opacity: 0; transition: opacity 800ms ease; }
#gallery.show .square { opacity: 1; }
.s1 { top: 12%; left: 10%; }
.s2 { top: 60%; left: 70%; }
.s3 { top: 30%; left: 40%; }

/* Fade out subtitle when gallery becomes visible */
#subtitle {
  transition: opacity 600ms ease;
}

/* Gallery image with parallax scrolling and zoom */
.full-image {
  position: fixed;
  inset: 0;
  width: 120%;
  height: 120%;
  left: -10%;
  top: -10%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1200ms ease;
  z-index: 3;
}
#gallery.show .full-image {
  opacity: 1;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 1;
  transition: opacity 300ms ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

.loading-text {
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

/* Scramble effect */
.scramble-char {
  display: inline-block;
  position: relative;
}

/* Signature */
.signature {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: auto;
  z-index: 100;
  opacity: 0;
  transition: opacity 6s ease-in;
}

.signature:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .signature {
    width: 100px;
    bottom: 10px;
    right: 10px;
  }
}

/* Lighting Page Specific Styles */
body.lighting-page {
  background-attachment: fixed;
}

.strip {
  background-color: rgba(255, 255, 255, 0.1);
}

.bard {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.15));
}

.lighting-content {
  position: relative;
  z-index: 5;
  padding: 80px 40px 60px 40px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

body.lighting-page .lighting-content {
  padding-top: 40px;
}

.content-section {
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* CCM container - full width */
.videos-container:nth-of-type(2) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
  flex: 0 0 calc(85% - 4px);
  min-width: 0;
}

.videos-container:first-of-type .video-box {
  min-height: auto;
  height: auto;
}

.videos-container:first-of-type video {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Test container (1st video container) */
.videos-container:nth-of-type(1).test-container {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 500px;
  flex-shrink: 0;
  width: calc(66.66% - 10px);
  min-height: 600px;
}


/* CCM container - full width */
.videos-container:nth-of-type(2) {
  display: grid;
  grid-template-columns: 1fr;
  flex: 0 0 auto;
  min-width: 0;
  width: calc(66.66% - 10px);
  margin-left: auto;
}

.videos-container:nth-of-type(2) > div:first-child {
  display: none;
}

.videos-container:nth-of-type(2) .video-box {
  min-height: auto;
  height: auto;
}

.videos-container:first-of-type .video-box {
  min-height: auto;
  height: auto;
}

.videos-container:first-of-type video {
  height: auto;
  aspect-ratio: 16 / 9;
}

.videos-container:nth-of-type(2) video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* RNB container (3rd video container) */
.videos-container:nth-of-type(3) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

/* Hair and PDF container (4th video container) */
.videos-container:nth-of-type(4) {
  display: grid;
  grid-template-columns: 2fr 1fr;
  width: 100%;
}

.videos-container:nth-of-type(4) .video-box:first-child {
  min-height: auto;
  height: auto;
}

.videos-container:nth-of-type(4) video {
  height: auto;
  aspect-ratio: 16 / 9;
}

.videos-container:nth-of-type(4) .video-box:last-child {
  min-height: 600px !important;
  height: 600px !important;
  margin-top: 80px;
}

/* VG container (5th video container) */
.videos-container:nth-of-type(5) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.vgc3-container .video-box {
  min-height: auto;
  aspect-ratio: 16 / 9;
}

.video-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  min-height: 250px;
}

body.lighting-page .videos-container {
  margin-top: 50px;
}

.lighting-page .videos-container {
  margin-top: 50px;
}

.video-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  min-height: 400px;
}

.content-section video,
.content-section iframe,
.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.content-text {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.content-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-family: 'LookinDiamonds', Arial;
}

.content-text a {
  color: #f0f;
  text-decoration: underline;
  transition: color 300ms ease;
}

.text-hover-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.8), rgba(30, 30, 30, 0.8));
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: all 0.3s ease;
}

.text-hover-box.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
}

.text-hover-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.text-hover-box:hover::after {
  opacity: 1;
}

.text-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.text-hover-box:hover .text-content {
  opacity: 1;
}

.text-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  padding: 0;
}

.text-subtitle {
  font-size: 14px;
  color: #aaa;
  margin: 0;
  padding: 0;
}

.text-date {
  font-size: 12px;
  color: #888;
  margin: 0;
  padding: 0;
}
  .content-section {
    grid-template-columns: 1fr;
  }

  .lighting-content {
    padding: 40px 20px;
  }

  .videos-container:nth-of-type(1).test-container {
    width: calc(33.33% - 10px);
    margin-top: 50px;
  }

  .videos-container:nth-of-type(2) {
    width: calc(66.66% - 10px);
  }
}

