/* ===== Custom Styles for James' Ammo & Guns ===== */

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

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

.geo-circle-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(232, 93, 74, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 15%;
    left: 8%;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(232, 93, 74, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    top: 20%;
    left: -5%;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(232, 93, 74, 0.08);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.geo-square-1 {
    top: 25%;
    left: 10%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(232, 93, 74, 0.12);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-square-2 {
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(232, 93, 74, 0.1);
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.geo-triangle-1 {
    top: 60%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(232, 93, 74, 0.06);
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    top: 40%;
    right: 20%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(232, 93, 74, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.6;
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E85D4A;
}

/* Selection color */
::selection {
    background: rgba(232, 93, 74, 0.3);
    color: white;
}
