/* ============================================
   Moore Tires LLC — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0f4f8;
}

/* --- Geometric Animations --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float-slow-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(25px) rotate(-3deg); }
}

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

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

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

@keyframes dash-move {
    to { stroke-dashoffset: -100; }
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border: 2px solid #d4a017;
    border-radius: 50%;
    top: -100px;
    right: -150px;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border: 2px solid #d4a017;
    border-radius: 50%;
    bottom: 10%;
    left: -80px;
    animation: float-slow-reverse 10s ease-in-out infinite;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: #d4a017;
    border-radius: 50%;
    top: 30%;
    left: 8%;
    opacity: 0.04;
    animation: float-medium 8s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid #d4a017;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(212, 160, 23, 0.5);
    bottom: 25%;
    right: 25%;
    transform: rotate(20deg);
    animation: spin-reverse 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 160, 23, 0.06);
    top: 55%;
    left: 5%;
    animation: float-slow 14s ease-in-out infinite;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #f0c94d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* --- Navbar --- */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Buttons --- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

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

/* --- Form selects --- */
select option {
    background: #1e3a5f;
    color: #f0f4f8;
}

/* --- Mobile menu animation --- */
#mobile-menu {
    animation: slideDown 0.3s 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: 250px;
        height: 250px;
        right: -80px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-square-2 {
        display: none;
    }
    
    .geo-triangle-1 {
        display: none;
    }
}
