/* Base styles */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Geometric shapes for hero */
.geo-shape { position: absolute; opacity: 0.08; pointer-events: none; }
.geo-circle-1 {
    width: 420px; height: 420px;
    border: 3px solid #fbbf24;
    border-radius: 50%;
    top: -80px; right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}
.geo-circle-2 {
    width: 200px; height: 200px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    bottom: 15%; left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}
.geo-circle-3 {
    width: 120px; height: 120px;
    border: 2px solid #e9d5ff;
    border-radius: 50%;
    top: 30%; left: 10%;
    animation: float-slow 12s ease-in-out infinite;
}
.geo-circle-4 {
    width: 60px; height: 60px;
    background: #fbbf24;
    border-radius: 50%;
    bottom: 25%; right: 15%;
    animation: float-slow 8s ease-in-out infinite;
}
.geo-rect-1 {
    width: 160px; height: 160px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-radius: 24px;
    top: 20%; right: 8%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}
.geo-rect-2 {
    width: 80px; height: 80px;
    border: 2px solid #fbbf24;
    border-radius: 16px;
    bottom: 30%; left: 15%;
    transform: rotate(20deg);
    animation: float-slow 14s ease-in-out infinite reverse;
}
.geo-triangle {
    width: 0; height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #a855f7;
    opacity: 0.06;
    top: 50%; right: 25%;
    animation: float-slow 22s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(45, 10, 50, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-link { transition: all 0.2s ease; }

/* Scroll reveal — progressive enhancement, only active with JS + no reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #2d0a32; }
::-webkit-scrollbar-thumb { background: #7b2d8e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a83d9f; }

/* Responsive adjustments */
@media (max-width: 640px) {
    .geo-circle-1 { width: 250px; height: 250px; }
    .geo-circle-2 { width: 120px; height: 120px; }
    .geo-rect-1 { width: 100px; height: 100px; }
}
