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

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

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #08111f;
    color: #f8fafc;
    line-height: 1.6;
}

a {
    color: inherit;
}

button {
    font: inherit;
}


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

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(8, 17, 31, 0.94);

    border-bottom: 1px solid rgba(148, 163, 184, 0.12);

    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1300px;
    margin: auto;

    min-height: 82px;

    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #4da3ff;

    font-size: 27px;
    font-weight: 800;

    text-decoration: none;

    letter-spacing: -1px;
}

.logo span {
    color: #4da3ff;
}

nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

nav a {
    position: relative;

    color: #cbd5e1;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: #4da3ff;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #4da3ff;

    transition: width 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;

    border: none;
    background: transparent;

    color: #f8fafc;

    font-size: 28px;

    cursor: pointer;
}


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

.hero {
    min-height: calc(100vh - 82px);

    display: flex;
    align-items: center;

    padding: 80px 7%;
}

.hero-layout {
    width: 100%;

    max-width: 1300px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.25fr 0.75fr;

    align-items: center;

    gap: 80px;
}

.hello {
    color: #4da3ff;

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

    letter-spacing: 4px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(60px, 6.5vw, 88px);

    line-height: 0.98;

    letter-spacing: -3px;

    margin-bottom: 30px;
}

.hero h2 {
    color: #94a3b8;

    font-size: clamp(28px, 3vw, 43px);

    line-height: 1.15;

    margin-bottom: 25px;
}

.hero-description {
    max-width: 710px;

    color: #cbd5e1;

    font-size: 18px;

    line-height: 1.75;

    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 22px;
}

.btn {
    min-height: 54px;

    padding: 0 27px;

    border-radius: 7px;

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

    font-weight: 700;

    text-decoration: none;

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

.btn:hover {
    transform: translateY(-2px);
}

.primary {
    background: #4da3ff;
    color: #07101d;

    border: 1px solid #4da3ff;
}

.primary:hover {
    background: #72b5ff;
}

.secondary {
    color: #4da3ff;

    border: 1px solid #4da3ff;

    background: transparent;
}

.secondary:hover {
    background: rgba(77, 163, 255, 0.07);
}

.hero-links {
    display: flex;
    gap: 22px;

    margin-bottom: 34px;
}

.hero-links a {
    color: #94a3b8;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.hero-links a:hover {
    color: #4da3ff;
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.hero-tech span,
.tag-row span,
.skill-list span,
.certification-tech span {
    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(77, 163, 255, 0.07);

    border: 1px solid rgba(77, 163, 255, 0.28);

    color: #b9d8ff;

    font-size: 13px;
}

.hero-photo-wrapper {
    width: 380px;
    height: 460px;

    justify-self: end;

    overflow: hidden;

    border-radius: 24px;

    border: 1px solid rgba(77, 163, 255, 0.32);

    background: #07101d;

    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.3);
}

.hero-photo {
    width: 100%;
    height: 100%;

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

    transition: transform 0.4s ease;
}

.hero-photo-wrapper:hover .hero-photo {
    transform: scale(1.02);
}


/* =========================================
   SHARED SECTIONS
========================================= */

.section {
    padding: 110px 7%;
}

.alternate {
    background: #0c1728;
}

.section-container {
    max-width: 1200px;
    margin: auto;
}

.section-label {
    color: #4da3ff;

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

    letter-spacing: 3px;

    margin-bottom: 14px;
}

.section-title {
    max-width: 850px;

    font-size: clamp(34px, 4vw, 48px);

    line-height: 1.15;

    letter-spacing: -1.5px;

    margin-bottom: 50px;
}


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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;

    gap: 65px;

    align-items: start;
}

.about-text p {
    color: #b9c4d4;

    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 20px;
}

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

    gap: 16px;
}

.stat-card {
    min-height: 150px;

    padding: 25px;

    border-radius: 12px;

    background: #101e32;

    border: 1px solid rgba(77, 163, 255, 0.13);

    display: flex;
    flex-direction: column;
    justify-content: center;

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

.stat-card:hover {
    transform: translateY(-3px);

    border-color: rgba(77, 163, 255, 0.32);
}

.stat-card strong {
    color: #4da3ff;

    font-size: 35px;

    margin-bottom: 5px;
}

.stat-card span {
    color: #b8c4d6;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================
   EXPERIENCE
========================================= */

.experience-card {
    padding: 30px;

    border-radius: 14px;

    background: #101e32;

    border: 1px solid rgba(77, 163, 255, 0.13);

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

.experience-card:hover {
    transform: translateY(-3px);

    border-color: rgba(77, 163, 255, 0.3);
}

.featured {
    margin-bottom: 25px;
}

.experience-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 18px;
}

.experience-heading h3 {
    font-size: 24px;

    margin-bottom: 3px;
}

.company {
    color: #4da3ff;

    font-size: 15px;

    font-weight: 600;
}

.experience-date,
.client-date {
    color: #94a3b8;

    font-size: 13px;

    white-space: nowrap;
}

.experience-note {
    color: #aab7c9;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 30px;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.client-card {
    padding: 25px;

    border-radius: 11px;

    background: #0b1728;

    border: 1px solid rgba(148, 163, 184, 0.1);
}

.client-name {
    color: #4da3ff;

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

    margin-bottom: 2px;
}

.client-card h4 {
    font-size: 19px;

    margin: 15px 0 12px;
}

.client-card > p:not(.client-name):not(.client-date) {
    color: #b4c0d1;

    font-size: 14px;

    line-height: 1.7;
}

.client-card ul {
    margin-top: 17px;
    padding-left: 18px;
}

.client-card li {
    color: #9eadc0;

    font-size: 13px;

    line-height: 1.65;

    margin-bottom: 8px;
}

.secondary-experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.secondary-experience-grid .experience-card > p {
    color: #aebaca;

    font-size: 15px;

    line-height: 1.75;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 23px;
}


/* =========================================
   SKILLS
========================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.skill-card {
    padding: 28px;

    border-radius: 13px;

    background: #101e32;

    border: 1px solid rgba(77, 163, 255, 0.12);

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

.skill-card:hover {
    transform: translateY(-3px);

    border-color: rgba(77, 163, 255, 0.3);
}

.skill-card h3 {
    font-size: 21px;

    margin-bottom: 20px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


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

.project-card {
    padding: 34px;

    border-radius: 15px;

    background: #101e32;

    border: 1px solid rgba(77, 163, 255, 0.15);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;

    margin-bottom: 25px;
}

.project-type {
    color: #4da3ff;

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

    letter-spacing: 1.6px;

    margin-bottom: 7px;
}

.project-card h3 {
    font-size: 30px;

    margin-bottom: 2px;
}

.project-subtitle {
    color: #94a3b8;

    font-size: 15px;
}

.project-status {
    padding: 8px 12px;

    border-radius: 999px;

    background: rgba(148, 163, 184, 0.08);

    border: 1px solid rgba(148, 163, 184, 0.15);

    color: #94a3b8;

    font-size: 12px;

    white-space: nowrap;
}

.project-description {
    max-width: 900px;

    color: #b5c1d2;

    font-size: 16px;

    line-height: 1.75;

    margin-bottom: 15px;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    margin-top: 28px;
}

.project-features div {
    padding: 20px;

    background: #0b1728;

    border: 1px solid rgba(148, 163, 184, 0.1);

    border-radius: 10px;
}

.project-features strong {
    display: block;

    color: #f8fafc;

    margin-bottom: 8px;
}

.project-features span {
    color: #9eadbf;

    font-size: 13px;

    line-height: 1.6;
}

.project-tags {
    margin-top: 25px;
}


/* =========================================
   EDUCATION
========================================= */

.education-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    gap: 22px;
}

.education-card {
    padding: 30px;

    border-radius: 14px;

    background: #101e32;

    border: 1px solid rgba(77, 163, 255, 0.14);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.education-card:hover {
    transform: translateY(-4px);

    border-color: rgba(77, 163, 255, 0.35);
}

.education-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}

.education-badge {
    display: inline-block;

    color: #4da3ff;

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

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}

.education-card h3 {
    font-size: 23px;

    line-height: 1.3;

    margin-bottom: 12px;
}

.education-year {
    color: #94a3b8;

    font-size: 14px;

    white-space: nowrap;
}

.education-degree {
    color: #dbeafe;

    font-size: 17px;
    font-weight: 600;

    margin-bottom: 6px;
}

.education-location {
    color: #9eacbf;

    font-size: 15px;

    line-height: 1.6;
}

.education-info {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;
}

.education-info span {
    min-width: 120px;

    padding: 12px 15px;

    border-radius: 8px;

    background: rgba(77, 163, 255, 0.06);

    border: 1px solid rgba(77, 163, 255, 0.12);

    color: #94a3b8;

    font-size: 12px;
}

.education-info strong {
    display: block;

    color: #ffffff;

    font-size: 15px;

    margin-top: 3px;
}


/* =========================================
   CERTIFICATIONS
========================================= */

.certifications-header {
    margin-top: 80px;
    margin-bottom: 35px;
}

.certifications-header h3 {
    font-size: 30px;

    margin-bottom: 8px;
}

.certifications-header > p:last-child {
    color: #9eacbf;

    font-size: 16px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 22px;
}

.certification-card {
    padding: 30px;

    border-radius: 14px;

    background: #101e32;

    border: 1px solid rgba(77, 163, 255, 0.14);

    display: flex;
    flex-direction: column;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.certification-card:hover {
    transform: translateY(-4px);

    border-color: rgba(77, 163, 255, 0.35);
}

.certification-company {
    color: #4da3ff;

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

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 12px;
}

.certification-card h3 {
    font-size: 22px;

    line-height: 1.35;

    margin-bottom: 8px;
}

.certification-provider {
    color: #94a3b8;

    font-size: 14px;

    margin-bottom: 20px;
}

.certification-description {
    color: #b8c4d6;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 22px;
}

.certification-tech {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.certificate-link {
    display: inline-block;

    width: fit-content;

    margin-top: auto;

    color: #4da3ff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

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

.certificate-link:hover {
    color: #72b5ff;

    transform: translateX(3px);
}


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

.contact-section {
    padding-bottom: 100px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;

    align-items: start;
}

.contact-layout .section-title {
    margin-bottom: 20px;
}

.contact-description {
    color: #aebaca;

    font-size: 17px;

    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;

    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.contact-links a {
    padding: 21px 0;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    text-decoration: none;

    border-bottom: 1px solid rgba(148, 163, 184, 0.14);

    transition: padding-left 0.2s ease;
}

.contact-links a:hover {
    padding-left: 7px;
}

.contact-links span {
    color: #94a3b8;

    font-size: 13px;
}

.contact-links strong {
    color: #4da3ff;

    font-size: 14px;

    font-weight: 600;

    text-align: right;
}


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

footer {
    background: #08111f;

    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-container {
    max-width: 1200px;

    margin: auto;

    padding: 30px 7%;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    color: #718096;

    font-size: 13px;
}


/* =========================================
   RESPONSIVE — TABLET
========================================= */

@media (max-width: 1050px) {

    nav {
        gap: 21px;
    }

    .hero-layout {
        gap: 45px;
    }

    .hero-photo-wrapper {
        width: 330px;
        height: 420px;
    }

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

}


/* =========================================
   RESPONSIVE — MOBILE
========================================= */

@media (max-width: 800px) {

    html {
        scroll-padding-top: 70px;
    }

    .nav-container {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        padding: 25px 7%;

        background: #08111f;

        border-bottom: 1px solid rgba(148, 163, 184, 0.12);

        display: none;
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
    }

    nav.open {
        display: flex;
    }

    .hero {
        min-height: auto;

        padding: 70px 7%;
    }

    .hero-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero-content {
        order: 1;
    }

    .hero-photo-wrapper {
        order: 2;

        justify-self: start;

        width: min(100%, 360px);
        height: 430px;
    }

    .hero h1 {
        font-size: clamp(54px, 15vw, 75px);
    }

    .hero h2 {
        font-size: 30px;
    }

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

    .section {
        padding: 80px 7%;
    }

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

    .about-grid,
    .skills-grid,
    .secondary-experience-grid,
    .education-grid,
    .certifications-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .experience-heading,
    .education-top,
    .project-top {
        flex-direction: column;
    }

    .experience-date,
    .education-year {
        white-space: normal;
    }

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

    .certifications-header {
        margin-top: 60px;
    }

    .contact-layout {
        gap: 40px;
    }

}


/* =========================================
   RESPONSIVE — SMALL PHONE
========================================= */

@media (max-width: 520px) {

    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

    .section {
        padding-left: 6%;
        padding-right: 6%;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-links {
        flex-wrap: wrap;
    }

    .hero-photo-wrapper {
        width: 100%;
        height: 410px;
    }

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

    .experience-card,
    .skill-card,
    .project-card,
    .education-card,
    .certification-card {
        padding: 23px;
    }

    .contact-links a {
        flex-direction: column;

        gap: 5px;
    }

    .contact-links strong {
        text-align: left;

        overflow-wrap: anywhere;
    }

    .footer-container {
        flex-direction: column;

        padding-left: 6%;
        padding-right: 6%;
    }

}