/* ==========================================================================
   Base, Typography & Layout
   ========================================================================== */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

body {
  font-family: 'rubik', system-ui, sans-serif;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  background: linear-gradient(90deg, #e5e5e9 0%, #bdbdc3 50%, #888888 100%);
}

/* Override hidden for overlays: use visibility instead of display to prevent layout conflicts with flex */
.overlay-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay-visible { opacity: 1; visibility: visible; pointer-events: auto; }

/* Replace inline header background */
/* ... existing code ... */
.body-no-scroll {
  overflow: hidden;
}

/* ... existing code ... */

/* Wall modal background */
.wall-bg { background: url('../assets/wall.webp') center/cover no-repeat; }

/* Aspect ratio helpers (avoid inline style) */
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-3-4 { aspect-ratio: 3 / 4; }
.ar-1-1 { aspect-ratio: 1 / 1; }

/* Prose styles moved from inline style in privacy page */
.prose h2 { font-size: 1.5rem; margin-bottom: 1rem; margin-top: 2rem; }
.prose p, .prose ul { line-height: 1.7; }
.prose a { color: #8B5CF6; text-decoration: underline; }
.prose a:hover { color: #6D28D9; }

main {
  flex: 1; /* For sticky footer */
}

h1, h2, h3, .font-display {
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; letter-spacing: 0.04em; }
h2 { font-size: 2rem; letter-spacing: 0.03em; }
h3 { font-size: 1.5rem; letter-spacing: 0.02em; }
a, button { font-weight: 500; letter-spacing: 0.02em; }

/* ==========================================================================
   Header
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 10px 0;
  color: #fff;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1.5px solid rgba(180, 180, 200, 0.18);
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  transition: background 0.3s, box-shadow 0.3s, border-bottom 0.3s;
  z-index: 1000;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, #a259c6, #726a6a);
}

header .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4rem;
  padding-right: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-link {
  position: relative;
  padding-bottom: 0.5em;
  font-weight: 300;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  letter-spacing: 0.03em;
  transition: color 0.22s cubic-bezier(.4,0,.2,1);
  z-index: 1;
  outline: none;
  display: inline-block;
  font-size: 1.1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  width: 100%;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0.7) scaleY(0.8) rotate(-2deg);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: -1;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 8px rgba(123,107,167,0.10));
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1.45) scaleY(1.18) rotate(0deg);
  animation: brush-flick-real 0.32s cubic-bezier(.4,0,.2,1);
}

.nav-home::after { background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 22' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5 18 Q30 2 60 10 Q90 22 95 12 Q80 20 5 18 Z' fill='%237B2FF2' fill-opacity='0.85'/><path d='M10 17 Q35 7 65 13 Q90 19 92 14' stroke='%237B2FF2' stroke-width='2' stroke-linecap='round' opacity='0.5'/></svg>"); }
.nav-gallery::after { background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 22' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7 16 Q50 3 80 12 Q97 20 93 14 Q80 19 7 16 Z' fill='%23EC4899' fill-opacity='0.75'/><path d='M12 15 Q55 8 85 16 Q97 18 90 15' stroke='%23EC4899' stroke-width='2' stroke-linecap='round' opacity='0.4'/></svg>"); }
.nav-about::after { background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 22' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6 17 Q60 2 97 16 Q80 21 6 17 Z' fill='%23FACC15' fill-opacity='0.75'/><path d='M15 16 Q65 7 95 17 Q80 19 15 16' stroke='%23FACC15' stroke-width='2' stroke-linecap='round' opacity='0.4'/></svg>"); }
.nav-contact::after { background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 22' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M8 19 Q70 2 97 18 Q80 22 8 19 Z' fill='%233B82F6' fill-opacity='0.75'/><path d='M18 18 Q75 8 95 19 Q80 21 18 18' stroke='%233B82F6' stroke-width='2' stroke-linecap='round' opacity='0.4'/></svg>"); }

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
#mobile-menu {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  min-width: 220px;
  max-width: 90vw;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 12px 48px 0 rgba(80,80,120,0.38), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  border: 1.5px solid rgba(180, 180, 200, 0.18);
  padding: 1.5rem 1.25rem 2rem 1.25rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  /* Transition only transform & opacity so animation is smooth */
  transition: opacity 0.36s cubic-bezier(.2,0,.2,1), transform 0.36s cubic-bezier(.2,0,.2,1);
  /* Start hidden by default; JS will toggle .open */
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  will-change: opacity, transform;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  overflow: hidden;
  border-radius: 1.25rem;
}

/* Keep the element rendered even when Tailwind's .hidden utility is present
   so CSS transitions can run; we override display for this specific ID. */
#mobile-menu.hidden {
  display: flex; /* override utility hidden which sets display:none */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px) scale(0.96);
}

/* Explicit visible state used by JS */
#mobile-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(123, 107, 167, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 30%, rgba(122, 127, 140, 0.4) 0%, transparent 70%);
  background-size: 300% 300%;
  animation: aurora-flow 20s ease-in-out infinite reverse;
}

#mobile-menu a {
  position: relative;
  color: #574d6c;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: transparent;
  transition: color 0.2s, background-color 0.2s, transform 0.2s;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

#mobile-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  width: 100%;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0.7) scaleY(0.8) rotate(-2deg);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: -1;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 8px rgba(123,107,167,0.10));
}

#mobile-menu a:hover::after,
#mobile-menu a:focus::after {
  opacity: 1;
  /* Improved, more natural brush stroke motion */
  animation: brush-swipe-in 0.36s cubic-bezier(.2,.7,.2,1) both;
}

#mobile-menu a:nth-child(1)::after { background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 18' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M3 15 Q30 3 97 10 Q80 17 3 15 Z' fill='%237B2FF2' fill-opacity='0.65'/></svg>"); }
#mobile-menu a:nth-child(2)::after { background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 18' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M3 13 Q50 2 97 8 Q80 16 3 13 Z' fill='%23EC4899' fill-opacity='0.55'/></svg>"); }
#mobile-menu a:nth-child(3)::after { background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 18' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M3 14 Q60 1 97 12 Q80 17 3 14 Z' fill='%23FACC15' fill-opacity='0.55'/></svg>"); }
#mobile-menu a:nth-child(4)::after { background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 18' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M3 16 Q70 2 97 14 Q80 17 3 16 Z' fill='%233B82F6' fill-opacity='0.55'/></svg>"); }

/* Mobile menu brush stroke keyframes (targeted only to #mobile-menu) */
@keyframes brush-swipe-in {
  0% {
    opacity: 0;
    transform: translateX(-16px) scaleX(0.7) scaleY(0.8) rotate(-4deg) skewX(-3deg);
    filter: blur(1px);
  }
  60% {
    opacity: 1;
    transform: translateX(0) scaleX(1.65) scaleY(1.28) rotate(32deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scaleX(1.58) scaleY(1.25) rotate(40deg);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  #mobile-menu a::after { transition: none !important; animation: none !important; opacity: 1; transform: none; }
}

/* ==========================================================================
   Hero Slideshow
   ========================================================================== */
#hero-slideshow {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

#hero-slideshow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Background image set via classes .hero-bg-1, .hero-bg-2 to avoid inline styles */
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 2.2s ease-in-out, transform 2.2s cubic-bezier(.22,.8,.22,1), filter 0.6s ease;
  transform: scale(1);
  pointer-events: none;
}

/* Hero background classes (CSP-friendly) */
#hero-slideshow.hero-bg-1::before { background-image: url('../assets/10.webp'); }
#hero-slideshow.hero-bg-2::before { background-image: url('../assets/20.webp'); }

/* Simple fade utility for hero */
#hero-slideshow.fade-out::before { opacity: 0; transform: scale(1.02); }

/* Optional grey effect for hero background */
#hero-slideshow.hero-grey::before { filter: grayscale(2.0); }

#hero-slideshow h1, #hero-slideshow p {
  color: #fff !important;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.3) !important;
}

#hero-slideshow p {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), 0 0 4px rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button-premium {
  display: inline-block;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #9669bb, #807e8f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  text-align: center;
  text-decoration: none;
  /* Icon-friendly */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.button-premium:hover,
.button-premium:focus {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background: linear-gradient(90deg, #7516ce, #7B6BA7);
}

.button-premium:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(123,107,167,0.35), 0 6px 18px rgba(0,0,0,0.35);
}

.button-premium .btn-icon { width: 1.1rem; height: 1.1rem; transition: transform 0.18s ease; opacity: 0.95; }
.button-premium:hover .btn-icon, .button-premium:focus .btn-icon { transform: translateX(2px); }

/* Secondary outline button for subtle actions */
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  background: rgba(255,255,255,0.6);
  color: #4b3f67;
  border: 1.5px solid rgba(180, 180, 200, 0.4);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.button-outline:hover,
.button-outline:focus {
  transform: translateY(-1px);
  background: rgba(245,245,250,0.9);
  border-color: rgba(150, 150, 200, 0.6);
  box-shadow: 0 6px 18px rgba(123,107,167,0.16), 0 1.5px 8px rgba(0,0,0,0.06);
}

/* Small decorative icon circle */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(162,89,198,0.85), rgba(123,47,242,0.85) 40%, rgba(236,72,153,0.75));
  box-shadow: 0 8px 22px rgba(123,47,242,0.25), inset 0 1px 1px rgba(255,255,255,0.2);
}

/* ========================================================================== 
  Forms (Contact UX)
  ========================================================================== */
.contact-card { border-radius: 2rem; overflow: hidden; }
.input-wrap { position: relative; }
.input-wrap .input-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #7c6bb0; width: 1.15rem; height: 1.15rem; pointer-events: none; }
.with-icon input, .with-icon textarea { padding-left: 2.5rem !important; }

.field-label { display: block; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.field-hint  { display: block; font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; }
.field-error { display: none; font-size: 0.75rem; color: #dc2626; margin-top: 0.25rem; }
.field-error.visible { display: block; }

[aria-invalid="true"] { border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239,68,68,0.20); }

.char-counter { display: flex; justify-content: flex-end; font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; }

.button-premium[aria-busy="true"] { position: relative; opacity: 0.85; pointer-events: none; }
.button-premium[aria-busy="true"]::after { content: ''; position: absolute; right: 1rem; top: 50%; width: 16px; height: 16px; border-radius: 9999px; border: 2px solid rgba(255,255,255,0.6); border-top-color: #fff; transform: translateY(-50%); animation: spin 0.8s linear infinite; }

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.filter-btn {
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  padding: 0.75rem 1.5rem;
/* Utility class to replace inline backdrop blur usage */
.backdrop-blur-8 { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Class to style wall preview image shadow/size (removes inline style) */
.wall-img { max-width: 350px; max-height: 60vh; box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(245, 245, 250, 0.7);
  color: #444;
  box-shadow: 0 2px 8px rgba(123,107,167,0.08), 0 1px 0 rgba(0,0,0,0.04);
  border: 1.5px solid rgba(180, 180, 200, 0.18);
  outline: none;
  cursor: pointer;
  margin: 0 0.25rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px) saturate(1.1);
}

.filter-btn:hover,
.filter-btn:focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(123,107,167,0.13), 0 1.5px 8px rgba(0,0,0,0.08);
  background: rgba(235, 235, 245, 0.95);
  color: #222;
}

.filter-btn.active {
  background: #e6e6f7;
  color: #3b2f4a;
  box-shadow: 0 8px 24px rgba(123,107,167,0.18);
  border-color: #b8a7d6;
}

.filter-btn.filter-btn-blue.active,
.filter-btn.filter-btn-blue:hover { background: #e3f0fa; color: #1e3a8a; border-color: #a3c7e7; }
.filter-btn.filter-btn-purple.active,
.filter-btn.filter-btn-purple:hover { background: #f3e8fd; color: #6b21a8; border-color: #d1b3ea; }
.filter-btn.filter-btn-magenta.active,
.filter-btn.filter-btn-magenta:hover { background: #fbeaf3; color: #be185d; border-color: #e9b6d0; }
.filter-btn.filter-btn-other.active,
.filter-btn.filter-btn-other:hover { background: #f7f7e6; color: #7a7a4d; border-color: #d6d6b8; }

/* ==========================================================================
   Gallery & Masonry
   ========================================================================== */

/* Masonry grid: sizes adapt to each image's rendered height */
.masonry-gallery {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  /* Row height unit used by JS to compute spans; keep small for smoother fit */
  grid-auto-rows: 8px;
  /* Column layout responsive */
  grid-template-columns: repeat(4, 1fr);
  /* Gap must match the JS measurement; exposed as CSS var */
  --masonry-gap: 12px;
  gap: var(--masonry-gap);
  align-items: start;
}

.masonry-gallery > .gallery-card {
  /* Grid gap handles spacing; no manual margin. */
  display: block;
  width: 100%;
}

.gallery-card {
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px) scale(1.02);
  z-index: 2;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(236,72,153,0.10) 0%, rgba(96,165,250,0.10) 100%);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
  border-radius: 1rem;
}

.gallery-card:hover::after,
.gallery-card:focus-visible::after {
  opacity: 1;
}

.gallery-card img {
  border-radius: 0.75rem;
  object-position: center;
  object-fit: cover;
  filter: grayscale(1) brightness(0.98) contrast(1.05);
  transition: filter 0.3s, transform 0.3s, box-shadow 0.3s;
  width: 100%;
  display: block;
  height: auto; /* natural height so JS can measure for masonry spans */
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  filter: grayscale(0) brightness(1.05) saturate(1.1);
  transform: scale(1.05);
  box-shadow: 0 8px 32px 0 rgba(123, 107, 167, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  z-index: 2;
}

/* ==========================================================================
   Gallery Overlay (Lightbox)
   ========================================================================== */
#gallery-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 18px;
  z-index: 2000 !important;
  background: rgba(18, 16, 32, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  width: 100%;
  overflow: hidden;
}

#gallery-overlay > .relative {
  margin: 0;
  background: rgba(255,255,255,0.04);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.12);
  padding: 12px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 40px);
  width: auto;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  animation: fade-in-up 0.28s cubic-bezier(.4,0,.2,1);
  box-sizing: border-box;
}

#gallery-overlay img {
  border-radius: 0.75rem;
  box-shadow: 0 6px 36px 0 rgba(0,0,0,0.28);
  background: transparent;
  transition: box-shadow 0.3s, filter 0.3s, transform 0.25s;
  filter: brightness(1.02) saturate(1.06);
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  position: relative;
  width: 100%;
  background: transparent;
  border-top: 1.5px solid rgba(180, 180, 200, 0.18);
  box-shadow: none;
  z-index: 1000;
  padding: 1rem 0;
  text-align: center;
}

footer .social-premium {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

footer .social-premium a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

footer .social-premium a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-25deg);
  transition: left 0.4s ease;
}

footer .social-premium a:hover::before {
  left: 150%;
}

footer .social-premium a:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(123, 107, 167, 0.3), inset 0 1px 1px rgba(255,255,255,0.1);
}

footer .social-premium svg {
  width: 28px;
  height: 28px;
  color: #e0d8ff;
  transition: color 0.2s, filter 0.2s;
}

footer .social-premium a:hover svg {
  color: #fff;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.7));
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: 9999;
  background-color: white;
  color: #1f2937;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
}

/* ==========================================================================
   Animations & Microinteractions
   ========================================================================== */
.premium-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a259c6 0%, #e66465 100%);
  box-shadow: 0 0 0 0 rgba(162,89,198,0.7);
  position: relative;
  margin-right: 0.75rem;
  animation: dot-pulse 0.75s infinite cubic-bezier(.4,0,.2,1), dot-color 6s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 8px 2px rgba(162,89,198,0.18);
  z-index: 2;
}

.premium-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  z-index: 1;
  pointer-events: none;
}

button svg, a svg {
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), color 0.18s;
}

button:hover svg, button:focus svg,
a:hover svg, a:focus svg {
  transform: translateY(-2px) scale(1.13);
  color: #a248e6;
}

button:hover, button:focus,
a.button-cta:hover, a.button-cta:focus {
  box-shadow: 0 8px 32px 0 rgba(155, 156, 88, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  transform: translateY(-2px) scale(1.04);
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(162,89,198,0.7); transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(162,89,198,0); transform: scale(1.12); }
  100% { box-shadow: 0 0 0 0 rgba(162,89,198,0); transform: scale(1); }
}

@keyframes dot-color {
  0%, 80%, 100% { background: #a259c6; }
  10% { background: #e66465; }
  20% { background: #facc15; }
  30% { background: #3b82f6; }
  40% { background: #6b21a8; }
  50% { background: #10b981; }
  60% { background: #ec4899; }
  70% { background: #f97316; }
  90% { background: #fff; }
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155, 50, 236, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(236, 72, 153, 0); }
}
.animate-cta-pulse { animation: cta-pulse 1.5s infinite; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 1s cubic-bezier(.4,0,.2,1) both; }

@keyframes brush-flick-real {
  0% { opacity: 0; transform: scaleX(0.4) scaleY(0.7) rotate(-8deg); filter: blur(2px) brightness(0.9); }
  60% { opacity: 1; transform: scaleX(1.1) scaleY(1.05) rotate(2deg); filter: blur(0.5px) brightness(1.05); }
  100% { opacity: 1; transform: scaleX(1.08) scaleY(1.05) rotate(0deg); filter: blur(0px) brightness(1.1); }
}

@keyframes aurora-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes brush-flick {
  0% { opacity: 0; transform: scaleX(0.7) scaleY(0.8) rotate(-2deg); }
  100% { opacity: 1; transform: scaleX(1.58) scaleY(1.25) rotate(40deg); }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
/* Headline pop effect for hero title */
.headline-pop {
  position: relative;
  display: inline-block;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #f4f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* gradient text */
  text-shadow: 0 3px 18px rgba(0,0,0,0.45), 0 0 22px rgba(162, 89, 198, 0.38);
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.35));
}

.headline-pop::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -10px;
  height: 16px;
  background: linear-gradient(90deg, rgba(123,47,242,0.35), rgba(236,72,153,0.30), rgba(59,130,246,0.30));
  border-radius: 12px;
  filter: blur(2px);
  z-index: -1;
}

/* Subtle alternative: softer shadow for headlines */
.headline-soft-shadow {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

/* headline-shine effect removed */
@media (max-width: 1024px) {
  .masonry-gallery {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 700px;
  }
}

@media (max-width: 900px) {
  header .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #hero-slideshow { max-height: 70vh; }
  #hero-slideshow h1 { font-size: 2rem; }
  #hero-slideshow p { font-size: 1rem; }

  #gallery-overlay > .relative {
    max-width: calc(100vw - 24px);
    padding: 10px;
  }
  #gallery-overlay img {
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 140px);
  }
  #mobile-menu {
    top: 5rem;
    right: 0.5rem;
    padding: 1rem;
    border-radius: 1rem;
  }
  #mobile-menu a {
    font-size: 1rem;
    padding: 1rem 1rem;
  }
}

@media (max-width: 640px) {
  .masonry-gallery {
  grid-template-columns: 1fr !important;
  max-width: 95vw;
  }
}

@media (max-width: 600px) {
  #gallery-overlay {
    padding: 8px;
    border-radius: 0.4rem;
  }
  #gallery-overlay > .relative {
    padding: 8px;
    border-radius: 0.5rem;
  }
  #gallery-overlay img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
  }
}