/* ============================================
   CUSTOM AUTO TRUCK SERVICE
   Modern Vibrant Marketing Site
   ============================================ */

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

/* ============================================
   GEOMETRIC DECORATIVE SHAPES
   ============================================ */

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

.geo-circle-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(184, 38, 71, 0.15);
    border-radius: 50%;
    top: 25%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 120px;
    height: 120px;
    background: rgba(255, 77, 119, 0.08);
    border-radius: 50%;
    top: 60%;
    left: 3%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(184, 38, 71, 0.12);
    top: 40%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 77, 119, 0.06);
    top: 75%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    background-image: radial-gradient(circle, rgba(184, 38, 71, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 150px;
    height: 150px;
    top: 15%;
    left: 15%;
}

/* ============================================
   HERO GEOMETRIC SHAPES
   ============================================ */

.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation: float 10s ease-in-out infinite;
}

.hero-geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 127, 161, 0.1);
    top: 20%;
    right: 5%;
    animation: float 7s ease-in-out infinite reverse;
}

.hero-geo-3 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.04);
    bottom: 20%;
    right: 15%;
    animation: spin 15s linear infinite;
}

.hero-geo-4 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    bottom: 10%;
    left: 10%;
    transform: rotate(45deg);
    animation: float 9s ease-in-out infinite;
}

.hero-geo-5 {
    width: 80px;
    height: 80px;
    background: rgba(255, 179, 196, 0.08);
    border-radius: 50%;
    top: 50%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

/* ============================================
   CTA GEOMETRIC SHAPES
   ============================================ */

.cta-geo {
    position: absolute;
    pointer-events: none;
}

.cta-geo-1 {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -5%;
    right: 10%;
    animation: float 11s ease-in-out infinite;
}

.cta-geo-2 {
    width: 100px;
    height: 100px;
    background: rgba(255, 127, 161, 0.08);
    bottom: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

.cta-geo-3 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 255, 255, 0.03);
    top: 30%;
    left: 15%;
    animation: spin 18s linear infinite;
}

.cta-geo-4 {
    width: 180px;
    height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    bottom: -5%;
    right: 20%;
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive Enhancement — content visible without JS)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: ensure content is always visible */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Reduced motion: no animations at all */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   NAVBAR SCROLL EFFECT
   ============================================ */

#navbar.scrolled {
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   FORM STYLES
   ============================================ */

input:focus,
select:focus,
textarea:focus {
    border-color: #b82647 !important;
    box-shadow: 0 0 0 4px rgba(184, 38, 71, 0.1) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}

/* ============================================
   SELECTION COLOR
   ============================================ */

::selection {
    background: rgba(184, 38, 71, 0.2);
    color: #3d0712;
}
