/* Base styles & custom properties */
:root {
    --color-mint-50: #F2FBF8;
    --color-mint-100: #D8F5EC;
    --color-mint-200: #B3EBD9;
    --color-mint-300: #6DD5C5;
    --color-mint-400: #3DBFAF;
    --color-mint-500: #1FA89A;
    --color-mint-600: #157D73;
    --color-midnight-700: #0F2A4A;
    --color-midnight-600: #1A527A;
    --color-midnight-200: #A8BFD4;
    --color-midnight-100: #D0DCE8;
    --color-midnight-50: #F0F4F8;
}

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: var(--color-mint-200);
    color: var(--color-midnight-700);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-midnight-50);
}
::-webkit-scrollbar-thumb {
    background: var(--color-midnight-200);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-mint-300);
}

/* Reveal animations — progressive enhancement, only when JS runs and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
}

/* Float animation for hero badge */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 42, 74, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-mint-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    image-rendering: auto;
    loading: lazy;
}

/* Decorative pattern for hero section */
.hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(109, 213, 197, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
}
