
/* =========================================================
   ONISTECH INFO SYSTEMS — PREMIUM HOMEPAGE
   File: public/assets/css/home.css
   Bootstrap 5 | Responsive | Brand-aligned
========================================================= */

/* SHARED SECTIONS */

.home-intro,
.home-services,
.home-projects,
.home-global,
.home-benefits,
.home-cta,
.technology-section {
    position: relative;
}

.home-description {
    color: var(--brand-muted);
    font-size: 15px;
    line-height: 1.9;
}

.section-header {
    max-width: 800px;
    margin-bottom: 42px;
}

.section-header.text-center {
    margin-right: auto;
    margin-left: auto;
}

.section-header .section-heading {
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-kicker {
    margin-bottom: 12px;
}

/* INTRODUCTION */

.home-intro {
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 10%, rgba(8, 127, 231, .045), transparent 35%),
        #fff;
}

.intro-image-wrapper {
    position: relative;
    padding: 0 20px 20px 0;
}

.intro-image-wrapper::before {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72%;
    height: 72%;
    content: "";
    background: linear-gradient(135deg, #e5f4ff, #fff0e3);
    border-radius: 18px;
}

.intro-image {
    position: relative;
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(16, 47, 112, .13);
}

.intro-image-caption {
    position: absolute;
    bottom: 38px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 36px);
    padding: 15px 19px;
    color: var(--brand-navy);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(16, 47, 112, .15);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.intro-image-caption i {
    flex-shrink: 0;
    color: var(--brand-orange);
    font-size: 24px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.intro-features > div {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}

.intro-features i {
    flex-shrink: 0;
    margin-top: 4px;
    color: #079b83;
}

/* SERVICES */

.home-services {
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 184, 240, .08), transparent 30%),
        linear-gradient(180deg, #f7faff 0%, #f1f6fc 100%);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 29px 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(16, 47, 112, .035);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card::before {
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 3px;
    content: "";
    background: var(--gradient-brand);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #c9e4fb;
    box-shadow: 0 18px 42px rgba(16, 47, 112, .09);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 23px;
    color: var(--brand-blue);
    background: linear-gradient(145deg, #f5fbff, #e5f3ff);
    border: 1px solid #dcefff;
    border-radius: 14px;
    font-size: 25px;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}

.service-card:hover .service-icon {
    color: #fff;
    background: linear-gradient(145deg, var(--brand-blue), var(--brand-navy));
    transform: translateY(-2px);
}

.service-card h3 {
    margin-bottom: 13px;
    color: var(--brand-navy);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.2px;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 22px;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.9;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    text-decoration: none;
}

.service-link i {
    color: var(--brand-orange);
    transition: transform .2s ease;
}

.service-link:hover {
    color: var(--brand-blue);
}

.service-link:hover i {
    transform: translate(3px, -2px);
}

/* FEATURED PROJECTS */

.home-projects {
    overflow: hidden;
    background: #fff;
}

.home-projects .section-header {
    margin-bottom: 38px;
}

.home-projects .section-heading {
    color: var(--brand-navy);
    line-height: 1.25;
}

.home-projects .project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(16, 47, 112, .045);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-projects .project-card:hover {
    transform: translateY(-6px);
    border-color: #c9e4fb;
    box-shadow: 0 20px 45px rgba(16, 47, 112, .12);
}

.home-projects .project-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #edf3fa;
}

.home-projects .project-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.home-projects .project-card:hover .project-card-image img {
    transform: scale(1.045);
}

/* Support existing cards that use a direct-child image */

.home-projects .project-card > img {
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: 225px;
    object-fit: cover;
    background: #edf3fa;
}

.home-projects .project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 25px;
}

.home-projects .project-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 15px;
    color: #075c9b;
    background: #edf7ff;
    border: 1px solid #d9edfc;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-projects .project-card-body h3 {
    margin-bottom: 12px;
    color: var(--brand-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.3px;
}

.home-projects .project-card-body p {
    flex-grow: 1;
    margin-bottom: 22px;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.9;
}

.home-projects .project-card-body .service-link {
    margin-top: auto;
}

.home-projects .portfolio-disclaimer {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    color: #758094;
    font-size: 12px;
    line-height: 1.8;
}

/* INTERNATIONAL PRESENCE */

.home-global {
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(34, 184, 240, .08), transparent 30%),
        #f5f8fc;
}

.global-card {
    height: 100%;
    padding: 34px 26px;
    text-align: center;
    background: rgba(255, 255, 255, .95);
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.global-card:hover {
    transform: translateY(-5px);
    border-color: #b7e4ff;
    box-shadow: 0 15px 38px rgba(16, 47, 112, .075);
}

.global-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    color: var(--brand-blue);
    background: linear-gradient(145deg, #f5fbff, #e5f3ff);
    border: 1px solid #dcefff;
    border-radius: 50%;
    font-size: 26px;
}

.global-card h3 {
    margin-bottom: 12px;
    color: var(--brand-navy);
    font-size: 18px;
    font-weight: 800;
}

.global-card p {
    margin-bottom: 0;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* WHY CHOOSE ONISTECH */

.home-benefits {
    background: #fff;
}

.benefit-card {
    height: 100%;
    padding: 27px 24px;
    background: #fff;
    border: 1px solid #e2eaf5;
    border-radius: 15px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: #c9e4fb;
    box-shadow: 0 13px 32px rgba(16, 47, 112, .07);
}

.benefit-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--brand-blue);
    background: #eaf7ff;
    border: 1px solid #dcefff;
    border-radius: 12px;
    font-size: 23px;
}

.benefit-card h3 {
    margin: 18px 0 10px;
    color: var(--brand-navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.benefit-card p {
    margin-bottom: 0;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.85;
}

/* FINAL CALL TO ACTION */

.home-cta {
    position: relative;
    overflow: hidden;
    padding: 68px 0;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(34, 184, 240, .25), transparent 34%),
        linear-gradient(115deg, #10275f 0%, #103f8b 55%, #075b9f 100%);
}

.home-cta::before {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 300px;
    height: 300px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .025),
                0 0 0 60px rgba(255, 255, 255, .02);
    pointer-events: none;
}

.home-cta .container {
    position: relative;
    z-index: 1;
}

.cta-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #80d4ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-cta h2 {
    margin: 12px 0 15px;
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.7px;
}

.home-cta p {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 1.85;
}

.home-cta .btn-light {
    padding: 14px 22px;
    color: var(--brand-navy);
    background: linear-gradient(145deg, #fff, #edf6ff);
    border: 1px solid #fff;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease;
}

.home-cta .btn-light:hover {
    transform: translateY(-2px);
    background: #edf7ff;
}

/* TECHNOLOGY EXPERTISE */

.technology-section {
    overflow: hidden;
    background: #fff;
}

.technology-heading {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: end;
    gap: 50px;
    margin-bottom: 42px;
}

.technology-heading .section-heading {
    max-width: 680px;
    margin-bottom: 0;
}

.technology-intro {
    max-width: 490px;
    margin: 0 0 4px;
    color: var(--brand-muted);
    font-size: 15px;
    line-height: 1.9;
}

.technology-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 290px;
    padding: 28px;
    background: linear-gradient(160deg, #fff 0%, #fbfdff 100%);
    border: 1px solid var(--brand-border);
    border-radius: 15px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.technology-card::before {
    position: absolute;
    top: -1px;
    right: 22px;
    left: 22px;
    height: 3px;
    content: "";
    background: var(--gradient-brand);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity .25s ease;
}

.technology-card:hover {
    transform: translateY(-5px);
    border-color: #d1e5f7;
    box-shadow: var(--shadow-card);
}

.technology-card:hover::before {
    opacity: 1;
}

.technology-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.technology-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 24px;
}

.technology-icon-blue {
    color: var(--brand-blue);
    background: #eaf5ff;
}

.technology-icon-orange {
    color: #dc7417;
    background: #fff0e1;
}

.technology-icon-green {
    color: #558d1c;
    background: #eff8e5;
}

.technology-number {
    color: #c3cbd8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.technology-card h3 {
    margin-bottom: 12px;
    color: var(--brand-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
}

.technology-card p {
    flex-grow: 1;
    margin-bottom: 24px;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.9;
}

.technology-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    color: var(--brand-navy);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.technology-link i {
    color: var(--brand-orange);
    transition: transform .2s ease;
}

.technology-link:hover {
    color: var(--brand-blue);
}

.technology-link:hover i {
    transform: translate(3px, -3px);
}

.technology-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 35px;
    padding: 25px 28px;
    background: linear-gradient(110deg, #f5f9ff, #fff9f3);
    border: 1px solid var(--brand-border);
    border-radius: 14px;
}

.technology-footer strong {
    display: block;
    color: var(--brand-navy);
    font-size: 15px;
    font-weight: 800;
}

.technology-footer p {
    margin: 5px 0 0;
    color: var(--brand-muted);
    font-size: 13px;
}

.technology-footer .btn-brand {
    flex-shrink: 0;
}

/* RESPONSIVE: TABLETS AND SMALL LAPTOPS */

@media (max-width: 991.98px) {
    .intro-image {
        height: 380px;
    }

    .service-card {
        padding: 25px 21px;
    }

    .technology-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .technology-card {
        min-height: 275px;
    }

    .home-cta {
        padding: 55px 0;
    }
}

/* RESPONSIVE: MOBILE */

@media (max-width: 767.98px) {
    .home-description {
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .intro-image {
        height: 320px;
    }

    .intro-image-caption {
        bottom: 30px;
        left: 10px;
        padding: 12px 14px;
        font-size: 12px;
    }

    .intro-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 24px 21px;
    }

    .home-projects .section-header {
        margin-bottom: 28px;
    }

    .home-projects .project-card-body {
        padding: 22px;
    }

    .home-projects .project-card-body h3 {
        font-size: 18px;
    }

    .home-projects .project-card > img {
        height: 210px;
    }

    .global-card {
        padding: 28px 22px;
    }

    .benefit-card {
        padding: 23px 20px;
    }

    .technology-heading {
        margin-bottom: 28px;
    }

    .technology-card {
        min-height: auto;
        padding: 24px;
    }

    .technology-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .home-cta {
        padding: 48px 0;
    }

    .home-cta h2 {
        font-size: 27px;
    }

    .home-cta .btn-light {
        margin-top: 8px;
    }
}

/* RESPONSIVE: SMALL PHONES */

@media (max-width: 400px) {
    .intro-image {
        height: 275px;
    }

    .intro-image-caption {
        right: 10px;
        max-width: none;
    }

    .service-card,
    .home-projects .project-card-body {
        padding: 20px;
    }

    .home-cta h2 {
        font-size: 24px;
    }

    .technology-card {
        padding: 20px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-icon,
    .service-link i,
    .project-card,
    .project-card-image img,
    .global-card,
    .benefit-card,
    .home-cta .btn-light,
    .technology-card,
    .technology-card::before,
    .technology-link i {
        transition: none !important;
    }

    .service-card:hover,
    .global-card:hover,
    .benefit-card:hover,
    .technology-card:hover,
    .home-cta .btn-light:hover {
        transform: none;
    }
}
