/* === CUSTOM FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

.font-playfair { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'Inter', sans-serif; }

/* === PRELOADER === */
#preloader { transition: opacity 0.5s ease, visibility 0.5s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }

/* === SCROLL ANIMATIONS === */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === HERO ANIMATIONS === */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-anim.animated {
    opacity: 1;
    transform: translateY(0);
}
.hero-anim:nth-child(1) { transition-delay: 0.2s; }
.hero-anim:nth-child(2) { transition-delay: 0.4s; }
.hero-anim:nth-child(3) { transition-delay: 0.6s; }
.hero-anim:nth-child(4) { transition-delay: 0.8s; }
.hero-anim:nth-child(5) { transition-delay: 1.0s; }

/* === SCROLL LINE ANIMATION === */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* === HEADER SCROLL === */
#main-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

/* === NAV LINKS === */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A96E;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* === MOBILE MENU === */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* === SMOOTH SCROLL === */
html {
    scroll-behavior: smooth;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #722F37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8B3A44;
}

/* === SELECTION === */
::selection {
    background: rgba(114, 47, 55, 0.6);
    color: #F5E6D3;
}

/* === INPUT FOCUS === */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.3);
}

/* === MOBILE NAV LINKS === */
.mobile-nav-link {
    position: relative;
}

/* === IMAGE HOVER === */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .font-playfair.text-5xl {
        font-size: 2.5rem;
    }
    .font-playfair.text-4xl {
        font-size: 2rem;
    }
}
