/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Geometric Decorations ── */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}
.geo-circle-1 {
    width: 600px; height: 600px;
    background: #F9B8A8;
    top: -200px; right: -150px;
}
.geo-circle-2 {
    width: 400px; height: 400px;
    background: #FDDDD5;
    bottom: -100px; left: -100px;
}
.geo-circle-3 {
    width: 200px; height: 200px;
    background: #F5D5D5;
    top: 40%; left: 10%;
    opacity: 0.12;
}
.geo-circle-4 {
    width: 500px; height: 500px;
    background: #FDDDD5;
    top: -150px; right: -100px;
    opacity: 0.06;
}
.geo-circle-5 {
    width: 400px; height: 400px;
    background: #F9B8A8;
    bottom: -200px; left: -100px;
    opacity: 0.05;
}

.geo-tri {
    position: absolute;
    opacity: 0.06;
}
.geo-tri-1 {
    width: 0; height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #F5D5D5;
    top: 20%; right: 5%;
    transform: rotate(15deg);
}
.geo-tri-2 {
    width: 0; height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #F9B8A8;
    bottom: 15%; left: 8%;
    transform: rotate(-20deg);
}

.geo-dots {
    position: absolute;
    opacity: 0.08;
    background-image: radial-gradient(circle, #F5D5D5 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}
.geo-dots-2 {
    width: 200px; height: 200px;
    top: 10%; left: 5%;
}
.geo-dots-3 {
    width: 150px; height: 150px;
    bottom: 10%; right: 10%;
    background-image: radial-gradient(circle, #F9B8A8 1.5px, transparent 1.5px);
}

/* ── Floating Cards ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}
.card-1 { top: 10%; left: 0; animation-delay: 0s; }
.card-2 { animation-delay: -2s; }
.card-3 { animation-delay: -4s; }
.card-4 { animation-delay: -1s; }

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

/* ── Scroll Indicator ── */
.animate-scroll-indicator {
    animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ── Reveal Animations (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .js .reveal-active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(255, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ── Focus Styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ── */
::selection {
    background: #F9B8A8;
    color: #3a0f16;
}
