/* Custom CSS for Wicklund Collision Center */

:root {
    --midnight-950: #0a0f1a;
    --midnight-900: #0d1525;
    --midnight-800: #111a2e;
    --midnight-700: #1a2744;
    --midnight-600: #243556;
    --mint-400: #64ffda;
    --mint-500: #4fd4b5;
    --mint-600: #3db89d;
}

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

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

::-webkit-scrollbar-track {
    background: var(--midnight-950);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--mint-500);
}

/* Navigation styles */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero section animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Custom focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card gradient overlay */
.group::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(100, 255, 218, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group:hover::before {
    opacity: 1;
}

/* Ensure cards have relative positioning for ::before */
.group {
    position: relative;
}

/* Testimonial card hover */
.bg-midnight-800\/50 {
    transition: all 0.3s ease;
}

.bg-midnight-800\/50:hover {
    background: rgba(26, 39, 68, 0.7);
    transform: translateY(-4px);
}

/* Form validation styles */
input:invalid:focus,
textarea:invalid:focus {
    border-color: #ef4444;
}

input:valid:focus,
textarea:valid:focus {
    border-color: var(--mint-500);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-playfair {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    #hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
