/* ===========================
   Home Page Styles
   =========================== */

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(184,196,208,0.4));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Loader --- */
.loader-container {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-container.hide {
  opacity: 0;
  pointer-events: none;
}

.circle-reveal {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  animation: expandCircle 2.5s var(--ease-loader) forwards;
}

.circle-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.loader-text {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #fff;
  text-shadow: 0 0 40px rgba(184,196,208,0.5), 0 0 80px rgba(184,196,208,0.2);
  animation: fadeOut 0.8s ease 1.5s forwards;
}

/* --- Hero --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 1;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-spring) 0.3s forwards;
}

.hero__headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  text-shadow:
    0 0 20px rgba(184, 196, 208, 0.3),
    0 0 60px rgba(184, 196, 208, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero__tagline {
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  word-break: keep-all;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.8s forwards;
}

.scroll-indicator__text {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 20px rgba(184, 196, 208, 0.4), 0 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
}

.scroll-indicator__line {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 100%;
  height: 10px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: scroll-down 2s infinite;
}

/* --- About Preview --- */
.about-preview {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-gap) 1.5rem;
  text-align: center;
}

.about-preview__quote {
  font-size: var(--text-2xl);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
  color: var(--text-primary);
}

.about-preview__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: left;
}

.about-preview__link {
  color: var(--accent);
  font-size: var(--text-base);
  text-decoration: none;
  transition: opacity 0.3s;
}

.about-preview__link:hover {
  opacity: 0.8;
}

/* --- Project Preview Title --- */
.project-preview__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-3xl);
}

/* --- Infinite Scroll Gallery --- */
.scroll-gallery {
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.scroll-track {
  display: flex;
  gap: 20px;
  animation: infiniteScroll 35s linear infinite;
}

.scroll-track:hover {
  animation-play-state: paused;
}

@keyframes infiniteScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.scroll-item {
  flex-shrink: 0;
  width: 320px;
  height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring);
}

.scroll-item:hover {
  transform: scale(1.05);
}

.scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.scroll-item:hover .scroll-overlay {
  opacity: 1;
}

.scroll-overlay h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
}

.scroll-overlay p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* --- CTA Section --- */
.cta-section {
  width: 100%;
  background: rgba(255,255,255,0.02);
  text-align: center;
  padding: var(--section-gap) 1.5rem;
}

.cta-section__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

.cta-section__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* --- Responsive (768px) --- */
@media (max-width: 768px) {
  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -1px;
  }

  .hero__tagline {
    font-size: var(--text-lg);
    padding: 0 1rem;
  }

  .hero__subtitle {
    font-size: var(--text-sm);
    margin-bottom: 1.5rem;
  }

  .scroll-indicator {
    bottom: 60px;
  }

  .scroll-item {
    width: 220px;
    height: 300px;
    border-radius: 12px;
  }

  .scroll-overlay {
    opacity: 1;
    padding: 1rem;
  }

  .about-preview {
    padding: var(--section-gap) 1rem;
  }

  .about-preview__quote {
    font-size: var(--text-lg);
    padding-left: 1rem;
  }

  .cta-section {
    padding: var(--section-gap) 1rem;
  }

  .cta-section__text {
    font-size: var(--text-base);
    padding: 0 0.5rem;
  }
}
