﻿/* =========================================================
   UNIVERSAL EMS - PREMIUM LANDING PAGE UI
========================================================= */

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --white: #ffffff;
    --light-bg: #f8fbff;
    --card-bg: rgba(255,255,255,.85);
    --border: rgba(226,232,240,.8);
    --shadow-sm: 0 4px 14px rgba(15,23,42,.05);
    --shadow-md: 0 10px 30px rgba(15,23,42,.08);
    --shadow-lg: 0 18px 60px rgba(15,23,42,.12);
    --radius: 24px;
    --transition: .35s ease;
}

/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 28%), radial-gradient(circle at bottom right, rgba(96,165,250,.08), transparent 24%), linear-gradient(to bottom,#f8fbff,#f3f8ff);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

/* =========================================================
   NAVBAR
========================================================= */

/* =========================
   NAVBAR FIX
========================= */

.main-nav {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226,232,240,.7);
    padding: 6px 0;
    min-height: 64px;
    transition: all .3s ease;
    z-index: 999;
}

/* Logo */
.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2563eb !important;
    margin: 0;
    line-height: 1;
}

/* Nav links */
.main-nav .nav-link {
    color: #334155 !important;
    font-size: .92rem;
    font-weight: 600;
    padding: 8px 14px !important;
    border-radius: 10px;
    transition: .25s ease;
}

    .main-nav .nav-link:hover {
        color: #2563eb !important;
        background: rgba(37,99,235,.08);
    }

/* Buttons */
.main-nav .btn {
    padding: 8px 18px;
    font-size: .88rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Mobile */
@media(max-width:991px) {

    .main-nav {
        padding: 10px 0;
    }

    .navbar-collapse {
        padding-top: 15px;
    }

    .nav-buttons {
        margin-top: 15px;
        flex-direction: column;
    }

        .nav-buttons .btn {
            width: 100%;
        }
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    border-radius: 14px;
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
    font-size: .95rem;
}

.btn-primary {
    background: linear-gradient(135deg,var(--primary),var(--primary-light));
    border: none;
    box-shadow: 0 10px 24px rgba(37,99,235,.25);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg,var(--primary-dark),var(--primary));
        box-shadow: 0 18px 30px rgba(37,99,235,.35);
    }

.btn-outline-primary {
    border: 1.5px solid rgba(37,99,235,.25);
    color: var(--primary);
    background: rgba(255,255,255,.8);
}

    .btn-outline-primary:hover {
        background: var(--primary);
        color: white;
    }

/* =========================================================
   HERO IMAGE CARD
========================================================= */

.hero-glass-card {
    position: relative;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(18px);
    border-radius: 30px;
    padding: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* SLIDE WRAPPER */
.hero-slide-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 24px;
}

/* HERO IMAGE */
.hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* FIT IMAGE PERFECTLY */
    object-position: center;
    display: block;
    transition: transform .5s ease;
}

.carousel-item:hover .hero-carousel-img {
    transform: scale(1.03);
}

/* OVERLAY */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,.75) 5%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.10) 100% );
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

/* CONTENT */
.hero-slide-content {
    max-width: 520px;
    color: #fff;
    z-index: 2;
}

/* TITLE */
.hero-slide-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #fff;
}

/* DESCRIPTION */
.hero-slide-description {
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255,255,255,.92);
    margin-bottom: 20px;
}

/* BUTTON */
.hero-slide-btn {
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .95rem;
}

/* CAROUSEL */
#heroCarousel,
.carousel-inner,
.carousel-item {
    border-radius: 24px;
    overflow: hidden;
}

/* INDICATORS */
.carousel-indicators {
    margin-bottom: 16px;
}

    .carousel-indicators button {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50%;
        border: none;
    }

/* MOBILE */
@media (max-width: 768px) {

    .hero-slide-wrapper {
        height: 400px;
    }

    .hero-slide-overlay {
        padding: 24px;
    }

    .hero-slide-title {
        font-size: 1.0rem;
    }

    .hero-slide-description {
        font-size: .62rem;
        line-height: 1.6;
    }
}
/* =========================================================
   TRUST STRIP
========================================================= */

.trust-strip {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.5);
    border-bottom: 1px solid rgba(255,255,255,.5);
}

    .trust-strip h3 {
        font-size: 2.2rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 6px;
    }

    .trust-strip p {
        color: var(--muted);
        font-weight: 500;
    }
.hero-glass-card .carousel-item {
    height: 420px;
}

    .hero-glass-card .carousel-item img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 24px;
        display: block;
    }
@media (max-width: 768px) {
    .hero-glass-card .carousel-item {
        height: 260px;
    }

    .hero-carousel-img {
        height: 260px;
    }
}
/* =========================================================
   SECTIONS
========================================================= */

.section-space {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.section-subtitle {
    max-width: 720px;
    margin: auto;
    color: var(--muted);
    font-size: 1.05rem;
}

.alt-bg {
    background: linear-gradient(to bottom,#ffffff,#f8fbff);
}

/* =========================================================
   CARDS
========================================================= */

.software-card,
.benefit-card,
.about-card,
.testimonial-card {
    position: relative;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 26px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .software-card:hover,
    .benefit-card:hover,
    .about-card:hover,
    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.software-card {
    padding: 34px;
    height: 100%;
}

.benefit-card {
    padding: 34px;
    height: 100%;
}

.about-card {
    padding: 20px;
    height: 100%;
}

.testimonial-card {
    padding: 34px;
    height: 100%;
}

    .testimonial-card p {
        color: var(--muted);
        font-style: italic;
        margin-bottom: 18px;
    }

/* =========================================================
   ICONS
========================================================= */

.icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#dbeafe,#eff6ff);
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(37,99,235,.15);
}

    .icon-wrap.care {
        background: linear-gradient(135deg,#dcfce7,#f0fdf4);
        color: #16a34a;
    }

/* =========================================================
   FAQ
========================================================= */

.accordion-item {
    border: none;
    background: transparent;
}

.accordion-button {
    border-radius: 20px !important;
    padding: 22px 24px;
    font-weight: 600;
    background: rgba(255,255,255,.8);
    box-shadow: var(--shadow-sm);
    border: none;
}

    .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg,#eff6ff,#ffffff);
        color: var(--primary);
        box-shadow: var(--shadow-md);
    }

    .accordion-button:focus {
        box-shadow: none;
    }

.accordion-body {
    background: white;
    border-radius: 0 0 20px 20px;
    color: var(--muted);
}

/* =========================================================
   DEMO FORM
========================================================= */

.demo-request-box {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,.5);
    box-shadow: var(--shadow-lg);
}

.demo-list {
    list-style: none;
    padding: 0;
}

    .demo-list li {
        margin-bottom: 14px;
        font-weight: 500;
        color: #334155;
    }

.form-control {
    border-radius: 16px;
    border: 1px solid rgba(203,213,225,.8);
    padding: 15px 18px;
    background: rgba(255,255,255,.85);
    transition: var(--transition);
}

    .form-control:focus {
        border-color: rgba(37,99,235,.35);
        box-shadow: 0 0 0 5px rgba(37,99,235,.08);
    }

/* =========================================================
   FOOTER
========================================================= */

.main-footer {
    background: radial-gradient(circle at top right, rgba(37,99,235,.15), transparent 30%), linear-gradient(180deg,#0f172a,#020617);
    color: #cbd5e1;
}

    .main-footer h5 {
        color: white;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .main-footer a {
        color: #cbd5e1;
        text-decoration: none;
        transition: var(--transition);
    }

        .main-footer a:hover {
            color: white;
            padding-left: 4px;
        }

/* =========================================================
   IMAGE STYLING
========================================================= */

img {
    max-width: 100%;
}

.about-card img {
    height: 260px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:991px) {

    .hero-title {
        font-size: 2.9rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-carousel-img {
        height: 320px;
    }

    .main-nav .navbar-collapse {
        padding-top: 20px;
    }

    .main-nav .nav-link {
        margin-bottom: 6px;
    }
}

@media(max-width:767px) {

    .hero-section {
        padding: 70px 0;
    }

    .section-space {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-carousel-img {
        height: 240px;
    }

    .hero-points span {
        width: 100%;
        justify-content: center;
    }

    .btn {
        width: 100%;
    }
}
/* =========================
   BACK TO TOP
========================= */

#backToTop {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(37,99,235,.3);
    transition: all .3s ease;
}

    #backToTop:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(37,99,235,.4);
    }


.module-card {
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 30px 25px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.module-icon-wrap {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.module-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

