﻿/* ================================================
   TROPIMAS 2026 â€” Shared Design System
   Premium Carnival Multi-Page Experience
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

:root {
  --orange: #FF6B1A;
  --orange-light: #FF8F4F;
  --orange-dark: #E05500;
  --yellow: #FFD700;
  --magenta: #E91E8C;
  --purple: #7B2FF7;
  --purple-deep: #3D1273;
  --cyan: #00D4FF;
  --green: #00E676;
  --red: #FF1744;
  --gold: #D4A853;
  --gold-light: #F0D48A;

  --bg-black: #050505;
  --bg-dark: #0A0A0A;
  --bg-panel: #0F0F0F;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.05);

  --text-white: #FFFFFF;
  --text-light: rgba(255, 255, 255, 0.85);
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 107, 26, 0.3);

  --gradient-fire: linear-gradient(135deg, #FF6B1A 0%, #E91E8C 50%, #7B2FF7 100%);
  --gradient-warm: linear-gradient(135deg, #FF6B1A 0%, #FFD700 100%);
  --gradient-purple: linear-gradient(135deg, #7B2FF7 0%, #E91E8C 100%);
  --gradient-night: linear-gradient(180deg, #0A0A0A 0%, #1a0a2e 50%, #0A0A0A 100%);

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  --section-pad: clamp(80px, 12vw, 140px);
  --container: 1140px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === RESET === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================================
   ACCESSIBILITY - Skip Link
   ================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gradient-fire);
  color: white;
  padding: 8px 16px;
  z-index: 99999;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ================================================
   COOKIE CONSENT BANNER
   ================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-accent);
  padding: 16px 24px;
  z-index: 99998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  flex: 1;
}

.cookie-btn {
  background: var(--gradient-fire);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 26, 0.4);
}

.cookie-btn:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    font-size: 0.85rem;
  }
  
  .cookie-btn {
    width: 100%;
    max-width: 300px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Offset for fixed header */
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-black);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  /* Prevents tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

/* Animated carnival gradient underlay â€” the living background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(123, 47, 247, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(233, 30, 140, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(255, 107, 26, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #080012 0%, #0d0518 25%, #0a0a14 50%, #120a08 75%, #080012 100%);
  /* Animation only on desktop for performance */
  animation: bgShift 25s ease-in-out infinite alternate;
  will-change: filter;
}

@media (max-width: 768px) {
  body::before {
    animation: none;
    /* Disable expensive filter animation on mobile */
  }
}

@keyframes bgShift {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }

  33% {
    filter: hue-rotate(15deg) brightness(1.05);
  }

  66% {
    filter: hue-rotate(-10deg) brightness(0.95);
  }

  100% {
    filter: hue-rotate(5deg) brightness(1.02);
  }
}

/* Custom selection highlight */
::selection {
  background: rgba(255, 107, 26, 0.3);
  color: white;
}

/* Premium scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 26, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 26, 0.4);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* === PAGE LOADER === */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 8px;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.loader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0;
  height: 100%;
  background: var(--gradient-fire);
  border-radius: 3px;
  animation: loaderFill 1.2s ease forwards;
}

@keyframes loaderFill {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* === CURSOR GLOW === */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease, top 0.15s ease;
}

/* Hide cursor glow on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    display: none !important;
  }
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20000;
  /* Higher than FABs/Chatbot */
  padding: 18px 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 5px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-fire);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--text-white);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--orange);
}

.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-fire);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 26, 0.2);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(255, 107, 26, 0.3);
}

/* Hide CTA in nav for the active registration page */
.nav-menu a.nav-cta.active {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  margin: -8px;
  z-index: 20002;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 107, 26, 0.3);
  position: relative;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.nav-hamburger:active {
  background: rgba(255, 107, 26, 0.1);
  border-radius: 8px;
}

/* Ensure hamburger is clickable */
.nav-hamburger * {
  pointer-events: none;
}

.nav-hamburger span {
  width: 26px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   MOBILE NAVIGATION MENU
   ================================================ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 19998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

@media (max-width: 1024px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: var(--bg-black);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 28px 40px;
    gap: 0;
    z-index: 20001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: all;
    will-change: transform;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    display: block;
    position: relative;
    z-index: 20000;
    pointer-events: all;
    cursor: pointer;
    touch-action: manipulation;
  }

  .nav-menu a {
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    display: block;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a.nav-cta {
    margin-top: 20px;
    text-align: center;
    padding: 16px 24px;
    border-bottom: none;
    border-radius: 50px;
    display: block;
    position: relative;
    z-index: 20000;
    pointer-events: all;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 48px;
  }

  /* Hide CTA in nav for the active registration page - mobile fix */
  .nav-menu a.nav-cta.active {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    width: 90%;
    padding: 90px 20px 30px;
  }

  .nav-menu a {
    font-size: 0.95rem;
    padding: 14px 0;
  }

  .nav-brand {
    font-size: 1.3rem;
    letter-spacing: 3px;
  }
}

/* === SHARED SECTION STYLES === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 4px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 550px;
  line-height: 1.8;
}

.gradient-text {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  background: var(--gradient-fire);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 3px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(255, 107, 26, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 26, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: transparent;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 3px;
  border: 2px solid var(--orange);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--orange);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.3);
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* === MARQUEE === */
.marquee {
  padding: 14px 0;
  overflow: hidden;
  background: var(--gradient-fire);
  position: relative;
}

.marquee-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: white;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* === FOOTER === */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-black);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 4px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.footer-brand-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 107, 26, 0.08);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-box p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.modal-btn {
  margin-top: 24px;
  padding: 14px 36px;
  background: var(--gradient-fire);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: white;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

  /* Mobile Nav Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport on mobile browsers */
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 40px;
    gap: 8px;
    border-left: 1px solid var(--border);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 20001;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  }

  .nav-menu.open {
    right: 0;
  }

  /* Bigger tap targets on mobile */
  .nav-menu a {
    font-size: 1rem;
    padding: 14px 8px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 3px;
  }

  .nav-menu a.nav-cta {
    margin-top: 16px;
    padding: 16px 24px;
    text-align: center;
    border-bottom: none;
    display: block;
  }

  /* Backdrop overlay */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-hamburger {
    display: flex;
    z-index: 20002;
    padding: 12px;
    /* Bigger tap target */
    margin: -4px;
    /* Compensate for extra padding */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* All buttons should be full-width on mobile */
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Section padding reduced */
  :root {
    --section-pad: clamp(50px, 8vw, 90px);
  }
}

/* Touch-friendly footer columns */
@media (max-width: 480px) {
  .footer-col a {
    padding: 6px 0;
    margin-bottom: 4px;
    font-size: 1rem;
    /* Minimum readable size on mobile */
  }

  .container {
    padding: 0 20px;
  }
}

/* ================================================
   TOUCH DEVICE PERFORMANCE OVERRIDES
   Disables heavy animations on mobile/tablet
   ================================================ */
@media (hover: none) {

  /* Kill expensive filter animations on touch devices */
  body::before {
    animation: none;
  }

  .carnival-pattern {
    animation: none;
  }

  .carnival-ray {
    display: none;
  }

  .color-wave {
    display: none;
  }

  .carnival-orb:nth-child(n+3) {
    display: none;
  }

  .carnival-orb {
    filter: blur(25px);
  }

  /* background-attachment:fixed kills iOS scroll performance */
  .home-hero-bg,
  * {
    background-attachment: scroll !important;
  }

  .cursor-glow {
    display: none !important;
  }

  /* Disable parallax-style transitions on touch */
  .jouvert-promo:hover .jouvert-promo-img {
    transform: none;
  }

  .costume-visual:hover .costume-photo {
    transform: none;
  }
}

/* ================================================
   GLOBAL CARNIVAL VIBES — Party Atmosphere
   Bold, visible, immersive carnival energy
   ================================================ */

/* === NEON LIGHT RAYS === */
.carnival-rays {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.carnival-ray {
  position: absolute;
  top: -50%;
  width: 3px;
  height: 200%;
  opacity: 0;
  animation: raySwipe linear infinite;
}

.carnival-ray:nth-child(1) {
  left: 10%;
  background: linear-gradient(180deg, transparent, rgba(255, 107, 26, 0.4), transparent);
  animation-duration: 8s;
  animation-delay: 0s;
}

.carnival-ray:nth-child(2) {
  left: 30%;
  background: linear-gradient(180deg, transparent, rgba(233, 30, 140, 0.3), transparent);
  animation-duration: 11s;
  animation-delay: -3s;
  width: 2px;
}

.carnival-ray:nth-child(3) {
  left: 55%;
  background: linear-gradient(180deg, transparent, rgba(123, 47, 247, 0.35), transparent);
  animation-duration: 9s;
  animation-delay: -6s;
}

.carnival-ray:nth-child(4) {
  left: 75%;
  background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  animation-duration: 13s;
  animation-delay: -2s;
  width: 2px;
}

.carnival-ray:nth-child(5) {
  left: 90%;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.25), transparent);
  animation-duration: 10s;
  animation-delay: -7s;
}

@keyframes raySwipe {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(25deg);
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(100px) rotate(25deg);
  }
}

/* === HARLEQUIN DIAMOND OVERLAY (carnival pattern) === */
.carnival-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(45deg, rgba(255, 107, 26, 0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(123, 47, 247, 0.02) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(233, 30, 140, 0.02) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 215, 0, 0.02) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0;
  animation: patternDrift 30s linear infinite;
}

@keyframes patternDrift {
  0% {
    background-position: 0 0, 0 30px, 30px -30px, -30px 0;
  }

  100% {
    background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px;
  }
}

/* === PAINT SPLATTER BURSTS (jouvert) === */
.paint-splashes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.paint-splash {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: splashPulse ease-in-out infinite;
}

@keyframes splashPulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }

  30% {
    opacity: 0.2;
    transform: scale(1.1) rotate(5deg);
  }

  50% {
    opacity: 0.15;
    transform: scale(1) rotate(-3deg);
  }

  70% {
    opacity: 0.1;
  }
}

/* === GLOBAL CONFETTI (bigger & brighter) === */
.global-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  opacity: 0;
  animation: confettiFall linear infinite;
  will-change: transform;
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(0deg) scale(0.6);
  }

  8% {
    opacity: 0.85;
  }

  50% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(1080deg) scale(0.2);
  }
}

/* === FLOATING GRADIENT ORBS (bigger, more vibrant) === */
.carnival-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.carnival-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbDrift ease-in-out infinite;
  will-change: transform;
}

@media (max-width: 768px) {
  .carnival-orb {
    filter: blur(30px);
    /* Lighter blur for mobile performance */
  }

  .carnival-orb:nth-child(n+3) {
    display: none;
    /* Fewer orbs on mobile */
  }
}

.carnival-orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: rgba(255, 107, 26, 0.1);
  top: 5%;
  left: -8%;
  animation-duration: 18s;
}

.carnival-orb:nth-child(2) {
  width: 450px;
  height: 450px;
  background: rgba(233, 30, 140, 0.08);
  top: 55%;
  right: -8%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.carnival-orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: rgba(123, 47, 247, 0.09);
  bottom: 5%;
  left: 25%;
  animation-duration: 16s;
  animation-delay: -10s;
}

.carnival-orb:nth-child(4) {
  width: 350px;
  height: 350px;
  background: rgba(0, 212, 255, 0.07);
  top: 25%;
  right: 15%;
  animation-duration: 20s;
  animation-delay: -8s;
}

.carnival-orb:nth-child(5) {
  width: 300px;
  height: 300px;
  background: rgba(255, 215, 0, 0.06);
  top: 40%;
  left: 50%;
  animation-duration: 24s;
  animation-delay: -12s;
}

@keyframes orbDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(50px, -40px) scale(1.15);
  }

  50% {
    transform: translate(-30px, 50px) scale(0.9);
  }

  75% {
    transform: translate(40px, 25px) scale(1.08);
  }
}

/* === FLOATING CARNIVAL EMOJIS === */
.carnival-emojis {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.carnival-emoji {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0;
  animation: emojiRise linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 107, 26, 0.3));
  will-change: transform;
}

@keyframes emojiRise {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.5) rotate(0deg);
  }

  10% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.3) rotate(360deg);
  }
}

/* === PULSING COLOR WAVE === */
.color-wave {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(0deg,
      rgba(255, 107, 26, 0.06) 0%,
      rgba(233, 30, 140, 0.03) 40%,
      transparent 100%);
  animation: wavePulse 6s ease-in-out infinite;
}

@keyframes wavePulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.3);
  }
}

/* === NEON GLOW BORDER (interactive sections) === */
.product-card:hover,
.value-card:hover,
.detail-card:hover,
.contact-info-card:hover,
.faq-item:hover {
  box-shadow:
    0 0 20px rgba(255, 107, 26, 0.08),
    0 0 60px rgba(233, 30, 140, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.3);
}

/* === SPARKLE CURSOR TRAIL (enhanced) === */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  animation: sparkleFade 1s ease-out forwards;
}

@keyframes sparkleFade {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: scale(0) translate(var(--dx, 10px), var(--dy, -20px));
  }
}


/* ================================================
   CHATBOT WIDGET â€” Customer Support Chat
   ================================================ */

/* === Chat FAB Button === */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-fire);
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(255, 107, 26, 0.35);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fabPulse 3s ease-in-out infinite;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(255, 107, 26, 0.5);
}

.chat-fab.active {
  animation: none;
  transform: rotate(90deg);
}

.chat-fab svg {
  transition: transform 0.3s ease;
}

@keyframes fabPulse {

  0%,
  100% {
    box-shadow: 0 8px 30px rgba(255, 107, 26, 0.35);
  }

  50% {
    box-shadow: 0 8px 40px rgba(255, 107, 26, 0.55), 0 0 0 8px rgba(255, 107, 26, 0.08);
  }
}

/* Notification dot */
.chat-fab-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: var(--green);
  border: 2px solid var(--bg-black);
  border-radius: 50%;
  animation: dotBounce 2s ease-in-out infinite;
}

@keyframes dotBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* === Chat Panel === */
.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  max-height: 520px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 107, 26, 0.1);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.1) 0%, rgba(123, 47, 247, 0.08) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-fire);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-header-info h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.chat-header-info span {
  font-size: 0.7rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-info span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 320px;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Message bubbles */
.chat-msg {
  display: flex;
  gap: 10px;
  animation: msgAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-fire);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-msg.user .chat-msg-avatar {
  background: var(--gradient-purple);
}

.chat-msg-bubble {
  max-width: 260px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-light);
}

.chat-msg.bot .chat-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.2) 0%, rgba(233, 30, 140, 0.15) 100%);
  border: 1px solid rgba(255, 107, 26, 0.2);
  border-bottom-right-radius: 4px;
  color: var(--text-white);
}

@keyframes msgAppear {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Quick replies */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 12px;
  flex-shrink: 0;
}

.chat-quick-btn {
  padding: 7px 14px;
  background: rgba(255, 107, 26, 0.08);
  border: 1px solid rgba(255, 107, 26, 0.2);
  border-radius: 50px;
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.chat-quick-btn:hover {
  background: rgba(255, 107, 26, 0.15);
  border-color: var(--orange);
  transform: translateY(-1px);
}

/* Chat Input */
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:focus {
  border-color: var(--orange);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-fire);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(255, 107, 26, 0.3);
}

.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* === Chat responsive === */
@media (max-width: 480px) {
  .chat-panel {
    right: 12px;
    left: 12px;
    bottom: 88px;
    width: auto;
    max-height: 70vh;
    z-index: 9997;
  }

  .chat-fab {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
    z-index: 9996;
  }

  .social-fab-container {
    bottom: 16px;
    right: 16px;
    z-index: 9995;
  }
}

/* ================================================
   SOCIAL FAB WIDGET
   ================================================ */
.social-fab-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.social-fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  margin-bottom: 5px;
}

.social-fab-container.active .social-fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.social-btn-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-btn-wrap:hover {
  transform: scale(1.05);
}

.social-label {
  background: white;
  color: #333;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.social-btn.email {
  background: #E91E63;
}

.social-btn.facebook {
  background: #3b5998;
}

.social-btn.tiktok {
  background: #000000;
}

.social-btn.instagram {
  background: #262626;
}

/* generic dark for IG */
.social-btn.chat-icon-btn {
  background: #3949ab;
}

.main-fab-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #007AFF;
  /* standard vibrant blue */
  color: white;
  border: none;
  box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-fab-container.active .main-fab-btn {
  background: #0056b3;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .social-fab-container {
    bottom: 20px;
    right: 20px;
  }
}

/* ================================================
   GLOBAL MOBILE OPTIMIZATIONS
   ================================================ */

/* Touch-friendly buttons and interactive elements */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .nav-menu a:hover,
  .nav-cta:hover,
  .chat-quick-btn:hover,
  .product-card:hover,
  .value-card:hover,
  .detail-card:hover,
  .contact-info-card:hover,
  .faq-item:hover,
  .social-btn-wrap:hover {
    transform: none;
    box-shadow: none;
  }

  /* Add active states for touch feedback */
  .nav-menu a:active,
  .nav-cta:active,
  .chat-quick-btn:active,
  .social-btn:active,
  .chat-send-btn:active,
  .main-fab-btn:active {
    transform: scale(0.95);
  }

  /* Ensure minimum touch target size */
  button,
  a,
  input,
  select,
  textarea,
  [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  /* iOS devices */
  select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea {
    font-size: 16px !important; /* Prevents zoom on focus */
  }

  /* Smooth scrolling on iOS */
  .nav-menu,
  .chat-messages {
    -webkit-overflow-scrolling: touch;
  }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6B1A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }
}

/* Ensure dropdowns are tappable */
select {
  cursor: pointer;
  touch-action: manipulation;
}

/* Fix for sticky hover states on mobile */
@media (max-width: 1024px) {
  * {
    -webkit-tap-highlight-color: rgba(255, 107, 26, 0.1);
  }

  /* Larger touch targets on mobile */
  .nav-menu a {
    padding: 16px 0;
  }

  /* Form inputs larger on mobile */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    min-height: 48px;
    padding: 12px 16px;
  }

  /* Ensure buttons are easily tappable */
  button,
  .btn,
  .nav-cta,
  .chat-quick-btn,
  .chat-send-btn,
  .submit-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Disable animations on mobile for performance */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fix for 100vh on mobile browsers */
@supports (height: 100dvh) {
  .page-loader,
  .lightbox-overlay {
    min-height: 100dvh;
  }
}

/* Mobile landscape fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-menu {
    padding-top: 80px;
  }

  .chat-panel {
    max-height: 80vh;
  }
}