@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

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

:root {
  /* Primary Color - Fuchsia (from logo) */
  --accent: #E20287;
  --accent-hover: #C10275;
  
  /* Secondary Color - Blue (for details) */
  --accent-secondary: #3B82F6;
  --accent-secondary-hover: #2563EB;
  
  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #0d0d0d;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --border: #dee2e6;
  --card-bg: #ffffff;
  --card-border: #e9ecef;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: #27272a;
  --card-bg: #141414;
  --card-border: #27272a;
  
  /* Dark shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

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

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

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

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  background-color: var(--accent);
  color: #ffffff;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .section { padding: 3rem 0; }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection */
::selection {
  background-color: var(--accent);
  color: #ffffff;
}

/* Image placeholder styling */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Form elements */
input, textarea {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  border-radius: 4px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

/* Gallery hover effect */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* Navbar transparent styling - default: tall hero state */
.navbar-transparent {
  background-color: rgba(10, 10, 10, 0.6);
  border-bottom: none;
  box-shadow: none;
}

[data-theme="light"] .navbar-transparent {
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

/* Navbar inner & logo default (tall - hero state) */
.navbar-inner {
  height: 7rem;
}

.navbar-logo {
  height: 4.5rem;
}

@media (min-width: 768px) {
  .navbar-inner { height: 8rem; }
  .navbar-logo { height: 5.5rem; }
}

@media (min-width: 1280px) {
  .navbar-inner { height: 8rem; }
  .navbar-logo { height: 5rem; }
}

/* Navbar scrolled - compact state */
.navbar-scrolled {
  background-color: rgba(10, 10, 10, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(226, 2, 135, 0.1) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
}

.navbar-scrolled .navbar-inner {
  height: 5.5rem !important;
}

.navbar-scrolled .navbar-logo {
  height: 3rem !important;
}

@media (min-width: 768px) {
  .navbar-scrolled .navbar-inner { height: 5.75rem !important; }
  .navbar-scrolled .navbar-logo { height: 3.25rem !important; }
}

[data-theme="light"] .navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(226, 2, 135, 0.1) !important;
}

/* Desktop nav pill - light theme */
[data-theme="light"] .navbar-transparent .hidden.lg\:flex > div {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Desktop nav link hover bg - light theme */
[data-theme="light"] .navbar-transparent .nav-link .absolute {
  background: linear-gradient(135deg, rgba(226, 2, 135, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
}

/* Active nav link styles */
.nav-link.active {
  color: var(--accent) !important;
}

.nav-link.active > div:last-child {
  opacity: 1 !important;
  background: linear-gradient(135deg, rgba(226, 2, 135, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
}

/* Theme & CTA buttons - light theme */
[data-theme="light"] #theme-toggle {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] #mobile-menu-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Contattaci button - always white text */
a[data-section="contatti"][style*="background: linear-gradient"],
a[data-section="contatti"][style*="background: linear-gradient"] span {
  color: #ffffff !important;
}

/* Mobile menu button hover effect */
#mobile-menu-btn:hover {
  background: rgba(226, 2, 135, 0.1) !important;
  border-color: rgba(226, 2, 135, 0.2) !important;
}

/* Mobile menu button - hide when menu is open */
#mobile-menu-btn.menu-open {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#mobile-menu-btn:not(.menu-open) {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Mobile menu button icon animations */
#mobile-menu-btn #menu-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

#mobile-menu-btn #close-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  background-color: rgba(0, 0, 0, 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

[data-theme="light"] .mobile-menu-overlay {
  background-color: rgba(255, 255, 255, 1);
}

/* Mobile menu animation */
.mobile-menu {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98) translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  pointer-events: none;
}

.mobile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.mobile-menu:not(.show) {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98) translateY(-10px);
  pointer-events: none;
}

/* Mobile menu close button */
#mobile-menu-close {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-close:hover {
  background: rgba(226, 2, 135, 0.15) !important;
  transform: scale(1.1) rotate(90deg);
}

#mobile-menu-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Mobile nav link active state */
.mobile-nav-link.active {
  background: linear-gradient(135deg, rgba(226, 2, 135, 0.1) 0%, rgba(59, 130, 246, 0.06) 100%) !important;
}

.mobile-nav-link.active span:nth-child(1) {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.mobile-nav-link.active span:nth-child(2) {
  color: var(--accent) !important;
}

/* Mobile nav link hover improvements */
.mobile-nav-link {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:active {
  transform: scale(0.98);
}

/* Mobile menu light theme */
[data-theme="light"] .mobile-menu > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 250, 0.98) 100%) !important;
}

[data-theme="light"] .mobile-theme-toggle,
[data-theme="light"] #mobile-theme-toggle {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Bottom accent line - light theme fading */
[data-theme="light"] .navbar-transparent .absolute.bottom-0 {
  opacity: 0.2 !important;
}

/* Hero Section Modern Styles */
.hero-image {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover {
  transform: scale(1.1);
}

/* Image hover effects */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Backdrop blur support */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

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

/* Modern card hover effects */
.card-modern {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Hero Carousel Styles - No Borders */
.hero-carousel-container {
  position: relative;
  height: 100%;
}

.hero-carousel-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  width: 100%;
}

.hero-carousel-slide {
  flex-shrink: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

/* Gallery Modal Styles */
#gallery-modal {
  animation: fadeIn 0.3s ease;
}

#gallery-modal .gallery-modal-item {
  position: relative;
  overflow: hidden;
}

#gallery-modal .gallery-modal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#gallery-modal .gallery-modal-item:hover::after {
  opacity: 1;
}

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

/* Privacy Policy Banner */
#privacy-banner {
  animation: fadeIn 0.3s ease;
}

#privacy-banner .overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
}

#privacy-banner .overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

#privacy-banner .overflow-y-auto::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

#privacy-banner .overflow-y-auto::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

#privacy-banner .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Privacy Banner Shake Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}
  width: 100%;
  height: 100%;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dot {
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
  height: 12px;
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.2);
}

/* Carousel Navigation Buttons */
#carousel-prev,
#carousel-next {
  z-index: 10;
  border: none;
  cursor: pointer;
}

#carousel-prev:hover,
#carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1);
}

/* Hero Buttons */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(226, 2, 135, 0.5);
}

.btn-hero-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  position: relative;
}

.btn-hero-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
  transition: width 0.3s ease;
}

.btn-hero-secondary:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-hero-secondary:hover::after {
  width: 100%;
}

/* Grid Animation */
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(80px, 80px);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

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

.animate-slide-in-left {
  animation: slideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Shimmer animation for buttons and bars */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.animate-shimmer {
  animation: shimmer 3s ease-in-out infinite;
}

/* Scan line animation */
@keyframes scanLine {
  0% { top: -2px; }
  100% { top: 100%; }
}

.animate-scan-line {
  animation: scanLine 8s linear infinite;
  position: absolute;
}

/* Countdown seconds pulse */
.countdown-sec {
  transition: transform 0.15s ease;
}

/* Countdown mobile improvements */
@media (max-width: 639px) {
  #countdown-hero {
    margin-bottom: 2rem;
  }

  #countdown-hero .grid.grid-cols-4 > div {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
}

@media (max-width: 374px) {
  #countdown-hero .grid.grid-cols-4 > div span:first-of-type {
    font-size: 1.5rem;
  }

  #countdown-hero .grid.grid-cols-4 {
    gap: 0.375rem;
  }
}

/* Nascondi widget traduzione (gtranslate) su mobile e tablet */
@media (max-width: 1279px) {
  .gtranslate_wrapper,
  .gtranslate_wrapper * {
    display: none !important;
  }
}

/* Nascondi bandiere hero su schermi piccoli (<=375px) */
@media (max-width: 375px) {
  #hero-flags {
    display: none !important;
  }
}

/* Hero mobile abstract background animations */
@keyframes heroAccentPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-accent-orb {
  animation: heroAccentPulse 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(16deg) translateY(-12px); }
}

@keyframes heroFloatReverse {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(10px); }
}

.hero-float {
  animation: heroFloat 8s ease-in-out infinite;
}

.hero-float-reverse {
  animation: heroFloatReverse 10s ease-in-out infinite;
}

@keyframes heroScan {
  0% { top: -2%; }
  100% { top: 102%; }
}

.hero-scan {
  animation: heroScan 12s linear infinite;
}

@keyframes heroSpeedLines {
  0% { background-position: 0 0; }
  100% { background-position: 160px 160px; }
}

.hero-speed-lines {
  animation: heroSpeedLines 20s linear infinite;
}

/* Hero futuristic text FX */
.hero-fx-letter {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: 5.5rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  transition: none;
  background: linear-gradient(135deg, #E20287 0%, #ff47a6 40%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-fx-line {
  position: relative;
}

.hero-fx-letter.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 0 8px rgba(226,2,135,0.5)) drop-shadow(0 0 25px rgba(226,2,135,0.2));
  transition: opacity 0.15s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), filter 0.6s ease;
}

.hero-fx-letter.flash {
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.8)) drop-shadow(0 0 40px rgba(226,2,135,0.6));
}

/* Neon glow pulse after reveal */
@keyframes heroNeonPulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(226,2,135,0.4)) drop-shadow(0 0 20px rgba(226,2,135,0.15));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(226,2,135,0.6)) drop-shadow(0 0 35px rgba(226,2,135,0.3)) drop-shadow(0 0 60px rgba(59,130,246,0.15));
  }
}

.hero-fx-letter.neon {
  animation: heroNeonPulse 3s ease-in-out infinite;
}

/* Gradient shift on neon state */
@keyframes heroGradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-fx-letter.gradient-shift {
  background: linear-gradient(135deg, #E20287 0%, #ff47a6 25%, #3B82F6 50%, #ff47a6 75%, #E20287 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroGradientShift 6s ease-in-out infinite, heroNeonPulse 3s ease-in-out infinite;
}

/* Glitch on line */
@keyframes heroGlitch {
  0% { transform: translate(0) skewX(0); }
  15% { transform: translate(-4px, 2px) skewX(-2deg); }
  30% { transform: translate(3px, -2px) skewX(1deg); }
  45% { transform: translate(-2px, 1px) skewX(-1deg); }
  60% { transform: translate(4px, -1px) skewX(2deg); }
  75% { transform: translate(-1px, 2px) skewX(0); }
  100% { transform: translate(0) skewX(0); }
}

.hero-fx-line.glitch {
  animation: heroGlitch 0.2s linear;
}

/* Double glitch with color split */
@keyframes heroGlitchColor {
  0%, 100% { text-shadow: none; }
  25% { text-shadow: -3px 0 #3B82F6, 3px 0 #E20287; }
  50% { text-shadow: 2px 0 #3B82F6, -2px 0 #E20287; }
  75% { text-shadow: -1px 0 #3B82F6, 1px 0 #E20287; }
}

.hero-fx-line.glitch-color .hero-fx-letter {
  -webkit-text-fill-color: white;
  animation: heroGlitchColor 0.15s linear;
}

/* Light sweep */
@keyframes heroSweepLine {
  0% { left: -30%; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

.hero-fx-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), rgba(226,2,135,0.12), rgba(255,255,255,0.15), rgba(59,130,246,0.1), transparent);
  transform: skewX(-15deg);
  opacity: 0;
  pointer-events: none;
}

.hero-fx-sweep.active::after {
  animation: heroSweepLine 1.5s ease-in-out forwards;
}

/* Blinking cursor */
@keyframes heroFxCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-fx-cursor {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 5rem;
  background: linear-gradient(to bottom, #E20287, #3B82F6);
  box-shadow: 0 0 8px rgba(226,2,135,0.6), 0 0 20px rgba(226,2,135,0.3);
  animation: heroFxCursor 0.6s step-end infinite;
}

/* Letter entrance wiggle */
@keyframes heroLetterWiggle {
  0% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-2px) rotate(1deg); }
  75% { transform: translateY(1px) rotate(-0.5deg); }
  100% { transform: translateY(0) rotate(0); }
}

.hero-fx-letter.wiggle {
  animation: heroLetterWiggle 0.3s ease;
}

/* Hero flags animations */
.hero-flag-wrap {
  opacity: 0;
  transform: scale(0.5) rotateY(90deg);
  perspective: 200px;
}

@keyframes heroFlagFlipIn {
  0% {
    opacity: 0;
    transform: scale(0.5) rotateY(90deg);
  }
  40% {
    opacity: 1;
    transform: scale(1.1) rotateY(-10deg);
  }
  70% {
    transform: scale(0.98) rotateY(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0);
  }
}

@keyframes heroFlagFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)) drop-shadow(0 0 8px rgba(226,2,135,0.15));
  }
  50% {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3)) drop-shadow(0 0 15px rgba(226,2,135,0.3)) drop-shadow(0 0 30px rgba(59,130,246,0.15));
  }
}

@keyframes heroFlagDividerGrow {
  0% { opacity: 0; transform: scaleX(0); }
  60% { opacity: 1; transform: scaleX(1.2); }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes heroFlagDividerPulse {
  0%, 100% { opacity: 0.7; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 8px rgba(226,2,135,0.4), 0 0 16px rgba(59,130,246,0.2); }
}

@keyframes heroFlagHide {
  0% { opacity: 1; transform: scale(1) rotateY(0); }
  100% { opacity: 0; transform: scale(0.6) rotateY(-90deg); }
}

@keyframes heroFlagDividerHide {
  0% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}

#hero-flags.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
}

#hero-flags.visible .hero-flag-wrap:first-child {
  animation: heroFlagFlipIn 0.7s cubic-bezier(0.22,1,0.36,1) forwards, heroFlagFloat 4s ease-in-out 1s infinite;
}

#hero-flags.visible .hero-flag-wrap:last-child {
  animation: heroFlagFlipIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s forwards, heroFlagFloat 4s ease-in-out 1.5s infinite;
}

#hero-flags.visible .hero-flag-divider {
  animation: heroFlagDividerGrow 0.5s cubic-bezier(0.22,1,0.36,1) 0.15s forwards, heroFlagDividerPulse 3s ease-in-out 1s infinite;
}

#hero-flags.hiding .hero-flag-wrap:first-child {
  animation: heroFlagHide 0.4s ease forwards;
}

#hero-flags.hiding .hero-flag-wrap:last-child {
  animation: heroFlagHide 0.4s ease 0.1s forwards;
}

#hero-flags.hiding .hero-flag-divider {
  animation: heroFlagDividerHide 0.3s ease forwards;
}

/* Hide reCAPTCHA v3 badge (privacy text shown in form instead) */
.grecaptcha-badge {
  visibility: hidden !important;
}
