/* ============================================================
   CogniFocus
   AI, Machine Learning & Analytics
   Unified Website Theme
   ============================================================ */


/* ============================================================
   1. VARIABLES
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #0a58ca;
    --secondary: #06b6d4;

    --dark: #0f172a;
    --dark-light: #1e293b;

    --light: #f8fafc;
    --light-blue: #eff6ff;

    --text: #334155;
    --text-light: #64748b;

    --white: #ffffff;

    --border: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.8);

    --primary-gradient:
        linear-gradient(
            135deg,
            var(--primary) 0%,
            var(--secondary) 100%
        );

    --card-shadow:
        0 8px 25px rgba(15, 23, 42, 0.08);

    --card-shadow-hover:
        0 18px 40px rgba(37, 99, 235, 0.15);

    --card-hover-transform:
        translateY(-8px);

    --transition:
        all 0.3s ease;
}


/* ============================================================
   2. GLOBAL
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 70px;

    font-family:
        "Inter",
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    color: var(--text);

    background-color: var(--light);

    line-height: 1.7;

    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    font-weight: 700;
}


/* ============================================================
   3. SECTIONS
   ============================================================ */

.section {
    padding: 100px 0;
}


/* ============================================================
   4. HEADINGS
   ============================================================ */

h2 {
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: "";

    width: 70px;
    height: 4px;

    display: block;

    margin-top: 10px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );
}


/* Center the decorative line when heading is centered */

.text-center h2::after {
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   5. NAVBAR
   ============================================================ */

.navbar {
    background:
        rgba(15, 23, 42, 0.92) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;

    font-size: 1.35rem;

    letter-spacing: -0.5px;

    color: var(--white) !important;
}

.nav-link {
    color:
        rgba(255, 255, 255, 0.85) !important;

    font-weight: 500;

    transition:
        color 0.2s ease;
}

.nav-link:hover {
    color: #38bdf8 !important;
}

.navbar-toggler {
    box-shadow: none !important;
}


/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn-primary {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    border: none;

    border-radius: 10px;

    padding: 12px 28px;

    font-weight: 600;

    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);

    opacity: 0.95;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:focus {
    box-shadow:
        0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}


/* ============================================================
   7. ABOUT / HERO
   ============================================================ */

#about {
    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );
}

#about p {
    font-size: 1.05rem;
}


/* ============================================================
   8. FEATURE CARDS
   ============================================================ */

.feature-card {
    height: 100%;

    border: 1px solid var(--border-light);

    border-radius: 16px;

    background: var(--white);

    transition:
        all 0.3s cubic-bezier(
            0.165,
            0.84,
            0.44,
            1
        );
}

.feature-card:hover {
    transform:
        var(--card-hover-transform);

    box-shadow:
        0 1rem 3rem
        rgba(15, 23, 42, 0.08) !important;

    border-color:
        #cbd5e1;
}

.feature-card h5 {
    color: var(--dark);
}

.feature-card p {
    color: var(--text-light);
}


/* ============================================================
   9. FEATURE / ICON BOX
   ============================================================ */

.icon-box {
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    transform: translateY(-2px);
}


/* ============================================================
   10. JOURNEY STEPS
   ============================================================ */

.journey-step {
    background: var(--white);

    border: 1px solid var(--border);

    transition:
        all 0.2s ease;
}

.journey-step:hover {
    border-color:
        var(--primary);

    background:
        #f0f9ff;
}


/* ============================================================
   11. SERVICES
   ============================================================ */

#services {
    background: var(--white);
}


/* Service card */

#services .card {
    height: 100%;

    border: none;

    border-radius: 16px;

    margin-bottom: 20px;

    background: var(--white);

    box-shadow:
        var(--card-shadow);

    transition:
        all 0.3s ease;
}

#services .card:hover {
    transform:
        var(--card-hover-transform);

    box-shadow:
        var(--card-shadow-hover);
}


/* Service card title */

#services .card h5 {
    color: var(--primary);

    margin-bottom: 15px;

    font-weight: 700;
}


/* Service lists */

#services .card ul {
    padding-left: 20px;
}

#services .card li {
    margin-bottom: 8px;

    color: var(--text);
}


/* ============================================================
   12. OPTIONAL MODERN SERVICE CARD
   ============================================================ */

/*
   Use .service-card instead of .card if you want
   the enhanced animated service design.
*/

.service-card {
    position: relative;

    height: 100%;

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background: var(--white);

    overflow: hidden;

    box-shadow:
        var(--card-shadow);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        var(--primary-gradient);

    transform:
        scaleX(0);

    transform-origin:
        left;

    transition:
        transform 0.35s ease;
}

.service-card:hover {
    transform:
        translateY(-10px);

    border-color:
        rgba(37, 99, 235, 0.3);

    box-shadow:
        var(--card-shadow-hover);
}

.service-card:hover::before {
    transform:
        scaleX(1);
}


/* Service icon */

.service-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.12),
            rgba(6, 182, 212, 0.12)
        );

    color:
        var(--primary);

    font-size: 1.6rem;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease;
}

.service-card:hover .service-icon {
    background:
        var(--primary-gradient);

    color:
        var(--white);

    transform:
        scale(1.08)
        rotate(2deg);
}

.service-card h5 {
    color:
        var(--dark);

    font-size:
        1.25rem;

    font-weight:
        700;

    margin-bottom:
        18px;
}

.service-card ul {
    padding-left:
        20px;

    margin-bottom:
        0;
}

.service-card li {
    color:
        var(--text-light);

    margin-bottom:
        10px;

    line-height:
        1.5;
}

.service-card li:last-child {
    margin-bottom:
        0;
}

.service-card li::marker {
    color:
        var(--primary);
}


/* ============================================================
   13. CONTACT
   ============================================================ */

#contact {
    background:
        #f1f5f9;
}

#contact p {
    font-size:
        1.05rem;
}


/* Contact icon boxes */

#contact .bg-primary {
    background:
        var(--primary-gradient) !important;
}

#contact .d-flex:hover .rounded-3 {
    transform:
        translateY(-2px);

    transition:
        transform 0.3s ease;
}


/* ============================================================
   14. FORMS
   ============================================================ */

form {
    background:
        var(--white);

    padding:
        35px;

    border-radius:
        18px;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.08);
}

.form-control,
.form-select {
    padding:
        0.75rem 1rem;

    border:
        1px solid #cbd5e1;

    border-radius:
        0.5rem;

    color:
        var(--text);
}

.form-control::placeholder {
    color:
        #94a3b8;
}

.form-control:focus,
.form-select:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(13, 110, 253, 0.15);
}


/* ============================================================
   15. JUSTIFIED TEXT
   ============================================================ */

.justified {
    text-align:
        justify;

    text-justify:
        inter-word;

    hyphens:
        auto;
}


/* ============================================================
   16. FOOTER
   ============================================================ */

footer,
.footer {
    background-color: #02307a !important;
    background: #02307a !important;
    color: var(--white);
}
footer .text-secondary {
    color:
        #94a3b8 !important;
}


/* ============================================================
   17. RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {

    .section {
        padding:
            80px 0;
    }

    .service-card {
        padding:
            25px;
    }

}


@media (max-width: 768px) {

    body {
        padding-top:
            65px;
    }

    .section {
        padding:
            60px 0;
    }

    h2 {
        font-size:
            1.8rem;
    }

    form {
        padding:
            25px;
    }

    .feature-card {
        padding:
            25px !important;
    }

    .service-card {
        padding:
            25px;
    }

    .service-card:hover {
        transform:
            translateY(-5px);
    }

}


@media (max-width: 576px) {

    .section {
        padding:
            50px 0;
    }

    .service-card {
        padding:
            22px;
    }

    .service-icon {
        width:
            52px;

        height:
            52px;

        font-size:
            1.4rem;
    }

    form {
        padding:
            20px;
    }

}
