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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom selection */
::selection {
    background: #c9a84c;
    color: #0a1e3a;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Navigation transitions */
#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 30, 58, 0.06);
}

#header.scrolled #nav-logo-text,
#header.scrolled #nav-logo-sub {
    color: #0a1e3a;
}

#header.scrolled .nav-link {
    color: rgba(10, 30, 58, 0.7);
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #c9a84c !important;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
