/* =========================================================
   VVN TECHNOLOGIES
   SERVICES PAGE CSS
========================================================= */


/* =========================================================
   GLOBAL PAGE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    min-height: 30px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b1f33;
    color: #ffffff;
    font-size: 12px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar i {
    font-size: 11px;
}

.topbar-right a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s ease;
}

.topbar-right a:hover {
    opacity: 0.7;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    min-height: 62px;
    height: 62px;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.logo-text h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    color: #0b3558;
    font-weight: 700;
}

.logo-text span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #718096;
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-links a {
    position: relative;
    padding: 7px 9px;
    color: #26384a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0877bd;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 0;
    height: 2px;
    background: #0877bd;
    border-radius: 2px;
}

.nav-links .btn-login,
.nav-links .btn-contact {
    border-radius: 5px;
    padding: 8px 12px;
    margin-left: 4px;
}

.nav-links .btn-login {
    color: #0877bd;
    border: 1px solid #0877bd;
}

.nav-links .btn-login:hover {
    color: #ffffff;
    background: #0877bd;
}

.nav-links .btn-contact {
    color: #ffffff;
    background: #0877bd;
    border: 1px solid #0877bd;
}

.nav-links .btn-contact:hover {
    background: #075d94;
    border-color: #075d94;
}

.nav-links .btn-login::after,
.nav-links .btn-contact::after {
    display: none;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: #0b3558;
    font-size: 22px;
    cursor: pointer;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    min-height: 250px;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(5, 35, 58, 0.75),
            rgba(5, 35, 58, 0.75)
        ),
        url("../images/projects/gis.jpg");

    background-size: cover;
    background-position: center center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(0, 93, 148, 0.25),
            rgba(0, 0, 0, 0.18)
        );
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #ffffff;
}

.page-hero-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-hero-icon i {
    font-size: 19px;
}

.page-hero .kicker {
    margin-bottom: 5px;
    color: #bce8ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.page-hero h2 {
    margin: 0;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.page-hero p {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   SECTION HEAD
========================================================= */

.services-intro {
    padding: 48px 5% 25px;
}

.section-head {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.section-head .kicker {
    color: #0877bd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-head .divider {
    width: 45px;
    height: 3px;
    margin: 9px auto 13px;
    background: #0877bd;
    border-radius: 3px;
}

.section-head h3 {
    margin: 0;
    color: #173b59;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
}

.section-head p {
    max-width: 720px;
    margin: 10px auto 0;
    color: #68798a;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   SERVICES CONTENT
========================================================= */

.services-page-content {
    padding: 20px 5% 65px;
}

.services-page-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.service-page-card {
    min-width: 0;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4eaf0;
    border-radius: 10px;

    box-shadow:
        0 5px 18px rgba(20, 50, 75, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    opacity: 0;
    transform: translateY(25px);
}

.service-page-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-page-card:hover {
    transform: translateY(-7px);
    border-color: #c9ddea;

    box-shadow:
        0 15px 35px rgba(20, 60, 90, 0.13);
}


/* =========================================================
   SERVICE IMAGE
========================================================= */

.service-page-image {
    width: 100%;
    height: 155px;

    position: relative;
    overflow: hidden;

    background: #e9eef2;
}


/*
   IMPORTANT IMAGE FIX

   Every image receives the same box dimensions.
   object-fit: cover keeps the image proportional
   and prevents stretching/distortion.
*/

.service-page-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    transition:
        transform 0.5s ease,
        filter 0.3s ease;
}

.service-page-card:hover
.service-page-image img {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.service-page-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.38)
        );

    pointer-events: none;
}


/* =========================================================
   SERVICE NUMBER
========================================================= */

.service-number {
    position: absolute;

    top: 10px;
    left: 10px;

    z-index: 3;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(7, 65, 100, 0.9);

    color: #ffffff;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   IMAGE ICON
========================================================= */

.service-image-icon {
    position: absolute;

    right: 11px;
    bottom: 10px;

    z-index: 3;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: rgba(8, 119, 189, 0.9);

    border-radius: 50%;

    font-size: 15px;
}


/* =========================================================
   SERVICE BODY
========================================================= */

.service-page-body {
    padding: 17px 16px 18px;
}

.service-page-body h3 {
    margin: 0 0 7px;

    color: #173b59;

    font-size: 17px;
    line-height: 1.3;

    font-weight: 750;
}

.service-page-body p {
    min-height: 68px;

    margin: 0;

    color: #6a7886;

    font-size: 12.5px;
    line-height: 1.65;
}

.service-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 13px;

    color: #0877bd;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition: gap 0.25s ease;
}

.service-more:hover {
    gap: 11px;
}

.service-more i {
    font-size: 10px;
}


/* =========================================================
   SERVICE HIGHLIGHTS
========================================================= */

.service-highlights {
    padding: 55px 5% 65px;

    background:
        linear-gradient(
            180deg,
            #f5f9fc 0%,
            #ffffff 100%
        );
}

.highlights-grid {
    max-width: 1200px;

    margin: 30px auto 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.highlight-card {
    padding: 25px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e2eaf0;
    border-radius: 9px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 28px rgba(20, 60, 90, 0.1);
}

.highlight-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: #0877bd;

    border-radius: 50%;
}

.highlight-icon i {
    font-size: 18px;
}

.highlight-card h4 {
    margin: 0 0 7px;

    color: #173b59;

    font-size: 15px;
}

.highlight-card p {
    margin: 0;

    color: #708090;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #0b1f33;
    color: #ffffff;
}

.footer-grid {
    max-width: 1400px;

    margin: 0 auto;

    padding: 45px 5% 35px;

    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1.3fr
        1.3fr;

    gap: 35px;
}

.f-col h5 {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.f-col p {
    margin: 0 0 10px;

    color: #b8c7d5;

    font-size: 12.5px;
    line-height: 1.7;
}

.f-col p i {
    width: 18px;
    color: #56b9ee;
}

.f-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.f-col li {
    margin-bottom: 8px;
}

.f-col li a {
    color: #b8c7d5;
    text-decoration: none;
    font-size: 12.5px;

    transition: 0.25s ease;
}

.f-col li a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.social {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.social a {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.1);

    border-radius: 50%;

    text-decoration: none;

    transition: 0.25s ease;
}

.social a:hover {
    background: #0877bd;
    transform: translateY(-2px);
}

.copyright {
    padding: 17px 5%;

    text-align: center;

    color: #9fb1c1;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .navbar {
        padding: 0 3%;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 12px;
    }

    .services-page-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .service-page-image {
        height: 145px;
    }

    .highlights-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET / MOBILE NAVIGATION
========================================================= */

@media (max-width: 950px) {

    .topbar {
        padding: 0 3%;
    }

    .navbar {
        height: 60px;
        min-height: 60px;
        padding: 0 4%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 60px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;

        padding: 10px 4% 15px;

        background: #ffffff;

        border-top: 1px solid #e6edf2;

        box-shadow:
            0 12px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 5px;
        font-size: 13px;
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-links .btn-login,
    .nav-links .btn-contact {
        margin: 3px 0;
        text-align: center;
    }

    .services-page-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .topbar {
        min-height: 28px;
        font-size: 10px;
    }

    .topbar-left span:nth-child(2) {
        display: none;
    }

    .topbar-right {
        gap: 10px;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 9px;
    }

    .page-hero {
        min-height: 210px;
        height: 210px;
    }

    .page-hero h2 {
        font-size: 27px;
    }

    .page-hero p {
        font-size: 12px;
    }

    .services-intro {
        padding: 38px 5% 18px;
    }

    .section-head h3 {
        font-size: 21px;
    }

    .section-head p {
        font-size: 12.5px;
    }

    .services-page-content {
        padding: 15px 5% 50px;
    }

    .services-page-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .service-page-image {
        height: 145px;
    }

    .service-page-body {
        padding: 14px;
    }

    .service-page-body h3 {
        font-size: 15px;
    }

    .service-page-body p {
        min-height: auto;
        font-size: 11.5px;
    }

    .service-number {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .service-image-icon {
        width: 31px;
        height: 31px;
        font-size: 13px;
    }

    .highlights-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .highlight-card {
        padding: 20px 12px;
    }

    .highlight-card h4 {
        font-size: 13px;
    }

    .highlight-card p {
        font-size: 11px;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .topbar-left {
        display: none;
    }

    .topbar {
        justify-content: flex-end;
    }

    .page-hero {
        min-height: 190px;
        height: 190px;
    }

    .page-hero h2 {
        font-size: 24px;
    }

    .page-hero p {
        font-size: 11px;
    }

    .services-page-grid {
        grid-template-columns: 1fr;
    }

    .service-page-image {
        height: 190px;
    }

    .service-page-body h3 {
        font-size: 17px;
    }

    .service-page-body p {
        font-size: 12px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}