/* ========== BASE & RESET ========== */
*, *::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;
}

::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f5f0e8;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.5);
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #e0bc6e !important;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
    position: relative;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ========== HERO ANIMATIONS ========== */
.hero-element {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-element:nth-child(1) { transition-delay: 0.1s; }
.hero-element:nth-child(2) { transition-delay: 0.3s; }
.hero-element:nth-child(3) { transition-delay: 0.5s; }
.hero-element:nth-child(4) { transition-delay: 0.7s; }

/* ========== SCROLL DOT ========== */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ========== REVEAL ON SCROLL ========== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-on-scroll.revealed:nth-child(1) { transition-delay: 0.05s; }
.reveal-on-scroll.revealed:nth-child(2) { transition-delay: 0.15s; }
.reveal-on-scroll.revealed:nth-child(3) { transition-delay: 0.25s; }
.reveal-on-scroll.revealed:nth-child(4) { transition-delay: 0.35s; }
.reveal-on-scroll.revealed:nth-child(5) { transition-delay: 0.45s; }

/* ========== GALLERY HOVER ========== */
.rounded-sm img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== FORM INPUTS ========== */
input:focus,
textarea:focus {
    background: rgba(15, 28, 63, 0.8);
}

/* ========== GOLD LINE ANIMATION ========== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .font-display.text-5xl,
    .font-display.text-6xl,
    .font-display.text-7xl {
        font-size: 2.5rem;
    }

    @media (min-width: 640px) {
        .font-display.text-5xl { font-size: 3rem; }
        .font-display.text-6xl { font-size: 3.5rem; }
        .font-display.text-7xl { font-size: 4rem; }
    }
}
