:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b5b5b5;
  --grad: linear-gradient(135deg, #ffffff, #7b7b7b);
  --highlight: linear-gradient(135deg, #ffffff, #cccccc);
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
  cursor: none;
}
.padding-top,
.padding-bottom {
  padding-top: 120px;
  padding-bottom: 120px;
}
.section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem;
}
a {
  color: inherit;
  text-decoration: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s;
}

.cursor-circle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transition: all 0.3s;
}

/* ================= LOADING SCREEN ================= */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-text {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= NAVIGATION ================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}

.logo-text {
  position: relative;
  z-index: 2;
}

.logo-bubble {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--grad);
  border-radius: 50%;
  top: 50%;
  left: 0;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 1;
}

.logo:hover .logo-bubble {
  transform: translateY(-50%) scale(3);
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  padding: 5px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--grad);
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.nav-links a:hover::after {
  transform: translateX(0);
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 20px 30px;
    gap: 20px;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    cursor: pointer;
  }
  body {
    cursor: auto;
  }
}

/* ================= HERO / VIDEO ================= */
.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Default: desktop */
.mobile-video {
  display: none;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 8vw;
}

.hero-text {
  max-width: 900px;
}

/* TITLE */
.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;

  background: linear-gradient(135deg, #ffffff, #bfbfbf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  opacity: 0;
  transform: translateY(60px);
}

/* TAGLINE */
.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: #e5e5e5;

  opacity: 0;
  transform: translateY(40px);
}

/* DESCRIPTION */
.hero-description {
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.7;
  color: #b5b5b5;
  max-width: 520px;

  opacity: 0;
  transform: translateY(30px);
}
/* Mobile */
@media (max-width: 768px) {
  .desktop-video {
    display: none;
  }

  .mobile-video {
    display: block;
    opacity: 0.45;
  }
  .hero-overlay {
    align-items: flex-end;
    padding: 0 6vw 16vh;
  }

  .hero-title {
    font-size: clamp(5rem, 10vw, 4.2rem);
  }
}
/* ================= SCROLL PROGRESS + TOP ================= */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
}

.scroll-top svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.scroll-top i {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
}

/* ===== COLLAB2 SECTION - CHARACTER REVEAL WITH BACKGROUND ===== */
.collab2 {
   min-height: 320vh;
  position: relative;
  background: #000;
  overflow: clip;
}
.collab2-flow {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6vh;
  padding-top: 12vh;
}
.collab2-header {
  text-align: center;
  padding: 0 6vw;
}

.collab2-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.collab2-description {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Background image container with zoom effect */
.collab2-bg {
    position: fixed;
  inset: 0;
  z-index: 1;
  transform: scale(0.2);
  opacity: 0;
  will-change: transform, opacity;
}

.collab2-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}

.collab2-bg.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Text container */
.collab2-inner {
    min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Character-by-character reveal */
.collab2-line {
  font-size: clamp(2.8rem, 6.5vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.1);
  position: relative;
  text-align: center;
  max-width: 1200px;
}
@media (max-width: 768px) {
  .collab2 {
    min-height: 220vh;
  }

  .collab2-flow {
    padding-top: 10vh;
    gap: 4vh;
  }

  .collab2-line {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    line-height: 1.4;
  }

  .collab2-bg {
    filter: brightness(0.35);
  }
}

.char {
  display: inline-block;
  position: relative;
  opacity: 0.3;
  transform: translateY(20px) scale(0.95);
  filter: blur(3px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.char.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Special style for revealed characters */
.char.revealed:nth-child(odd) {
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.char.revealed:nth-child(even) {
  background: linear-gradient(135deg, #cccccc, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Space character special handling */
.char.space {
  width: 0.4em;
}

/* Progress indicator */
.reading-progress {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.reading-progress.active {
  opacity: 1;
}

.reading-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #000, #fff, #000);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* Responsive */
@media (max-width: 768px) {
  .collab2 {
    min-height: 200vh;
  }

  .collab2-line {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    line-height: 1.3;
  }

  .reading-progress {
    bottom: 80px;
    width: 150px;
  }
}




    /* ================= OUR WORK SECTION ================= */
    .our-work {
      position: relative;
      min-height: 100vh;
      padding: 10vh 5vw;
      background: #000;
      overflow: hidden;
    }

    .work-title {
      font-size: clamp(2.5rem, 5vw, 4.5rem);
      text-align: center;
      margin-bottom: 8vh;
      opacity: 0;
      transform: translateY(50px);
    }

    .work-title span {
      background: var(--grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* Video Grid */
    .video-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      max-width: 1600px;
      margin: 0 auto;
    }

    .video-item {
      position: relative;
      aspect-ratio: 16/9;
      border-radius: 12px;
      overflow: hidden;
      background: #111;
      opacity: 0;
      transform: scale(0.98);
      border: 1px solid rgba(255,255,255,0.04);
      transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.35s, border-color 0.35s;
    }

    /* subtle background glow using a blurred pseudo-element */
    .video-item::before {
      content: '';
      position: absolute;
      left: 50%;
      top: 35%;
      width: 220%;
      height: 160%;
      transform: translate(-50%, -50%) scale(0.95);
      background: radial-gradient(circle at 50% 30%, rgba(255, 80, 133, 0.28), rgba(255, 30, 154, 0.08) 30%, transparent 60%);
      filter: blur(64px);
      opacity: 0; /* keep background glow hidden when using border glow */
      transition: opacity 0.45s cubic-bezier(0.2,0.8,0.2,1), transform 0.45s;
      pointer-events: none;
      z-index: 1;
      mix-blend-mode: screen;
      will-change: opacity, transform;
    }

    .video-item video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      z-index: 1; /* lower than overlay */
    }

    .video-item:hover video {
      transform: scale(1.05);
    }

    /* Hover glow / border accent */
    .video-item:hover {
      transform: translateY(-6px) scale(1.02);
      border-color: rgba(255, 90, 181, 0.95);
      /* glowing border using layered box-shadows */
      box-shadow:
        0 18px 40px rgba(0,0,0,0.55),
        0 0 18px rgba(235, 60, 255, 0.12),
        0 0 36px rgba(217, 50, 255, 0.14),
        0 0 80px rgba(234, 40, 255, 0.2);
    }

    /* ensure background glow stays hidden when using border glow */
    .video-item:hover::before {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.95);
    }

    /* Desktop: show 3 columns on large screens */
    @media (min-width: 1200px) {
      .video-grid { grid-template-columns: repeat(3, 1fr); }
    }

    .video-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
      opacity: 0;
      transition: opacity 0.5s;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 30px;
      z-index: 1000; /* ensure overlay appears above video */
      transform: translateZ(0); /* create stacking context so z-index applies */
      pointer-events: none; /* allow hover on container while overlay shows */
    }
    
    /* Performance hint for parallaxed elements */
    .hero video,
    .about-bg,
    .about-inner,
    .video-grid,
    .bubble-container,
    .footer-title,
    .footer-text {
      will-change: transform;
    }

    .video-item:hover .video-overlay {
      opacity: 1 !important;
    }

    .video-title {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 10px;
      color: #fff;
      text-shadow: 0 6px 18px rgba(0,0,0,0.6);
    }

    .video-category {
      font-size: 0.9rem;
      color: var(--muted);
      text-shadow: 0 4px 12px rgba(0,0,0,0.6);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    .view-more-btn {
      display: block;
      width: 200px;
      margin: 8vh auto 0;
      padding: 18px 40px;
      background: transparent;
      border: 1px solid rgba(255,255,255,0.2);
      color: white;
      font-size: 1rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-align: center;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateY(30px);
    }

    .view-more-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: var(--grad);
      transition: left 0.6s ease;
      z-index: -1;
    }

    .view-more-btn:hover::before {
      left: 0;
    }

    .view-more-btn span {
      position: relative;
      z-index: 2;
    }