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

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b1623;
}
::-webkit-scrollbar-thumb {
    background: #d49a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f2b430;
}

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

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

/* ========== Scroll Reveal (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

/* Default state: always visible for accessibility */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Navbar ========== */
#navbar.scrolled {
    background: rgba(5, 12, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 154, 42, 0.1);
}

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

#navbar.scrolled #nav-logo-text {
    color: #ffffff;
}

/* ========== Mobile Menu ========== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ========== Hero ========== */
#hero {
    position: relative;
}

/* ========== Menu Section ========== */
#menu ul li {
    transition: transform 0.2s ease;
}

#menu ul li:hover {
    transform: translateX(4px);
}

#menu ul li:hover .font-serif {
    color: #f5c660;
}

/* ========== Buttons ========== */
button, [type="submit"] {
    cursor: pointer;
    border: none;
    background: none;
}

/* ========== Form Select Arrow ========== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d49a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========== Date Input Fix ========== */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6) sepia(1) saturate(5) hue-rotate(10deg);
    cursor: pointer;
}

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

/* ========== Responsive tweaks ========== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}
