/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.6) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(251, 191, 36, 0.3);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(251, 191, 36, 0.25);
    top: 60%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape-ring-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid rgba(251, 191, 36, 0.3);
    bottom: 15%;
    right: 10%;
    animation: spin-slow 15s linear infinite reverse;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.4) 2px, transparent 2px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    top: 40%;
    left: 15%;
    opacity: 0.5;
}

/* Background section shapes */
.shape-circle-3 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    opacity: 0.5;
    animation: float 12s ease-in-out infinite;
}

.shape-square-2 {
    width: 150px;
    height: 150px;
    background: rgba(245, 158, 11, 0.1);
    bottom: 10%;
    left: 5%;
    transform: rotate(30deg);
    opacity: 0.5;
    animation: spin-slow 25s linear infinite;
}

.shape-circle-4 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float 9s ease-in-out infinite reverse;
}

.shape-square-3 {
    width: 100px;
    height: 100px;
    background: rgba(251, 191, 36, 0.15);
    top: 10%;
    right: 8%;
    transform: rotate(60deg);
    animation: spin-slow 18s linear infinite reverse;
}

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

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

/* Scroll reveal - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(80, 7, 36, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(190, 24, 93, 0.2);
    color: #1a050b;
}
