/* ========== BASE STYLES ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* ========== NAVIGATION ========== */
.nav-fixed {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    background-color: transparent;
}

.nav-fixed.scrolled {
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

.nav-fixed.scrolled .nav-link {
    color: #4f4337;
}

.nav-fixed.scrolled .nav-link:hover {
    color: #a82e1c;
}

.nav-fixed.scrolled .nav-logo-text {
    color: #231f1b;
}

/* ========== MOBILE MENU ========== */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobileMenuBtn.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active #line2 {
    opacity: 0;
}

#mobileMenuBtn.active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

.mobile-menu-overlay {
    transition: opacity 0.3s ease;
}

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

.mobile-menu-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-link:hover {
    transform: scale(1.05);
}

/* ========== FLOATING CARDS ========== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Stagger delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* ========== DECORATIVE ========== */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #d4cbbf;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4cbbf, transparent);
}

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

::-webkit-scrollbar-track {
    background: #faf7f2;
}

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

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

/* ========== SELECTION ========== */
::selection {
    background-color: #f8c4b0;
    color: #3d110c;
}

/* ========== FORM STYLES ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

textarea {
    field-sizing: content;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .floating-card {
        display: none;
    }
}
