/* CarsHub365 - Modern Homepage Design */
/* Premium, sleek, and professional styling with smooth animations */

:root {
    --primary-gradient: linear-gradient(135deg, #0064DC 0%, #0082FF 100%);
    --secondary-gradient: linear-gradient(135deg, #00D4FF 0%, #0082FF 100%);
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(0, 130, 255, 0.3);
    --accent-color: #00D4FF;
    --success-color: #00c853;
    --warning-color: #ff9100;
    --danger-color: #ff3b30;
}

/* ================== GLOBAL STYLES ================== */
body.homepage-layout {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ================== NAVBAR STYLING ================== */
.homepage-navbar {
    background: rgba(5, 8, 18, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.homepage-navbar.scrolled {
    background: rgba(5, 8, 18, 0.95) !important;
    padding: 0.75rem 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.navbar-brand-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.navbar-brand-img:hover {
    transform: scale(1.05);
}

.navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar .lang-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar .lang-link:hover {
    background: rgba(0, 130, 255, 0.15) !important;
    border-color: var(--accent-color) !important;
}

.navbar .lang-link.active {
    background: var(--primary-gradient) !important;
    border-color: var(--accent-color) !important;
}

.navbar .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
}

.navbar .btn-outline-light:hover {
    background: rgba(0, 130, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.navbar .btn-primary {
    background: var(--primary-gradient);
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 100, 220, 0.3);
}

.navbar .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 100, 220, 0.5);
    transform: translateY(-2px);
}

/* ================== HERO SECTION ================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 130, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 100, 220, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 130, 255, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease-out;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    gap: 1.5rem !important;
}

.hero-section .btn {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section .btn-outline-light {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-section .btn-outline-light:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}

.hero-section .btn-primary {
    background: var(--primary-gradient);
    border: 2px solid transparent;
    color: white;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-section .btn-primary:hover {
    box-shadow: 0 12px 30px rgba(0, 100, 220, 0.5);
    transform: translateY(-3px);
}

/* ================== ANIMATIONS ================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ================== CARDS & COMPONENTS ================== */
.service-card, .step-card, .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover, .step-card:hover, .card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 130, 255, 0.2);
}

/* ================== BUTTONS ================== */
.btn-rounded {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-gradient:hover {
    box-shadow: 0 8px 20px rgba(0, 100, 220, 0.4);
    transform: translateY(-2px);
}

/* ================== UTILITIES ================== */
.bg-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0082FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
        min-height: 90vh;
    }

    .hero-section h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .navbar-brand-img {
        height: 35px;
    }

    .hero-section::before,
    .hero-section::after {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 80px;
        min-height: 85vh;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.75rem !important;
    }

    .hero-section .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }

    .navbar .lang-link span {
        display: none;
    }

    .navbar .lang-link {
        padding: 0.5rem 0.75rem !important;
    }
}

/* ================== SCROLL EFFECTS ================== */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ================== ADDITIONAL HOVER EFFECTS ================== */
a, button {
    transition: all 0.3s ease;
}

/* ================== FOOTER SPACING ================== */
.homepage-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, section {
    flex: 1;
}

/* ================== IMPROVED LINK STYLING ================== */
.navbar a[href] {
    text-decoration: none;
    color: inherit;
}

.navbar a[href]:hover {
    text-decoration: none;
}
