/* TASK 1: Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove ALL default spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    width: 100%;
}

/* Remove any default container padding */
body > * {
    margin: 0 !important;
}

/* Professional Navigation Styles - Professional Gray Theme */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    height: 60px;
    /* TASK 2: Make navbar sticky so buttons stay visible */
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
    margin: 0 !important;
}

/* Add backdrop blur when scrolling */
.navbar.scrolled {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #f39c12 !important;
}

.navbar-brand i {
    color: #f39c12;
    filter: drop-shadow(0 0 8px rgba(243, 156, 18, 0.6));
}

.nav-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin: 0 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.4rem 0.9rem !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    color: #ecf0f1 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: #f39c12 !important;
}

.btn-auth {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #1a202c;
    font-weight: 700;
    padding: 0.4rem 1.3rem;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    font-size: 0.95rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
    color: #1a202c;
}

.user-dropdown {
    background: rgba(243, 156, 18, 0.1);
    border-radius: 8px;
    padding: 0.4rem 0.9rem !important;
}

.user-dropdown:hover {
    background: rgba(243, 156, 18, 0.2);
}

/* TASK 3: Hero Section - Remove ALL gaps and optimize height */
.hero-section {
    position: relative;
    height: calc(100vh - 60px);
    max-height: 900px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 73, 94, 0.80) 100%),
                url('/static/images/hero-car.jpg') center center/cover no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(243, 156, 18, 0.04) 0%, transparent 50%),
                linear-gradient(135deg, rgba(44, 62, 80, 0.70) 0%, rgba(52, 73, 94, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem;
    animation: heroContentSlide 1.2s cubic-bezier(0.2, 0, 0, 0.1);
    margin: 0 !important;
}

@keyframes heroContentSlide {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: titleReveal 1s ease-out 0.2s both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title .title-line {
    display: block;
    margin-bottom: 0.3rem;
}

.hero-title .title-line:first-child {
    color: #ffffff;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.3),
        0 3px 20px rgba(0, 0, 0, 0.8),
        0 6px 40px rgba(0, 0, 0, 0.6);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.hero-title .title-line:last-child {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 25%, #e67e22 50%, #d35400 75%, #f39c12 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(243, 156, 18, 0.6)) 
            drop-shadow(0 5px 15px rgba(230, 126, 34, 0.4))
            drop-shadow(0 10px 30px rgba(211, 84, 0, 0.3));
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-content .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.9),
        0 4px 25px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 255, 255, 0.1);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: buttonsSlide 1s ease-out 0.6s both;
    margin: 0 !important;
}

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

.hero-buttons .btn {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

.hero-buttons .btn-accent {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
    border: 2px solid #f39c12;
    color: #1a202c;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-accent:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(243, 156, 18, 0.6),
                0 0 60px rgba(230, 126, 34, 0.4);
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 50%, #e67e22 100%);
}

.hero-buttons .btn-outline-light {
    border: 2.5px solid #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-buttons .btn-outline-light:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #2c3e50;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.9));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(230, 126, 34, 0.1) 100%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.2);
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(5) {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 15%;
    animation-delay: 3s;
}

.floating-element:nth-child(6) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

/* Features Section - Professional Color Theme */
.features-section {
    background: linear-gradient(to bottom, #ecf0f1, #ffffff);
    padding: 5rem 0;
    position: relative;
    margin: 0 !important;
    border: none !important;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #7f8c8d;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(52, 73, 94, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(52, 73, 94, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2c3e50, #34495e, #f39c12, #e67e22);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(52, 73, 94, 0.2),
        0 0 50px rgba(52, 73, 94, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.4);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-description {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #5d6d7e;
    font-size: 0.9rem;
}

.feature-card .btn-outline-primary {
    position: relative;
    overflow: hidden;
    border-color: #2c3e50;
    color: #2c3e50;
}

.feature-card .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 73, 94, 0.3), transparent);
    transition: left 0.5s ease;
}

.feature-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #2c3e50;
    color: white;
}

.feature-card .btn-outline-primary:hover::before {
    left: 100%;
}

/* Stats Section - Professional Theme */
.stats-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #4a5f7f 100%);
    padding: 4rem 0;
    margin: 0 !important;
    border: none !important;
}

.stat-item {
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Why Choose Section */
.why-choose-section {
    background: #ecf0f1;
    padding: 5rem 0;
    margin: 0 !important;
    border: none !important;
}

.why-choose-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    width: 100%;
}

.why-choose-image img:hover {
    transform: scale(1.03);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.1), rgba(52, 73, 94, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.benefit-content h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #4a5f7f 100%);
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    margin: 0 !important;
    border: none !important;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(243, 156, 18, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(52, 73, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-content h2 {
    color: #ffffff;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 255, 255, 0.1);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.cta-content p {
    color: #ffffff;
    text-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.7);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-buttons .btn-light {
    background: #ffffff;
    color: #2c3e50;
    border: none;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #1a202c;
}

.cta-buttons .btn-outline-light {
    border: 3px solid #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.cta-buttons .btn-outline-light:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #2c3e50;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5);
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-section {
        height: calc(100vh - 55px);
        max-height: 800px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-divider {
        display: none;
    }
    
    .why-choose-section .col-lg-6:last-child {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar {
        padding: 0.4rem 0;
        height: 55px;
        min-height: 55px;
    }
    
    .hero-section {
        height: calc(100vh - 55px);
        max-height: 700px;
        background-attachment: scroll;
        background-size: cover;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(44, 62, 80, 0.85) 0%, rgba(52, 73, 94, 0.82) 100%);
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title .title-line:first-child {
        font-size: 1.5rem;
    }
    
    .hero-title .title-line:last-child {
        font-size: 1.8rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
        font-size: 1.5rem;
    }
    
    .features-section {
        padding-top: 3rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
        padding: 2rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin: 0 auto 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .navbar {
        height: 55px;
        min-height: 55px;
    }
    
    .hero-section {
        height: calc(100vh - 55px);
        max-height: 650px;
        padding: 0.5rem 0;
    }
    
    .hero-content {
        padding: 0.8rem;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-title .title-line:first-child {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .hero-title .title-line:last-child {
        font-size: 1.6rem;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        padding: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
        font-size: 1.3rem;
    }
}

@media (max-width: 380px) {
    .hero-section {
        height: calc(100vh - 55px);
        max-height: 600px;
    }
    
    .hero-title .title-line:first-child {
        font-size: 1.2rem;
    }
    
    .hero-title .title-line:last-child {
        font-size: 1.4rem;
    }
    
    .hero-content .lead {
        font-size: 0.85rem;
    }
    
    .hero-buttons .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
}

/* CRITICAL FIX: Remove all potential gaps */
.container, .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.col-12, .col-lg-6, .col-lg-4, .col-md-6, .col-lg-3, .col-md-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 !important;
}

/* Ensure no gaps between sections */
section + section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}