/* ============================================================
   SKY CAKE — style.css
   Luxury handcrafted cake website for Səma / Sky Cake
   Color Palette: Cream + Dusty Rose + Gold
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. CSS VARIABLES — Edit here to change global styles
   ──────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg: #fdf6f0; /* Warm cream background */
  --color-bg-alt: #f7ede6; /* Slightly darker cream for sections */
  --color-bg-dark: #f0e0d6; /* Section dividers */
  --color-primary: #c8849a; /* Dusty rose — buttons, accents */
  --color-primary-dark: #a8637a; /* Darker rose — hover states */
  --color-secondary: #e8b4b8; /* Light pink — soft accents */
  --color-text: #6b4c55; /* Deep mauve — main text */
  --color-text-light: #9b7a83; /* Lighter text — captions, labels */
  --color-gold: #d4af8c; /* Warm gold — decorative */
  --color-gold-dark: #b8926a; /* Darker gold — hover */
  --color-white: #ffffff;
  --color-overlay: rgba(107, 76, 85, 0.45); /* Hero overlay */

  /* Typography */
  --font-display: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Montserrat", "Helvetica Neue", sans-serif;
  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-pad: 0 40px;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-soft: 0 8px 40px rgba(200, 132, 154, 0.15);
  --shadow-card: 0 4px 24px rgba(107, 76, 85, 0.12);
  --shadow-hover: 0 12px 48px rgba(200, 132, 154, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-mid: 0.4s ease;
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ────────────────────────────────────────────────────────────
   2. RESET & BASE
   ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.7;
  cursor: none; /* Custom cursor */
}

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

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

ul {
  list-style: none;
}

/* ────────────────────────────────────────────────────────────
   3. CUSTOM CURSOR
   ──────────────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s ease,
    width 0.3s ease,
    height 0.3s ease,
    opacity 0.3s ease;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s ease,
    width 0.3s ease,
    height 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.6;
}

.cursor.cursor--hover {
  width: 20px;
  height: 20px;
  background: var(--color-gold);
}

.cursor-follower.cursor--hover {
  width: 52px;
  height: 52px;
  opacity: 0.3;
}

/* ────────────────────────────────────────────────────────────
   4. MAGIC INTRO OVERLAY
   ──────────────────────────────────────────────────────────── */
#magic-intro {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

#magic-intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.magic-logo-wrap {
  animation: magicFloat 0.8s ease forwards;
  opacity: 0;
}

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

.magic-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: sparkleFly 1.5s ease forwards;
  opacity: 0;
}

@keyframes sparkleFly {
  0% {
    opacity: 0;
    transform: scale(0) translate(0, 0);
  }
  40% {
    opacity: 1;
    transform: scale(1) translate(var(--tx), var(--ty));
  }
  100% {
    opacity: 0;
    transform: scale(0) translate(calc(var(--tx) * 2), calc(var(--ty) * 2));
  }
}

.magic-wand {
  font-size: 48px;
  animation: wandWave 0.6s ease 0.3s both;
}

@keyframes wandWave {
  0% {
    transform: rotate(-30deg);
  }
  50% {
    transform: rotate(20deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}

.magic-text {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--color-text-light);
  opacity: 0;
  animation: fadeInUp 0.5s ease 0.8s forwards;
}

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

/* ────────────────────────────────────────────────────────────
   5. TYPOGRAPHY HELPERS
   ──────────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-light);
  max-width: 520px;
  line-height: 1.8;
}

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-secondary));
}

.divider::after {
  background: linear-gradient(to left, transparent, var(--color-secondary));
}

.divider-icon {
  color: var(--color-gold);
  font-size: 14px;
}

/* ────────────────────────────────────────────────────────────
   6. CONTAINER
   ──────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
}

/* ────────────────────────────────────────────────────────────
   7. NAVIGATION
   ──────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background var(--transition-mid),
    padding var(--transition-mid),
    box-shadow var(--transition-mid);
}
#navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

#navbar:not(.scrolled) .lang-btn {
  color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .lang-sep {
  color: rgba(255, 255, 255, 0.5);
}

#navbar:not(.scrolled) .hamburger span {
  background: white;
}
/* Scrolled state */
#navbar.scrolled {
  background: rgba(253, 246, 240, 0.96);
  backdrop-filter: blur(12px);
  padding: 16px 40px;
  box-shadow: 0 2px 20px rgba(200, 132, 154, 0.1);
}

.nav-logo img {
  height: 52px;
  width: auto;
  transition: transform var(--transition-fast);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-mid);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--color-primary);
  background: rgba(200, 132, 154, 0.08);
}

.lang-sep {
  color: var(--color-secondary);
  font-size: 10px;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition-fast);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .nav-link {
  font-size: 22px;
  letter-spacing: 4px;
  font-family: var(--font-display);
  font-style: italic;
}

.mobile-lang {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

/* ────────────────────────────────────────────────────────────
   8. HERO SECTION
   ──────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("cake-2.png");
  background-size: cover;
  background-position: center top;
  transform: scale(1.1);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(253, 246, 240, 0.2) 0%,
    rgba(107, 76, 85, 0.35) 50%,
    rgba(253, 246, 240, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Sky Cake SVG animated logo in hero */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-sky {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 130px);
  font-weight: 300;
  font-style: italic;
  color: var(--color-white);
  letter-spacing: 16px;
  text-shadow: 0 4px 30px rgba(107, 76, 85, 0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextReveal 1s ease 0.5s forwards;
}

.hero-divider-line {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: heroTextReveal 0.8s ease 0.9s forwards;
}

.hero-divider-line span {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-divider-line i {
  color: var(--color-gold);
  font-size: 8px;
}

.hero-cake {
  font-family: var(--font-script);
  font-size: clamp(56px, 8vw, 100px);
  color: var(--color-secondary);
  letter-spacing: 4px;
  text-shadow: 0 4px 30px rgba(107, 76, 85, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextReveal 1s ease 1.1s forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: heroTextReveal 0.8s ease 1.4s forwards;
}

.hero-cta {
  opacity: 0;
  animation: heroTextReveal 0.8s ease 1.7s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1.5px solid var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-mid);
  z-index: 0;
}

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

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

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

.btn-outline {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all var(--transition-mid);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

@keyframes heroTextReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 2s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

.scroll-text {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ────────────────────────────────────────────────────────────
   9. ABOUT SECTION
   ──────────────────────────────────────────────────────────── */
#about {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 640px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: -20px;
  width: 72%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: -30px;
  width: 52%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  border: 6px solid var(--color-bg);
}

.about-badge {
  position: absolute;
  top: 50%;
  right: 14%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-soft);
  z-index: 3;
  border: 4px solid var(--color-bg);
}

.about-badge-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--color-white);
  line-height: 1;
}

.about-badge-text {
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.3;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.9;
}

.about-quote {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.5;
  padding-left: 20px;
  border-left: 2px solid var(--color-secondary);
}

.about-stats {
  display: flex;
  gap: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--color-bg-dark);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
  color: var(--color-primary);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* ────────────────────────────────────────────────────────────
   10. CATEGORIES SECTION (HeJi style)
   ──────────────────────────────────────────────────────────── */
#categories {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.categories-header {
  text-align: center;
  margin-bottom: 70px;
}

.categories-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--color-bg-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

/* Left — category menu */
.cat-menu {
  background: var(--color-bg);
  padding: 0;
  border-right: 1px solid var(--color-bg-dark);
}

.cat-menu-item {
  padding: 22px 32px;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 1px solid var(--color-bg-dark);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.cat-menu-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  transform: scaleY(0);
  transition: transform var(--transition-fast);
}

.cat-menu-item:hover,
.cat-menu-item.active {
  color: var(--color-primary);
  background: rgba(200, 132, 154, 0.04);
}

.cat-menu-item:hover::before,
.cat-menu-item.active::before {
  transform: scaleY(1);
}

.cat-menu-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

/* Right — category items */
.cat-content {
  padding: 40px 48px;
}

.cat-panel {
  display: none;
}

.cat-panel.active {
  display: block;
  animation: catFadeIn 0.4s ease;
}

@keyframes catFadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cat-panel-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 8px;
}

.cat-panel-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cat-items-grid {
  display: grid;
  gap: 0;
}

.cat-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-bg-dark);
  transition: all var(--transition-fast);
  cursor: default;
}

.cat-item:last-child {
  border-bottom: none;
}

.cat-item:hover {
  padding-left: 12px;
}

.cat-item-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.cat-item:hover .cat-item-name {
  color: var(--color-primary);
}

.cat-item-desc {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.cat-item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   11. GALLERY SECTION — Hexagon (Honeycomb)
   ──────────────────────────────────────────────────────────── */
#gallery {
  padding: var(--section-padding);
  background: var(--color-bg);
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Honeycomb hex grid */
.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.hex-row {
  display: flex;
  justify-content: center;
  margin-bottom: -26px; /* Overlap rows for honeycomb */
}

.hex-row:nth-child(even) {
  margin-left: 0;
}

.hex-item {
  width: 250px;
  height: 288px;
  margin: 4px 4px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

/* Hexagon clip-path */
.hex-inner {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  transition: transform var(--transition-mid);
}

.hex-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
  filter: saturate(0.9) brightness(0.95);
}

.hex-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 132, 154, 0.3),
    rgba(107, 76, 85, 0.2)
  );
  opacity: 0;
  transition: opacity var(--transition-mid);
}

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

.hex-item:hover .hex-inner img {
  transform: scale(1.1);
  filter: saturate(1.1) brightness(1.05);
}

.hex-item:hover .hex-inner::after {
  opacity: 1;
}

/* Hex border/outline effect */
.hex-border {
  position: absolute;
  inset: -3px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--color-secondary);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.hex-item:hover .hex-border {
  opacity: 0.6;
}

/* Hover zoom icon */
.hex-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition-mid);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-item:hover .hex-zoom-icon {
  opacity: 1;
}

.hex-zoom-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* ────────────────────────────────────────────────────────────
   12. LIGHTBOX
   ──────────────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(40, 20, 28, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 88vw;
  max-height: 88vh;
  transform: scale(0.9);
  transition: transform var(--transition-mid);
}

#lightbox.active .lightbox-inner {
  transform: scale(1);
}

#lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

#lightbox-prev {
  left: 24px;
}
#lightbox-next {
  right: 24px;
}

/* ────────────────────────────────────────────────────────────
   13. ORDER FORM SECTION
   ──────────────────────────────────────────────────────────── */
#order {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.order-info-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.order-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  flex-shrink: 0;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text);
}

.step-desc {
  font-size: 13px;
  color: var(--color-text-light);
}

/* Form styles */
.order-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.form-input,
.form-select,
.form-textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--color-bg-dark);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  transition: all var(--transition-fast);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(200, 132, 154, 0.1);
}

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

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C8849A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 132, 154, 0.35);
}

.form-submit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ────────────────────────────────────────────────────────────
   14. DELIVERY SECTION
   ──────────────────────────────────────────────────────────── */
#delivery {
  padding: var(--section-padding);
  background: var(--color-bg);
  position: relative;
}
#delivery {
  padding: var(--section-padding);
  background: var(--color-bg);
  position: relative;
}

#delivery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("pahlava-pack.png") center/cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}

#delivery .container {
  position: relative;
  z-index: 1;
}
#delivery .container {
  position: relative;
  z-index: 1;
}

.delivery-header {
  text-align: center;
  margin-bottom: 60px;
}

.delivery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.delivery-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-bg-dark);
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.delivery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-secondary),
    var(--color-primary)
  );
  transform: scaleX(0);
  transition: transform var(--transition-mid);
}

.delivery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

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

.delivery-icon {
  font-size: 42px;
  margin-bottom: 20px;
  display: block;
}

.delivery-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 12px;
}

.delivery-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ────────────────────────────────────────────────────────────
   15. CONTACT SECTION
   ──────────────────────────────────────────────────────────── */
#contact {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-image-wrap {
  position: relative;
}

.contact-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-mid);
  text-decoration: none;
  color: var(--color-text);
}

.contact-link-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
  color: var(--color-primary);
}

.contact-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-link-icon.instagram {
  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: var(--color-white);
}

.contact-link-icon.whatsapp {
  background: #25d366;
  color: var(--color-white);
}

.contact-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-link-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.contact-link-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
}

/* ────────────────────────────────────────────────────────────
   16. FOOTER
   ──────────────────────────────────────────────────────────── */
footer {
  background: var(--color-text);
  padding: 48px 40px;
  text-align: center;
}

.footer-logo {
  height: 56px;
  margin: 0 auto 20px;
}

.footer-text {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--color-primary);
  margin: 16px auto;
  opacity: 0.5;
}

/* ────────────────────────────────────────────────────────────
   17. SCROLL REVEAL ANIMATIONS
   ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay helpers */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* ────────────────────────────────────────────────────────────
   18. RESPONSIVE — TABLET (≤1024px)
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --container-pad: 0 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images {
    height: 420px;
  }

  .categories-layout {
    grid-template-columns: 220px 1fr;
  }

  .order-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-image {
    height: 360px;
  }

  .delivery-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ────────────────────────────────────────────────────────────
   19. RESPONSIVE — MOBILE (≤768px)
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
    --container-pad: 0 20px;
  }

  /* Nav */
  #navbar {
    padding: 20px;
  }

  #navbar.scrolled {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  /* Hero */
  .hero-sky {
    font-size: 64px;
    letter-spacing: 8px;
  }

  .hero-cake {
    font-size: 52px;
  }

  /* About */
  .about-images {
    height: 340px;
  }

  .about-img-main {
    height: 280px;
    width: 80%;
  }

  .about-img-secondary {
    height: 200px;
    width: 55%;
  }

  .about-stats {
    gap: 24px;
  }

  /* Categories */
  .categories-layout {
    grid-template-columns: 1fr;
  }

  .cat-menu {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-bg-dark);
    -webkit-overflow-scrolling: touch;
  }

  .cat-menu-item {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--color-bg-dark);
    padding: 16px 20px;
    font-size: 15px;
    flex-shrink: 0;
  }

  .cat-menu-item::before {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
  }

  .cat-menu-item:hover::before,
  .cat-menu-item.active::before {
    transform: scaleX(1);
  }

  .cat-content {
    padding: 28px 24px;
  }

  /* Gallery hex */
  .hex-item {
    width: 110px;
    height: 127px;
  }

  .hex-row:nth-child(even) {
    margin-left: 58px;
  }

  /* Form */
  .order-form-wrap {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Delivery */
  .delivery-cards {
    grid-template-columns: 1fr;
  }

  /* Footer */
  footer {
    padding: 40px 20px;
  }

  /* Cursor — hide on touch */
  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* ────────────────────────────────────────────────────────────
   20. UTILITIES
   ──────────────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-32 {
  margin-bottom: 32px;
}
