/*
   BJM Ford Specialist - Custom Styles
   Author: Claude Code
   Description: Custom CSS for the BJM Ford Specialist website
*/

/* Color Variables */
:root {
    --black: #0a0a0a;
    --charcoal: #1a1a1a;
    --blue: #0055ff;
    --blue-light: #3377ff;
    --gray-light: #cccccc;
    --gray-dark: #666666;
    --white: #ffffff;
}

/* Base Styles */
body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
}

.font-oswald {
    font-family: 'Oswald', sans-serif;
}

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

.bg-charcoal {
    background-color: var(--charcoal);
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 85, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 85, 255, 0);
    }
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Utility Classes for Animations */
.animate-fadeInSlideUp {
    animation: fadeInSlideUp 0.8s ease-out forwards;
    opacity: 0;
}

.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; }

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Service Card Hover Effects */
.service-card-hover {
    transition: all 0.3s ease;
}

.service-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 85, 255, 0.2);
    border-color: var(--blue);
}

/* Gallery Item Hover Effects */
.gallery-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 85, 255, 0.3);
    z-index: 10;
}

/* Button Shine Effect */
.button-shine {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        var(--blue) 0%,
        var(--blue-light) 50%,
        var(--blue) 100%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    transition: all 0.3s ease;
}

.button-shine::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.2) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

.button-shine:hover {
    background-position: 100% 0;
}

/* Sticky Header Styles */
.header-transparent {
    background-color: transparent;
}

.header-scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* Form Input Focus */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 85, 255, 0.2);
}

/* Hero Background Rotation */
.hero-bg-item {
    /* Controlled by JS opacity */
}

/* Lightbox Styles */
#lightbox {
    display: none;
}
#lightbox.shown {
    display: flex;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}