/* -------------------------------------------------------------
   COCONUT CREATIVE AGENCY - CLEAN MINIMALIST LIGHT STYLESHEET
   Ref: Ultra-clean typography, vivid sky-blue hero, white canvas, subtle orange accents
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f7f7f8;
  --bg-sky: #1b8fb0;

  --text-dark: #0f1115;
  --text-muted: #6b7280;
  --text-light: #ffffff;

  --accent-orange: #ff5500;
  --accent-blue: #1b8fb0;

  --border-light: #e5e7eb;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header & Nav */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.header-inverse .nav-links a:not(.roll-btn) {
  color: var(--text-dark) !important;
}

.header-inverse .nav-links a:not(.roll-btn):hover {
  color: var(--accent-orange) !important;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-nav-cta {
  padding: 10px 24px;
  border-radius: 40px;
  background: #ffffff;
  color: var(--text-dark) !important;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Staggered Rolling Letter Button Animation (Matching Video Recording Reference) */
.roll-btn {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.roll-char-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.25em;
  vertical-align: middle;
}

.roll-char-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.roll-btn:hover .roll-char-inner {
  transform: translateY(-50%);
}

.roll-char-original,
.roll-char-duplicate {
  display: block;
  height: 1.25em;
  line-height: 1.25em;
  white-space: pre;
}

/* HERO BANNER - Exact Vibe as reference 1 & 4 */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  background-color: var(--bg-sky);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 120px 6vw 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-giant-title {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 13vw, 17rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 21vw;
  box-sizing: border-box;
  pointer-events: none;
}

.letter-back {
  position: relative;
  z-index: 1;
}

.letter-front {
  position: relative;
  z-index: 10;
}

.hero-portrait-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

/* Fullscreen Unclipped Bulb Lamp Glow Aura */
.hero-lamp-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.8);
  width: 950px;
  height: 950px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 210, 0.95) 0%, rgba(255, 235, 160, 0.65) 30%, rgba(167, 255, 235, 0.35) 55%, rgba(27, 143, 176, 0) 78%);
  filter: blur(50px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.hero-banner.lamp-active .hero-lamp-glow {
  opacity: 1;
  transform: translate(-50%, -45%) scale(1.18);
}

/* Hover state: Fast 0.5s smooth transition for hover in / hover out */
.hero-banner.lamp-hover .hero-lamp-glow,
.hero-banner.lamp-hover .hero-sequence-canvas {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, filter 0.5s ease-out !important;
}

/* Small Invisible Cheat Trigger Target over Kelapa Bulb Body */
.lamp-hover-trigger {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 240px;
  border-radius: 45%;
  z-index: 20;
  cursor: pointer;
  background: transparent;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  outline: none;
}

.hero-sequence-canvas {
  height: 100%;
  max-height: 65vh;
  width: auto;
  object-fit: contain;
  position: relative;
  top: 5vh;
  z-index: 5;
  mask-image: linear-gradient(180deg, #000 65%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 65%, rgba(0, 0, 0, 0) 100%);
  transition: filter 2s ease-in-out;
  left: 2vw;
}

.hero-banner.lamp-active .hero-sequence-canvas {
  filter: drop-shadow(0 0 10px rgba(255, 240, 160, 0.95)) drop-shadow(0 0 15px rgba(255, 230, 120, 0.70)) brightness(1.2) contrast(1.05);
}

/* Hero Bottom Soft White Frozen Gradient Bloom Overlay */
.hero-frozen-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background:
    radial-gradient(ellipse 65% 85% at 15% 100%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0) 85%),
    radial-gradient(ellipse 65% 85% at 85% 100%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0) 85%),
    linear-gradient(to top, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.50) 15%, rgba(255, 255, 255, 0.10) 55%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 6;
  pointer-events: none;
  mask-image: linear-gradient(to top, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 65%, transparent 100%);
}

.hero-bottom-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1300px;
  padding: 15px 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--text-dark);
  flex-wrap: wrap;
  gap: 15px;
}

.hero-subtitle {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 450px;
}

.hero-desc {
  max-width: 400px;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
}

/* STICKY STORY SECTION (4-in-1 Pinned Storyteller with Extended Client Travel) */
.sticky-story-section {
  position: relative;
  width: 100%;
  height: 800vh;
  /* Extended distance for reading pause windows and smooth client logo travel */
  background-color: var(--bg-main);
  z-index: 20;
}

.sticky-story-pin {
  position: relative;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 8vw;
  overflow: hidden;
}

.story-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  min-height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 800px;
  /* Stronger 3D depth perception */
  transform-style: preserve-3d;
}

/* 30 Floating Traveling Client Logo Bubbles */
.clients-travel-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.client-logo-bubble {
  position: absolute;
  width: 10rem;
  height: 10rem;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  will-change: transform, opacity;
  border: 5px solid #ffffff;
  background-color: #ffffff;
  padding: 1rem;
}

/* 3D Cylinder Rolling Slide Transformations */
.story-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 100%;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.story-slide:first-child {
  opacity: 1;
  visibility: visible;
}

.story-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.story-heading {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.wave-heading .wave-letter {
  display: inline-block;
  will-change: transform;
  transition: transform 0.05s ease-out;
}

.story-body {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #b0b5c0;
  /* Match muted gray of WE'RE PROUD OF */
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-body p {
  color: #909090;
}

.story-body p.highlight-line {
  color: var(--text-dark);
}

.story-dots {
  position: absolute;
  bottom: 8vh;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.story-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d5db;
  transition: background-color 0.4s, transform 0.4s;
}

.story-dot.active {
  background-color: var(--text-dark);
  transform: scale(1.4);
}

/* SECTION 3: RECENT PROJECTS (Reference 5 & 3 vibe) */
.projects-section {
  padding: 100px 6vw 140px;
  background-color: var(--bg-main);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-title .muted {
  color: #b0b5c0;
}

.section-header-right {
  max-width: 380px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-subtle);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #ffffff;
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.project-card-meta {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Projects CTA Button */
.projects-cta-wrapper {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* SECTION 4: TESTIMONIALS & RATING CARDS (Reference 3 vibe) */
.testimonials-section {
  padding: 120px 6vw;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  background-color: var(--bg-subtle);
  border-radius: 16px;
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 320px;
}

.big-rating {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.stars {
  color: var(--accent-orange);
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.quote-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 24px;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.award-badge-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.award-main-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1.1;
  text-transform: uppercase;
}

/* SECTION 5: CLEAN CONTACT FOOTER */
.contact-footer-section {
  padding: 120px 6vw 60px;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.contact-left h2 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.contact-left p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 450px;
}

.clean-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.clean-input {
  width: 100%;
  padding: 18px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.clean-input:focus {
  outline: none;
  border-color: var(--text-dark);
}

.btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 16px 36px;
  border-radius: 40px;
  background: var(--text-dark);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-black:hover {
  background: #00c853;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 200, 83, 0.3);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 40px;
  background: #ffffff;
  color: var(--text-dark) !important;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s, color 0.3s;
}

.btn-white:hover {
  background: #00c853;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 200, 83, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 101;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
  .site-header {
    padding: 20px 5vw;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  nav#siteNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background-color: rgba(15, 17, 21, 0.96);
    backdrop-filter: blur(20px);
    padding: 100px 40px;
    transition: right 0.4s var(--ease-expo);
    z-index: 100;
  }

  nav#siteNav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .nav-links a {
    font-size: 1.2rem;
    color: #ffffff;
  }

  .btn-nav-cta {
    margin-top: 10px;
  }

  .hero-banner {
    padding: 100px 5vw 0;
  }



  .hero-portrait-wrapper {
    height: 48vh;
    max-height: 420px;
    margin: auto 0;
    -webkit-tap-highlight-color: transparent;
  }



  /* Mobile Glass Overlay Higher & Safe Area Elevate */
  .hero-frozen-overlay {
    height: 42%;
    height: calc(30% + env(safe-area-inset-bottom, 20px));
  }

  .hero-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 25px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 15px));
  }

  .hero-subtitle {
    font-size: 1.8rem;
    max-width: 100%;
  }

  .hero-desc {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .philosophy-section {
    padding: 80px 5vw;
  }

  .philosophy-statement {
    font-size: 2rem;
  }

  .projects-section {
    padding: 60px 5vw 80px;
  }

  .section-title {
    font-size: 2.2rem;
  }

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

  .projects-grid,
  .cards-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .testimonials-section {
    padding: 80px 5vw;
  }

  .info-card {
    padding: 30px 20px;
    min-height: auto;
  }

  .contact-footer-section {
    padding: 80px 5vw 40px;
  }

  .contact-left h2 {
    font-size: 2.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-giant-title {
    top: 18%;
    font-size: clamp(3rem, 35vw, 9.5rem);
    padding: 0 2vw;
    flex-direction: column;
    gap: 0;
  }

  .hero-sequence-canvas {
    width: auto;
    height: 100%;
    max-height: 48vh;
    top: 14vh;
    left: 5%;
    -webkit-tap-highlight-color: transparent;
  }
}

/* OUR WORKS PAGE STYLING */
.works-hero-section {
  padding: 140px 6vw 60px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
}

.works-hero-content {
  max-width: 900px;
}

.muted {
  color: #b0b5c0;
}

.works-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
}

.works-hero-title .muted {
  color: #b0b5c0;
}

.works-hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.works-archive-section {
  padding: 80px 6vw 120px;
  background-color: var(--bg-subtle);
}

.load-more-wrapper {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.btn-circle-load {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--text-dark);
  color: #ffffff;
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s var(--ease-expo), background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-circle-load:hover {
  background-color: #00c853;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 14px 40px rgba(0, 200, 83, 0.4);
}

/* FLOATING SCROLL TO TOP BUTTON */
.scroll-top-btn {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--text-dark);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: #00c853;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 200, 83, 0.4);
}

.load-more-spinner span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background-color: var(--text-dark);
  border-radius: 50%;
  animation: dotsBounce 1.2s infinite ease-in-out;
}

.load-more-spinner span:nth-child(2) {
  animation-delay: 0.2s;
}

.load-more-spinner span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotsBounce {

  0%,
  80%,
  100% {
    transform: scale(0.4);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* CLEAN MINIMAL PRELOADER STYLING */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.6s ease;
}

.site-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.preloader-logo-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.18;
  filter: grayscale(100%);
}

.preloader-logo-fill-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  overflow: hidden;
  transition: height 0.15s ease-out;
}

.preloader-logo-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* WORK DETAIL PAGE STYLING */
.work-detail-hero {
  padding: 140px 6vw 60px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
}

.work-detail-container {
  max-width: 1100px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  color: var(--text-dark);
  transform: translateX(-4px);
}

.work-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 40px;
  text-transform: uppercase;
}

.work-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.work-cover-section {
  padding: 60px 6vw;
  background-color: var(--bg-subtle);
}

.work-cover-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.work-cover-img {
  width: 100%;
  object-fit: contain;
  display: block;
}

.work-overview-section {
  padding: 100px 6vw;
  background-color: var(--bg-main);
}

.work-overview-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
}

.overview-left h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

.overview-right .lead-p,
.overview-right .lead-p p {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.overview-right p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.work-gallery-section {
  padding: 0 6vw 120px;
  background-color: var(--bg-main);
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-subtle);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.gallery-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.item-caption {
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.next-project-section {
  padding: 80px 6vw;
  background-color: #0b0f19;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-project-card {
  display: block;
  text-decoration: none;
  color: #ffffff;
  width: 100%;
  max-width: 800px;
}

.next-project-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px auto;
  vertical-align: middle;
}

.next-thumb-wrapper {
  width: 90px;
  height: 55px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.4s var(--ease-expo), border-color 0.4s ease, box-shadow 0.4s ease;
  background-color: rgba(255, 255, 255, 0.03);
}

.next-project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-expo);
}

.next-project-card:hover .next-thumb-wrapper {
  transform: scale(1.05);
  border-color: #00c853;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.2);
}

.next-project-card:hover .next-project-thumb-img {
  transform: scale(1.1);
}

.next-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0;
}

.next-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.next-title .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-expo);
}

.next-project-card:hover .next-title {
  color: #00c853;
}

.next-project-card:hover .next-title .arrow {
  transform: translateX(8px);
}

.next-cat {
  display: block;
  font-size: 1.05rem;
  color: #d1d5db;
}

@media (max-width: 900px) {
  .work-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-overview-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-container {
    gap: 16px;
  }

  .gallery-item,
  .video-container {
    border-radius: 10px;
  }

  .gallery-row-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-row-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* LEGAL PAGES STYLING (Privacy Policy & Terms of Service) */
.legal-hero-section {
  padding: 140px 6vw 50px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.legal-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-top: 8px;
  margin-bottom: 12px;
}

.legal-last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-body-section {
  padding: 80px 6vw 120px;
  background-color: #ffffff;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.legal-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 14px;
}

.legal-block ul {
  margin-left: 20px;
  margin-bottom: 14px;
}

.legal-block ul li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 8px;
}

.legal-block code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: #0f172a;
}

/* Hide Google reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden !important;
}