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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(168, 58, 158, 0.2);
    color: inherit;
}

/* ========== NAVBAR ========== */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(39, 11, 36, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

/* ========== HERO SHAPES ========== */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.08;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24, transparent 70%);
    top: -10%;
    right: -5%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #a83a9e, transparent 70%);
    bottom: 5%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fbbf24;
    top: 30%;
    left: 10%;
    animation: float-medium 10s ease-in-out infinite;
}

.shape-diamond {
    width: 100px;
    height: 100px;
    background: #fbbf24;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #a83a9e;
    bottom: 25%;
    right: 8%;
    animation: float-medium 12s ease-in-out infinite;
}

.shape-ring {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(251, 191, 36, 0.5);
    border-radius: 50%;
    top: 15%;
    left: 25%;
    animation: spin-slow 30s linear infinite reverse;
}

.shape-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(251,191,36,0.6) 2px, transparent 2px);
    background-size: 12px 12px;
    top: 60%;
    right: 25%;
    animation: float-slow 18s ease-in-out infinite;
}

/* ========== ANIMATIONS ========== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.02); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ========== MOBILE MENU ========== */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== IMAGE PLACEHOLDERS ========== */
img {
    max-width: 100%;
    height: auto;
}

/* ========== ACCESSIBILITY ========== */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .font-playfair {
        line-height: 1.1;
    }
}
