/* Base styles and custom properties */
:root {
    --color-navy-900: #0a1628;
    --color-navy-800: #0f2140;
    --color-navy-700: #152d58;
    --color-gold-400: #d4a574;
    --color-gold-500: #c49a6c;
    --color-gold-600: #b8894f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Scroll reveal base state - content is visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* Only apply animation styles when JavaScript is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-left {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-right {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

/* Nav link hover underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

/* Hero decorative lines animation */
.hero-line {
    opacity: 0;
    animation: lineGrow 1.2s ease forwards;
}

.line-1 { animation-delay: 0.5s; }
.line-2 { animation-delay: 0.8s; }
.line-3 { animation-delay: 1.1s; }
.line-4 { animation-delay: 1.4s; }

@keyframes lineGrow {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile menu active state */
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
.menu-open #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open #bar2 {
    opacity: 0;
}

.menu-open #bar3 {
    width: 6px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: rgba(212, 165, 116, 0.6) !important;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: var(--color-navy-900);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.5);
}

/* Selection color */
::selection {
    background-color: rgba(212, 165, 116, 0.3);
    color: white;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
