/* Modern Dynamic CSS for Akasya Rent a Car */

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(5deg) rotateX(2deg); }
    50% { transform: rotateY(0deg) rotateX(0deg); }
    75% { transform: rotateY(-5deg) rotateX(-2deg); }
    100% { transform: rotateY(0deg) rotateX(0deg); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.animate-slide-up {
    animation: slideUp 1s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.car-animation-3d {
    animation: rotate3d 6s ease-in-out infinite;
    display: inline-block;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1 !important;
}

.floating-icon {
    position: absolute;
    animation: floatIcon 3s ease-in-out infinite;
    z-index: 1 !important;
}

.floating-icon:nth-child(2) {
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    animation-delay: 2s;
}

/* Typing Effect */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(20, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Reviews Section */
.review-card-modern {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.review-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    transition: left 0.5s ease;
}

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

.review-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.avatar-circle {
    transition: transform 0.3s ease;
}

.review-card-modern:hover .avatar-circle {
    transform: scale(1.1) rotate(10deg);
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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 ease;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Progress bars */
.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 2s ease-in-out;
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
    font-size: 2.5rem;
    background: linear-gradient(45deg, currentColor, currentColor);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Cars page styles */
.cars-hero-section {
    position: relative;
    overflow: hidden;
}

@keyframes carDrive {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(30px); }
}

.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-section .form-select,
.filter-section .form-control {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-2px);
}

/* Car card enhancements */
.car-card {
    transition: all 0.4s ease;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.car-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.car-card .card-img-top {
    transition: transform 0.4s ease;
    height: 250px;
    object-fit: cover;
}

.car-card:hover .card-img-top {
    transform: scale(1.1);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Loading animations */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Feature tags */
.feature-tag {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .car-animation-3d i {
        font-size: 6rem !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .review-card-modern {
        background: #1a1a1a !important;
        color: white;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Footer enhancements */
.footer .social-links a {
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

/* Print styles */
@media print {
    .hero-section,
    .stats-section,
    .cars-hero-section {
        background: white !important;
        color: black !important;
    }
    
    .btn,
    .card {
        box-shadow: none !important;
    }
    
    .filter-section {
        display: none;
    }
}