/* Custom styles for Joe's Complete Auto Repair */

:root {
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--slate-950);
    color: #fff;
    overflow-x: hidden;
}

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

.shape-circle-1 {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(45, 212, 191, 0.15);
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    top: 25%;
    right: 15%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.08);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-rect-1 {
    bottom: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(45, 212, 191, 0.2);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-triangle {
    top: 60%;
    right: 2%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 191, 0.06);
    animation: float 10s ease-in-out infinite;
}

.shape-dot-grid {
    top: 30%;
    left: 45%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.3) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.6;
}

.shape-circle-3 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.05) 0%, transparent 70%);
}

.shape-circle-4 {
    top: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.04) 0%, transparent 70%);
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Menu button animation */
.menu-line:nth-child(1) {
    width: 24px;
}

.menu-line:nth-child(3) {
    width: 16px;
}

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

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

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

/* Mobile link transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* 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, var(--teal-400), var(--teal-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* Why us cards */
.why-card {
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-400), var(--teal-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-card:hover::after {
    transform: scaleX(1);
}

/* Review cards */
.review-card {
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px;
    font-weight: 900;
    color: rgba(45, 212, 191, 0.08);
    line-height: 1;
    pointer-events: none;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 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;
    }
    .geo-shape {
        display: none;
    }
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Subtle gradient text utility */
.text-gradient-teal {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}
