/* ===================================
   CSS Variables & Design System
   =================================== */
:root {
  /* Colors - Deep Dark Chocolate, Honey, Gold */
  --color-primary: #0A0503;        /* Deep Dark Chocolate - MAIN */
  --color-primary-light: #1a0f0a;  /* Slightly Lighter Chocolate */
  --color-secondary: #d4a574;      /* Caramel */
  --color-accent: #F4A460;         /* Honey */
  --color-gold: #C9A961;           /* Gold */
  --color-light: #FFF8E7;          /* Cream */
  --color-white: #FFFFFF;
  --color-dark: #0A0503;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-text-on-dark: #FFF8E7;   /* Text for dark backgrounds */

  /* Section Backgrounds - Alternating Pattern */
  --bg-dark: #0A0503;
  --bg-dark-gradient: linear-gradient(135deg, #0A0503 0%, #1a0f0a 100%);
  --bg-light: #FFF8E7;
  --bg-white: #FFFFFF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0A0503 0%, #1a0f0a 100%);
  --gradient-accent: linear-gradient(135deg, #f4a460 0%, #d4a574 100%);
  --gradient-gold: linear-gradient(135deg, #C9A961 0%, #F4A460 100%);
  --gradient-overlay: linear-gradient(
    180deg,
    rgba(10, 5, 3, 0.7) 0%,
    rgba(10, 5, 3, 0.3) 100%
  );
  --gradient-honey-shimmer: radial-gradient(
    circle at 50% 50%,
    rgba(244, 164, 96, 0.3) 0%,
    rgba(201, 169, 97, 0.2) 50%,
    transparent 100%
  );

  /* Typography - Elegant Fonts */
  --font-heading: "Playfair Display", "Cormorant Garamond", serif;
  --font-body: "Inter", "Montserrat", sans-serif;
  --font-elegant: "Cinzel", "Playfair Display", serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 5, 3, 0.1);
  --shadow-md: 0 4px 16px rgba(10, 5, 3, 0.15);
  --shadow-lg: 0 8px 32px rgba(10, 5, 3, 0.2);
  --shadow-xl: 0 16px 48px rgba(10, 5, 3, 0.25);
  --shadow-gold: 0 8px 32px rgba(201, 169, 97, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  font-family: var(--font-elegant);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  font-weight: 400;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section-title {
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  margin: var(--spacing-md) 0;
  border-radius: var(--radius-full);
}

.divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(24, 14, 9, 0.95); /* #180E09 with opacity */
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 60px;
  width: auto;
  transition: var(--transition-base);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: var(--color-white);
  font-weight: 500;
  position: relative;
}

.nav-menu a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-base);
}

.nav-menu a:not(.btn-primary):hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   Hero Section - Chaotic Golden Particles
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0503 0%, #1a0f0a 50%, #2d1810 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Subtle Dark Vignette */
.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, 
    transparent 20%, 
    rgba(10, 5, 3, 0.4) 80%,
    rgba(10, 5, 3, 0.7) 100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Chaotic Golden Particles Container */
.particles {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Glowing Golden Particle Styles */
.particle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(255, 215, 100, 1) 0%,
    rgba(244, 164, 96, 0.9) 30%,
    rgba(201, 169, 97, 0.6) 60%,
    transparent 100%
  );
  filter: blur(2px);
  animation: particleGlow 3s ease-in-out infinite;
}

.particle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(255, 215, 100, 0.4) 0%,
    rgba(244, 164, 96, 0.2) 40%,
    transparent 70%
  );
  filter: blur(8px);
}

@keyframes particleGlow {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Chaotic Movement Animations */
@keyframes chaoticFloat1 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx1, 200px), var(--ty1, -300px)) scale(1);
    opacity: 0;
  }
}

@keyframes chaoticFloat2 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx2, -250px), var(--ty2, -280px)) scale(1.2);
    opacity: 0;
  }
}

@keyframes chaoticFloat3 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx3, 180px), var(--ty3, -350px)) scale(0.8);
    opacity: 0;
  }
}

@keyframes chaoticFloat4 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx4, -200px), var(--ty4, -320px)) scale(1.1);
    opacity: 0;
  }
}

@keyframes chaoticFloat5 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx5, 220px), var(--ty5, -290px)) scale(0.9);
    opacity: 0;
  }
}

@keyframes chaoticFloat6 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx6, -180px), var(--ty6, -310px)) scale(1);
    opacity: 0;
  }
}

/* Remove old honey drip styles */
.honey-drip-container {
  display: none;
}

.honey-drip {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  padding: var(--spacing-md);
}

/* Studio Name Badge */
.studio-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(201, 169, 97, 0.5);
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
  animation: fadeInUp 1s ease;
}

/* Elegant Hero Title */
.hero-title {
  margin-bottom: var(--spacing-md);
  position: relative;
  display: block;
  width: 100%;
  line-height: 1.3;
  opacity: 0;
  animation: heroSlideIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
}

/* First line - Elegant Serif */
.hero-title .line-1 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Second line - Elegant Italic Script */
.hero-title .line-2 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  font-style: italic;
  color: #C9A961;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--spacing-lg);
  color: var(--color-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: heroSlideIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}

@keyframes heroSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-50vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--color-white);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  width: 6px;
  height: 10px;
  background: var(--color-white);
  border-radius: 3px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   About Section - LIGHT
   =================================== */
.about {
  padding: var(--spacing-xl) 0;
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.about-image {
  position: relative;
  margin-top: 5rem; /* Copensated to align with the quote text "Працюю делікатно..." */
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}

.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

@media (max-width: 767px) {
  .about-description {
    text-align: center;
  }
}

.certificates h3 {
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

@media (max-width: 1023px) {
  .certificates h3 {
    text-align: center;
  }
}

/* Fan Effect for Certificates */
.certificate-grid {
  position: relative;
  height: 400px; /* Adjust based on image aspect ratio */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  margin-top: 2rem;
}

.certificate-item {
  position: absolute;
  width: 250px;
  height: auto;
  border-radius: var(--radius-md);
  background: white;
  padding: 5px;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: bottom center;
  cursor: pointer;
  /* Initial State: Collapsed Stack */
  top: 50%;
  left: 50%;
}

.certificate-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

/* Initial styling: Stack with #1 on top */
.certificate-item:nth-child(1) {
  transform: translate(-50%, -50%) rotate(-4deg);
  z-index: 5;
}
.certificate-item:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: 4;
}
.certificate-item:nth-child(3) {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 3;
}
.certificate-item:nth-child(4) {
  transform: translate(-50%, -50%) rotate(2deg);
  z-index: 2;
}
.certificate-item:nth-child(5) {
  transform: translate(-50%, -50%) rotate(4deg);
  z-index: 1;
}

/* Hover on Container: Expand the Fan (Tighter cluster) */
.certificate-grid:hover .certificate-item:nth-child(1) {
  transform: translate(-140%, -45%) rotate(-15deg);
  z-index: 1; /* Reset z-index so hover logic works */
}
.certificate-grid:hover .certificate-item:nth-child(2) {
  transform: translate(-95%, -55%) rotate(-7deg);
  z-index: 2;
}
.certificate-grid:hover .certificate-item:nth-child(3) {
  transform: translate(-50%, -60%) rotate(0deg) scale(1.05);
  z-index: 3;
}
.certificate-grid:hover .certificate-item:nth-child(4) {
  transform: translate(-5%, -55%) rotate(7deg);
  z-index: 2;
}
.certificate-grid:hover .certificate-item:nth-child(5) {
  transform: translate(40%, -45%) rotate(15deg);
  z-index: 1;
}

/* Also allow programmatic toggle via .spread (used for touch) */
.certificate-grid.spread .certificate-item:nth-child(1) {
  transform: translate(-140%, -45%) rotate(-15deg);
  z-index: 1;
}
.certificate-grid.spread .certificate-item:nth-child(2) {
  transform: translate(-95%, -55%) rotate(-7deg);
  z-index: 2;
}
.certificate-grid.spread .certificate-item:nth-child(3) {
  transform: translate(-50%, -60%) rotate(0deg) scale(1.05);
  z-index: 3;
}
.certificate-grid.spread .certificate-item:nth-child(4) {
  transform: translate(-5%, -55%) rotate(7deg);
  z-index: 2;
}
.certificate-grid.spread .certificate-item:nth-child(5) {
  transform: translate(40%, -45%) rotate(15deg);
  z-index: 1;
}

/* Hover Effect Removed to prevent jerking */
/* The fan simply spreads out on container hover */

/* Mobile Responsiveness for Fan */
@media (max-width: 768px) {
  /* Keep the fan layout on small screens but make it compact */
  .certificate-grid {
    position: relative;
    height: 320px;
    display: block;
    margin-top: 1.5rem;
    overflow: visible;
    perspective: 800px;
  }

  .certificate-item {
    position: absolute;
    width: 180px;
    padding: 4px;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -2px 2px 8px rgba(0,0,0,0.15);
    border-radius: 12px;
  }

  /* Tighter initial stack for small screens */
  .certificate-item:nth-child(1) { transform: translate(-50%, -50%) rotate(-3deg) scale(0.95); z-index:5; }
  .certificate-item:nth-child(2) { transform: translate(-50%, -50%) rotate(-1.5deg) scale(0.97); z-index:4; }
  .certificate-item:nth-child(3) { transform: translate(-50%, -50%) rotate(0deg) scale(1); z-index:3; }
  .certificate-item:nth-child(4) { transform: translate(-50%, -50%) rotate(1.5deg) scale(0.97); z-index:2; }
  .certificate-item:nth-child(5) { transform: translate(-50%, -50%) rotate(3deg) scale(0.95); z-index:1; }

  /* Spread state for small screens (tighter) */
  .certificate-grid.spread .certificate-item:nth-child(1) { transform: translate(-100%, -40%) rotate(-10deg) scale(0.9); z-index:1; }
  .certificate-grid.spread .certificate-item:nth-child(2) { transform: translate(-60%, -45%) rotate(-5deg) scale(0.95); z-index:2; }
  .certificate-grid.spread .certificate-item:nth-child(3) { transform: translate(-50%, -50%) rotate(0deg) scale(1.02); z-index:3; }
  .certificate-grid.spread .certificate-item:nth-child(4) { transform: translate(0%, -45%) rotate(5deg) scale(0.95); z-index:2; }
  .certificate-grid.spread .certificate-item:nth-child(5) { transform: translate(30%, -40%) rotate(10deg) scale(0.9); z-index:1; }

  /* Ensure hover fallback doesn't force removal */
  .certificate-grid:hover .certificate-item { /* keep hover behavior */ }
}

/* ===================================
   Benefits Section - DARK
   =================================== */
.benefits {
  padding: var(--spacing-xl) 0;
  background: var(--bg-dark-gradient);
}

.benefits h2,
.benefits .section-title {
  color: var(--color-gold);
}

.benefits .section-subtitle {
  color: var(--color-text-on-dark);
  opacity: 0.9;
}

.benefits .divider {
  background: var(--gradient-gold);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.benefit-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 48px rgba(201, 169, 97, 0.4);
  border-color: var(--color-gold);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition-base);
  box-shadow: var(--shadow-gold);
}

.benefit-icon svg {
  width: 40px;
  height: 40px;
}

.benefit-card:hover .benefit-icon {
  transform: rotateY(360deg);
}

@media (max-width: 1023px) {
  .benefit-icon {
    animation: spin 3s linear infinite;
  }
}

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.benefit-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  color: var(--color-gold);
}

.benefit-card p {
  color: var(--color-text-on-dark);
  opacity: 0.9;
}

/* ===================================
   Pricing Section - LIGHT
   =================================== */
.pricing {
  padding: var(--spacing-xl) 0;
  background: var(--bg-white);
}

.pricing-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.pricing-table {
  background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.pricing-table:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.pricing-table[data-animate] {
  opacity: 0;
}

/* Creative Animation: Crash from sides */
.pricing-table.bg-brows.animated {
  animation: crashSlideLeft 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pricing-table.bg-sugaring.animated {
  animation: crashSlideRight 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.2s; /* Slight delay for second card */
}

@keyframes crashSlideLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes crashSlideRight {
  0% {
    opacity: 0;
    transform: translateX(100px) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-accent);
}

.pricing-header h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.pricing-header p {
  color: var(--color-text-light);
}

.pricing-body {
  margin-bottom: var(--spacing-lg);
}

.price-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(62, 39, 35, 0.1);
  transition: var(--transition-fast);
}

.price-item:hover {
  background: rgba(244, 164, 96, 0.1);
  padding-left: var(--spacing-sm);
}

.service-name {
  font-weight: 500;
  color: var(--color-text);
}

.price-dots {
  flex: 1;
  border-bottom: 2px dotted var(--color-text-light);
  margin: 0 var(--spacing-sm);
  opacity: 0.3;
}

.service-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.125rem;
}

.pricing-table .btn-primary {
  width: 100%;
}

/* Pricing Table with Background Image */
/* Pricing Table with Background Image */
.pricing-table-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.bg-sugaring {
  background-image: url('sugaring-bg.png');
}

.bg-brows {
  background-image: url('brovi-bg.jpeg');
}

.pricing-table-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 248, 231, 0.65) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 248, 231, 0.7) 100%
  );
  z-index: 1;
}

.pricing-table-with-bg > * {
  position: relative;
  z-index: 2;
}

.pricing-table-with-bg .pricing-header {
  background: linear-gradient(
    135deg,
    rgba(244, 164, 96, 0.15) 0%,
    rgba(201, 169, 97, 0.1) 100%
  );
  backdrop-filter: blur(5px);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.pricing-table-with-bg .price-item {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  margin-bottom: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  border-bottom: none;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.pricing-table-with-bg .price-item:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(201, 169, 97, 0.4);
  transform: translateX(5px);
}

/* ===================================
   Portfolio Section - DARK
   =================================== */
.portfolio {
  padding: var(--spacing-xl) 0;
  background: var(--bg-dark-gradient);
  overflow: hidden;
  width: 100%;
}

.portfolio .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.portfolio .container > h2,
.portfolio .container > .divider,
.portfolio .container > .section-subtitle {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-md);
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) auto;
  max-width: 1200px;
  padding: 0 var(--spacing-md);
  flex-wrap: wrap;
}

.portfolio-cta {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-md);
  margin-top: 200px !important;
  position: relative;
  z-index: 100;
}

@media (max-width: 1023px) {
  .portfolio-cta {
    margin-top: 50px !important;
  }
}

.portfolio-cta:not(.active) {
  display: none;
}

.portfolio h2,
.portfolio .section-title {
  color: var(--color-gold);
}

.portfolio .section-subtitle {
  color: var(--color-text-on-dark);
  opacity: 0.9;
}

.portfolio .divider {
  background: var(--gradient-gold);
}

.portfolio-carousel {
  margin-top: var(--spacing-lg);
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Custom Carousel Container */
.custom-carousel-container {
  width: 100%;
  max-width: 100%;
  height: 450px;
  position: relative;
  perspective: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.custom-carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
}

.portfolio-card {
  position: absolute;
  width: 280px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-lg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  perspective: 2500px;
  border: 2px solid rgba(201, 169, 97, 0.3);
  left: 50%;
  transform: translateX(-50%);
}

.portfolio-card.center {
  z-index: 10;
  transform: translateX(-50%) scale(1.05) translateZ(0);
  border-color: var(--color-gold);
}

.portfolio-card.left-2 {
  z-index: 1;
  transform: translateX(calc(-50% - 620px)) scale(0.85) translateZ(-300px);
  opacity: 0.7;
}

.portfolio-card.left-1 {
  z-index: 5;
  transform: translateX(calc(-50% - 310px)) scale(0.95) translateZ(-100px);
  opacity: 0.9;
}

.portfolio-card.right-1 {
  z-index: 5;
  transform: translateX(calc(-50% + 310px)) scale(0.95) translateZ(-100px);
  opacity: 0.9;
}

.portfolio-card.right-2 {
  z-index: 1;
  transform: translateX(calc(-50% + 620px)) scale(0.85) translateZ(-300px);
  opacity: 0.7;
}

.portfolio-card.hidden {
  opacity: 0;
  pointer-events: none;
}

.portfolio-item {
  width: 100%;
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s;
  border: 2px solid rgba(201, 169, 97, 0.3);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  perspective: 2500px;
}

.portfolio-card:hover {
  /* Removed hover effects to match original without 3D */
}

.portfolio-item:hover {
  /* Removed hover effects */
}

.portfolio-wrapper {
  transition: all 0.5s;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portfolio-card:hover .portfolio-wrapper,
.portfolio-item:hover .portfolio-wrapper {
  /* Removed all hover effects including 3D transform */
}

.portfolio-wrapper::before,
.portfolio-wrapper::after {
  content: "";
  opacity: 0;
  width: 100%;
  height: 80px;
  transition: all 0.5s;
  position: absolute;
  left: 0;
  z-index: 2;
}

.portfolio-wrapper::before {
  top: 0;
  height: 100%;
  background-image: linear-gradient(
    to top,
    transparent 46%,
    rgba(10, 5, 3, 0.5) 68%,
    rgba(10, 5, 3, 0.9) 97%
  );
}

.portfolio-wrapper::after {
  bottom: 0;
  opacity: 1;
  background-image: linear-gradient(
    to bottom,
    transparent 46%,
    rgba(10, 5, 3, 0.5) 68%,
    rgba(10, 5, 3, 0.9) 97%
  );
}

.portfolio-card:hover .portfolio-wrapper::before,
.portfolio-card:hover .portfolio-wrapper::after,
.portfolio-item:hover .portfolio-wrapper::before,
.portfolio-item:hover .portfolio-wrapper::after {
  /* Removed hover effects */
}

.portfolio-card:hover .portfolio-wrapper::after,
.portfolio-item:hover .portfolio-wrapper::after {
  /* Removed hover effects */
}

.portfolio-cover {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: scale-down;
  object-position: center;
  filter: brightness(1.1);
  transition: var(--transition-base);
  display: block;
}

@media (max-width: 1023px) {
  .portfolio-cover {
    object-fit: scale-down;
    height: auto;
    max-height: none;
    min-height: auto;
  }
}

.portfolio-character {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  filter: brightness(1.2);
  transform: translate3d(0%, 0%, 0);
  display: none !important;
}

.portfolio-card:hover .portfolio-character,
.portfolio-item:hover .portfolio-character {
  /* Removed 3D hover effects */
}

/* Make portfolio-character visible on mobile */
@media (max-width: 767px) {
  .portfolio-character {
    display: block !important;
    opacity: 1;
  }
}

.portfolio-swiper {
  display: none !important;
}

@media (max-width: 1023px) {
  .custom-carousel-container {
    display: none;
  }
  .portfolio-swiper {
    display: block !important;
  }
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10, 5, 3, 0) 0%, rgba(10, 5, 3, 0.95) 100%);
  padding: var(--spacing-md);
  transform: translate3d(0%, 0%, 0);
  transition: transform 0.5s;
  z-index: 4;
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-item:hover .portfolio-overlay {
  /* Removed 3D hover effects */
}

.portfolio-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.portfolio-swiper .swiper-slide .portfolio-item {
  width: 100%;
  height: 100%;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10, 5, 3, 0) 0%, rgba(10, 5, 3, 0.95) 100%);
  padding: var(--spacing-md);
  transform: translateY(100%);
  transition: var(--transition-base);
}

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

.portfolio-overlay p {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom Carousel Navigation Arrows */
.carousel-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 5, 3, 0.9);
  color: var(--color-gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 2rem;
  border: 2px solid rgba(201, 169, 97, 0.3);
  outline: none;
  backdrop-filter: blur(10px);
  font-weight: bold;
  line-height: 1;
}

.carousel-nav-arrow:hover {
  background: var(--color-gold);
  color: var(--bg-dark);
  transform: translateY(-50%) scale(1.15);
  border-color: var(--color-gold);
}

.carousel-nav-left {
  left: 20px;
  padding-right: 3px;
}

.carousel-nav-right {
  right: 20px;
  padding-left: 3px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-gold);
  transform: scale(1.3);
}

.portfolio-swiper .swiper-button-next::after,
.portfolio-swiper .swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}

.portfolio-swiper .swiper-button-next:hover,
.portfolio-swiper .swiper-button-prev:hover {
  background: var(--color-gold);
  color: var(--bg-dark);
  transform: scale(1.15);
  border-color: var(--color-gold);
}

/* Responsive adjustments for custom carousel */
@media (max-width: 1023px) {
  .custom-carousel-container {
    padding: 0 40px; /* Reduce padding */
    min-width: calc(780px + 80px); /* Adjust for new sizes */
  }
  
  .portfolio-card {
    width: 240px;
    height: 350px;
  }
  
  .portfolio-card.left-1 {
    transform: translateX(calc(-50% - 250px)) scale(0.95) translateZ(-100px);
  }
  
  .portfolio-card.right-1 {
    transform: translateX(calc(-50% + 250px)) scale(0.95) translateZ(-100px);
  }
  
  .portfolio-card.left-2,
  .portfolio-card.right-2 {
    display: none;
  }
}

@media (max-width: 767px) {
  .custom-carousel-container {
    height: 300px;
    padding: 0 80px;
  }
  
  .portfolio-card {
    width: 120px;
    max-width: 120px;
    height: 200px;
  }
  
  .portfolio-card.center {
    transform: translateX(-50%) scale(1) translateZ(0);
  }
  
  .portfolio-card.left-1 {
    transform: translateX(calc(-50% - 140px)) scale(0.9) translateZ(-50px);
  }
  
  .portfolio-card.left-2 {
    transform: translateX(calc(-50% - 280px)) scale(0.8) translateZ(-100px);
  }
  
  .portfolio-card.right-1 {
    transform: translateX(calc(-50% + 140px)) scale(0.9) translateZ(-50px);
  }
  
  .portfolio-card.right-2 {
    transform: translateX(calc(-50% + 280px)) scale(0.8) translateZ(-100px);
  }
}

/* Responsive */
@media (max-width: 1023px) {
  .portfolio-item {
    height: 350px;
  }
}

@media (max-width: 1023px) {
  .portfolio-item {
    height: auto;
  }
}

  .portfolio-swiper .swiper-button-next,
  .portfolio-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    top: auto;
    bottom: 10px;
    transform: none;
  }

  .portfolio-swiper .swiper-button-next::after,
  .portfolio-swiper .swiper-button-prev::after {
    font-size: 16px;
  }


/* ===================================
   Testimonials Section - LIGHT
   =================================== */
.testimonials {
  padding: var(--spacing-xl) 0;
  background: var(--bg-light);
}

.testimonials .section-subtitle {
  margin-top: 1rem;
}

@media (max-width: 1023px) {
  .testimonials {
    padding: var(--spacing-md) 0 var(--spacing-xl);
  }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.testimonial-card {
  background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}

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

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 1023px) {
  .testimonial-stars {
    text-align: center;
  }
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

@media (max-width: 1023px) {
  .testimonial-text {
    text-align: center;
  }
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-accent);
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author strong {
  color: var(--color-primary);
  font-size: 1.125rem;
}

.testimonial-author span {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ===================================
   Location Section - DARK
   =================================== */
.location {
  padding: var(--spacing-xl) 0;
  background: var(--bg-dark-gradient);
}

.location h2,
.location .section-title {
  color: var(--color-gold);
}

.location .divider {
  background: var(--gradient-gold);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  align-items: center;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.info-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: rgba(26, 15, 10, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(201, 169, 97, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: var(--transition-base);
}

.info-item:hover {
  transform: translateX(10px);
  box-shadow: 0 12px 48px rgba(201, 169, 97, 0.4);
  border-color: var(--color-gold);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}

.info-icon svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 1023px) {
  .info-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .info-icon {
    animation: spin 4s linear infinite;
  }
}

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.info-item h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
  color: var(--color-gold);
  font-weight: 600;
}

.info-item p {
  color: #FFF8E7;
  line-height: 1.6;
  opacity: 1;
  font-size: 1.05rem;
}

.info-item a {
  color: var(--color-accent);
  font-weight: 600;
}

.info-item a:hover {
  color: var(--color-gold);
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
}

@media (max-width: 1023px) {
  .location-map {
    border: 2px solid rgba(201, 169, 97, 0.5);
  }
}

.location-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}


/* ===================================
   Footer - Compact Version
   =================================== */
.footer {
  background: linear-gradient(135deg, #0A0503 0%, #1a0f0a 100%);
  color: var(--color-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 2px solid rgba(201, 169, 97, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-section h4 {
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  font-weight: 600;
}

@media (max-width: 1023px) {
  .footer-section {
    text-align: center;
  }
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-section ul li {
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 1023px) {
  .footer-logo {
    margin: 0 auto var(--spacing-sm);
  }
}

.footer-section p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

@media (max-width: 1023px) {
  .social-links {
    justify-content: center;
  }
}

.social-links a {
  width: 44px;
  height: 44px;
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.social-links a:hover {
  background: var(--gradient-gold);
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  color: var(--color-light);
  font-size: 0.9rem;
}

.footer-bottom p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Pulsing Heart Animation */
.heart {
  display: inline-block;
  color: #ff6b6b;
  animation: heartbeat 1.5s ease-in-out infinite;
  font-size: 1.1em;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

/* ===================================
   Popup
   =================================== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.popup.active .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition-base);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.popup-close:hover {
  background: var(--color-light);
  color: var(--color-primary);
  transform: rotate(90deg);
}

.popup-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  color: var(--color-white);
}

.popup-icon svg {
  width: 50px;
  height: 50px;
}

.popup-content h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.popup-content p {
  margin-bottom: var(--spacing-md);
}

.popup-content strong {
  color: var(--color-accent);
  font-size: 1.5rem;
}

.popup-small {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ===================================
   Animations
   =================================== */
[data-animate] {
  opacity: 0;
  transition: all 0.8s ease;
}

[data-animate="fade-up"] {
  transform: translateY(50px);
}

[data-animate="fade-down"] {
  transform: translateY(-50px);
}

[data-animate="fade-left"] {
  transform: translateX(50px);
}

[data-animate="fade-right"] {
  transform: translateX(-50px);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--spacing-lg);
    transition: var(--transition-base);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .about-content,
  .location-content {
    grid-template-columns: 1fr;
  }

  .pricing-tables {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .portfolio-item {
    min-width: 300px;
    height: 400px;
  }
}

@media (max-width: 640px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-tables {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    min-width: auto;
  }
}

/* ===================================
   НОВI ПОКРАЩЕННЯ
   =================================== */

/* Logo Text Animation */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-signature {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: 400;
  animation: typewriter 2s steps(8) 0.5s forwards;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-style: italic;
  opacity: 0;
  animation: fadeIn 1s ease 2.5s forwards;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Honey Dripping Animation */
.honey-drip-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.honey-drip {
  position: absolute;
  top: -100px;
  left: var(--left, 20%);
  width: 80px;
  height: 150px;
  background: linear-gradient(180deg, 
    rgba(244, 164, 96, 0.9) 0%,
    rgba(212, 165, 116, 0.7) 50%,
    rgba(201, 169, 97, 0.5) 100%
  );
  border-radius: 0 0 50% 50%;
  filter: blur(2px);
  animation: drip 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.7;
}

.honey-drip::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(244, 164, 96, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: droplet 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes drip {
  0% {
    top: -100px;
    height: 150px;
  }
  50% {
    top: 30%;
    height: 200px;
  }
  100% {
    top: 100%;
    height: 100px;
    opacity: 0;
  }
}

@keyframes droplet {
  0%, 40% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(50px);
  }
}

/* 3D Photo Effect */
.about-image img {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: perspective(1000px) rotateY(10deg) rotateX(5deg) scale(1.05);
}

/* Quote Styling */
.about-quote {
  position: relative;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-primary);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  background: linear-gradient(135deg, rgba(244, 164, 96, 0.1) 0%, rgba(212, 165, 116, 0.1) 100%);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  animation: quoteSlide 1s ease 0.5s backwards;
}

.quote-mark {
  font-size: 3rem;
  color: var(--color-gold);
  font-family: Georgia, serif;
  line-height: 0;
  opacity: 0.3;
}

@keyframes quoteSlide {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Certificate Fan Effect */
.certificate-fan {
  position: relative;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.certificate-card {
  position: absolute;
  width: 200px;
  height: 280px;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: bottom center;
  cursor: pointer;
}

.certificate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* Stacked state */
.certificate-card {
  transform: translateY(calc(var(--index) * 10px)) rotate(0deg);
  z-index: calc(10 - var(--index));
}

/* Fan out on hover */
.certificate-fan:hover .certificate-card {
  transform: translateY(0) rotate(calc((var(--index) - 1) * 15deg));
}

.certificate-fan:hover .certificate-card:nth-child(1) {
  transform: translateY(0) rotate(-15deg) translateX(-80px);
}

.certificate-fan:hover .certificate-card:nth-child(2) {
  transform: translateY(0) rotate(0deg);
}

.certificate-fan:hover .certificate-card:nth-child(3) {
  transform: translateY(0) rotate(15deg) translateX(80px);
}

/* Portfolio Tabs - стили объединены выше */

.portfolio-tab {
  padding: 1rem 2.5rem;
  background: rgba(201, 169, 97, 0.1);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.portfolio-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  transition: left 0.4s ease;
  z-index: -1;
}

.portfolio-tab:hover::before,
.portfolio-tab.active::before {
  left: 0;
}

.portfolio-tab:hover,
.portfolio-tab.active {
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  border-color: var(--color-accent);
  z-index: 10;
  position: relative;
}

.portfolio-tab {
  z-index: 5;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Portfolio Carousel Visibility */
.portfolio-carousel {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.portfolio-carousel.active {
  display: block;
  opacity: 1;
  animation: fadeInScale 0.6s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Portfolio CTA */
.portfolio-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.portfolio-cta .btn-primary {
  font-size: 1.25rem;
  padding: 1.5rem 3rem;
  box-shadow: var(--shadow-xl);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Enhanced Animations */
.benefit-card {
  animation: cardFloat 3s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0s) * 0.5);
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  animation: cardFadeIn 0.8s ease backwards;
  animation-delay: calc(var(--delay, 0) * 0.2s);
  border: 1px solid rgba(201, 169, 97, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(201, 169, 97, 0.4);
  border-color: var(--color-gold);
  background: #FFF8E7; /* Light cream background on hover */
}

.testimonial-text {
  flex-grow: 1;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile Adjustments for New Elements */
@media (max-width: 968px) {
  .logo-text {
    display: none;
  }
  
  .certificate-fan {
    height: 250px;
  }
  
  .certificate-card {
    width: 150px;
    height: 210px;
  }
  
  .portfolio-tabs {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .portfolio-tab {
    width: 100%;
  }
  
  .honey-drip {
    width: 50px;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .about-quote {
    font-size: 1rem;
    padding: var(--spacing-sm);
  }
  
  .certificate-fan:hover .certificate-card:nth-child(1) {
    transform: translateY(0) rotate(-10deg) translateX(-40px);
  }
  
  .certificate-fan:hover .certificate-card:nth-child(3) {
    transform: translateY(0) rotate(10deg) translateX(40px);
  }
}


/* ===================================
   Welcome Popup with WOW Effect
   =================================== */
.welcome-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 3, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.welcome-popup.active {
  opacity: 1;
  visibility: visible;
}

.welcome-popup-content {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFFFFF 100%);
  padding: 3rem 2rem 2rem;
  border-radius: 24px;
  max-width: 550px;
  width: 90%;
  position: relative;
  transform: scale(0.5) rotate(-5deg);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 60px rgba(201, 169, 97, 0.4), 0 0 0 1px rgba(201, 169, 97, 0.2);
  overflow: hidden;
}

.welcome-popup.active .welcome-popup-content {
  transform: scale(1) rotate(0deg);
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--color-gold);
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(600px) rotate(720deg); opacity: 0; }
}

.discount-badge {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 100px;
  height: 100px;
  animation: badge-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes badge-bounce {
  0% { transform: scale(0) rotate(-180deg); }
  50% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.badge-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F4A460 0%, #C9A961 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.6), inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  border: 3px solid #FFD764;
  position: relative;
}

.badge-inner::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 215, 100, 0.3) 90deg, transparent 180deg, rgba(255, 215, 100, 0.3) 270deg, transparent 360deg);
  animation: badge-rotate 3s linear infinite;
}

@keyframes badge-rotate {
  100% { transform: rotate(360deg); }
}

.discount-percent {
  font-size: 2rem;
  font-weight: 900;
  color: #0A0503;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.badge-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0A0503;
  letter-spacing: 1px;
  z-index: 1;
}

.popup-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: slide-down 0.6s ease-out 0.4s both;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.popup-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.popup-subtitle {
  color: var(--color-text);
  font-size: 1.1rem;
  opacity: 0.8;
}

.popup-body {
  margin-bottom: 2rem;
  animation: fade-in 0.6s ease-out 0.6s both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.offer-highlight {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(244, 164, 96, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(201, 169, 97, 0.2);
}

.offer-highlight svg {
  color: var(--color-accent);
  margin-bottom: 1rem;
  animation: heart-pulse 2s ease-in-out infinite;
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.offer-highlight h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.offer-highlight p {
  color: var(--color-text);
  font-size: 1rem;
}

.popup-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popup-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.popup-benefits svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.popup-footer {
  text-align: center;
  animation: slide-up 0.6s ease-out 0.8s both;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.popup-cta {
  width: 100%;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
  transition: all 0.3s ease;
}

.popup-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 169, 97, 0.5);
}

.popup-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 5, 3, 0.1);
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.popup-close:hover {
  background: rgba(10, 5, 3, 0.2);
  transform: rotate(90deg);
}

/* ===================================
   Modal for Portfolio Images
   =================================== */
#portfolioModal.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  overflow: auto;
}

#portfolioModal.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#portfolioModal .modal-content {
  position: relative;
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  animation: modalFadeIn 0.3s ease-out;
  padding: 20px;
}

#portfolioModal .modal-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

#portfolioModal .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-base);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  border: 2px solid rgba(201, 169, 97, 0.5);
}

#portfolioModal .modal-close:hover {
  color: var(--color-gold);
  background: rgba(201, 169, 97, 0.9);
  transform: scale(1.15) rotate(90deg);
  border-color: var(--color-gold);
}

@keyframes modalFadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.8); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* ===============================
   MOBILE / TABLET FIX — PORTFOLIO
   =============================== */

@media (max-width: 1023px) {
  /* Fix Swiper slide height */
  .portfolio-swiper .portfolio-item {
    position: relative;
    height: 340px;
    overflow: hidden;
    border-radius: var(--radius-lg);
  }

  .portfolio-swiper .portfolio-wrapper {
    position: absolute;
    inset: 0;
  }

  /* Prevent image cropping */
  .portfolio-swiper .portfolio-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Make Instagram button smaller */
  .portfolio-cta .btn-primary {
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 28px;
  }
}

@media (max-width: 767px) {
  .portfolio-swiper .portfolio-item {
    height: 300px;
  }
}



/* Fix navbar height on mobile to prevent logo cropping */
@media (max-width: 768px) {
  .navbar {
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 64px;
  }

  .navbar .logo img {
    max-height: 40px;
    width: auto;
    display: block;
  }
}
/* Hide studio badge on tablets + phones */
@media (max-width: 1023px) {
  .studio-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}




/* Fix hero top spacing on phones/tablets (prevents H1 cropping) */
@media (max-width: 1023px) {
  .hero {
    padding-top: 72px; /* место под фиксированную navbar */
  }

  /* страховка для iPhone с "чёлкой" */
  @supports (padding-top: env(safe-area-inset-top)) {
    .hero {
      padding-top: calc(72px + env(safe-area-inset-top));
    }
  }

  /* чтобы контент не "прилипал" вверх */
  .hero-content {
    padding-top: 12px;
  }
}
