/* ============================================
   Bakker's Auto Body — 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(45, 212, 191, 0.3);
    color: white;
}

/* ============================================
   Geometric Shape Animations
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(45, 212, 191, 0.08);
    border-radius: 50%;
    bottom: 15%;
    left: -80px;
    animation: float-medium 14s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: float-slow 10s ease-in-out infinite;
}

.shape-diamond {
    width: 80px;
    height: 80px;
    background: rgba(45, 212, 191, 0.12);
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(45, 212, 191, 0.08);
    bottom: 25%;
    right: 15%;
    animation: float-slow 16s ease-in-out infinite reverse;
}

.shape-ring {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: 60%;
    left: 20%;
    animation: float-medium 18s ease-in-out infinite;
}

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

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

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }
.reveal[data-reveal-delay="6"] { transition-delay: 0.6s; }

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

/* ============================================
   Navbar Scroll State
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(8, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
}

/* ============================================
   Custom Select Styling
   ============================================ */
select option {
    background: #0f172a;
    color: white;
}

/* ============================================
   Focus Visible
   ============================================ */
:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* ============================================
   Form Input Autofill
   ============================================ */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: white !important;
}

/* ============================================
   Smooth Scroll Offset for Fixed Nav
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Utility
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    .shape-circle-2,
    .shape-ring {
        display: none;
    }
}
