/* Custom Styles for C & L Auto Sales and Repair */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Geometric Shapes */
.geometric-shapes {
    z-index: 0;
}

.shape-circle-1 {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(212, 160, 23, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-circle-2 {
    position: absolute;
    bottom: 20%;
    right: 8%;
    width: 96px;
    height: 96px;
    background: rgba(212, 160, 23, 0.1);
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite reverse;
}

.shape-triangle {
    position: absolute;
    top: 40%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(212, 160, 23, 0.08);
    animation: float 7s ease-in-out infinite;
}

.shape-square {
    position: absolute;
    bottom: 30%;
    left: 10%;
    width: 64px;
    height: 64px;
    border: 2px solid rgba(212, 160, 23, 0.2);
    transform: rotate(30deg);
    animation: float 9s ease-in-out infinite reverse;
}

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

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-ring {
    animation: ring 1s ease-in-out;
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

.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) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #e8b828;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 16px;
}

/* Nav Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8b828;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Card Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #e8b828;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

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

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

/* Selection */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fff;
}
