/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Selection */
::selection {
    background: rgba(212, 154, 42, 0.3);
    color: #f0f3f9;
}

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

::-webkit-scrollbar-track {
    background: #0d1d42;
}

::-webkit-scrollbar-thumb {
    background: #2d4d96;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4164af;
}

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(9, 20, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 154, 42, 0.1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #eecc72;
    transition: width 0.3s ease;
}

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

/* Hero parallax */
#hero {
    will-change: scroll-position;
}

#hero img {
    will-change: transform;
}

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

/* Gold accent line animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Menu hover effect */
#menu .group:hover .text-white {
    transition: color 0.3s ease;
}

/* Card hover lift */
#experience .group {
    will-change: transform;
}

#experience .group:hover {
    transform: translateY(-4px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image hover */
section img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #eecc72;
    outline-offset: 4px;
    border-radius: 9999px;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Subtle gradient overlay for text readability */
.hero-gradient {
    background: linear-gradient(
        180deg,
        rgba(9, 20, 46, 0.3) 0%,
        rgba(9, 20, 46, 0.1) 40%,
        rgba(9, 20, 46, 0.5) 80%,
        rgba(9, 20, 46, 1) 100%
    );
}

/* Decorative gold divider */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 154, 42, 0.4), transparent);
}
