/* Custom styles for B2 Car Detailing */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Geometric shapes animation */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffbe00, #ff9f00);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c4dff, #9d7fff);
    border-radius: 50%;
    animation-delay: -3s;
}

.shape-3 {
    bottom: 25%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff9f00, #ffbe00);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: -7s;
}

.shape-4 {
    bottom: 15%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5b3fb0, #7c4dff);
    transform: rotate(45deg);
    animation-delay: -5s;
}

.shape-5 {
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ffbe00, #7c4dff);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 190, 0, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Gallery hover effects */
.gallery-item {
    cursor: pointer;
}

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

::-webkit-scrollbar-track {
    background: #1a0a2e;
}

::-webkit-scrollbar-thumb {
    background: #432c7a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b3fb0;
}

/* Selection color */
::selection {
    background: #ffbe00;
    color: #1a0a2e;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(26, 10, 46, 0.95) !important;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geometric-shape {
        opacity: 0.1;
    }
    
    .shape-1 {
        width: 80px;
        height: 80px;
    }
    
    .shape-3 {
        width: 60px;
        height: 60px;
    }
    
    .shape-5 {
        width: 100px;
        height: 100px;
    }
}
