/* =====================================================
   FULLY RESPONSIVE SERVICE PAGE CSS
   Mobile + Tablet + Laptop + Desktop + Large Screens
===================================================== */

:root {
    --navy: #0f1f4b;
    --blue: #2563eb;
    --purple: #6d5dfc;
    --red: #ef4444;
    --soft-blue: #eef4ff;
    --soft-red: #fff1f2;
    --text: #111827;
    --muted: #4b5563;
    --border: #e5e7eb;
    --bg: #f8fafc;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: #fff;
    color: var(--text);
    width: 100%;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}


img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= HERO SECTION ================= */

.hero {
    background: linear-gradient(87deg,
            rgba(205, 201, 237, 0.5),
            rgba(191, 228, 245, 0.45));
    display: flex;
    align-items: center;
    padding: 30px;
}

.hero-copy {
    max-width: 1000px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 600;
    font-size: 20px;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-text {
    font-size: 15px;
    line-height: 1.55;
    color: #333;
    font-family: 'Poppins', system-ui, sans-serif;
    max-width: 900px;
    margin-bottom: 10px;
}

/* ================= BUTTONS ================= */

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary {
    background: #3b82f6e0;
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.secondary {
    background: #3b82f6d4;
    color: #fff;
    border: none;
    font-weight: 400;
}


/* ================= MAIN SECTION ================= */

.section {
    padding: 30px;
    background: #ffffff;
    text-align: center;
    font-family: 'Poppins', system-ui, sans-serif;
}
section, .panel {
    scroll-margin-top: 105px; /* adjust to your header height */
}
.section h2 {
    font-size: 20px;
    color: var(--blue);
    font-weight: 600;
    text-transform: uppercase;
}

.section-intro {
    max-width: 1000px;
    margin: 0 auto 15px;
    font-size: clamp(13px, 1.4vw, 15px);
    line-height: 1.8;
    color: #444;
}

/* ================= DEMO PANEL ================= */

.panel {
    max-width: 1250px;
    margin: 0 auto;
    background: linear-gradient(87deg,
            rgba(205, 201, 237, 0.5),
            rgba(191, 228, 245, 0.45));
    border: 1px solid var(--border);
    border-radius: 18px;
    width: 75%;
    padding: 15px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(15, 31, 75, 0.07);
}

.panel h3 {
    font-size: 20px;
    font-weight: 500;
    color: #1d4ed8;
}

.panel p {
    font-size: 16px;
    color: #111827;
    line-height: 1.7;
}

p {
    font-size: 16px;
}

/* ================= VIDEO ================= */
.video-wrapper {
    width: 100%;
    max-width: 900px;
    /* controls actual video size */
    margin: 30px auto 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(15, 31, 75, 0.05);
}

/* Proper video sizing */

.video-wrapper video {
    width: 100%;
    height: auto !important;
    max-height: 500px;
    /* prevents huge stretched video */
    display: block;
    margin: 0 auto;
    border-radius: 14px;
    background: #000;
    object-fit: contain;
    /* important fix */
}

/* remove browser forced sizing */

video {
    width: 100%;
    height: auto !important;
    display: block;
}

.video-placeholder {
    min-height: 250px;
    border-radius: 16px;
    background: linear-gradient(87deg,
            rgba(205, 201, 237, 0.5),
            rgba(191, 228, 245, 0.45));
    border: 2px dashed #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f1f4b;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    padding: 30px;
}

/* ================= FALLBACK SECTION ================= */

.fallback-section {
    padding: 80px 20px;
    text-align: center;
}

.fallback-section h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 14px;
}

.fallback-section p {
    font-size: 16px;
    color: #555;
}




/* =====================================================
   TABLET VIEW
===================================================== */

@media (max-width: 992px) {
    .hero {
        padding: 60px 30px;
        min-height: auto;
    }

       .hero-actions {
        justify-content: center;
        flex-direction: row;
        align-items: center;
    }

    .section {
        padding: 60px 30px;
    }

    .hero-actions {
        gap: 14px;
    }

    .panel {
        padding: 30px;
    }

    .panel h3 {
        font-size: 24px;
    }

    .video-placeholder {
        min-height: 220px;
    }

    .panel {
        margin: 0 auto;
        width: 100%;
        padding: 0px;
        text-align: left;
    }

}

/* =====================================================
   MOBILE VIEW
===================================================== */

@media (max-width: 768px) {
    .hero {
        padding: 10px;
        text-align: left;
    }

    .hero-text{
        margin: 5px auto;
    }

    .hero-copy {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: row;
        align-items: center;
    }

    .section {
        padding: 50px 20px;
    }

    .video-placeholder {
        min-height: 180px;
    }

    .panel {
        padding: 22px;
        border-radius: 18px;
    }

    .panel h3 {
        font-size: 22px;
    }

    .panel p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .video-wrapper {
        padding: 8px;
        border-radius: 14px;
    }

    .video-placeholder {
        min-height: 180px;
        font-size: 16px;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {
    .hero-actions {
        display: flex;
        gap: 10px;
        flex-direction: row;
        margin: 0px auto;
    }

    .btn {
        flex: 1;
        text-align: center;
        padding: 10px;
    }

    .hero h1 {
        line-height: 1.3;
        margin: 5px 0px;
    }

    .video-placeholder {
        min-height: 150px;
        font-size: 15px;
    }

    .panel {
        padding: 18px;
    }

    .panel h3 {
        font-size: 20px;
    }

    .video-placeholder {
        min-height: 150px;
        font-size: 14px;
        padding: 20px;
    }
}