/* ===== 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 {
    display: block;
    max-width: 100%;
}

::selection {
    background: #EAD8EA;
    color: #3D243D;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F9F3F9;
}
::-webkit-scrollbar-thumb {
    background: #D4B5D4;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9B6B9B;
}

/* ===== NAV ===== */
#nav {
    background: rgba(249, 243, 249, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 181, 212, 0.3);
}

.nav-logo {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

/* ===== MOBILE MENU ===== */
#mobile-menu {
    pointer-events: none;
}

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

.mobile-menu-link {
    position: relative;
}

/* ===== HERO ===== */
.scroll-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #9B6B9B);
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

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

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

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

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

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

/* ===== CARD HOVER ===== */
.card-hover {
    transition: transform 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* ===== PILLAR ITEMS ===== */
.pillar-item {
    transition: padding-left 0.3s ease;
}

.pillar-item:hover {
    padding-left: 12px;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .floating-card {
        animation: none;
    }
    .scroll-line {
        animation: none;
    }
}

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