/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero animations */
.hero-bg {
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-badge {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtext {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-scroll-indicator {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

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

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

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Navbar styles */
#navbar.scrolled {
    background: rgba(10, 25, 41, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

#navbar.scrolled #nav-logo {
    color: white !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Button hover effects */
button, a {
    touch-action: manipulation;
}

/* Image loading optimization */
img {
    background-color: #f0f4f8;
}

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

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

::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #243b53;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #ffc107;
    color: #102a43;
}
