/* ===== Custom Styles for Lll Auto Repairs ===== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Hero Background Shapes ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-blob-1 {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.06) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphBlob 12s ease-in-out infinite;
}

.shape-blob-2 {
    bottom: 15%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphBlob 15s ease-in-out infinite reverse;
}

.shape-blob-3 {
    top: 40%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.04) 0%, transparent 70%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphBlob 10s ease-in-out infinite;
}

.shape-blob-4 {
    bottom: 5%;
    right: 20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 145, 110, 0.06) 0%, transparent 70%);
    border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%;
    animation: morphBlob 8s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 20%;
    left: 8%;
    width: 60px;
    height: 60px;
    background: rgba(123, 45, 59, 0.05);
    border-radius: 16px;
    transform: rotate(30deg);
    animation: floatShape 6s ease-in-out infinite;
}

.shape-square-2 {
    bottom: 25%;
    right: 10%;
    width: 40px;
    height: 40px;
    background: rgba(244, 114, 182, 0.08);
    border-radius: 10px;
    transform: rotate(45deg);
    animation: floatShape 8s ease-in-out infinite reverse;
}

.shape-circle-1 {
    top: 60%;
    left: 5%;
    width: 20px;
    height: 20px;
    background: rgba(123, 45, 59, 0.1);
    border-radius: 50%;
    animation: floatShape 5s ease-in-out infinite;
}

.shape-circle-2 {
    top: 15%;
    right: 30%;
    width: 12px;
    height: 12px;
    background: rgba(244, 114, 182, 0.15);
    border-radius: 50%;
    animation: floatShape 7s ease-in-out infinite reverse;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 60% 40% 30% 70%; }
}

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

/* ===== Floating Cards ===== */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1s; }
.card-3 { animation-delay: 2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Review Cards ===== */
.review-card {
    position: relative;
    overflow: hidden;
}

.review-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.05;
    color: #7B2D3B;
    pointer-events: none;
}

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

#navbar.scrolled {
    background: rgba(255, 251, 249, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

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

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

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

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    .shape-blob-1, .shape-blob-2 {
        width: 200px;
        height: 200px;
    }

    .shape-blob-3, .shape-blob-4,
    .shape-square-1, .shape-square-2,
    .shape-circle-1, .shape-circle-2 {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .floating-card.card-3 {
        display: none;
    }
}
