/* =============================================
      VARIABLES
   ============================================= */
:root {
    --color-principal: #881827;
    --color-secondary: #111;
    --color-text: #fff;
    --color-accent: #a02232;
    --color-deep-gradient: #1e0411;
    --color-bg-secondary: #222;

    --page-side-margin: clamp(1rem, 6vw, 140px);
    --content-max-width: 900px;
}

/* =============================================
      FONTS
   ============================================= */
@font-face {
    font-family: "Raylig";
    font-display: swap;
    src: local("Raylig"), url("./font/Raylig-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

/* =============================================
      RESET
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =============================================
      BASE
   ============================================= */
html {
    font-size: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    scroll-behavior: smooth;
    font-family: "Inter", system-ui, sans-serif;
    background-color: #111;
    color: #fff;
}

/* =============================================
      STRUCTURE
   ============================================= */
.page {
    min-height: 100svh;
    overflow-x: hidden;
    padding-top: 5rem;
}

/* =============================================
      HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1.25rem var(--page-side-margin) 0.75rem;
    z-index: 10;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: rgba(30, 4, 17, 0.25);
    backdrop-filter: blur(6px);
}

/* =============================================
      NAVIGATION DESKTOP
   ============================================= */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text);
}

.nav-label,
.nav-sub {
    display: block;
}

.nav-label {
    font-weight: 400;
    letter-spacing: 0.1em;
}

.nav-sub {
    font-weight: 700;
    letter-spacing: 0.12em;
}

.nav-links--desktop {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 2rem;
}

/* =============================================
      HERO
   ============================================= */
#liquid-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero {
    width: 100%;
    padding-inline: var(--page-side-margin);

    height: 100vh;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.hero-name {
    margin: 0 0 0.45em;
    font-family: "Raylig", serif;
    font-weight: 600;
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-text);
    line-height: 1;
}

.hero-role {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.hero-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.18);
    margin: 1.75rem auto;
}

.hero-hook {
    margin: 0 auto 3rem;
    font-family: "Raylig", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    max-width: 36rem;
    line-height: 1.75;
    text-wrap: balance;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1.25em;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    padding: 1em 3em;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-cta-arrow {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
}

.hero-cta-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}

/* =============================================
      ABOUT
   ============================================= */
.about {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 5rem);
}

.about-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(260px, 40%) 1fr;
}

.about-photo {
    background: url(../asset/portrait-about.jpg) center/cover no-repeat;
    min-height: 320px;
}

.about-content {
    background-color: var(--color-deep-gradient);
    padding: clamp(4rem, 8vw, 8rem) clamp(3rem, 6vw, 7rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    margin: 0 0 2rem;
    font-family: "Raylig", serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
}

.about-text {
    max-width: 580px;
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    line-height: 1.8;
    opacity: 0.9;
}

.about-text p {
    margin: 0 0 0.75rem;
    text-align: justify;
}

.about-socials {
    margin-top: 2.8rem;
}

.about-socials-title {
    margin: 0 0 1.5rem;
    font-family: "Raylig", serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
}

.about-socials-list {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-linkedin,
.about-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.about-linkedin-link,
.about-instagram-link {
    text-decoration: none;
    color: var(--color-text);
    opacity: 0.85;
}

.about-linkedin i,
.about-instagram i {
    font-size: 2rem;
}

/* =============================================
      FOOTER
   ============================================= */
.site-footer {
    text-align: center;
    padding: 1.2rem var(--page-side-margin);
    background-color: var(--color-deep-gradient);
}

.footer-text {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.45;
}

#mentionsLeg {
    text-decoration: none;
    color: var(--color-text);
}

/* =============================================
      NAVIGATION MOBILE
   ============================================= */
.nav-toggle,
.nav-overlay,
.nav-drawer {
    display: none;
}

@media (max-width: 768px) {

    .header {
        padding: 0.75rem var(--page-side-margin);
        background: transparent;
    }

    .nav-links--desktop {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 0.375rem;
        background: transparent;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 100;
    }

    .nav-toggle__bar {
        width: 1.5rem;
        height: 2px;
        background: var(--color-text);
        opacity: 0.9;
        border-radius: 999px;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 50;
    }

    .nav-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(86vw, 22rem);
        background: rgba(10, 10, 10, 0.92);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.7);
        transform: translateX(110%);
        transition: transform 0.28s ease;
        z-index: 60;
        padding: 1rem;
    }

    .nav-drawer.is-open {
        transform: translateX(0);
    }

    .nav-drawer__top {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .nav-drawer__title {
        font-family: "Raylig", serif;
        font-size: 1.125rem;
    }

    .nav-drawer__close {
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(0, 0, 0, 0.25);
        color: var(--color-text);
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 999px;
        cursor: pointer;
    }

    .nav-links--mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-top: 0.5rem;
    }

    .nav-links--mobile .nav-item {
        text-align: left;
        padding: 0.75rem 0.5rem;
        border-radius: 0.75rem;
    }

    .nav-links--mobile .nav-item:active {
        background: rgba(255, 255, 255, 0.06);
    }

    .hero {
        height: auto;
        min-height: 100svh;
    }
}

/* =============================================
      RESPONSIVE TABLETTE
   ============================================= */
@media (max-width: 1024px) {

    .about-layout {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: clamp(1.8rem, 8vw, 3rem);
        letter-spacing: 0.2em;
    }
}