/* LuxuryCarHire Custom Styles */

/* Color Variables */
:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #FFD700; /* Deep Bright Yellow */
    --dark-blue: #001a33;
    --light-blue: #004080;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Custom Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

//* Enhanced Logo Styles */
.navbar-brand {
    max-width: 900px; /* Increased to accommodate wider logo */
    padding: 8px 0; /* Added vertical padding for breathing room */
    display: flex;
    align-items: center; /* Ensures perfect vertical centering */
}

.navbar-brand img {
    all: unset !important;
    display: block !important; /* Change to block for better control */
    height: 105px !important; /* Increased from 95px */
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    margin-right: 20px; /* Increased spacing from nav items */
    
    /* Enhanced visibility features */
    filter: 
        drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)) /* Deeper shadow */
        brightness(1.05); /* Slight brightness boost */
    transition: all 0.3s ease; /* Smooth hover effect */
}

/* Hover effect for better user feedback */
.navbar-brand img:hover {
    filter: 
        drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3))
        brightness(1.1);
}

/* Mobile optimization */
@media (max-width: 992px) {
    .navbar-brand {
        max-width: 500px;
    }
    
    .navbar-brand img {
        height: 85px !important; /* Larger than previous mobile size */
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        max-width: 320px; /* Increased from 240px */
        padding: 5px 0;
    }
    
    .navbar-brand img {
        height: 65px !important; /* Increased from 50px */
        margin-right: 12px;
        filter: 
            drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2))
            brightness(1.08); /* Stronger contrast on mobile */
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        max-width: 280px;
    }
    
    .navbar-brand img {
        height: 55px !important;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.6));
}

.carousel-item {
    min-height: 100vh;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: var(--secondary-color);
    border: 2px solid var(--white);
    opacity: 0.7;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Fleet Cards */
.fleet-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
}

.fleet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

.fleet-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.fleet-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.price-tag {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--white);
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 1.8rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Service Icons */
.service-icon {
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.service-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.1);
    background: linear-gradient(135deg, var(--secondary-color), #ffed4a);
}

.service-icon:hover i {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color)) !important;
}

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

footer .social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-section .container {
        padding-top: 100px;
    }
    
    .fleet-card .card-img-top {
        height: 200px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        max-height: 40px; /* Smaller logo on mobile for better fit */
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

/* Luxury Animations */
.luxury-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: luxuryFadeIn 1s ease forwards;
}

@keyframes luxuryFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Specific Styles */

/* Fleet Grid */
.fleet-grid .card {
    height: 100%;
    transition: all 0.3s ease;
}

.fleet-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.15);
}

/* Fleet Detail Page */
.fleet-detail-header {
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    color: var(--white);
    padding: 4rem 0;
    margin-top: 76px;
}

.fleet-gallery img {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.fleet-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.2);
}

/* Services Page */
.service-detail {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

/* About Page */
.team-member {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

/* Contact Page */
.contact-info {
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    color: var(--white);
    border-radius: 20px;
    padding: 3rem;
}

.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
}

/* Thank You Page */
.thank-you-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.thank-you-card {
    background: var(--white);
    border-radius: 25px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    text-align: center;
    max-width: 600px;
    margin: 2rem;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), #ffed4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: checkmark 0.8s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Booking Form Styles */
.booking-form {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
    margin-top: 2rem;
}

.booking-form h4 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Fleet Specifications */
.fleet-specs {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-color);
}

.spec-value {
    color: var(--text-light);
}

/* Luxury Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #ffed4a);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .navbar,
    footer {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}
