/* ===== 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: #1A0A20;
    color: #F9F0FD;
}

/* ===== NAVBAR ===== */
.nav-scrolled {
    background: rgba(26, 10, 32, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.3);
}

#navbar:not(.nav-scrolled) {
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1A0A20 0%, #2A0E32 50%, #1A0A20 100%);
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 45, 142, 0.2) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-3 {
    width: 180px;
    height: 180px;
    border: 2px solid rgba(245, 166, 35, 0.15);
    top: 30%;
    right: 15%;
    animation: spin-slow 30s linear infinite;
}

.geo-tri {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 166, 35, 0.06);
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-sq {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(123, 45, 142, 0.2);
    border-radius: 12px;
    top: 45%;
    right: 8%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite reverse;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 15%;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.3) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.6;
    animation: float-slow 12s ease-in-out infinite;
}

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

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

/* ===== CARD GLOW ===== */
.card-glow .group:hover {
    box-shadow: 0 0 40px rgba(245, 166, 35, 0.08);
}

/* ===== REVEAL ANIMATIONS ===== */
.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);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .geo-circle, .geo-tri, .geo-sq, .geo-dots {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
    max-height: 300px;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0A20;
}
::-webkit-scrollbar-thumb {
    background: #3D1447;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D8E;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: #F9F0FD;
}
