/* ═══════════════════════════════════════════════════════════════
   PREMIUM DESIGN SYSTEM — Complete Visual Overhaul
   Loads AFTER existing CSS to override & enhance everything
   ═══════════════════════════════════════════════════════════════ */

/* ─── GLOBAL UPGRADES ─── */
:root {
    --premium-gold: #f5ed30;
    --premium-gold-dark: #d6cd0b;
    --premium-navy: #0c112d;
    --premium-navy-mid: #101840;
    --premium-glow: rgba(245, 237, 48, 0.35);
    --premium-shadow: 0 25px 60px -12px rgba(12, 17, 45, 0.25);
    --premium-shadow-lg: 0 35px 80px -15px rgba(12, 17, 45, 0.35);
    --premium-glass: rgba(255, 255, 255, 0.03);
    --premium-border: rgba(255, 255, 255, 0.06);
    --premium-transition: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    line-height: 1.7;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    line-height: 1.15;
}

::selection {
    background: rgba(245, 237, 48, 0.3);
    color: #0c112d;
}

/* ─── NAVBAR PREMIUM ─── */
#navbar {
    transition: all 0.5s var(--premium-transition) !important;
}

#navbar.scrolled,
#navbar:not([style*="transparent"]) {
    background: rgba(12, 17, 45, 0.85) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(245, 237, 48, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* ─── BUTTONS PREMIUM UPGRADE ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--premium-transition) !important;
    box-shadow: 0 4px 20px rgba(245, 237, 48, 0.25), 0 0 0 0 rgba(245, 237, 48, 0) !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(245, 237, 48, 0.4), 0 0 0 2px rgba(245, 237, 48, 0.15) !important;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99) !important;
    box-shadow: 0 4px 16px rgba(245, 237, 48, 0.3) !important;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--premium-transition) !important;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 237, 48, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(245, 237, 48, 0.5) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(245, 237, 48, 0.12) !important;
}

.btn-secondary:hover::after {
    opacity: 1;
}

.btn-accent {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--premium-transition) !important;
}

.btn-accent:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.4) !important;
}

.btn-nav-cta {
    animation: cta-pulse 3s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(245, 237, 48, 0.2); }
    50% { box-shadow: 0 2px 24px rgba(245, 237, 48, 0.45); }
}

/* ─── HERO SECTION PREMIUM ─── */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, white 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.home-hero__badge {
    animation: badge-glow 2s ease-in-out infinite alternate;
}

@keyframes badge-glow {
    0% { box-shadow: 0 0 0 0 rgba(245, 237, 48, 0); }
    100% { box-shadow: 0 0 20px 2px rgba(245, 237, 48, 0.15); }
}

.home-hero__title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.home-hero__actions .btn-primary {
    animation: hero-btn-in 0.8s var(--premium-transition) backwards;
    animation-delay: 0.3s;
}

.home-hero__actions .btn-secondary {
    animation: hero-btn-in 0.8s var(--premium-transition) backwards;
    animation-delay: 0.5s;
}

@keyframes hero-btn-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero slide transition upgrade */
#hero [x-transition\\:enter] {
    transition-duration: 1200ms !important;
}

/* ─── SERVICE CARDS PREMIUM ─── */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    transition: all 0.5s var(--premium-transition) !important;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.75rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, rgba(245, 237, 48, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 40px 80px -20px rgba(12, 17, 45, 0.15), 0 0 0 1px rgba(245, 237, 48, 0.15) !important;
    border-color: transparent !important;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-card-media__img {
    transform: scale(1.08) !important;
}

.service-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    height: 180px;
    width: 100%;
    background: #f1f5f9;
}

.service-card-media__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s var(--premium-transition);
}

.service-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 17, 45, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-card-media::after {
    opacity: 1;
}

/* ─── PROJECT CARDS PREMIUM ─── */
.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.5s var(--premium-transition) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 40px 80px -20px rgba(12, 17, 45, 0.18) !important;
    border-color: rgba(245, 237, 48, 0.25) !important;
}

.project-card img {
    transition: transform 0.6s var(--premium-transition);
}

.project-card:hover img {
    transform: scale(1.06);
}

/* ─── GLASS CARD UPGRADE ─── */
.glass-card {
    background: rgba(16, 24, 64, 0.35);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--premium-transition) !important;
}

.glass-card:hover {
    background: rgba(16, 24, 64, 0.5) !important;
    border-color: rgba(245, 237, 48, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(245, 237, 48, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-6px);
}

/* ─── PREMIUM LIGHT CARD (For Light Sections) ─── */
.premium-light-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.premium-light-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 181, 90, 0.3);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(91, 181, 90, 0.05);
}

/* ─── WHITE OUTLINE BUTTON (For Dark Sections) ─── */
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline-white:hover {
    background: #ffffff !important;
    color: #060B18 !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
}

/* ─── QUOTE FORM PREMIUM ─── */
.home-quote-cta {
    position: relative;
}

.home-quote-cta::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 237, 48, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.quote-wizard {
    position: relative;
}

.quote-wizard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--premium-gold), var(--premium-gold-dark), var(--premium-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quote-wizard:focus-within::before {
    opacity: 1;
}

.quote-page__panel {
    transition: all 0.5s var(--premium-transition) !important;
    box-shadow: 0 25px 60px -15px rgba(12, 17, 45, 0.12) !important;
}

.quote-page__panel:hover {
    box-shadow: 0 35px 80px -20px rgba(12, 17, 45, 0.18) !important;
}

/* ─── FORM INPUTS PREMIUM ─── */
.form-input,
.solar-wizard__input {
    transition: all 0.35s var(--premium-transition) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.form-input:focus,
.solar-wizard__input:focus {
    box-shadow: 0 0 0 4px rgba(245, 237, 48, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px);
}

.form-input:hover,
.solar-wizard__input:hover {
    border-color: #cbd5e1;
}

/* ─── SOLAR WIZARD PREMIUM ─── */
.solar-wizard-shell--premium {
    box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(245, 237, 48, 0.08) !important;
    border: 1px solid rgba(245, 237, 48, 0.1) !important;
}

.solar-wizard__body {
    animation: wizard-fade-in 0.5s var(--premium-transition);
}

@keyframes wizard-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.solar-wizard__step-pill {
    background: linear-gradient(135deg, rgba(245, 237, 48, 0.15), rgba(245, 237, 48, 0.05)) !important;
    color: #92400e !important;
    border: 1px solid rgba(245, 237, 48, 0.2) !important;
}

.solar-wizard-card__inner {
    transition: all 0.35s var(--premium-transition) !important;
    border: 2px solid transparent;
}

.solar-wizard-option--selected .solar-wizard-card__inner {
    border-color: var(--premium-gold) !important;
    box-shadow: 0 8px 30px rgba(245, 237, 48, 0.2), 0 0 0 3px rgba(245, 237, 48, 0.1) !important;
    transform: scale(1.05) !important;
}

.solar-wizard-card:hover .solar-wizard-card__inner {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2) !important;
}

.solar-wizard__nav-btn--purple:not(:disabled) {
    background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-dark)) !important;
    color: #0c112d !important;
    box-shadow: 0 4px 16px rgba(245, 237, 48, 0.3);
    transition: all 0.35s var(--premium-transition) !important;
}

.solar-wizard__nav-btn--purple:not(:disabled):hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 28px rgba(245, 237, 48, 0.45) !important;
}

.solar-wizard__progress-fill {
    background: linear-gradient(90deg, var(--premium-gold), var(--premium-gold-dark)) !important;
    box-shadow: 0 0 12px rgba(245, 237, 48, 0.4);
    height: 4px !important;
    border-radius: 3px !important;
}

.solar-wizard__progress-track {
    height: 4px !important;
    background: linear-gradient(90deg, rgba(245, 237, 48, 0.1), rgba(245, 237, 48, 0.05)) !important;
    border-radius: 3px !important;
}

.solar-wizard__result-box--highlight {
    background: linear-gradient(135deg, rgba(245, 237, 48, 0.08), rgba(245, 237, 48, 0.02)) !important;
    border-color: rgba(245, 237, 48, 0.3) !important;
    box-shadow: 0 8px 24px rgba(245, 237, 48, 0.08);
}

.solar-wizard__result-box--highlight strong {
    color: #92400e !important;
}

.solar-wizard__result-pill {
    background: linear-gradient(135deg, rgba(245, 237, 48, 0.12), rgba(245, 237, 48, 0.04)) !important;
    color: #92400e !important;
    border: 1px solid rgba(245, 237, 48, 0.25);
    font-weight: 700;
}

/* ─── PAGE HERO DARK PREMIUM ─── */
.page-hero-dark {
    position: relative;
    overflow: hidden;
}

.page-hero-dark::after {
    display: none !important;
}

/* ─── SOLAR CALCULATOR STAGE PREMIUM ─── */
.solar-calc-stage--premium .solar-calc-stage__bg::after {
    background: linear-gradient(135deg, rgba(12, 17, 45, 0.5) 0%, rgba(16, 24, 64, 0.3) 100%) !important;
}

.solar-calc-stage--premium .solar-calc-stage__title {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ─── FAQ PREMIUM ─── */
.border-slate-200 {
    transition: all 0.35s var(--premium-transition) !important;
}

.border-slate-200:hover {
    border-color: rgba(245, 237, 48, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ─── CTA BAR PREMIUM ─── */
.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

/* ─── SECTION DIVIDERS ─── */
.wavy-section {
    position: relative;
}

.wavy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--premium-gold), transparent);
    border-radius: 2px;
}

/* ─── FOOTER PREMIUM ─── */
footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 237, 48, 0.2), transparent);
}

footer a {
    transition: all 0.3s var(--premium-transition);
}

footer a:hover {
    transform: translateX(4px);
}

/* ─── SCROLL TOP PREMIUM ─── */
.scroll-top-premium {
    transition: all 0.4s var(--premium-transition) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.scroll-top-premium:hover {
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 8px 32px rgba(245, 237, 48, 0.3) !important;
    background: var(--premium-gold) !important;
    color: var(--premium-navy) !important;
}

/* ─── WHATSAPP FAB PREMIUM ─── */
.whatsapp-fab {
    transition: all 0.4s var(--premium-transition) !important;
}

.whatsapp-fab:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5) !important;
}

/* ─── SERVICE OPTION CARDS (QUOTE FORM) ─── */
.service-option-card {
    transition: all 0.35s var(--premium-transition) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.service-option-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(245, 237, 48, 0.1) !important;
    border-color: var(--premium-gold) !important;
}

.service-option-card.selected {
    box-shadow: 0 8px 30px rgba(245, 237, 48, 0.15), 0 0 0 2px rgba(245, 237, 48, 0.2) !important;
    background: rgba(245, 237, 48, 0.04) !important;
    border-color: var(--premium-gold) !important;
}

/* ─── MARQUEE PARTNER STRIP PREMIUM ─── */
.hero-partner-strip {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    box-shadow: 0 -8px 40px rgba(16, 24, 64, 0.04) !important;
    height: 72px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-partner-logo-card {
    background: #ffffff !important;
    border: 1px solid rgba(16, 24, 64, 0.08) !important;
    border-radius: 9999px !important;
    padding: 0.5rem 1.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    box-shadow: 0 2px 10px rgba(16, 24, 64, 0.03) !important;
    transition: all 0.4s var(--premium-transition) !important;
}

.hero-partner-logo-card:hover {
    border-color: #5BB55A !important;
    box-shadow: 0 10px 25px rgba(91, 181, 90, 0.12) !important;
    transform: translateY(-2px);
}

.hero-partner-logo-image {
    height: 26px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%) brightness(0.2) !important;
    opacity: 0.55 !important;
    transition: all 0.4s var(--premium-transition) !important;
}

.hero-partner-logo-card:hover .hero-partner-logo-image {
    filter: none !important;
    opacity: 1 !important;
}

.hero-partner-logo-card:hover .hero-partner-logo-image[alt*="EWL"] {
    filter: brightness(0.15) !important;
    opacity: 0.85 !important;
}

/* ─── TESTIMONIAL CARDS ─── */
.glass-card {
    position: relative;
}

/* ─── ANIMATIONS ─── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.25; }
}

.animate-float {
    animation: float-gentle 5s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 4s ease-in-out infinite;
}

/* ─── SCROLL REVEAL / ABSOLUTE VISIBILITY GUARANTEE ─── */
/* Ensure all sections and content are 100% visible immediately across all devices and pages */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

[data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* ─── MOBILE PREMIUM ─── */
@media (max-width: 768px) {
    .btn-primary {
        padding: 0.75rem 1.5rem !important;
    }

    .service-card {
        border-radius: 1.25rem !important;
    }

    .service-card:hover {
        transform: translateY(-6px) !important;
    }

    .project-card:hover {
        transform: translateY(-4px) !important;
    }

    .hero-partner-strip {
        display: none !important;
    }
}

/* ─── TABLET PREMIUM ─── */
@media (min-width: 768px) and (max-width: 1024px) {
    .service-card:hover {
        transform: translateY(-8px) !important;
    }
}

/* ─── DARK SECTION ENHANCEMENTS ─── */
.bg-navy-deep,
.bg-navy-darker {
    position: relative;
}

.tech-grid {
    background-size: 60px 60px !important;
    opacity: 0.08 !important;
}

/* ─── GLOW ORB ENHANCEMENTS ─── */
.glow-orb {
    animation: glow-drift 15s ease-in-out infinite alternate;
}

@keyframes glow-drift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
    100% { transform: translate(-10px, 10px); }
}

/* ─── SMOOTH PAGE TRANSITIONS ─── */
main {
    animation: page-in 0.5s var(--premium-transition);
}

@keyframes page-in {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* ─── SUCCESS / TOAST NOTIFICATIONS ─── */
.fixed.z-50.bg-navy-darker {
    animation: toast-in 0.5s var(--premium-transition);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ─── LOADING STATES ─── */
[wire\:loading] {
    transition: opacity 0.3s ease;
}

/* ─── CUSTOM SCROLLBAR PREMIUM ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--premium-gold), var(--premium-gold-dark));
}

/* ─── PRINT STYLES ─── */
@media print {
    .btn-primary,
    .btn-secondary,
    .whatsapp-fab,
    .scroll-top-premium,
    .hero-partner-strip {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER — Premium Animations
   ═══════════════════════════════════════════════════════════════ */

/* Ken Burns background zoom */
.hero-slide__bg {
    animation: ken-burns 8s ease-in-out forwards;
}

@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Slide transition classes */
.hero-slide-enter { transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.hero-slide-enter-start { opacity: 0; transform: scale(1.05); }
.hero-slide-enter-end { opacity: 1; transform: scale(1); }
.hero-slide-leave { transition: all 0.7s cubic-bezier(0.55, 0, 1, 0.45) !important; }
.hero-slide-leave-start { opacity: 1; transform: scale(1); }
.hero-slide-leave-end { opacity: 0; transform: scale(0.98); }

/* Content entrance — staggered feel */
.hero-content-enter { transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.hero-content-enter-start { opacity: 0; transform: translateY(24px); }
.hero-content-enter-end { opacity: 1; transform: translateY(0); }
.hero-content-leave { transition: all 0.4s cubic-bezier(0.55, 0, 1, 0.45) !important; }
.hero-content-leave-start { opacity: 1; transform: translateY(0); }
.hero-content-leave-end { opacity: 0; transform: translateY(-12px); }

/* Badge entrance */
.hero-content-enter-start .hero-badge { opacity: 0; transform: translateY(12px); }
.hero-content-enter-end .hero-badge { opacity: 1; transform: translateY(0); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s; }

/* Title entrance */
.hero-content-enter-start .hero-title { opacity: 0; transform: translateY(16px); }
.hero-content-enter-end .hero-title { opacity: 1; transform: translateY(0); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; }

/* Description entrance */
.hero-content-enter-start .hero-description { opacity: 0; transform: translateY(12px); }
.hero-content-enter-end .hero-description { opacity: 1; transform: translateY(0); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s; }

/* Actions entrance */
.hero-content-enter-start .hero-actions { opacity: 0; transform: translateY(12px); }
.hero-content-enter-end .hero-actions { opacity: 1; transform: translateY(0); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s; }

/* Hero description */
.hero-description {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

/* Hero title text shadow */
.hero-title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hero badge glow */
.hero-badge {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Arrow hover pulse */
.hero-arrow {
    position: relative;
}

.hero-arrow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    border: 1px solid rgba(245, 237, 48, 0);
    transition: all 0.4s ease;
}

.hero-arrow:hover::after {
    border-color: rgba(245, 237, 48, 0.2);
    inset: -4px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-slide__bg { animation: none !important; }
    .hero-slide-enter,
    .hero-slide-enter-start,
    .hero-slide-enter-end,
    .hero-slide-leave,
    .hero-slide-leave-start,
    .hero-slide-leave-end,
    .hero-content-enter,
    .hero-content-enter-start,
    .hero-content-enter-end,
    .hero-content-leave,
    .hero-content-leave-start,
    .hero-content-leave-end { transition-duration: 0.01ms !important; }
}

/* ================================================================
   MOBILE NAVIGATION DRAWER & TOUCH FIXES
   ================================================================ */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.mobile-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(4, 8, 20, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 190 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

.mobile-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(340px, 85vw) !important;
    height: 100vh !important;
    background: #060B18 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 200 !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6) !important;
}

.mobile-menu.open {
    transform: translateX(0) !important;
}

/* Hide desktop custom cursor on mobile & touch devices */
@media (max-width: 1024px), (pointer: coarse) {
    #cursor,
    #cursor-trail {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* Mobile bottom nav safe-area padding for modern mobile devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pb-safe {
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}
