/* Custom styles for Ferrara's Auto Body */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1C1C1E;
}
::-webkit-scrollbar-thumb {
    background: #FF6B6B;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E05252;
}

/* Selection color */
::selection {
    background: #FF6B6B;
    color: #1C1C1E;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(28, 28, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.mobile-menu-open #menu-icon {
    transform: rotate(90deg);
}

/* Service card hover */
.group:hover .group-hover\:bg-coral {
    background-color: #FF6B6B;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

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

.floating-shape-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-shape-2 {
    animation: float-slow 8s ease-in-out infinite;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered animation delays */
.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; }

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23FF6B6B' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Hero parallax effect */
.hero-bg {
    will-change: transform;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

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

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}
