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

html,
body {
  height: 100%;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  background-color: #1a1a1a;
  overflow: hidden;
}

/* ===================================
   Scroll Container (Lenis smooth scroll)
   =================================== */
.snap-container {
  height: 100vh;
  overflow-y: auto;
  background-color: #1a1a1a;
}

/* Each panel takes full viewport */
.panel {
  min-height: 100vh;
  position: relative;
}

/* ===================================
   PANEL 1: Hero Background
   =================================== */
.hero-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
}

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

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

/* Dark gradient overlay on hero for readability */
.hero-panel::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 */
.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);
  }
}

/* ===================================
   Navbar / Header (on top of hero)
   =================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 70px 20px 70px;
  position: relative;
  z-index: 10;
  will-change: opacity;
  transition: opacity 0.3s ease;
}

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

.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;
}

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

/* Get in touch Pill Button */
.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;
}

/* ===================================
   PANEL 2: Works Gallery
   =================================== */
.works-panel {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

/* Background video fills the panel */
.works-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay — fades from solid black at top for seamless blend with hero */
.works-panel::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-section {
  padding: 80px 70px 100px;
  text-align: center;
  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);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 0.8s ease forwards;
}

.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;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.8s ease 0.15s forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Works Grid
   =================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===================================
   Work Card
   =================================== */
.work-card {
  background: rgba(180, 90, 20, 0.06);
  border: 1px solid rgba(200, 100, 20, 0.18);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease, border-color 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeSlideUp 0.7s ease forwards;
  position: relative;
}

/* Glass Sheen Sweep Effect on Cards */
.work-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 55%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 10;
}

.work-card:hover::before {
  transform: rotate(30deg) translateY(100%);
}

.work-card:nth-child(1) {
  animation-delay: 0.3s;
}

.work-card:nth-child(2) {
  animation-delay: 0.5s;
}

/* Row-based z-index: Upper rows 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:hover {
  border-color: rgba(255, 158, 68, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(255, 120, 20, 0.25);
}

/* Card Image Wrapper */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}

.work-card:hover .card-img-wrapper img {
  transform: scale(1.06);
  filter: brightness(0.75);
}

/* Hover Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .card-overlay {
  opacity: 1;
}

.view-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transform: scale(0.7);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .view-icon {
  transform: scale(1);
}

/* Card Info */
.card-info {
  position: relative;
  z-index: 15;
  padding: 22px 28px;
  text-align: left;
}

.card-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-info p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
}

/* ===================================
   Fullscreen Lightbox
   =================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 85vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.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;
  transition: background 0.3s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}

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

/* ===================================
   Album Badge & Lightbox Gallery
   =================================== */
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ff9e44;
  border: 1px solid rgba(255, 158, 68, 0.35);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 5;
}

.card-badge.pill-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ff9e44;
  border: 1px solid rgba(255, 158, 68, 0.4);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 10;
}

.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);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-counter {
  margin-top: 14px;
  font-family: 'Montserrat', sans-serif;
  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: 10000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 158, 68, 0.3);
  border-color: rgba(255, 158, 68, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.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);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10000;
}

.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, transform 0.2s ease;
}

.thumb-item:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.thumb-item.active {
  opacity: 1;
  border-color: #ff9e44;
  transform: scale(1.08);
}

/* ===================================
   3D GLASSMORPHISM FOLDER ALBUMS
   =================================== */
.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 Panel with Tab */
.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 Tab Notch */
.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;
}

/* Fanned Out Images Stack */
.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: 16%;
}

.folder-card.card-left {
  transform: translateX(-36%) translateY(-2%) rotate(-15deg) scale(0.88);
  filter: brightness(0.8);
}

.folder-card.card-center {
  transform: translateX(0) translateY(-8%) rotate(0deg) scale(0.96);
  z-index: 3;
  filter: brightness(1);
}

.folder-card.card-right {
  transform: translateX(36%) translateY(-2%) rotate(15deg) scale(0.88);
  filter: brightness(0.8);
}

/* Single Photo Glass Pocket Styling */
.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-img {
  width: 54% !important;
  transform: translateX(0) translateY(-8%) rotate(0deg) scale(0.96) !important;
  z-index: 3 !important;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease !important;
}

/* Hover Animation: Single Photo Card Rises Up */
.work-card:hover .single-folder-img {
  transform: translateX(0) translateY(-16%) rotate(0deg) scale(1.04) !important;
  filter: brightness(1.15) !important;
}

/* Hover Animation: Cards Rise & Fan Out Further */
.work-card:hover .folder-card.card-left {
  transform: translateX(-44%) translateY(-11%) rotate(-20deg) scale(0.94);
  filter: brightness(0.95);
}

.work-card:hover .folder-card.card-center {
  transform: translateX(0) translateY(-16%) rotate(0deg) scale(1.04);
  filter: brightness(1.15);
}

.work-card:hover .folder-card.card-right {
  transform: translateX(44%) translateY(-11%) rotate(20deg) scale(0.94);
  filter: brightness(0.95);
}

/* Frosted Glass Front Pocket */
.folder-front {
  position: absolute;
  inset: 48% 0 0 0;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.55), rgba(255, 140, 30, 0.14));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  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;
  align-items: space-between;
  justify-content: space-between;
  padding: 16px 20px;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.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 Glass Badge & Action Icon */
.folder-badge {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-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);
  -webkit-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;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  .works-section {
    padding: 50px 24px 60px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .navbar {
    padding: 20px 24px;
  }

  .scroll-hint {
    bottom: 24px;
  }
}