/* ===== CUSTOM CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,115,85,0.06), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}
.cursor-glow.active { opacity: 1; }

/* ===== PARALLAX DEPTH LAYERS ===== */
.parallax-container {
    position: relative;
    perspective: 1200px;
    transform-style: preserve-3d;
}
.parallax-layer {
    will-change: transform;
    transform-style: preserve-3d;
}
.depth-1 { transform: translateZ(0px); }
.depth-2 { transform: translateZ(30px) scale(0.97); }
.depth-3 { transform: translateZ(60px) scale(0.94); }

/* ===== MAGNETIC BUTTONS ===== */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SMOOTH REVEAL STAGGER ===== */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-reveal.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-reveal.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-reveal.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: #1a1a2e;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #c8b99a;
    opacity: 0;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ===== SMOOTH SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}
.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b7355;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #8b7355, transparent);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #8b7355;
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== GRAIN TEXTURE OVERLAY ===== */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}
