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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  background-color: #0a0a0a;
  overflow-x: hidden;
}

/* ===================================
   Shared page sections
   =================================== */
.page-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  scroll-margin-top: 0;
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ===================================
   Single Shared Navbar (fixed on top of every section)
   =================================== */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 70px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

.btn {
  display: flex;
  align-items: center;
  gap: 40px;
}

.btn a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Montserrat', 'Jost', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.btn a:not(.btn-touch):hover {
  opacity: 0.75;
}

.btn a.btn-touch {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background-color: #dcdcdc;
  color: #1a1a1a;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 400;
  padding: 5px 5px 5px 24px;
  border-radius: 100px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn a.btn-touch:hover {
  opacity: 1;
  background-color: #ffffff;
  transform: translateY(-1px);
}

.btn-touch .circle-icon {
  width: 36px;
  height: 36px;
  background-color: #4a0c02;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-touch .circle-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.circle-icon svg {
  margin-right: 2.5px;
  margin-top: 2px;
}

/* Hamburger */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.hamburger-menu .bar {
  width: 100%;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 4px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.hamburger-menu.active .bar:nth-child(1) { transform: translateY(9.75px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-9.75px) rotate(-45deg); }

/* ===================================
   HOME -> WORKS CURTAIN REVEAL
   =================================== */
.home-fixed-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.home-fixed-wrap .home-section {
  min-height: 100vh;
  transform-origin: center center;
  transition: transform 0.05s linear, filter 0.05s linear;
  will-change: transform, filter;
}

.home-spacer {
  height: 100vh;
}

.curtain-section {
  position: relative;
  z-index: 5;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -50px 90px rgba(0, 0, 0, 0.65);
}

/* ===================================
   HOME SECTION
   =================================== */
.home-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 70px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.hey {
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 130px;
  font-family: 'Montserrat', sans-serif;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px 70px 45px 70px;
  position: relative;
  z-index: 2;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
}

.num .hash {
  color: #ff9f1c;
  margin-right: 2px;
}

.label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 1px;
}

/* ===================================
   WORKS SECTION
   =================================== */
.works-section {
  background: #0a0a0a;
  min-height: 0;
  overflow: visible;
}

/* Works hero sub-panel (scroll-jack background) */
.works-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #1a1a1a;
}

.works-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: opacity, transform, filter;
}

.works-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.05) 35%,
      rgba(0, 0, 0, 0.5) 75%,
      rgba(0, 0, 0, 1) 100%);
  z-index: 1;
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  will-change: opacity;
  transition: opacity 0.3s ease;
}

.scroll-hint span {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}

.scroll-arrow {
  animation: bounceDown 2s ease infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* Works grid sub-panel */
.works-content {
  position: relative;
  z-index: 2;
  padding: 80px 70px 100px;
  text-align: center;
  background: #0a0a0a;
  overflow: hidden;
}

.works-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.works-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.7) 15%,
      rgba(0, 0, 0, 0.5) 40%,
      rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.works-title, .works-subtitle, .works-grid {
  position: relative;
  z-index: 2;
}

.works-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.works-subtitle {
  font-family: 'Jost', 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.5px;
  margin-bottom: 60px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
  row-gap: 90px;
  max-width: 1100px;
  margin: 0 auto;
}

.work-card {
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

/* Row-based z-index: Upper rows always stay above lower rows */
.work-card:nth-child(1), .work-card:nth-child(2) { z-index: 40; }
.work-card:nth-child(3), .work-card:nth-child(4) { z-index: 30; }
.work-card:nth-child(5), .work-card:nth-child(6) { z-index: 20; }
.work-card:nth-child(7), .work-card:nth-child(8) { z-index: 10; }

.work-card:nth-child(1):hover, .work-card:nth-child(2):hover { z-index: 42; }
.work-card:nth-child(3):hover, .work-card:nth-child(4):hover { z-index: 32; }
.work-card:nth-child(5):hover, .work-card:nth-child(6):hover { z-index: 22; }
.work-card:nth-child(7):hover, .work-card:nth-child(8):hover { z-index: 12; }

.work-card.album-card {
  background: transparent;
  border: none;
  overflow: visible;
}

.folder-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  perspective: 1000px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 12px;
}

.folder-back {
  position: absolute;
  inset: 18% 4% 0 4%;
  background: linear-gradient(145deg, rgba(255, 145, 40, 0.22), rgba(20, 20, 20, 0.85));
  border-radius: 14px 28px 16px 16px;
  border: 1px solid rgba(255, 158, 68, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.folder-back::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 42%;
  height: 16px;
  background: rgba(255, 145, 40, 0.3);
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(255, 158, 68, 0.3);
  border-bottom: none;
}

.folder-cards {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.folder-card {
  position: absolute;
  width: 50%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  transform-origin: bottom center;
  bottom: 14%;
}

.folder-card.card-left { transform: translateX(-36%) translateY(4%) rotate(-15deg) scale(0.88); filter: brightness(0.8); }
.folder-card.card-center { transform: translateX(0) translateY(-6%) rotate(0deg) scale(0.96); z-index: 3; filter: brightness(1); }
.folder-card.card-right { transform: translateX(36%) translateY(4%) rotate(15deg) scale(0.88); filter: brightness(0.8); }

.single-folder-img {
  width: 60% !important;
  transform: translateX(0) translateY(-6%) rotate(0deg) scale(0.96) !important;
  z-index: 3 !important;
}

.work-card:hover .single-folder-img {
  transform: translateX(0) translateY(-14%) rotate(0deg) scale(1.04) !important;
  filter: brightness(1.15) !important;
}

.work-card:hover .folder-card.card-left { transform: translateX(-44%) translateY(-9%) rotate(-20deg) scale(0.92); filter: brightness(0.95); }
.work-card:hover .folder-card.card-center { transform: translateX(0) translateY(-14%) rotate(0deg) scale(1.02); filter: brightness(1.15); }
.work-card:hover .folder-card.card-right { transform: translateX(44%) translateY(-9%) rotate(20deg) scale(0.92); filter: brightness(0.95); }

.folder-front {
  position: absolute;
  inset: 38% 0 0 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 140, 30, 0.08));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.single-folder-card {
  margin-top: 80px;
  margin-bottom: 55px;
}

.single-folder-card:nth-child(5) {
  margin-right: 15px;
}

.single-folder-card:nth-child(6) {
  margin-left: 15px;
}

.single-folder-card .folder-front {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 140, 30, 0.05));
}

.work-card:hover .folder-front {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 158, 68, 0.16));
  border-color: rgba(255, 158, 68, 0.5);
  transform: translateY(-2px);
}

.folder-badge {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #ff9e44;
  border: 1px solid rgba(255, 158, 68, 0.4);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  align-self: flex-start;
}

.folder-action { align-self: flex-end; }

.folder-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 158, 68, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 158, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff9e44;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.work-card:hover .folder-icon {
  transform: scale(1.12);
  background: rgba(255, 158, 68, 0.45);
  color: #ffffff;
}

.card-info {
  position: relative;
  z-index: 15;
  background: rgba(10, 10, 10, 0.85);
  border-radius: 12px;
  padding: 10px 14px;
}

.card-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
}

.card-info p {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.lightbox.active { display: flex; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 85vw;
  max-height: 75vh;
}

.lightbox-content img {
  max-width: 85vw;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-counter {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #ff9e44;
  font-weight: 500;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5001;
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(255, 158, 68, 0.3);
  border-color: rgba(255, 158, 68, 0.6);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5001;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

.lightbox-thumbnails {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 10px;
  max-width: 90vw;
  overflow-x: auto;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5001;
}

.thumb-item {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.thumb-item:hover { opacity: 0.85; }
.thumb-item.active { opacity: 1; border-color: #ff9e44; }

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
  position: relative;
  z-index: 5;
}

.about-section .about-bg {
  object-position: center top;
}

.about-contact-section {
  position: absolute;
  top: 91.8%;
  left: 22.4%;
  z-index: 10;
}

.liquid-pill-dock {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.liquid-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px 10px 10px;
  border-radius: 100px;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Jost', 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(255, 95, 20, 0.88), rgba(215, 50, 0, 0.78));
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 180, 120, 0.45);
  box-shadow: 0 12px 28px rgba(180, 40, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, background 0.35s ease;
  cursor: pointer;
}

.liquid-pill-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(255, 115, 35, 0.95), rgba(240, 65, 10, 0.9));
  box-shadow: 0 18px 38px rgba(220, 50, 0, 0.65), 0 0 25px rgba(255, 120, 30, 0.4);
}

.liquid-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.liquid-pill-btn:hover .liquid-pill-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.32);
}

.liquid-pill-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}
