/* Ultra Clean Platform - Main Stylesheet */

:root {
    --primary-color: #1a365d;     /* Deep navy */
    --secondary-color: #e85d04;   /* Burnt orange */
    --accent-color: #fbbf24;      /* Golden amber */
    --dark-bg: #0d1b2a;           /* Very dark navy */
    --light-bg: #f8f7f4;          /* Warm off-white */
    --text-dark: #0d1b2a;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #16a34a;
    --danger-color: #ef4444;
    --surface: #ffffff;
    --surface-2: #f3f2ef;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
}

/* ---- Navbar ---- */
.navbar {
    background: var(--dark-bg);
    padding: 0;
    min-height: 72px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1050;
}

.navbar .container {
    min-height: 72px;
    align-items: center;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* Custom Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    position: relative;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    margin: 0;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.btn-login {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #c74e03;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(232,93,4,0.4);
    color: white;
}

/* Nav links */
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.08);
    transform: none;
}

/* Hero Section */
.hero-section {
    background:
        linear-gradient(to right,
            rgba(13, 27, 42, 0.97) 0%,
            rgba(13, 27, 42, 0.88) 45%,
            rgba(13, 27, 42, 0.45) 70%,
            rgba(13, 27, 42, 0.15) 100%
        ),
        url("../img/car_background.99dfb5160a72.png") center/cover no-repeat;
    color: white;
    padding: 6rem 0 7rem;
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 93, 4, 0.18);
    border: 1px solid rgba(232, 93, 4, 0.4);
    color: var(--accent-color);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
    color: white;
    letter-spacing: -0.02em;
}

.hero-section h1 .accent-word {
    color: var(--secondary-color);
    position: relative;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.75;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
}

.hero-trust-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-item i { color: var(--accent-color); }

/* Hero CTA buttons */
.hero-section .btn-hero-primary {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    animation: fadeInUp 0.8s ease 0.35s both;
}

.hero-section .btn-hero-primary:hover {
    background: #c74e03;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 93, 4, 0.4);
    color: white;
}

.hero-section .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    animation: fadeInUp 0.8s ease 0.4s both;
    backdrop-filter: blur(4px);
}

.hero-section .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .hero-section {
        background:
            linear-gradient(to bottom,
                rgba(13, 27, 42, 0.92) 0%,
                rgba(13, 27, 42, 0.85) 100%
            ),
            url("../img/car_background.99dfb5160a72.png") center/cover no-repeat;
        padding: 4rem 0 5rem;
        text-align: center;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .hero-section p { max-width: 100%; }
    .hero-trust-bar { justify-content: center; }
    .hero-eyebrow { margin-left: auto; margin-right: auto; }
}

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

.hero-illustration {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

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

/* Search Section */
.search-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.search-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-group input,
.search-input-group select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.search-input-group input:focus,
.search-input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-search:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(232, 93, 4, 0.35);
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.categories-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    cursor: pointer;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

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

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
}

.category-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

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

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.category-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

/* Featured Services */
.featured-section {
    padding: 4rem 0;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.service-body {
    padding: 1.5rem;
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge-premium {
    background: #fef3c7;
    color: #d97706;
}

.badge-verified {
    background: #d1fae5;
    color: #059669;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-provider {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.service-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-book {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Search Results */
.search-results {
    margin-top: 2rem;
    display: none;
}

.search-results.active {
    display: block;
}

.result-count {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer p,
.footer .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Testimonial Cards */
.card:hover {
    transform: translateY(-10px) !important;
}

/* Stats Section */
.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.stats-number.text-white {
    -webkit-text-fill-color: white;
}

/* Stats Responsive */
@media (max-width: 768px) {
    .stats-number {
        font-size: 2.5rem;
    }
}

/* Parallax Effect */
[style*="background-attachment: fixed"] {
    will-change: transform;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

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

    [style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }
}

/* Icon Animations */
.fa-shield-alt, .fa-award, .fa-mobile-alt {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Circular Image Hover Effect */
.rounded-circle {
    transition: all 0.4s ease;
    border: 5px solid transparent;
}

.rounded-circle:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4) !important;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    animation: scaleIn 0.3s ease;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Badge Pulse */
.badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(26, 54, 93, 0); }
}

/* ---- Category Icon Wrap (landing page) ---- */
.category-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon-wrap {
    transform: scale(1.12) rotate(4deg);
}

/* Keep old .category-icon working if still referenced */
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* ---- Feature cards (Verified / Rewards / Easy) ---- */
.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

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

/* ---- Dashboard sidebar tweaks (new colors) ---- */
.sidebar {
    background: linear-gradient(180deg, #0d1b2a 0%, #1a2744 100%) !important;
}

/* ---- Footer link colors ---- */
.footer a:hover { color: var(--secondary-color); }

/* ---- Responsive utility ---- */
@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.9rem; }
    .section-title { font-size: 1.5rem; }
    .category-card { padding: 1.5rem 1rem; }
}

/* ---- Back to top button ---- */
#backToTop:hover {
    background: #c74e03 !important;
}

/* ---- Dropdown menu tweaks ---- */
.dropdown-item:hover {
    background: #f3f2ef;
    border-radius: 8px;
}

/* ---- Auth page improvements ---- */
.auth-container {
    min-height: 100vh;
    background: #0d1b2a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
}

.auth-header {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a365d 100%);
    padding: 36px 30px;
    text-align: center;
    color: white;
}

.auth-body {
    padding: 32px 30px 28px;
}

/* ---- Marketplace home search bar override ---- */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
