/* Custom styles for Euro Cars Enterprises */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #ff9a56 50%, #96ceb4 75%, #feca57 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 154, 86, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 30%, rgba(150, 206, 180, 0.3) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s linear infinite;
    z-index: 1;
}

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

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-section .btn-outline-secondary {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}

.hero-section .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

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

.hero-image {
    text-align: center;
    padding: 2rem;
}

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

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: floatAround 8s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(78, 205, 196, 0.3));
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 20%;
    background: linear-gradient(45deg, rgba(255, 154, 86, 0.3), rgba(150, 206, 180, 0.3));
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 60%;
    background: linear-gradient(45deg, rgba(254, 202, 87, 0.3), rgba(255, 107, 107, 0.3));
    animation-delay: 4s;
}

.car-showcase {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-car {
    position: absolute;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.floating-car-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.floating-car-img:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 1);
}

.car-1 {
    top: 20%;
    left: 10%;
    animation: carFloat1 6s ease-in-out infinite;
}

.car-2 {
    top: 40%;
    right: 10%;
    animation: carFloat2 7s ease-in-out infinite;
    animation-delay: 2s;
}

.car-3 {
    bottom: 10%;
    left: 30%;
    animation: carFloat3 8s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes floatAround {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(0px) translateX(20px) rotate(180deg);
        opacity: 1;
    }
    75% { 
        transform: translateY(20px) translateX(10px) rotate(270deg);
        opacity: 0.8;
    }
}

@keyframes carFloat1 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-15px) translateX(10px) scale(1.05); }
}

@keyframes carFloat2 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(10px) translateX(-15px) scale(1.1); }
}

@keyframes carFloat3 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-10px) translateX(15px) scale(1.08); }
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Car Cards */
.car-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
    transition: transform 0.3s ease;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

/* Remove white background for locally uploaded images and Land Rover */
.card-img-top[src*="/static/images/"],
.card-img-top[src*="momentummotorcars.com"] {
    background-color: transparent;
    padding: 0;
}

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

.car-specs {
    font-size: 0.875rem;
}

.car-specs small {
    line-height: 1.5;
}

/* Feature Icons */
.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-icon:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Price styling */
.text-primary {
    font-weight: 700;
}

/* Contact form */
.contact-info h6 {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: inherit;
}

.contact-info a:hover {
    color: var(--bs-primary);
}

/* Car detail page */
.car-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}

.car-details .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

/* Form enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Loading and empty states */
#loadingIndicator,
#noResults {
    margin: 2rem 0;
}

/* Button enhancements */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: var(--bs-dark) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bs-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .d-grid.gap-2.d-md-flex {
        gap: 0.5rem !important;
    }
    
    .d-grid.gap-2.d-md-flex .btn {
        width: 100%;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-card {
    animation: fadeInUp 0.6s ease forwards;
}

.car-card:nth-child(2) { animation-delay: 0.1s; }
.car-card:nth-child(3) { animation-delay: 0.2s; }
.car-card:nth-child(4) { animation-delay: 0.3s; }
.car-card:nth-child(5) { animation-delay: 0.4s; }
.car-card:nth-child(6) { animation-delay: 0.5s; }

/* Search highlight */
.search-highlight {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

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

::-webkit-scrollbar-track {
    background: var(--bs-gray-900);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-gray-600);
    border-radius: 4px;
}

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