/* =================================
   ROOT / BRAND COLORS
================================= */

:root {

    --navy: #193778;
    --navy-dark: #10285A;
    --navy-deep: #0B1D43;
    --navy-light: #24478F;

    --turquoise: #3FE0C0;
    --teal: lab(66.55% -43.57 0.86);

    --white: #FFFFFF;
    --white-soft: rgba(255, 255, 255, 0.88);
    --white-muted: rgba(255, 255, 255, 0.66);

    --background: #10285A;
    --background-dark: #0B1D43;
    --background-soft: #142F68;

    --card: rgba(255, 255, 255, 0.055);
    --card-hover: rgba(255, 255, 255, 0.085);

    --border: rgba(63, 224, 192, 0.18);
    --border-light: rgba(255, 255, 255, 0.10);

    --shadow:
        0 18px 45px rgba(0, 0, 0, 0.22);

    --shadow-hover:
        0 24px 55px rgba(0, 0, 0, 0.32);

    --glow:
        0 0 35px rgba(63, 224, 192, 0.14);
}


/* =================================
   RESET
================================= */

* {
     margin: 0;
     padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:
        var(--background);

    color:
        var(--white);

    line-height:
        1.6;

    -webkit-font-smoothing:
        antialiased;

    text-rendering:
        optimizeLegibility;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width:
        min(
            1600px,
            calc(100% - 40px)
        );

    margin:
        auto;
}


/* =================================
   NAVIGATION
================================= */

nav {
    position:
        sticky;

    top:
        0;

    z-index:
        1000;

    background:
        rgba(11, 29, 67, 0.88);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid var(--border-light);
}


.nav {
    min-height:
        72px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;
}


/* BRAND */

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.brand-icon {
    height: 72px;
    display: block;
    flex-shrink: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}

.brand-name {
    width: 196px;
    height: auto;
    display: block;
}

.brand-tagline {
    width: 196px;
    height: auto;
    display: block;
}

/* NAV LINKS */

.nav-links {
    display:
        flex;

    align-items:
        center;

    gap:
        30px;

    font-size:
        14px;

    font-weight:
        600;
}


.nav-links a {
    position:
        relative;

    color:
        var(--white-muted);

    transition:
        color 0.2s ease;
}


.nav-links a::after {
    content:
        "";

    position:
        absolute;

    left:
        0;

    bottom:
        -7px;

    width:
        0;

    height:
        2px;

    background:
        var(--turquoise);

    border-radius:
        10px;

    transition:
        width 0.25s ease;
}


.nav-links a:hover {
    color:
        var(--white);
}


.nav-links a:hover::after {
    width:
        100%;
}


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

.hero {
    position:
        relative;

    padding:
        120px 0 105px;

    text-align:
        center;

    overflow:
        hidden;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(63, 224, 192, 0.10),
            transparent 30%
        ),

        linear-gradient(
            180deg,
            var(--navy-dark) 0%,
            var(--background) 100%
        );
}


.hero::before {
    content:
        "";

    position:
        absolute;

    width:
        550px;

    height:
        550px;

    top:
        -300px;

    right:
        -180px;

    background:
        var(--turquoise);

    opacity:
        0.08;

    border-radius:
        50%;

    filter:
        blur(10px);

    pointer-events:
        none;
}


.hero::after {
    content:
        "";

    position:
        absolute;

    width:
        450px;

    height:
        450px;

    bottom:
        -280px;

    left:
        -220px;

    background:
        var(--navy-light);

    opacity:
        0.20;

    border-radius:
        50%;

    filter:
        blur(5px);

    pointer-events:
        none;
}


.hero .container {
    position:
        relative;

    z-index:
        1;
}


/* HERO BADGE */

.badge {
    display:
        inline-block;

    padding:
        7px 15px;

    margin-bottom:
        22px;

    background:
        rgba(63, 224, 192, 0.08);

    border:
        1px solid var(--border);

    border-radius:
        999px;

    color:
        var(--turquoise);

    font-size:
        12px;

    font-weight:
        700;

    letter-spacing:
        0.2px;
}


/* HERO TAGLINE */

.brand-tagline1 {
    margin-bottom:
        20px;

    color:
        var(--white-muted);

    font-size:
        15px;

    font-weight:
        600;

    letter-spacing:
        0.5px;
}


/* HERO HEADING */

.hero h1 {
    max-width:
        850px;

    margin:
        0 auto;

    font-size:
        clamp(
            42px,
            7vw,
            72px
        );

    line-height:
        1.05;

    letter-spacing:
        -3px;

    color:
        var(--white);
}


.hero h1 span {
    color:
        var(--turquoise);
}


.hero h1::after {
    content:
        "";

    display:
        block;

    width:
        55px;

    height:
        3px;

    margin:
        24px auto 0;

    background:
        var(--turquoise);

    border-radius:
        10px;
}


.hero p {
    max-width:
        650px;

    margin:
        25px auto 0;

    color:
        var(--white-muted);

    font-size:
        18px;
}


/* =================================
   HERO BUTTONS
================================= */

.hero-buttons {
    display:
        flex;

    justify-content:
        center;

    gap:
        14px;

    flex-wrap:
        wrap;

    margin-top:
        35px;
}


.button {
    display:
        inline-block;

    padding:
        13px 23px;

    border-radius:
        10px;

    font-size:
        14px;

    font-weight:
        700;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


.button-primary {
    background:
        var(--turquoise);

    color:
        var(--navy-deep);

    border:
        1px solid var(--turquoise);

    box-shadow:
        0 8px 25px
        rgba(63, 224, 192, 0.18);
}


.button-primary:hover {
    background:
        var(--teal);

    border-color:
        var(--teal);

    transform:
        translateY(-3px);

    box-shadow:
        0 14px 35px
        rgba(63, 224, 192, 0.25);
}


.button-secondary {
    background:
        rgba(255, 255, 255, 0.04);

    color:
        var(--white);

    border:
        1px solid var(--border);
}


.button-secondary:hover {
    background:
        rgba(63, 224, 192, 0.08);

    color:
        var(--turquoise);

    border-color:
        var(--turquoise);

    transform:
        translateY(-3px);

    box-shadow:
        var(--glow);
}


/* =================================
   GENERAL SECTION
================================= */

section {
    position:
        relative;

    padding:
        90px 0;
}


.section-title {
    margin-bottom:
        40px;
}


.section-title > span {
    display:
        inline-block;

    margin-bottom:
        10px;

    color:
        var(--turquoise);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        1.5px;

    text-transform:
        uppercase;
}


.section-title h2 {
    margin:
        0;

    font-size:
        clamp(
            30px,
            4vw,
            40px
        );

    line-height:
        1.15;

    letter-spacing:
        -1.5px;

    color:
        var(--white);
}


.section-title h2 span {
    color:
        var(--turquoise);
}


.section-title h2::after {
    content:
        "";

    display:
        block;

    width:
        45px;

    height:
        3px;

    margin-top:
        14px;

    background:
        var(--turquoise);

    border-radius:
        10px;
}


.section-title p {
    max-width:
        680px;

    margin:
        12px 0 0;

    color:
        var(--white-muted);

    font-size:
        15px;
}


/* =================================
   STATS
================================= */

.stats {
    padding:
        0;

    background:
        var(--navy-deep);

    border-top:
        1px solid var(--border-light);

    border-bottom:
        1px solid var(--border-light);
}


.stats-grid {
    display:
        grid;

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


.stat {
    position:
        relative;

    padding:
        38px 20px;

    text-align:
        center;

    border-right:
        1px solid var(--border-light);
}


.stat:first-child {
    border-left:
        1px solid var(--border-light);
}


.stat h2 {
    margin:
        0;

    color:
        var(--turquoise);

    font-size:
        21px;

    line-height:
        1.2;

    letter-spacing:
        -0.5px;
}


.stat p {
    margin:
        7px 0 0;

    color:
        var(--white-muted);

    font-size:
        13px;
}


/* =================================
   PROJECTS
================================= */

#projects {
    background:
        var(--background);
}


.projects {
    display:
        grid;

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

    gap:
        20px;
}


.project {
    position:
        relative;

    padding:
        30px;

    background:
        var(--card);

    border:
        1px solid var(--border-light);

    border-radius:
        17px;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}


.project:hover {
    transform:
        translateY(-6px);

    background:
        var(--card-hover);

    border-color:
        rgba(63, 224, 192, 0.42);

    box-shadow:
        var(--shadow-hover),
        var(--glow);
}


/* PROJECT ICON */

.project-icon {
    width:
        52px;

    height:
        52px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        20px;

    border-radius:
        13px;

    background:
        linear-gradient(
            135deg,
            var(--navy-light),
            var(--navy)
        );

    color:
        var(--turquoise);

    border:
        1px solid
        rgba(63, 224, 192, 0.22);

    font-size:
        21px;

    font-weight:
        800;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.20);
}


.project h3 {
    margin:
        0;

    font-size:
        21px;

    color:
        var(--white);
}


.project p {
    margin:
        10px 0 20px;

    color:
        var(--white-muted);

    font-size:
        14px;
}


.project-link {
    display:
        inline-block;

    margin-top:
        18px;

    font-size:
        14px;

    font-weight:
        700;

    color:
        var(--turquoise);

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.project-link:hover {
    color:
        var(--white);

    transform:
        translateX(3px);
}


/* =================================
   TAGS
================================= */

.tags {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;
}


.tag {
    padding:
        5px 10px;

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

    border:
        1px solid var(--border-light);

    border-radius:
        6px;

    color:
        var(--white-muted);

    font-size:
        12px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.project:hover .tag {
    border-color:
        rgba(63, 224, 192, 0.16);
}


.tag:hover {
    color:
        var(--turquoise);

    background:
        rgba(63, 224, 192, 0.07);

    border-color:
        rgba(63, 224, 192, 0.30);
}


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

.services {
    background:
        var(--background-dark);

    border-top:
        1px solid var(--border-light);

    border-bottom:
        1px solid var(--border-light);
}


/* =================================
   FEATURE CARDS
================================= */

.features {
    display:
        grid;

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

    gap:
        20px;
}


.feature-card {
    position:
        relative;

    padding:
        30px;

    background:
        var(--card);

    border:
        1px solid var(--border-light);

    border-radius:
        17px;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}


.feature-card:hover {
    transform:
        translateY(-6px);

    background:
        var(--card-hover);

    border-color:
        rgba(63, 224, 192, 0.42);

    box-shadow:
        var(--shadow-hover),
        var(--glow);
}


.feature-icon {
    width:
        50px;

    height:
        50px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        18px;

    background:
        rgba(63, 224, 192, 0.08);

    border:
        1px solid var(--border);

    border-radius:
        13px;

    font-size:
        23px;
}


.feature-card h3 {
    margin:
        0;

    color:
        var(--white);

    font-size:
        20px;

    line-height:
        1.25;
}


.feature-card p {
    margin:
        10px 0 0;

    color:
        var(--white-muted);

    font-size:
        14px;
}


/* =================================
   ABOUT
================================= */

#about {
    background:
        var(--background);
}


.about {
    max-width:
        800px;

    padding:
        32px;

    background:
        var(--card);

    border:
        1px solid var(--border-light);

    border-radius:
        17px;

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.16);
}


.about p {
    margin:
        0 0 18px;

    color:
        var(--white-muted);

    font-size:
        16px;
}


.about p:last-child {
    margin-bottom:
        0;
}


/* =================================
   TECHNOLOGY
================================= */

.technology {
    background:
        var(--background-dark);

    border-top:
        1px solid var(--border-light);

    border-bottom:
        1px solid var(--border-light);
}


.tech-stack {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        10px;
}


.tech {
    padding:
        10px 16px;

    background:
        var(--card);

    border:
        1px solid var(--border-light);

    border-radius:
        9px;

    color:
        var(--white-soft);

    font-size:
        13px;

    font-weight:
        600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.tech:hover {
    background:
        rgba(63, 224, 192, 0.08);

    color:
        var(--turquoise);

    border-color:
        rgba(63, 224, 192, 0.32);

    transform:
        translateY(-2px);
}


/* =================================
   CONTACT
================================= */

#contact {
    padding:
        90px 0;

    background:
        var(--background);
}


.contact {
    position:
        relative;

    overflow:
        hidden;

    padding:
        65px 30px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(63, 224, 192, 0.08),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            var(--navy-deep),
            var(--navy-dark)
        );

    color:
        var(--white);

    border:
        1px solid var(--border);

    border-radius:
        22px;

    text-align:
        center;

    box-shadow:
        var(--shadow);
}


.contact::before {
    content:
        "";

    position:
        absolute;

    width:
        300px;

    height:
        300px;

    top:
        -190px;

    right:
        -100px;

    background:
        var(--turquoise);

    opacity:
        0.06;

    border-radius:
        50%;

    filter:
        blur(10px);

    pointer-events:
        none;
}


.contact > span {
    position:
        relative;

    display:
        inline-block;

    margin-bottom:
        12px;

    color:
        var(--turquoise);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        1.5px;
}


.contact h2 {
    position:
        relative;

    margin:
        0;

    font-size:
        clamp(
            29px,
            4vw,
            38px
        );

    line-height:
        1.15;

    letter-spacing:
        -1px;
}


.contact h2 span {
    color:
        var(--turquoise);
}


.contact h2::after {
    content:
        "";

    display:
        block;

    width:
        45px;

    height:
        3px;

    margin:
        16px auto 0;

    background:
        var(--turquoise);

    border-radius:
        10px;
}


.contact p {
    position:
        relative;

    max-width:
        600px;

    margin:
        16px auto 28px;

    color:
        var(--white-muted);

    font-size:
        15px;
}


.email {
    position:
        relative;

    display:
        inline-block;

    padding:
        13px 22px;

    background:
        var(--turquoise);

    color:
        var(--navy-deep);

    border:
        1px solid var(--turquoise);

    border-radius:
        10px;

    font-weight:
        700;

    box-shadow:
        0 8px 25px
        rgba(63, 224, 192, 0.18);

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}


.email:hover {
    background:
        var(--teal);

    transform:
        translateY(-3px);

    box-shadow:
        0 14px 35px
        rgba(63, 224, 192, 0.25);
}


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

footer {
    margin-top:
        0;

    padding:
        35px 0;

    background:
        var(--navy-deep);

    border-top:
        1px solid var(--border-light);

    color:
        rgba(255, 255, 255, 0.58);

    font-size:
        13px;
}


.footer {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        20px;
}


.footer-links {
    display:
        flex;

    gap:
        22px;
}


.footer-links a {
    color:
        var(--white-muted);

    transition:
        color 0.2s ease;
}


.footer-links a:hover {
    color:
        var(--turquoise);
}


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

@media (max-width: 800px) {

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


    .stat:nth-child(2) {
        border-right:
            none;
    }


    .stat:nth-child(3) {
        border-left:
            1px solid var(--border-light);
    }


    .projects,
    .features {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 650px) {

    .container {
        width:
            min(
                100% - 28px,
                1100px
            );
    }


    .nav {
        min-height:
            64px;
    }


    .nav-links {
        display:
            none;
    }


    .hero {
        padding:
            85px 0 75px;
    }


    .hero h1 {
        letter-spacing:
            -2px;
    }


    .hero p {
        font-size:
            16px;
    }


    section {
        padding:
            65px 0;
    }


    .project,
    .feature-card {
        padding:
            27px;
    }


    .about {
        padding:
            27px;
    }


    .contact {
        padding:
            50px 22px;
    }


    .footer {
        flex-direction:
            column;

        text-align:
            center;
    }


    .footer-links {
        justify-content:
            center;

        flex-wrap:
            wrap;
    }

}


@media (max-width: 470px) {

    .logo {
        font-size:
            19px;
    }


    .brand-tagline {
        font-size:
            9px;
    }


    .hero h1 {
        font-size:
            38px;

        letter-spacing:
            -1.5px;
    }


    .hero p {
        font-size:
            15px;
    }


    .hero-buttons {
        width:
            100%;
    }


    .button {
        width:
            100%;

        text-align:
            center;
    }


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


    .stat,
    .stat:first-child,
    .stat:nth-child(2),
    .stat:nth-child(3) {
        border-left:
            0;

        border-right:
            0;

        border-bottom:
            1px solid var(--border-light);
    }


    .stat:last-child {
        border-bottom:
            0;
    }


    .section-title h2 {
        font-size:
            30px;
    }


    .contact h2 {
        font-size:
            29px;
    }


    .email {
        width:
            100%;

        text-align:
            center;

        overflow:
            hidden;

        text-overflow:
            ellipsis;

        white-space:
            nowrap;
    }

}


/* =================================
   ACCESSIBILITY
================================= */

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

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {
        transition:
            none !important;
    }

}