/* === Custom Styles for Randy's Professional Muffler === */

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

html {
    scroll-behavior: smooth;
}

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

/* === Geometric Background Shapes === */
.fixed.inset-0.pointer-events-none {
    z-index: 0;
}

.geo-shape {
    position: absolute;
    opacity: 0.04;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #2dd4bf;
    top: -100px;
    right: -150px;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #14b8a6;
    bottom: 20%;
    left: -100px;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    top: 40%;
    right: 10%;
    transform: rotate(45deg);
    border-radius: 20px;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #14b8a6;
    top: 60%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-dots {
    background-image: radial-gradient(circle, #2dd4bf 1px, transparent 1px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    top: 15%;
    left: 10%;
    opacity: 0.06;
}

/* === Navbar === */
.nav-bar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-bar.scrolled {
    background-color: rgba(15, 29, 74, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Hero Gradient Orbs === */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.3), transparent 70%);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25), transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: -3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(92, 124, 250, 0.2), transparent 70%);
    top: 40%;
    right: 30%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

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

/* Fallback: content is always visible if JS is disabled */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* === Mobile Menu === */
#mobileMenu {
    animation: slideDown 0.2s ease;
}

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

/* === Responsive Adjustments === */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    .geo-square-1 {
        width: 100px;
        height: 100px;
    }
    .geo-triangle-1 {
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 104px solid #14b8a6;
    }
    .geo-dots {
        width: 150px;
        height: 150px;
    }
}

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

/* === Selection color === */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #f0f4ff;
}
