/* ==========================================
   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
========================================================== */

.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);

    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: .18;

    animation: float 8s ease-in-out infinite;

    pointer-events: none;

}

.profile-photo {

    position: relative;

    width: 420px;

    aspect-ratio: 1;

    object-fit: cover;

    border-radius: 50%;

    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;
}
