/* Custom CSS */

/* Smooth Scrolling is handled by Tailwind 'scroll-smooth' on html, but ensuring it here too */
html {
    scroll-behavior: smooth;
    width: 100%;
    min-height: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-x: clip !important;
}

body {
    background-color: #050816;
    /* Fallback */
    color: #e5e7eb;
    width: 100%;
    min-height: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden !important;
    overflow-x: clip !important;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.75rem 1rem;
    background: #050816;
    color: #ffffff;
    border-radius: 0.5rem;
    z-index: 9999;
    transition: top 0.2s ease, box-shadow 0.2s ease;
}

.skip-link:focus-visible {
    top: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

section,
header,
footer {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Glow Animation */
@keyframes float-glow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.4) 0%, rgba(31, 77, 122, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    animation: float-glow 6s ease-in-out infinite;
}

/* Lightbox */
#lightbox {
    transition: opacity 0.3s ease;
}

#lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

#lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1F4D7A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4FD1C5;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4FD1C5, #2F6FB0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #ffffff !important;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.25);
}

/* CTA consistency */
.btn-pill {
    border-radius: 9999px !important;
    box-shadow: 0 12px 30px rgba(79, 209, 197, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(79, 209, 197, 0.35);
}

/* Cards hover */
.card-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Hero */
.hero-title {
    letter-spacing: -0.01em;
}

.hero-subtitle {
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        margin-bottom: 1rem;
    }
}

.hero-vignette {
    background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

/* Icons */
.icon-standard {
    font-size: 1.25rem;
}

/* Cookie Banner */
#cookie-banner {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: cookie-slide-up 0.4s ease forwards;
}

@keyframes cookie-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}