/* Custom CSS for Finn's Garage */

:root {
    --forest-green: #1B4332;
    --forest-dark: #0B1F14;
    --forest-light: #2D6A4F;
    --off-white: #F8F6F0;
    --cream: #F0EDE4;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--off-white);
    color: var(--forest-dark);
}

.font-display {
    font-family: 'Playfair Display', serif;
}

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

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-dark);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-green);
    transition: width 0.3s ease;
}

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

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(27, 67, 50, 0.1);
}

/* Mobile Menu */
.mobile-nav-link {
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-nav-link:hover {
    transform: scale(1.05);
    color: var(--forest-green);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--forest-green), var(--forest-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: var(--forest-green);
    opacity: 0.1;
    line-height: 1;
}

/* Button Hover Effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Input Focus Effects */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--forest-green);
    box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Staggered Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--forest-green), var(--forest-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    #contact-form,
    .animate-bounce {
        display: none;
    }
}

/* 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;
    }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 3px solid var(--forest-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection Color */
::selection {
    background: var(--forest-green);
    color: var(--off-white);
}
