/* Custom Styles for Paint Protection Concepts */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Smooth Scrolling Removed for Stability */

/* Navigation Styles */
#navbar {
    background: rgba(3, 7, 18, 0.95);
    /* backdrop-filter removed for stability */
}

#navbar.scrolled {
    background: rgba(3, 7, 18, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Animations */
/* Animations Removed for Stability */

/* Service Card Styles Removed */

/* Portfolio Filter Buttons */
.filter-btn {
    background: rgba(31, 41, 55, 0.8);
    color: #9CA3AF;
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Portfolio Items */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Specific properties */
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.star-rating {
    color: #3B82F6;
}

/* Blog Cards */
.blog-card {
    background: rgba(31, 41, 55, 0.8);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Specific properties */
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.5);
}

.blog-card img {
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
#quote-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#quote-modal>div {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Flip Card Modal Specific Styles */
.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

.rotate-y-90 {
    transform: rotateY(90deg);
}

.rotate-y-0 {
    transform: rotateY(0deg);
}

/* Form Styles */
input[type="radio"]:checked+div {
    color: #3B82F6;
}

input[type="radio"]:checked~* {
    border-color: #3B82F6 !important;
}

label:has(input[type="radio"]:checked) {
    border-color: #3B82F6 !important;
    background: rgba(59, 130, 246, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3B82F6, #2563EB);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563EB, #1D4ED8);
}

/* Loading Animations Removed for Stability */

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(31, 41, 55, 0.95);
    /* backdrop-filter removed */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Button Glow Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), rgba(148, 163, 184, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

/* Pulse Animation for CTA */
/* Pulse Animation Removed for Stability */

/* Hero Animation: High-End PPF Redesign */
.hero-zoom {
    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.wrap-reveal-layer {
    clip-path: inset(0 100% 0 0);
    animation: wrapReveal 8s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    filter: saturate(1.4) contrast(1.1) brightness(1.1);
}

.wrap-scanner-line {
    left: 0;
    opacity: 0;
    animation: scannerSweep 8s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    box-shadow: 0 0 35px 12px rgba(59, 130, 246, 0.5), 0 0 6px 1px rgba(255, 255, 255, 0.8);
}

@keyframes wrapReveal {

    0%,
    15% {
        clip-path: inset(0 100% 0 0);
    }

    45%,
    55% {
        clip-path: inset(0 0 0 0);
    }

    85%,
    100% {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes scannerSweep {

    0%,
    15% {
        left: 0%;
        opacity: 0;
    }

    16% {
        opacity: 1;
    }

    45%,
    55% {
        left: 100%;
        opacity: 0;
    }

    56% {
        opacity: 1;
    }

    85%,
    100% {
        left: 0%;
        opacity: 0;
    }
}

.text-glow {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.hover-scale-slight:hover {
    transform: scale(1.02);
}

.animate-pulse-slow {
    animation: pulseSlow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseSlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@keyframes buttonShine {
    100% {
        transform: translateX(200%);
    }
}

.animate-button-shine {
    animation: buttonShine 1.5s ease-in-out infinite;
}

/* Hero Background Garage Lighting Animations */
@keyframes lightFlicker {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 0.15;
    }

    10% {
        opacity: 0;
    }

    15% {
        opacity: 0.2;
    }

    18% {
        opacity: 0.05;
    }

    22% {
        opacity: 0.3;
    }

    28% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.animate-light-flicker {
    animation: lightFlicker 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes lightSweep {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    50% {
        transform: translateX(300%);
        opacity: 0;
    }

    100% {
        transform: translateX(300%);
        opacity: 0;
    }
}

.animate-light-sweep {
    animation: lightSweep 8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.animate-light-sweep-delayed {
    animation: lightSweep 10s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    animation-delay: 3s;
}