html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

:root {
    --brand-blue: #0957c3;
    --brand-light: #42a5f5;
    --text-primary: #0a2b4d;
    --text-secondary: #2a5180;
    --accent: #2196f3;
    --panel-bg: rgba(255, 255, 255, 0.92);
    --panel-border: rgba(255, 255, 255, 0.75);
    --btn-shadow: rgba(9, 87, 195, 0.35);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: #051c3c;
    overflow-x: hidden;
}

/* Landing Page Styles */
.sky-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top left, rgba(255,255,255,0.25) 0%, transparent 50%), radial-gradient(ellipse at top right, rgba(255,255,255,0.25) 0%, transparent 50%), linear-gradient(to bottom, #0a2d5e 0%, #0e4187 20%, #2169cb 40%, #57a0f0 75%, #82c4ff 100%);
    overflow: hidden;
}

/* Animated clouds */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    filter: blur(40px);
}

.cloud-1 {
    width: 280px;
    height: 120px;
    top: 15%;
    left: 10%;
    opacity: 0.45;
    animation: float-1 24s ease-in-out infinite alternate;
}

.cloud-2 {
    width: 400px;
    height: 150px;
    top: 30%;
    left: 65%;
    opacity: 0.3;
    animation: float-2 32s ease-in-out infinite alternate;
}

.cloud-3 {
    width: 320px;
    height: 100px;
    top: 60%;
    left: 25%;
    opacity: 0.35;
    animation: float-3 28s ease-in-out infinite alternate;
}

.cloud-4 {
    width: 220px;
    height: 80px;
    top: 75%;
    left: 70%;
    opacity: 0.25;
    animation: float-4 22s ease-in-out infinite alternate;
}

@keyframes float-1 {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(40px) translateY(20px);
    }
}

@keyframes float-2 {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-50px) translateY(30px);
    }
}

@keyframes float-3 {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(60px) translateY(-20px);
    }
}

@keyframes float-4 {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-30px) translateY(-15px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cloud {
        animation: none !important;
    }
}

/* Content */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Logo */
.logo {
    position: absolute;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
}

    .logo-mark::after {
        content: "";
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
    }

.logo-text {
    color: white !important; /* Ensure text stays white */
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Content card */
.content-card {
    position: relative;
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    max-width: 860px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 20, 50, 0.3), 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--panel-border);
    overflow: hidden;
}

    .content-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
        pointer-events: none;
    }

/* Card content */
.headline {
    font-size: clamp(2.0rem, 5vw, 2.4rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    background: linear-gradient(to right, #0a2d5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    font-weight: 800;
}

.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin: 0 0 2rem;
    opacity: 0.9;
    font-weight: 500;
    max-width: 620px;
}

.message {
    font-size: clamp(1.15rem, 2.8vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

    .message a {
        color: var(--brand-blue);
        font-weight: 600;
        text-decoration: none;
        position: relative;
        white-space: nowrap;
    }

        .message a::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--brand-blue);
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease;
        }

        .message a:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

/* Button styles */
.cta-button {
    display: inline-block;
    background: linear-gradient(to right, var(--brand-blue), #1976D2);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px var(--btn-shadow);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px var(--btn-shadow);
    }

    .cta-button:active {
        transform: translateY(1px);
    }

    .cta-button::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: 0.5s;
    }

    .cta-button:hover::after {
        left: 100%;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        position: relative;
        top: 0;
        left: 0;
        margin: 20px auto 30px;
        justify-content: center;
    }

    .container {
        padding: 1.5rem;
        flex-direction: column;
    }

    .content-card {
        padding: 2.5rem 1.75rem;
        text-align: center;
    }

    .tagline {
        margin-left: auto;
        margin-right: auto;
    }
}

.moved-image {
    padding-right: 30px;
}
/* Video Canvas Styling */
.video-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

/* Blue overlay for the video to match brand colors */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 45, 94, 0.6) 0%, rgba(30, 86, 196, 0.5) 50%, rgba(90, 166, 255, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Make the original sky background a fallback */
.sky-bg {
    z-index: -3;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hide clouds when video is playing */
.video-is-playing .sky-bg {
    display: none;
}

/* Container layout adjustments */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 5rem; /* Added bottom padding */
    min-height: 100vh;
    gap: 50px; /* Increased space between content-card and car images */
    max-width: 1200px;
    margin: 0 auto;
}

/* Content card styling */
.content-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 3.5rem;
    width: 100%;
    max-width: 660px;
    box-shadow: 0 25px 60px rgba(0, 20, 50, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.75);
    text-align: center; /* Center text content */
}

/* Headline container with icon */
.headline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.moving-stick-icon {
    width: auto;
    height: 40px; /* Adjust based on your icon size */
    object-fit: contain;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* Typography - Updated */
.headline {
    font-size: clamp(2rem, 5vw, .7rem);
    line-height: 1;
    background-clip: text;
    font-weight: 800;
    margin: 0; /* Remove margin since the container handles spacing */
    padding-bottom: 20px;
}

.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #2a5180;
    margin: 0 0 2rem;
    opacity: 0.9;
    font-weight: 500;
}

.message {
    font-size: clamp(1.15rem, 2.8vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #0a2b4d;
}

    .message a {
        color: #0957c3;
        font-weight: 600;
        text-decoration: none;
        position: relative;
    }

        .message a::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #0957c3;
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease;
        }

        .message a:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

/* Button container for centering */
.button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Button - Updated to purple */
.cta-button {
    display: inline-block;
    background: linear-gradient(to right, #5e24a0, #8a3dd4); /* Purple gradient */
    color: white;
    font-size: 1.1rem;
    font-weight: 700; /* Slightly bolder */
    letter-spacing: 0.5px; /* Added letter spacing for emphasis */
    text-decoration: none;
    padding: 1rem 2.25rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(94, 36, 160, 0.4); /* Shadow matches purple */
    position: relative;
    overflow: hidden;
    text-transform: uppercase; /* Makes "GET BETTER LEADS" stand out */
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(94, 36, 160, 0.5); /* Shadow matches purple */
        color: white;
        background: linear-gradient(to right, #682db0, #9646e0); /* Slightly brighter on hover */
    }

/* Car Images Container styling - FIXED */
.car-images-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 700px;
    flex-wrap: wrap;
    padding-bottom: 20px; /* Ensure images aren't cut at bottom */
    margin-top: -120px;
}

.car-image {
    position: relative;
    width: 300px; /* Slightly larger */
    height: 190px; /* Slightly larger */
    border-radius: 16px;
    overflow: hidden;
}

    .car-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 16px;
    }

.car-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none; /* Ensure we can click through */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1.5rem 4rem;
        gap: 40px;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .headline-container {
        flex-direction: column;
        gap: 10px;
    }

    .moving-stick-icon {
        height: 32px;
    }
}

@media (max-width: 650px) {
    .car-images-container {
        gap: 24px;
    }

    .car-image {
        width: 100%;
        max-width: 340px;
        height: auto; /* Auto height to maintain aspect ratio */
    }

        .car-image img {
            aspect-ratio: 16/9; /* Maintain aspect ratio */
            height: auto;
        }
}

/* Shrink car images and push them down for mobile vertical layout */
@media (orientation: portrait) and (max-width: 600px) {
    /* Move the cars downward as a group */
    .car-images-container {
        /* Bring cars up more on mobile portrait */
        margin-top: clamp(-80px, -8vh, -24px) !important;
    }

        .car-images-container .car-image {
            width: clamp(110px, 35vw, 180px) !important;
        }

            .car-images-container .car-image img {
                width: 100% !important;
                height: auto !important;
                display: block;
            }
}