/* ============================================
   ART THERAPY WEBSITE V3 - ANIMATED EDITION
   ============================================

   FEATURES:
   - Parallax scrolling effects
   - Scroll-triggered animations
   - Text reveal animations
   - Image mask reveals
   - Floating elements
   - Magnetic buttons
   - Marquee text
   - 3D card tilts
   - Horizontal scroll gallery
   - Smooth scroll behavior

   HOW TO CUSTOMIZE:
   1. Change colors in :root section
   2. Change fonts by updating font-family variables
   3. Adjust animation speeds via timing variables

   ============================================ */

/* ============================================
   DESIGN TOKENS - EASILY CUSTOMIZABLE
   ============================================ */

:root {
  /* ===================
     COLOR PALETTE
     =================== */

  /* Primary Colors */
  --color-primary: #6B5B7A;          /* Deep lavender */
  --color-primary-light: #9B8AAF;    /* Light lavender */
  --color-primary-dark: #4A3D5C;     /* Dark lavender */

  /* Secondary Colors */
  --color-secondary: #E8B298;        /* Soft peach */
  --color-secondary-light: #F5D5C3;  /* Light peach */
  --color-secondary-dark: #C99070;   /* Dark peach */

  /* Accent Colors */
  --color-accent: #7EB8A2;           /* Soft teal */
  --color-accent-light: #A8D4C4;     /* Light teal */
  --color-accent-dark: #5A9A82;      /* Dark teal */

  /* Highlight */
  --color-highlight: #F4E4BA;        /* Soft yellow */

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-off-white: #FFFBF7;        /* Warm cream */
  --color-cream: #F7F3EE;
  --color-gray-light: #E8E4DE;
  --color-gray: #9B9590;
  --color-gray-dark: #5C5752;
  --color-black: #1A1A1A;

  /* ===================
     TYPOGRAPHY
     =================== */

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', 'Georgia', serif;
  --font-display: 'Playfair Display', serif;

  /* Font Sizes */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);
  --text-5xl: clamp(3.5rem, 2rem + 6vw, 8rem);
  --text-6xl: clamp(4rem, 2.5rem + 8vw, 12rem);

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* ===================
     SPACING
     =================== */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 12rem;

  --section-padding-y: clamp(5rem, 10vw, 10rem);
  --section-padding-x: clamp(1.5rem, 5vw, 4rem);

  --container-max: 1400px;
  --container-narrow: 800px;
  --container-wide: 1800px;

  /* ===================
     BORDERS & SHAPES
     =================== */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-2xl: 60px;
  --radius-full: 9999px;

  /* ===================
     SHADOWS
     =================== */
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 16px 48px rgba(26, 26, 26, 0.08);
  --shadow-xl: 0 24px 64px rgba(26, 26, 26, 0.1);

  /* ===================
     ANIMATION TIMINGS
     Change these to speed up/slow down animations
     =================== */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);

  --duration-fast: 0.3s;
  --duration-normal: 0.6s;
  --duration-slow: 1s;
  --duration-slower: 1.5s;

  /* Animation delays for stagger effects */
  --stagger-1: 0.05s;
  --stagger-2: 0.1s;
  --stagger-3: 0.15s;
  --stagger-4: 0.2s;
  --stagger-5: 0.25s;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Custom smooth scroll - overridden by JS */
html.lenis {
  height: auto;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-black);
  background-color: var(--color-off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide overflow during page load */
body.loading {
  overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s var(--ease-out-expo);
}

.page-loader.loaded {
  transform: translateY(-100%);
}

.loader-text {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-white);
  overflow: hidden;
}

.loader-text span {
  display: inline-block;
  transform: translateY(100%);
  animation: loaderReveal 0.6s var(--ease-out-expo) forwards;
}

@keyframes loaderReveal {
  to { transform: translateY(0); }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  z-index: 9998;
  transition: width 0.1s linear;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: padding var(--duration-normal) var(--ease-out-quart);
}

.header.scrolled {
  padding: var(--space-md) 0;
}

.header.scrolled .logo,
.header.scrolled .nav-link {
  color: var(--color-dark);
  text-shadow: none;
}

.header.scrolled .logo img {
  filter: invert(0) !important;
}

.header.scrolled .menu-toggle span {
  background-color: var(--color-dark);
  box-shadow: none;
}

/* Header background - separate for blend mode */
.header-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(255, 251, 247, 0.9);
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.header-bg.visible {
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }
}

@media (min-width: 1280px) {
  .nav {
    gap: var(--space-xl);
  }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.nav-link-text {
  display: block;
  transition: transform var(--duration-fast) var(--ease-out-quart);
}

.nav-link-text-hover {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
  transition: transform var(--duration-fast) var(--ease-out-quart);
  color: var(--color-secondary);
}

.nav-link:hover .nav-link-text {
  transform: translateY(-100%);
}

.nav-link:hover .nav-link-text-hover {
  transform: translateY(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-actions .btn {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions .btn {
    display: inline-flex;
  }
}

/* Menu Toggle */
.menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle-inner {
  width: 24px;
  height: 14px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 1px;
  transition: transform var(--duration-fast) var(--ease-out-quart), opacity var(--duration-fast);
}

.menu-toggle span:first-child {
  top: 0;
}

.menu-toggle span:last-child {
  bottom: 0;
}

.menu-toggle.active span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-primary);
  z-index: 998;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-md);
  padding-top: 100px;
  padding-bottom: var(--space-xl);
  box-sizing: border-box;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.8s var(--ease-out-expo);
}

.mobile-menu.active {
  clip-path: circle(150% at calc(100% - 40px) 40px);
}

.mobile-menu-link {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-white);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo), color 0.3s ease;
}

.mobile-menu.active .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-link:hover {
  color: var(--color-secondary);
}

/* Stagger animation delays */
.mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-link:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu-link:nth-child(8) { transition-delay: 0.45s; }

/* ============================================
   BUTTONS - MAGNETIC EFFECT
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out-quart);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-dark);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn-secondary:hover {
  color: var(--color-white);
}

.btn-secondary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

.btn-icon {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
}

/* ============================================
   HERO SECTION - PARALLAX
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-cream);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: brightness(0.85) saturate(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.45) 0%,
    rgba(26, 26, 26, 0.25) 50%,
    rgba(247, 243, 238, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--font-normal);
  line-height: var(--leading-none);
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s var(--ease-out-expo), opacity 0.8s ease;
}

.hero-title-word.visible {
  transform: translateY(0);
  opacity: 1;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-white);
  max-width: 500px;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s var(--ease-out-expo) 0.6s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.8s, transform 0.8s var(--ease-out-expo) 0.8s;
}

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

/* Hero floating shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.floating-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
  top: 10%;
  right: 5%;
  animation: float 8s ease-in-out infinite;
}

.floating-shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  bottom: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite reverse;
}

.floating-shape-3 {
  width: 80px;
  height: 80px;
  background: var(--color-highlight);
  top: 40%;
  right: 20%;
  animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-black);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 1.5s forwards;
}

.scroll-indicator-text {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.scroll-indicator-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-black), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================
   MARQUEE TEXT BANNER
   ============================================ */

.marquee {
  overflow: hidden;
  padding: var(--space-md) 0;
  background-color: var(--color-primary);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-inner {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  padding-right: var(--space-3xl);
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-white);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.marquee-dot {
  width: 12px;
  height: 12px;
  background-color: var(--color-secondary);
  border-radius: 50%;
}

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

/* ============================================
   ABOUT SECTION - STICKY SCROLL
   ============================================ */

.about {
  background-color: var(--color-off-white);
}

.about-grid {
  display: grid;
  gap: var(--space-4xl);
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
  }
}

.about-images {
  position: relative;
}

@media (min-width: 1024px) {
  .about-images {
    position: sticky;
    top: 120px;
    height: fit-content;
  }
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transform: scale(1.2);
  transition: transform 1.5s var(--ease-out-expo);
}

.about-image-wrapper.revealed .about-image {
  transform: scale(1);
}

/* Image reveal mask */
.about-image-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  transform-origin: top;
  transition: transform 1.2s var(--ease-out-expo);
}

.about-image-wrapper.revealed .about-image-mask {
  transform: scaleY(0);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-normal);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-xl);
}

/* Split text animation for titles */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotate(10deg);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out-expo);
}

.split-text.visible .char {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.about-text p.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.about-text p:nth-child(1) { transition-delay: 0.1s; }
.about-text p:nth-child(2) { transition-delay: 0.2s; }
.about-text p:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   SERVICES - 3D CARD TILT
   ============================================ */

.services {
  background-color: var(--color-cream);
  overflow: hidden;
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-5xl);
}

.services-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-normal) ease;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Initial reveal state */
  opacity: 0;
  transform: translateY(60px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out-expo);
}

/* Stagger */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary-light) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  transition: background-color var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover .service-icon {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(-5deg);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary-dark);
  transition: color var(--duration-normal) ease;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.service-card:hover .service-icon svg {
  color: var(--color-white);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--color-gray-dark);
  margin-bottom: var(--space-lg);
  transition: color var(--duration-normal) ease;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.service-link {
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-primary);
  transition: color var(--duration-fast) ease, gap var(--duration-fast) ease;
}

.service-card:hover .service-link {
  color: var(--color-white);
  gap: var(--space-md);
}

/* ============================================
   HORIZONTAL SCROLL GALLERY
   ============================================ */

.gallery {
  background-color: var(--color-off-white);
  overflow: hidden;
  position: relative;
}

.gallery-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);
}

.gallery-track-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

.gallery-track {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-4xl);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.gallery-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-item {
  flex: 0 0 auto;
  width: 350px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .gallery-item {
    width: 450px;
  }
}

.gallery-item-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.9));
  color: var(--color-white);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.gallery-item-tag {
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* Drag hint */
.gallery-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  color: var(--color-gray);
  font-size: var(--text-sm);
}

.gallery-hint svg {
  animation: dragHint 1.5s ease-in-out infinite;
}

@keyframes dragHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* Gallery Arrow Navigation */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-fast) var(--ease-out-quart);
  color: var(--color-primary);
}

.gallery-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-left {
  left: var(--space-xl);
}

.gallery-arrow-right {
  right: var(--space-xl);
}

@media (max-width: 768px) {
  .gallery-arrow {
    width: 44px;
    height: 44px;
  }
  .gallery-arrow-left {
    left: var(--space-md);
  }
  .gallery-arrow-right {
    right: var(--space-md);
  }
}

/* ============================================
   STATS SECTION - COUNTER ANIMATION
   ============================================ */

.stats {
  background-color: var(--color-secondary);
  padding: var(--space-4xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--font-normal);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   TESTIMONIALS - STACKED CARDS
   ============================================ */

.testimonials {
  background-color: var(--color-cream);
  overflow: hidden;
  position: relative;
}

.testimonials-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.testimonials-track-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-4xl);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 auto;
  width: 340px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  line-height: 1.6;
  color: var(--color-gray-dark);
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-gray-light);
}

.testimonial-info h5 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-black);
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: var(--text-xs);
  color: var(--color-gray);
}

/* Testimonial navigation arrows - same as gallery */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-fast) var(--ease-out-quart);
  color: var(--color-primary);
}

.testimonial-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-arrow-left {
  left: var(--space-xl);
}

.testimonial-arrow-right {
  right: var(--space-xl);
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 280px;
    padding: var(--space-md);
  }

  .testimonials-track {
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
  }

  .testimonial-arrow {
    width: 44px;
    height: 44px;
  }

  .testimonial-arrow-left {
    left: var(--space-md);
  }

  .testimonial-arrow-right {
    right: var(--space-md);
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background-color: var(--color-off-white);
  position: relative;
  overflow: hidden;
}

.contact-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  border-radius: 50%;
  opacity: 0.1;
  top: -200px;
  right: -200px;
}

.contact-grid {
  display: grid;
  gap: var(--space-4xl);
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.contact-info {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.contact-info.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-item-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary-dark);
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.contact-item:hover .contact-item-icon {
  transform: rotate(-10deg) scale(1.1);
}

.contact-item h5 {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-xs);
}

.contact-item p {
  color: var(--color-gray-dark);
}

.contact-form-wrapper {
  background-color: var(--color-white);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s var(--ease-out-expo) 0.2s;
}

.contact-form-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-sm);
  color: var(--color-black);
  transition: color var(--duration-fast) ease;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-black);
  background-color: var(--color-cream);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-row {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animated underline for inputs */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-lg);
  right: var(--space-lg);
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.form-group:focus-within::after {
  transform: scaleX(1);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: var(--space-5xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-5xl);
}

.footer-cta-text {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--space-4xl);
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.footer-brand .logo {
  color: var(--color-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  display: inline-block;
}

.footer-brand p {
  color: var(--color-gray);
  max-width: 300px;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--color-gray);
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-white);
  transform: translateX(5px);
}

.footer-newsletter p {
  color: var(--color-gray);
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast) ease;
}

.newsletter-input::placeholder {
  color: var(--color-gray);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--color-white);
  transition: background-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out-expo);
}

.social-link:hover {
  background-color: var(--color-primary);
  transform: translateY(-5px) rotate(5deg);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: var(--color-gray);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: var(--color-gray);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) ease;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out-expo), background-color var(--duration-fast) ease;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  transition: transform var(--duration-fast) ease;
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.9);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  transition: opacity 0.8s ease, transform 1s var(--ease-out-expo);
}

/* Parallax wrapper */
[data-parallax] {
  will-change: transform;
}
