/* --- Hero Section with Video Background --- */
.hero-section-video-bg {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #0a0a0a; /* Fallback color if video fails to load */
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.hero-content-centered {
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.hero-content-centered h1 {
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow:
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0 4px 10px rgba(0,0,0,0.6);
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 1.8s forwards;
}

.hero-content-centered p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9);
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 2.1s forwards;
}

.hero-content-centered .hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 2.4s forwards;
}

.hero-cta .btn-secondary {
    background-color: #000000;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    box-shadow: none;
}
.hero-cta .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--brand-dark);
    border-color: var(--text-light);
}

/* Keyframes for text animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Section 2: Problem/Solution Section --- */
.problem-solution-section {
    padding: 60px 20px;
    background: linear-gradient(to right, #ffffff 0%, #fbd68a 50%, #ffcb95  100%) !important;
}

.problem-solution-section .container {
    text-align: center;
    background-color: transparent; /* Ensure container is transparent */
}
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.comparison-panel {
    padding: 20px;
    border-radius: 12px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
}
.comparison-panel h3 {
    text-align: center;
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.animation-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.lazy-load-animation {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.solution-text {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

/* --- Section 3: Blueprint Section --- */
.blueprint-section {
    padding: 60px 20px;
    position: relative;
    background: var(--gradient-core);
    transition: background 1.5s ease-in-out;

    --gradient-core: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    --gradient-modules: linear-gradient(135deg, #fff8f5 0%, var(--brand-orange) 150%);
    --gradient-custom: linear-gradient(135deg, #f0f9ff 0%, #00b4d8 150%);
}
.blueprint-section.state-modules { background: var(--gradient-modules); }
.blueprint-section.state-custom { background: var(--gradient-custom); }

/* Hide mobile elements on desktop by default */
.blueprint-background-visual, .blueprint-overlay {
    display: none;
}

.blueprint-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: flex-start;
}
.sticky-graphic {
    position: sticky;
    top: 120px;
    height: 512px;
    aspect-ratio: 1 / 1;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blueprint-animation-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.blueprint-steps { text-align: left; }
.step {
    min-height: 450px;
    padding: 40px 20px;
    border-left: 4px solid var(--border-color);
    transition: border-color 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.step.active { border-left-color: var(--brand-orange); }
.step h3 { margin-top: 0; font-size: 1.8rem; }

/* --- Section 4: Trust Section --- */
.trust-section {

    padding: 80px 20px;
}
.trust-section .container {
    text-align: center;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.trust-item {
    text-align: center;
    padding: 20px;
}
.trust-icon-placeholder {
    font-size: 4rem; /* Large icon size */
    margin-bottom: 20px;
    color: var(--brand-dark);
}
.trust-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.trust-item p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* --- Section 5: Final CTA Section --- */
.final-cta-section {
    background-color: var(--brand-dark);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
}
.final-cta-section .container {
    background-color: transparent;
    box-shadow: none;
}
.final-cta-section h2 {
    color: #fff;
    border-bottom: none;
    font-size: 2.8rem;
}
.final-cta-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-button {
    transform: scale(1);
    transition: transform 0.3s ease;
    animation: pulseGlow 2.5s infinite;
}
.cta-button:hover {
    transform: scale(1.05);
    animation: none; /* Pause pulse on hover */
}

/* --- Keyframe for the CTA button glow --- */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 129, 89, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 129, 89, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 129, 89, 0.4);
    }
}

/* --- Responsive Overrides for these sections --- */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on tablet */
    }
    .final-cta-section h2 {
        font-size: 2.2rem;
    }
}
@media (max-width: 576px) {
    .trust-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}
@media (max-width: 992px) {
    .blueprint-container {
        grid-template-columns: 1fr;
    }
    /* Hide the desktop sticky graphic on mobile */
    .sticky-graphic {
        display: none;
    }
    /* Show the mobile background visual and overlay */
    .blueprint-background-visual {
        display: block;
        position: relative;
        margin: 0 auto 40px auto;
        aspect-ratio: 1 / 1;
        background-color: #000;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .blueprint-overlay {
         display: none;
    }
    .step {
        min-height: auto;
        margin-bottom: 20px;
        padding: 20px;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid var(--border-color);
       background-color: #fff;
        border-radius: 8px;
    }
    .step.active {
        border-left: none;
        border-bottom-color: var(--brand-orange);
    }
}
