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

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

/* ==========================================
   ROOT
========================================== */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ==========================================================
   HEADER
========================================================== */

.header{
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    display:flex;
    align-items:center;
    z-index:var(--z-navbar);
    background: rgba(15,23,42,.70);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

/* ==========================================================
   LOGO
========================================================== */

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 60px;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo:hover {
    transform: translateY(-2px) scale(1.03);
}


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

.menu-toggle {
    display: none;

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

    width: 44px;
    height: 44px;

    color: var(--white);
    background: rgba(255, 255, 255, 0.05);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    cursor: pointer;

    transition: var(--transition-fast);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
}

.menu-toggle:hover {
    color: var(--secondary-color);
    border-color: rgba(6, 182, 212, 0.4);
}

.mobile-resume-item {
    display: none;
}

.navbar{

    display:grid;

    grid-template-columns:

        auto

        1fr

        auto;

    align-items:center;

}

.nav-menu{

    display:flex;

    justify-content:center;

    gap:var(--space-xl);
}

.nav-menu a {

    position: relative;

    color: var(--white);

    font-size: var(--font-size-base);

    font-weight: var(--font-medium);

    transition: var(--transition-normal);

}

.nav-menu a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background: var(--primary-color);

    transition: var(--transition-normal);

}

.nav-menu a:hover::after {

    width: 100%;

}

.resume-link {

    color: var(--white);

    font-weight: var(--font-semibold);

    transition: var(--transition-normal);

}

body {
    padding-top: var(--header-height);
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ==========================================
   GLOBAL ELEMENTS
========================================== */

img {
    display: block;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
}

/* ==========================================
   TYPOGRAPHY
========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

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

.hero-subtitle {
    color: var(--secondary-color);
    font-size: var(--font-size-base);
    font-weight: var(--font-semibold);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.25rem);
    font-weight: var(--font-extrabold);
    line-height: 1;
}

.hero-heading {
    font-size: var(--font-size-md);
    color: var(--gray);
    font-weight: var(--font-medium);
}

.hero-description {
    max-width: 520px;
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.7;
}

/* ==========================================================
   HERO SOCIAL LINKS
========================================================== */

.hero-socials {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: var(--gray);
    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-round);

    transition: var(--transition-fast);
}

.hero-socials svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.hero-socials a:hover {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);

    transform: translateY(-3px);
}

/* ==========================================
   LAYOUT
========================================== */

.container {
    width: min(90%, var(--container-width));
    margin-inline: auto;
}

section {
    padding: var(--section-padding) 0;
     scroll-margin-top: calc(
        var(--header-height) + var(--space-md)
    );
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.9rem 2rem;

    border-radius: 10px;

    font-weight: 600;

    transition: var(--transition-fast);

    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-color);
}




/* ==========================================
   UTILITIES
========================================== */

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

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

.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;

    padding-block: var(--space-xl);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--space-2xl);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
   
}



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

.hero-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-skills span {
    padding: .6rem 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: .9rem;
}

.hexagon-bg {

    position: absolute;
    width: 115%;
    max-width: 650px;
    opacity: .50;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;

}

.profile-photo {

    position: relative;
    width: 350px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 60%;
    border: 6px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-lg);
    z-index: 2;


}

/* ==========================================
   SECTION HEADERS
========================================== */

.section-header {
    max-width: 700px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 1rem;

    color: var(--secondary-color);

    font-size: var(--font-size-sm);

    font-weight: var(--font-bold);

    letter-spacing: 3px;
}

.section-title {
    margin-bottom: 1.5rem;

    font-size: clamp(2.5rem, 5vw, 3.5rem);

    font-weight: var(--font-extrabold);

    color: var(--heading-color);
}

.section-description {
    color: var(--gray);

    font-size: var(--font-size-md);

    line-height: 1.8;
}
/* ==========================================================
   DESKTOP NAVIGATION
========================================================== */

@media screen and (min-width: 761px) {

     .profile-photo {
        transform: translateY(-70px);
    }

    .navbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .menu-toggle {
        display: none !important;
        visibility: hidden;
        width: 0;
        height: 0;
        padding: 0;
        border: 0;
    }

    .nav-menu {
        position: static;

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

        gap: var(--space-xl);
        padding: 0;

        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .mobile-resume-item {
        display: none !important;
    }

    .resume-link {
        display: inline-flex !important;
        justify-self: end;
        align-items: center;

        color: var(--white);
        font-weight: var(--font-semibold);
    }

}
/* ==========================================================
   TABLET AND MOBILE
========================================================== */

@media (max-width: 760px) {

    /* Header */

    .header {
        height: var(--header-height);
    }

    .header .container {
        width: 90%;
    }

    .navbar {
        position: relative;

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

        min-height: var(--header-height);
    }

    .logo {
        width: 72px;
        height: 46px;
    }

    /* Mobile menu */

    .menu-toggle {
    display: inline-flex !important;
    visibility: visible;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
}

.resume-link {
    display: none !important;
}

.mobile-resume-item {
    display: block !important;
}

    .nav-menu {
        position: absolute;
        top: calc(100% + var(--space-xs));
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;

        gap: 0;
        padding: var(--space-sm);

        background: rgba(15, 23, 42, 0.98);

        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);

        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(18px);
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;

        width: 100%;
        padding: var(--space-md);

        text-align: center;

        border-radius: var(--radius-sm);
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-menu a::after {
        display: none;
    }

    .mobile-resume-item {
        display: block;
    }

    .mobile-resume-item a {
        color: var(--secondary-color);
        font-weight: var(--font-semibold);
    }

    /* Hero */

    .hero {
        min-height: auto;

        padding-top: var(--space-xl);
        padding-bottom: var(--space-3xl);
    }

    .hero-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-content {
        order: 1;
        gap: var(--space-md);
    }

    .hero-image {
        order: 2;
    }

    .hero-title {
        font-size: clamp(2.4rem, 12vw, 3.25rem);
    }

    .hero-heading {
        font-size: var(--font-size-base);
    }

    .hero-description {
        max-width: none;

        font-size: var(--font-size-sm);
        line-height: 1.7;
    }

    .hero-skills {
        margin-top: var(--space-sm);
        gap: var(--space-xs);
    }

    .hero-skills span {
        padding: 0.4rem var(--space-sm);
        font-size: var(--font-size-xs);
    }

    .hero-socials a {
        width: 40px;
        height: 40px;
    }

    .profile-photo {
        width: min(230px, 72vw);
    }

    .hexagon-bg {
        width: min(310px, 90vw);
    }

}