/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0f0a14;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

.geo-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-triangle-1 {
    top: 30%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(157, 23, 77, 0.2);
    transform: rotate(15deg);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-2 {
    bottom: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square-1 {
    top: 50%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: rgba(157, 23, 77, 0.1);
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-diamond-1 {
    bottom: 35%;
    right: 15%;
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.08);
    transform: rotate(30deg);
    animation: float-slow 14s ease-in-out infinite;
}

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

.geo-triangle-1 { --rotation: 15deg; }
.geo-square-1 { --rotation: 45deg; }
.geo-diamond-1 { --rotation: 30deg; }

/* ===== Floating Cards ===== */
.floating-card-1 {
    animation: float-card-1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-card-2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-card-3 5s ease-in-out infinite;
}

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

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

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(15, 10, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ===== Menu Cards ===== */
.menu-card {
    will-change: transform;
}

/* ===== Event Cards ===== */
.event-card {
    will-change: transform;
}

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(80, 7, 36, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(80, 7, 36, 0.2);
}

.gallery-item {
    position: relative;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Back to Top ===== */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}

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

::-webkit-scrollbar-track {
    background: #0f0a14;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* ===== Selection ===== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #ffffff;
}

/* ===== Focus Visible ===== */
:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* ===== 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;
    }
}
