/* ========================================
   Lundstrom's Quality Tire - Custom Styles
   ======================================== */

/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* Selection Color */
::selection {
    background: #10b981;
    color: #fdfcf8;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    transition: all duration-500;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.98);
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.08);
}

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

/* ========================================
   Hero Section
   ======================================== */
#hero {
    background: linear-gradient(135deg, #fdfcf8 0%, #fefaf0 50%, #fdf6e3 100%);
    position: relative;
    overflow: hidden;
}

/* Geometric Decorative Elements */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: #10b981;
    top: -200px;
    right: -150px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: #059669;
    bottom: -100px;
    left: -100px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: #34d399;
    top: 40%;
    left: 30%;
    opacity: 0.05;
}

.hero-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 120px 120px;
    border-color: transparent transparent #10b981 transparent;
    opacity: 0.06;
    top: 25%;
    right: 5%;
    transform: rotate(45deg);
}

.hero-dots {
    position: absolute;
    top: 30%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #10b981 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
}

/* Floating Card Animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

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

/* Scroll Line Animation */
.scroll-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #10b981, transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Hero Animations */
.hero-tag { animation: slideUp 0.8s ease forwards 0.2s; }
.hero-title { animation: slideUp 0.8s ease forwards 0.4s; }
.hero-desc { animation: slideUp 0.8s ease forwards 0.6s; }
.hero-buttons { animation: slideUp 0.8s ease forwards 0.8s; }
.hero-image-main { animation: fadeInScale 1s ease forwards 0.5s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ========================================
   Section Shared Styles
   ======================================== */
.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: #064e3b;
}

/* ========================================
   Services Section
   ======================================== */
#services {
    position: relative;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

.service-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.service-icon {
    width: 32px;
    height: 32px;
    color: #fdfcf8;
}

/* ========================================
   About Section
   ======================================== */
.about-image {
    box-shadow: 0 25px 60px rgba(6, 78, 59, 0.15);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image img {
    transition: transform 0.6s ease;
}

/* ========================================
   Why Choose Us Section
   ======================================== */
#why-us {
    position: relative;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.06;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #10b981;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: -5%;
    animation: morph 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #059669;
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    animation: morph 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #34d399;
    top: 50%;
    right: 20%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: rotate 20s linear infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

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

.reason-card {
    position: relative;
}

.reason-card::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.reason-card:hover::after {
    width: 60px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.cta-circle-1 {
    width: 400px;
    height: 400px;
    background: #10b981;
    top: -200px;
    left: -100px;
}

.cta-circle-2 {
    width: 300px;
    height: 300px;
    background: #34d399;
    bottom: -150px;
    right: -50px;
}

.cta-circle-3 {
    width: 150px;
    height: 150px;
    background: #6ee7b7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #064e3b;
    color: #fdfcf8;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #059669;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(6, 78, 59, 0.4);
}

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

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

/* Staggered delays for grid items */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .hero-circle {
        opacity: 0.05;
    }
    
    .circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .hero-image-main img {
        height: 350px;
    }
    
    .geo-shape {
        display: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}
