/* ========== CUSTOM STYLES ========== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ========== HERO GEOMETRIC SHAPES ========== */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geo-shape {
    position: absolute;
}

/* Large circles */
.circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    top: -10%;
    right: -5%;
}

.circle-2 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
    bottom: 5%;
    left: -3%;
}

.circle-3 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.2);
    top: 20%;
    left: 10%;
}

.circle-4 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    bottom: 25%;
    right: 15%;
}

/* Rings */
.ring-1 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(168, 85, 247, 0.3);
    top: 15%;
    right: 20%;
}

.ring-2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.25);
    bottom: 30%;
    left: 20%;
}

/* Dot grid */
.dot-grid {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 8%;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.4) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.6;
}

/* Diagonal stripe accent */
.diagonal-stripe {
    width: 300px;
    height: 300px;
    bottom: -5%;
    right: 30%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(147, 51, 234, 0.05) 10px,
        rgba(147, 51, 234, 0.05) 20px
    );
    border-radius: 20px;
    transform: rotate(15deg);
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state: visible for progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
}

/* Animate only when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.animate-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FLOATING ANIMATIONS ========== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

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

@media (prefers-reduced-motion: no-preference) {
    .circle-3 { animation: float-slow 8s ease-in-out infinite; }
    .circle-4 { animation: float-medium 6s ease-in-out infinite; }
    .ring-1 { animation: float-medium 7s ease-in-out infinite; }
    .ring-2 { animation: float-fast 5s ease-in-out infinite; }
    .dot-grid { animation: float-slow 9s ease-in-out infinite; }
}

/* ========== NAVBAR SCROLL STATE ========== */
#navbar.scrolled {
    background: rgba(59, 7, 100, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

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

/* ========== FOCUS STYLES ========== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }
    
    .circle-1, .circle-2 {
        display: block;
        opacity: 0.5;
    }
}
