/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* ===== Navbar ===== */
.nav-logo-text {
    transition: color 0.5s ease;
}

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

/* ===== Hero Animations ===== */
.hero-anim {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-anim.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

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

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

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

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger mobile links */
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Menu Lines Animation ===== */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Form Styling ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d4af5a;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .font-serif {
        letter-spacing: -0.01em;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #contact-form, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
}
