/* BNZ Car Customize - Modern Landing Page Styles */

/* Modern Animations */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes gradient-x {
    0%, 100% { transform: translateX(0%); }
    50% { transform: translateX(100%); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0) translateX(-50%);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0) translateX(-50%);
    }
    70% {
        transform: translate3d(0, -4px, 0) translateX(-50%);
    }
    90% {
        transform: translate3d(0, -2px, 0) translateX(-50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-blob {
    animation: blob 7s infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-gradient-x {
    animation: gradient-x 15s ease infinite;
    background-size: 400% 400%;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

/* Animation Delays */
.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

.animation-delay-800 {
    animation-delay: 800ms;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Modern Glassmorphism & Effects */
.backdrop-blur-3xl {
    backdrop-filter: blur(64px);
}

.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Grid Pattern Background */
.bg-grid-white\/\[0\.02\] {
    background-image: url("data:image/svg+xml,%3csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3e%3cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.02'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23grid)' /%3e%3c/svg%3e");
}

/* Custom Gradient Backgrounds */
.gradient-mesh {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.gradient-cosmic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
}

/* Modern Button Effects */
.btn-modern {
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
    transition: all 0.3s ease;
}

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

.btn-modern:hover:before {
    left: 100%;
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, -10px); }
    100% { transform: translate(0, 0px); }
}

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6); }
    100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
}

/* Text Gradient Animation */
.text-gradient-animate {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animate 15s ease infinite;
}

@keyframes gradient-animate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Modern Card Hover Effects */
.card-modern {
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.card-modern:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-modern:hover::before {
    opacity: 1;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles for better accessibility */
.keyboard-nav *:focus {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile menu animation states */
.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Custom mobile menu styles */
.mobile-menu {
    display: block;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background-color: #f9fafb;
    margin: 0;
    padding: 0.5rem 0 0.5rem 1rem;
}

.mobile-menu .btn {
    margin: 0.5rem 1rem;
}

/* Print styles */
@media print {
    .header, .footer, .mobile-menu-toggle, .scroll-indicator, .side-contact {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
}

/* Ensure proper font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

/* Custom utility classes that complement Tailwind */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Ensure consistent box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Remove default margins and paddings */
* {
    margin: 0;
    padding: 0;
}

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

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

/* Better focus management for keyboard navigation */
a, button, input, textarea, select {
    transition: all 0.2s ease-in-out;
}

/* Custom selection colors */
::selection {
    background-color: #2563eb;
    color: white;
}

::-moz-selection {
    background-color: #2563eb;
    color: white;
}

/* Ensure proper stacking context for fixed elements */
.fixed {
    z-index: 1000;
}

/* Custom gradient backgrounds that work well with Tailwind */
.gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
}

/* Ensure proper aspect ratios for images and videos */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Custom shadow utilities */
.shadow-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.shadow-glow-lg {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
}

/* Ensure proper line heights for better readability */
.leading-relaxed {
    line-height: 1.625;
}

.leading-loose {
    line-height: 2;
}

/* Custom border radius utilities */
.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}