/**
 * KaiCab System - Custom Styles
 * Modern, responsive design with smooth animations
 */

/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #2fa8db;
    --primary-dark: #1e7fa8;
    --secondary-color: #ff710f;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #222222;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
    background-color: #fbfcfd;
}

/* Max Container Width for a wide-screen look */
@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1400px !important;
    }
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav {
    flex-direction: row !important;
}

.nav-item {
    margin-left: 1rem;
}

.nav-link {
    transition: var(--transition);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

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

@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column !important;
    }

    .nav-item {
        margin-left: 0;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 650px;
    background: #0f172a;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Abstract Speed Lines Texture */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    background-size: 200% 2px, 2px 200%;
    animation: motionBlur 10s linear infinite;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

@keyframes motionBlur {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

/* ===================================
   Search Card
   =================================== */
.search-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.search-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-select,
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(47, 168, 219, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(47, 168, 219, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ===================================
   Section Styles
   =================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* ===================================
   How It Works Section (Modern)
   =================================== */
.how-it-works {
    background: #f8fafc;
    position: relative;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.modern-step-card {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.modern-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.step-badge {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(47, 168, 219, 0.1);
    line-height: 1;
}

.step-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(47, 168, 219, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.modern-step-card:hover .step-icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(-10deg);
}

.modern-step-card.active {
    background: var(--white);
    border-color: var(--primary-color);
}

.step-body h4 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 700;
}

.step-body p {
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
}

.step-line {
    position: absolute;
    top: 70px;
    right: -24px;
    width: 48px;
    height: 2px;
    border-top: 2px dashed rgba(47, 168, 219, 0.3);
    z-index: -1;
}

@media (max-width: 991px) {
    .step-line {
        display: none;
    }
}

/* ===================================
   Tourist Services Section (Flat Design)
   =================================== */
.tourist-services {
    background: #ffffff;
}

.service-flat-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-flat-card:hover {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.service-flex-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-icon-box {
    min-width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-icon-box.blue {
    background: rgba(47, 168, 219, 0.1);
    color: var(--primary-color);
}

.service-icon-box.orange {
    background: rgba(255, 113, 15, 0.1);
    color: var(--secondary-color);
}

.service-icon-box.green {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.service-icon-box.purple {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.service-icon-box.red {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.service-icon-box.gold {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.service-flat-card:hover .service-icon-box {
    transform: scale(1.1);
}

.service-text h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.service-text p {
    line-height: 1.5;
}

/* ===================================
   Notre Flotte (Modern)
   =================================== */
.modern-vehicle-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.modern-vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vehicle-img-wrapper {
    position: relative;
    height: 250px;
    background: #f1f5f9;
    overflow: hidden;
}

.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: var(--transition);
}

.modern-vehicle-card:hover .vehicle-img {
    transform: scale(1.05);
}

.vehicle-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.vehicle-seats-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.vehicle-info {
    padding: 25px;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.spec-item {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.spec-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===================================
   Features Section
   =================================== */
.feature-box {
    padding: 30px 20px;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* ===================================
   Modern Footer Design
   =================================== */
.modern-footer {
    background: #0f172a;
    /* Same as hero bottom/dark base */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 168, 219, 0.3), transparent);
}

.brand-underline {
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 5px;
    border-radius: 2px;
}

.footer-list {
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-item:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(47, 168, 219, 0.3);
}

/* Contact Card in Footer */
.contact-card-footer {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-icon.blue {
    background: rgba(47, 168, 219, 0.15);
    color: var(--primary-color);
}

.contact-icon.orange {
    background: rgba(255, 113, 15, 0.15);
    color: var(--secondary-color);
}

.contact-icon.green {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.footer-bottom {
    margin-top: 50px;
}

/* ===================================
   Testimonials Section (Carousel)
   =================================== */
.testimonials {
    background: #f8fafc;
    /* Subtle grey base */
    position: relative;
    overflow: hidden;
}

.testimonial-card-wrapper {
    padding: 20px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.15;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    border: 2px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.author-info h5 {
    font-weight: 700;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    font-weight: 600;
}

.rating-stars {
    color: #ffc107;
    margin-bottom: 5px;
}

/* Carousel Control Customization */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin: 0 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    background-size: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 5px 15px rgba(47, 168, 219, 0.2);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .step-icon,
    .vehicle-icon {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        min-height: 500px;
    }
}

/* ===================================
   Utilities
   =================================== */
.smooth-scroll {
    scroll-behavior: smooth;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================
   Modern Search Bar Design
   =================================== */
.modern-search-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 80px;
    /* Perfect pill shape on desktop */
    padding: 10px 10px 10px 30px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.modern-search-container:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.modern-search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-input-group {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    flex: 1;
    min-width: 0;
    transition: var(--transition);
    border-radius: 40px;
}

.search-item:hover {
    background: rgba(47, 168, 219, 0.05);
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    opacity: 0.8;
}

.search-field-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-field-content label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.search-select,
.search-input {
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-color);
    padding: 0 5px;
    width: 100%;
    outline: none;
}

.search-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.search-divider {
    width: 1px;
    height: 40px;
    background: #eee;
    margin: 0 10px;
}

/* Modern Button */
.btn-modern-search {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
    box-shadow: 0 8px 15px rgba(47, 168, 219, 0.3);
}

.btn-modern-search:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 12px 20px rgba(47, 168, 219, 0.4);
}

/* Responsive Modern Search */
@media (max-width: 991px) {
    .modern-search-container {
        border-radius: 25px;
        padding: 25px;
    }

    .modern-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .search-divider {
        width: 100%;
        height: 1px;
        margin: 15px 0;
    }

    .search-item {
        padding: 5px 0;
    }

    .btn-modern-search {
        width: 100%;
        height: 55px;
        border-radius: 12px;
        margin-top: 20px;
        font-size: 1.1rem;
        transform: none !important;
    }
}

/* ===================================
   Vehicle Book Button
   =================================== */
.btn-vehicle-book {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-vehicle-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: white;
    filter: brightness(1.1);
}

.btn-vehicle-book:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .btn-vehicle-book {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}