
/* =========================================
   GLOBAL
========================================= */

:root {
    --navy: #091a31;
    --blue: #0560bb;
    --blue-light: #d9efff;
    --text: #10223b;
    --muted: #64758b;
    --page: #f7fbfd;
    --border: #d9e5ef;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: var(--page);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.page-container {
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    height: 76px;
    background: rgba(250, 253, 255, 0.98);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

.nav-container {
    width: min(1200px, calc(100% - 40px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    display: block;
    width: 105px;
    height: auto;
    object-fit: contain;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.navigation a {
    font-size: 13px;
    font-weight: 500;
    color: #31445d;
    transition: color 0.25s;
}

.navigation a:hover,
.navigation a.active-link {
    color: var(--blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: white;
}

.globe {
    padding: 0 6px;
    font-size: 13px;
}

.country {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.country.active {
    color: white;
    background: var(--blue);
    font-weight: 700;
}

.phone-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--blue);
    color: white;
    border-radius: 25px;
    padding: 11px 16px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}


/* =========================================
   HERO SECTION
========================================= */

.portfolio-hero {
    min-height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #f8fcfe;

    background-image:
        linear-gradient(rgba(23, 111, 183, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 111, 183, 0.065) 1px, transparent 1px);

    background-size: 35px 35px;
    border-bottom: 1px solid var(--border);
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    right: -130px;
    top: -170px;
    background: rgba(5, 96, 187, 0.08);
    border: 1px solid rgba(5, 96, 187, 0.12);
}

.hero-decoration {
    position: absolute;
    right: 8%;
    bottom: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(5, 96, 187, 0.055);
}

.portfolio-hero .page-container {
    position: relative;
    z-index: 2;
    padding-top: 65px;
    padding-bottom: 65px;
}

.eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.portfolio-hero h1 {
    max-width: 950px;
    font-size: clamp(39px, 5vw, 65px);
    line-height: 1.13;
    letter-spacing: -2.5px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

.portfolio-hero h1 span {
    display: block;
    color: var(--blue);
}

.portfolio-hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 27px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 23px;
    border-radius: 30px;
    background: var(--blue);
    color: white;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 7px 20px rgba(5, 96, 187, 0.15);
}

.hero-button:hover {
    background: #034f9c;
    transform: translateY(-3px);
}


/* =========================================
   PORTFOLIO SECTION
========================================= */

.portfolio-section {
    padding: 85px 0 95px;
    background: #fbfdfe;
}

.portfolio-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 42px;
    gap: 25px;
}

.portfolio-heading .eyebrow {
    margin-bottom: 8px;
}

.portfolio-heading h2 {
    font-size: clamp(32px, 4vw, 44px);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1.3px;
    margin-bottom: 9px;
}

.portfolio-heading p {
    color: var(--muted);
    font-size: 16px;
}

.project-count {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.project-count strong {
    color: var(--blue);
    font-size: 27px;
    line-height: 1;
}

.project-count span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   PORTFOLIO GRID
========================================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px 25px;
}

.portfolio-card {
    min-width: 0;
    background: white;
    border: 1px solid #e2eaf1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 7px 25px rgba(16, 43, 70, 0.055);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.portfolio-card:hover {
    transform: translateY(-7px);
    border-color: #b4d8f5;
    box-shadow: 0 18px 40px rgba(16, 43, 70, 0.13);
}


/* =========================================
   WEBSITE IMAGE SCROLL EFFECT
========================================= */

.website-preview {
    width: 100%;
    height: 365px;
    position: relative;
    overflow: hidden;
    background: #eaf2f8;
    border-bottom: 1px solid var(--border);
    isolation: isolate;
}

.website-preview img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: initial;
    object-position: top;
    position: relative;
    top: 0;
    left: 0;

    transform: translateY(0);

    transition: transform 9s linear;
    will-change: transform;
}

/* Image moves down the full webpage on hover */

.portfolio-card:hover .website-preview img {
    transform: translateY(calc(-100% + 365px));
    transition: transform 9s linear;
}

/* Overlay */

.preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 22px;
    color: white;
    opacity: 0;
    pointer-events: none;

    background: linear-gradient(
        to top,
        rgba(5, 22, 44, 0.88),
        rgba(5, 22, 44, 0.15) 55%,
        transparent
    );

    transition: opacity 0.3s ease;
}

.portfolio-card:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #b9ddff;
    margin-bottom: 6px;
}

.preview-overlay h3 {
    font-size: 23px;
    font-weight: 800;
}


/* =========================================
   CARD INFORMATION
========================================= */

.card-info {
    padding: 20px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-category {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--blue);
    margin-bottom: 7px;
}

.card-info h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy);
}

.project-arrow {
    flex-shrink: 0;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #eaf4fc;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.3s;
}

.portfolio-card:hover .project-arrow {
    background: var(--blue);
    color: white;
    transform: rotate(45deg);
}


/* =========================================
   CTA SECTION
========================================= */

.portfolio-cta {
    padding-top: 0;
    padding-bottom: 85px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 60px 65px;
    border-radius: 20px;
    background: var(--navy);
}

.cta-box::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 0 0 35px rgba(255,255,255,0.025),
        0 0 0 70px rgba(255,255,255,0.02);
}

.cta-box .eyebrow {
    color: #73baff;
}

.cta-box h2 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-box p {
    position: relative;
    z-index: 2;
    color: #b8d0e8;
    font-size: 16px;
    margin-bottom: 25px;
}

.cta-box .hero-button {
    position: relative;
    z-index: 2;
    background: white;
    color: var(--blue);
}

.cta-box .hero-button:hover {
    background: #d9efff;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    color: #b8cce2;
    background: #07172d;
}

.footer-main {
    padding-top: 52px;
    padding-bottom: 45px;
    display: grid;
    grid-template-columns: 1.05fr 1.05fr 1.05fr 1.1fr;
    gap: 36px;
}

.footer-brand img {
    display: block;
    width: 120px;
    height: auto;
    margin-bottom: 18px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    max-width: 250px;
}

.footer-column h3 {
    color: white;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-column > a {
    display: block;
    color: #b8cce2;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 2px;
    overflow-wrap: anywhere;
    transition: color 0.2s;
}

.footer-column > a:hover,
.footer-legal a:hover {
    color: white;
}

.footer-address {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(191, 215, 240, 0.13);
}

.footer-bottom-inner {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom-inner p,
.footer-legal a {
    font-size: 12px;
}

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}


/* =========================================
   WHATSAPP FLOAT
========================================= */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    animation: whatsappFloat 2.5s ease-in-out infinite;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes whatsappFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {

    .navigation {
        gap: 14px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }
}


@media (max-width: 760px) {

    .page-container {
        width: calc(100% - 36px);
    }

    .site-header {
        height: 68px;
    }

    .nav-container {
        width: calc(100% - 30px);
        gap: 10px;
    }

    .logo img {
        width: 92px;
    }

    .menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-left: auto;
    }

    .menu-toggle span {
        width: 23px;
        height: 2px;
        border-radius: 5px;
        background: var(--navy);
    }

    .navigation {
        display: none;
        position: absolute;
        top: 67px;
        left: 0;
        right: 0;
        padding: 18px;
        gap: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 18px rgba(0,0,0,0.06);
    }

    .navigation.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .navigation a {
        padding: 12px 8px;
        font-size: 14px;
        border-bottom: 1px solid #edf2f7;
    }

    .nav-actions {
        gap: 5px;
    }

    .globe {
        display: none;
    }

    .country {
        padding: 6px 8px;
        font-size: 10px;
    }

    .phone-button {
        width: 38px;
        height: 38px;
        padding: 0;
        font-size: 0;
    }

    .phone-button span {
        font-size: 16px;
    }

    .portfolio-hero {
        min-height: auto;
    }

    .portfolio-hero .page-container {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .portfolio-hero h1 {
        font-size: clamp(35px, 8vw, 48px);
        letter-spacing: -1.5px;
    }

    .portfolio-hero p {
        font-size: 16px;
    }

    .portfolio-section {
        padding: 55px 0 60px;
    }

    .portfolio-heading {
        align-items: flex-start;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .website-preview {
        height: 270px;
    }

    .portfolio-card:hover .website-preview img {
        transform: translateY(calc(-100% + 270px));
    }

    .card-info {
        padding: 15px 12px;
    }

    .card-info h3 {
        font-size: 15px;
    }

    .project-category {
        font-size: 9px;
    }

    .project-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .preview-overlay {
        padding: 12px;
    }

    .preview-overlay h3 {
        font-size: 17px;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
        padding-top: 38px;
        padding-bottom: 35px;
    }

    .footer-brand p {
        font-size: 12px;
    }

    .footer-column h3 {
        font-size: 11px;
    }

    .footer-column > a,
    .footer-address {
        font-size: 10px;
    }

    .footer-bottom-inner {
        padding-top: 16px;
        padding-bottom: 16px;
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .footer-legal {
        gap: 13px;
    }
}


@media (max-width: 480px) {

    .portfolio-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .website-preview {
        height: 340px;
    }

    .portfolio-card:hover .website-preview img {
        transform: translateY(calc(-100% + 340px));
    }

    .card-info h3 {
        font-size: 17px;
    }

    .project-category {
        font-size: 10px;
    }

    .portfolio-cta {
        padding-bottom: 50px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 53px;
        height: 53px;
        right: 15px;
        bottom: 18px;
        font-size: 29px;
    }
}


/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
