@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-bg: #111111;
  --color-bg-sec: #1A1A1A;
  --color-card: #222222;
  --color-text: #F6F6F6;
  --color-text-sec: #A8A8A8;
  --color-accent: #D1B89A;
  --color-divider: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: initial; /* Lenis handles smooth scrolling */
  overflow-x: hidden;
  background-color: var(--color-bg);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-sec);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Hide scrollbar for Horizontal Swipes */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Typography Extensions */
.font-serif-luxury {
  font-family: 'Playfair Display', serif;
}

/* Lenis Scroll Smoothness */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overflow: clip;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Navigation Blur & Animations */
.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Interactive Before-After Slider */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  user-select: none;
  touch-action: pan-y; /* Allows vertical scrolling of page while touching slider container */
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-before {
  z-index: 10;
  clip-path: inset(0 50% 0 0); /* Horizontal crop */
}

.slider-after {
  z-index: 5;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--color-accent);
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
  touch-action: none; /* Prevents vertical scroll only when dragging exactly on the handle */
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 1px;
}

.slider-handle-button::before,
.slider-handle-button::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--color-accent);
  border-left: 1.5px solid var(--color-accent);
}

.slider-handle-button::before {
  left: 12px;
  transform: translateY(-50%) rotate(-45deg);
}

.slider-handle-button::after {
  right: 12px;
  transform: translateY(-50%) rotate(135deg);
}

/* Floating light canvas */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

/* Custom Overlapping Horizontal Grid for projects */
.project-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.project-card {
  scroll-snap-align: start;
  flex: 0 0 84vw;
  max-w: 420px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 640px) {
  .project-carousel {
    gap: 1.75rem;
  }
  .project-card {
    scroll-snap-align: center;
    flex: 0 0 45vw;
  }
}

@media (min-width: 1024px) {
  .project-card {
    flex: 0 0 31vw;
  }
}

/* Active timeline step highlighters */
.timeline-step {
  opacity: 0.3;
  transform: translateX(-10px);
  transition: all 0.6s ease;
}
.timeline-step.active {
  opacity: 1;
  transform: translateX(0);
}

/* Micro-elevations and scales */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-premium:active {
  transform: scale(0.97);
}

.img-luxury-container {
  overflow: hidden;
  position: relative;
}
.img-luxury {
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.img-luxury-container:hover .img-luxury {
  transform: scale(1.05);
}

/* Floating Menu CSS Overlay */
.menu-overlay {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Premium Reveal Keyframes and Utilities */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-in {
  opacity: 0;
}

/* Before After Label overlay */
.slider-label {
  position: absolute;
  bottom: 16px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  border-radius: 2px;
  z-index: 15;
}
.slider-label.before {
  left: 16px;
}
.slider-label.after {
  right: 16px;
}

/* HymoraStudios Copyright Watermark Styles */
/* 1. Faint Full-Screen Diagonal Background Watermark Grid Pattern */
.hymora-bg-watermark {
  position: fixed;
  top: -15vh;
  left: -15vw;
  width: 130vw;
  height: 130vh;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  opacity: 0.038;
  transform: rotate(-24deg);
  user-select: none;
}

.hymora-bg-watermark span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--color-accent);
  white-space: nowrap;
  padding: 3.5rem 4.5rem;
}

/* 2. Upgraded Floating Copyright Pill Badge */
.hymora-floating-watermark {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(209, 184, 154, 0.45);
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(209, 184, 154, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

@media (min-width: 640px) {
  .hymora-floating-watermark {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.65rem 1.2rem;
  }
}

.hymora-floating-watermark:hover {
  background: rgba(26, 26, 26, 0.98);
  border-color: rgba(209, 184, 154, 0.85);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(209, 184, 154, 0.35);
}

.hymora-watermark-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: watermarkPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes watermarkPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.hymora-watermark-text {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-sec);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hymora-floating-watermark:hover .hymora-watermark-text {
  color: var(--color-text);
}

.hymora-watermark-brand {
  color: var(--color-accent);
  font-weight: 700;
}

/* 3. Card & Media Corner Watermark Badges */
.hymora-card-watermark {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 15;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(209, 184, 154, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(209, 184, 154, 0.95);
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.frame-watermark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 18;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(209, 184, 154, 0.35);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D1B89A;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* 4. Copyright Verification Modal */
.hymora-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.hymora-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hymora-modal-box {
  background: #1A1A1A;
  border: 1px solid rgba(209, 184, 154, 0.45);
  border-radius: 6px;
  max-w: 480px;
  width: 100%;
  padding: 2.2rem sm:padding: 2.8rem;
  box-shadow: 0 25px 70px rgba(0,0,0,0.95), 0 0 40px rgba(209, 184, 154, 0.18);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hymora-modal-overlay.active .hymora-modal-box {
  transform: scale(1) translateY(0);
}
