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

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

body {
    overflow-x: hidden;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(251, 191, 36, 0.6);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(196, 103, 138, 0.4);
    top: 30%;
    left: 10%;
    animation: spin 12s linear infinite;
    transform-origin: center;
}

.geo-square {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(251, 191, 36, 0.5);
    top: 60%;
    right: 15%;
    animation: spin 15s linear infinite;
    transform-origin: center;
}

.geo-ring {
    width: 150px;
    height: 150px;
    border: 3px solid rgba(196, 103, 138, 0.5);
    border-radius: 50%;
    top: 15%;
    left: 25%;
    animation: float 10s ease-in-out infinite;
}

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

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

/* Navbar */
#navbar.scrolled {
    background: rgba(45, 18, 30, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-card {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

.reveal-card {
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up.is-hidden {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left.is-hidden {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right.is-hidden {
        opacity: 0;
        transform: translateX(40px);
    }
    .reveal-card.is-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Stagger children */
.reveal-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-card:nth-child(3) { transition-delay: 0.2s; }
.reveal-card:nth-child(4) { transition-delay: 0.3s; }

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection */
::selection {
    background: rgba(196, 103, 138, 0.3);
    color: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2d121e;
}
::-webkit-scrollbar-thumb {
    background: #6b2d47;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a84b6e;
}
