/* ===================================
   BLUMEN AM BUBENBAD — Custom Styles
   Clean Fluid Design System
   =================================== */

:root {
  --cream: #fcfbf9;
  --charcoal: #171717;
  --indigo: #4338ca;
  --forest: #2d5a27;
  --border: #e5e5e5;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(67, 56, 202, 0.2);
  color: var(--charcoal);
}

/* ===== CURSOR SPOTLIGHT ===== */
#spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 5;
  border-radius: 50%;
  will-change: transform;
}

/* ===== PARTICLE CANVAS ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  mix-blend-mode: difference;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.header-logo {
  color: white;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  z-index: 10;
}

.header-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: white;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: white;
  transition: width 400ms var(--ease-premium);
  transform-origin: left;
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  transition: border-color 400ms var(--ease-premium);
}

.header-cta:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 3s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: white;
  transition: transform 400ms var(--ease-premium), opacity 300ms ease;
}

.hamburger.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.hamburger.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-premium);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 300ms ease;
}

.mobile-nav-link:hover {
  opacity: 1;
}

.mobile-nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--indigo);
  border-radius: 50px;
  padding: 12px 32px;
  margin-top: 1rem;
}

/* ===== HERO ===== */
.mesh-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mesh-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.mesh-1 {
  background: var(--indigo);
  opacity: 0;
  top: -10%;
  left: -5%;
  animation: meshDrift1 30s linear infinite;
}

.mesh-2 {
  background: #7c3aed;
  opacity: 0;
  top: 20%;
  right: -10%;
  animation: meshDrift2 30s linear infinite;
  animation-delay: -10s;
}

.mesh-3 {
  background: var(--indigo);
  opacity: 0;
  bottom: -5%;
  left: 30%;
  animation: meshDrift3 30s linear infinite;
  animation-delay: -20s;
}

@keyframes meshDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 50px) scale(1.1); }
  66% { transform: translate(-50px, 80px) scale(0.9); }
}

@keyframes meshDrift2 {
  0%, 100% { transform: translate(0, 0) scale(0.9); }
  33% { transform: translate(-80px, 60px) scale(1.1); }
  66% { transform: translate(60px, -40px) scale(1); }
}

@keyframes meshDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  33% { transform: translate(70px, -60px) scale(0.9); }
  66% { transform: translate(-90px, -30px) scale(1); }
}

/* Wave */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25vh;
  overflow: hidden;
  z-index: 20;
}

.wave-curve {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 200%;
  background: var(--cream);
  border-radius: 50% 50% 0 0;
}

.wave-cta {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--indigo);
  color: var(--cream);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 400ms var(--ease-premium), box-shadow 400ms var(--ease-premium);
  animation: ctaPulse 3s infinite;
  white-space: nowrap;
}

.wave-cta:hover {
  transform: translateX(-50%) scale(1.02);
  box-shadow: 0 0 20px rgba(67, 56, 202, 0.4);
}

.wave-cta:active {
  transform: translateX(-50%) scale(0.98);
}

@keyframes ctaPulse {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 rgba(67, 56, 202, 0); }
  50% { transform: translateX(-50%) scale(1.02); box-shadow: 0 0 20px rgba(67, 56, 202, 0.3); }
}

/* ===== ATELIER ===== */
.atelier-image-container {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.atelier-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ===== 3D ANIMATION SECTION ===== */
.wave-container-inverted {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25vh;
  overflow: hidden;
  z-index: 20;
}

.wave-curve-inverted {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 200%;
  background: var(--cream);
  border-radius: 50% 50% 0 0;
}

/* ===== ACCORDION ===== */
.accordion-trigger {
  cursor: pointer;
  transition: color 400ms var(--ease-premium);
}

.accordion-title {
  transition: color 400ms var(--ease-premium);
}

.accordion-item:hover .accordion-title {
  color: var(--charcoal) !important;
  opacity: 1 !important;
}

.accordion-item[data-open="true"] .accordion-title {
  color: var(--charcoal) !important;
  opacity: 1 !important;
}

.accordion-item[data-open="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  transition: height 600ms var(--ease-premium);
  overflow: hidden;
}

.accordion-image {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 500ms var(--ease-premium), transform 500ms var(--ease-premium);
}

.accordion-item[data-open="true"] .accordion-image {
  opacity: 1;
  transform: translateX(0);
}

/* ===== GALLERY ===== */
.gallery-card {
  opacity: 0;
  transform: translateY(60px);
}

.gallery-card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #e0e7ff;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 500ms var(--ease-premium), box-shadow 500ms var(--ease-premium);
}

.gallery-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-premium);
}

.gallery-card-image-wrap:hover {
  transform: translateY(-1rem);
  box-shadow: 0 20px 60px rgba(67, 56, 202, 0.1);
}

.gallery-card-image-wrap:hover img {
  transform: scale(1.1);
}

.gallery-card-pill {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: white;
  color: var(--charcoal);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 8px 20px;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms var(--ease-premium), transform 500ms var(--ease-premium);
}

.gallery-card-image-wrap:hover .gallery-card-pill {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-meta {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.gallery-card-line {
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
  margin-top: 8px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-carousel {
  position: relative;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 500ms var(--ease-premium), transform 500ms var(--ease-premium);
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-slide.exit {
  opacity: 0;
  transform: translateX(-40px);
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(252, 251, 249, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 300ms ease, transform 300ms ease;
}

.testimonial-dot.active {
  background: var(--indigo);
  transform: scale(1.3);
}

/* ===== CONTACT CTA ===== */
.contact-cta {
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(67, 56, 202, 0.3);
  opacity: 0;
  transition: opacity 400ms var(--ease-premium);
}

.contact-cta:hover::before {
  opacity: 1;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  #site-header {
    height: 64px;
  }

  .header-nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-label {
    font-size: 10px;
    letter-spacing: 0.3em;
  }

  .wave-container {
    height: 15vh;
  }

  .wave-cta {
    font-size: 11px;
    padding: 14px 28px;
  }

  #spotlight,
  #particles {
    display: none;
  }

  #animation-section {
    height: 200vh !important;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mesh-circle {
    opacity: 0.3 !important;
  }

  .gallery-card,
  .hero-label,
  .hero-line-1,
  .hero-line-2,
  .hero-subtitle,
  .wave-cta {
    opacity: 1 !important;
    transform: none !important;
  }

  #spotlight,
  #particles {
    display: none;
  }
}

/* ===== PILL BUTTONS GLOBAL ===== */
.pill-button {
  transition: transform 400ms var(--ease-premium), box-shadow 400ms var(--ease-premium);
}

.pill-button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(67, 56, 202, 0.3);
}

.pill-button:active {
  transform: scale(0.98);
}