/* Custom Styles for Bastrop Custom Autowerks */

/* Base Reset & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clip Diagonal for About Section */
.clip-diagonal {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(6, 15, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu States */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.geo-triangle-1 {
    top: 15%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #ffd620;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite;
}

.geo-triangle-2 {
    bottom: 20%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid #ffd620;
    transform: rotate(-20deg);
    animation: float 8s ease-in-out infinite reverse;
}

.geo-circle-1 {
    top: 25%;
    right: 25%;
    width: 120px;
    height: 120px;
    border: 3px solid #ffd620;
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.geo-rect-1 {
    bottom: 30%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: #ffd620;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.geo-diamond {
    top: 60%;
    right: 10%;
    width: 60px;
    height: 60px;
    border: 2px solid #ffd620;
    transform: rotate(45deg);
    animation: float 5s ease-in-out infinite reverse;
}

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

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

/* Scroll Indicator */
.scroll-dot {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

/* Reveal Animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always show content if JS is disabled */
:not(.reveal) {
    opacity: 1 !important;
    transform: none !important;
}

/* Service Card Hover Effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Selection Color */
::selection {
    background: #ffd620;
    color: #0b1926;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1a3a5c;
    border-radius: 5px;
}

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

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ffd620;
    outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}

/* Mobile Menu Button Animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}
