/* CSS Reset & Baseline */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  overflow: hidden; /* Hide body overflow, scroll happens in the slider-container */
}

/* Header & Glassmorphism Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: clamp(10px, 3vw, 20px) clamp(15px, 5vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  /* Subtle glassmorphism on header */
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.logo {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  letter-spacing: 1px;
}

.contact-btn {
  display: inline-block;
  padding: clamp(8px, 2vw, 10px) clamp(16px, 4vw, 24px);
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  /* Glassmorphic button */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-btn:active {
  transform: translateY(0);
}

/* Scroll Snapping Container */
.slider-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* Hide scrollbar for a cleaner look */
  scrollbar-width: none; 
}
.slider-container::-webkit-scrollbar {
  display: none;
}

/* Slide Styles */
.slide {
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  /* Flex config for centering content fallback */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  /* Initial state off for smooth fade-in */
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide image becomes visible when image loaded (toggled by JS) */
.slide-img.loaded {
  opacity: 1;
}

/* Image Vignette / Overlay Layer to make text pop */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.8) 100%
  );
  pointer-events: none;
}

/* Caption Styles */
.caption-container {
  position: absolute;
  bottom: 10%;
  left: 10%;
  right: 10%;
  z-index: 3;
  text-align: center;
}

.caption-text {
  font-size: clamp(24px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  /* Optional Glassmorphic box for text vs free text. 
     Given premium look, large shadowed text usually looks best fullscreen. */
  transform: translateY(30px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Micro-interaction: When slide is actively viewed */
.slide.active .caption-text {
  transform: translateY(0);
  opacity: 1;
}

/* Loading State (Optional simple spinner) */
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-left-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 0;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
