/* Édouard Leroy — portfolio / Pacific Northwest visual identity */
:root {
    --deep-ocean: #081522;
    --harbour: #10293b;
    --harbour-soft: #1b3d52;
    --mist: #eef2f3;
    --paper: #f8f7f3;
    --ink: #13202b;
    --muted: #687985;
    --gold: #d6ad5c;
    --gold-soft: #ead7ad;
    --line: #d9e0e3;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(8, 21, 34, .12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
    linear-gradient(180deg, var(--paper) 0%, #f3f6f6 100%);
    -webkit-font-smoothing: antialiased;
}


a {
    color: inherit;
}

/* HERO — Victoria drives the palette */
.hero {
    position: relative;
    min-height: 72vh;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
    background-color: var(--deep-ocean);
    background-image:
        linear-gradient(90deg, rgba(5, 15, 25, .84) 0%, rgba(5, 15, 25, .54) 34%, rgba(5, 15, 25, .14) 64%, rgba(5, 15, 25, .03) 100%),
        linear-gradient(0deg, rgba(5, 15, 25, .62) 0%, rgba(5, 15, 25, .16) 42%, rgba(5, 15, 25, .04) 100%),
        url('../images/victoria-hero-generated.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 170px;
    background: linear-gradient(180deg, transparent, rgba(8, 21, 34, .52));
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
    radial-gradient(circle at 78% 22%, rgba(214, 173, 92, .12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(8,21,34,.08));
    z-index: -1;
}

.top-nav {
    position: relative;
    z-index: 2;
    width: min(1440px, 92%);
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .13em;
}


.nav-links {
    display: flex;
    gap: 34px;
}

.nav-links a {
    position: relative;
    padding-bottom: 8px;
    font-size: .74rem;
    opacity: .9;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .2s ease;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1440px, 92%);
    margin: 0 auto;
    padding: clamp(145px, 22vh, 230px) 0 58px;
}

.hero-content::before {
    content: "VICTORIA, BC";
    display: block;
    margin-bottom: 20px;
    color: var(--gold-soft);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .23em;
}

h1 {
    max-width: 760px;
    font-size: clamp(2.8rem, 4.7vw, 4.9rem);
    line-height: .94;
    letter-spacing: -.035em;
    font-weight: 680;
    text-wrap: balance;
}

.role {
    margin-top: 18px;
    color: var(--white);
    font-size: clamp(.88rem, 1.2vw, 1.08rem);
    font-weight: 500;
    letter-spacing: .11em;
}

.location {
    margin-top: 16px;
    color: rgba(255,255,255,.84);
    font-size: 1.03rem;
}

.maple {
    margin-left: 7px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    min-width: 170px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid rgba(255,255,255,.62);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .75rem;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--deep-ocean);
}

.btn-secondary {
    background: rgba(8, 21, 34, .38);
    backdrop-filter: blur(5px);
}

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

/* MAIN CONTENT */
.content-shell {
    width: min(1440px, 92%);
    margin: 0 auto;
    padding: 72px 0 0;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 54px;
}

.section-card {
    position: relative;
    padding: 0 0 48px;
}

.section-card h2 {
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 1rem;
    font-weight: 760;
    color: var(--deep-ocean);
}

.section-card h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 12px;
    background: var(--gold);
}

p {
    margin-bottom: 14px;
    color: var(--muted);
    line-height: 1.75;
}

.about {
    grid-column: 1;
    grid-row: 1;
}

.skills {
    grid-column: 2;
    grid-row: 1;
}

.experience {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.projects {
    grid-column: 1 / span 2;
    grid-row: 2;
    margin-top: -95px;
}

.contact {
    grid-column: 3;
    grid-row: 3;
    align-self: start;
    margin-top: -280px;
}

/* Skills — cleaner, more product-like */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(74px, auto);
    gap: 10px;
}

.skill-grid span {
    min-height: 74px;
    display: grid;
    place-items: center;
    padding: 12px 8px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.68);
    text-align: center;
    font-size: .84rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(16, 41, 59, .04);
}

/* Projects — visual language that can later mirror Flyn */
.projects {
    padding: 32px;
    border: 1px solid rgba(16, 41, 59, .08);
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow);
}

.project {
    position: relative;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

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

.project h3 {
    margin-bottom: 8px;
    color: var(--deep-ocean);
    font-size: 1.24rem;
}

.project h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 10px 1px 0;
    border-radius: 50%;
    background: var(--gold);
}

.contact h2 {
    margin-top: 20px;
}


.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.contact-links a {
    padding: 10px 18px;
    border: 1px solid var(--harbour);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 650;
    transition: .18s ease;
}

.contact-links a:hover {
    background: var(--harbour);
    color: var(--white);
}

footer {
    grid-column: 1 / -1;
    margin-top: -70px;
    padding: 30px max(4%, calc((100vw - 1440px) / 2));
    display: flex;
    justify-content: center;
    gap: 28px;
    background: var(--deep-ocean);
    color: #dbe5eb;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .7rem;
}

@media (max-width: 1050px) {
    .content-shell {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .about,
    .skills,
    .experience,
    .projects,
    .contact {
        grid-column: auto;
        grid-row: auto;
    }

    .contact {
        margin-top: 0;
    }

    .experience,
    .projects,
    .contact {
        grid-column: 1 / -1;
    }

    .projects {
        margin-top: 0;
    }

    footer {
        margin-top: 18px;
    }

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

}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: 650px;
        background-position: center, center, 60% center;
        background-size: cover, cover, cover;
    }

    .hero-content {
        padding-top: 115px;
    }

    h1 {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }

    .role {
        max-width: 320px;
        line-height: 1.5;
    }

    .content-shell {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 48px;
    }

    .about,
    .skills,
    .experience,
    .projects,
    .contact {
        grid-column: 1;
        grid-row: auto;
    }

    .projects {
        padding: 26px 22px;
    }

}

@media (max-width: 520px) {
    .top-nav {
        padding-top: 22px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        max-width: 270px;
    }

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

    footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

}


/* =========================================================
   HERO V3 — faithful to the approved mockup
   ========================================================= */

.hero {
    min-height: 72vh;
    background-image:
        linear-gradient(90deg, rgba(5, 15, 25, .76) 0%, rgba(5, 15, 25, .48) 26%, rgba(5, 15, 25, .12) 50%, rgba(5, 15, 25, .02) 76%),
        linear-gradient(0deg, rgba(5, 15, 25, .70) 0%, rgba(5, 15, 25, .18) 36%, rgba(5, 15, 25, .03) 72%),
        url('../images/victoria-hero-generated.png');
    background-position: center;
    background-size: cover;
}

.hero-content {
    width: min(1440px, 92%);
    min-height: calc(72vh - 90px);
    margin: 0 auto;
    padding: 0 0 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero-content::before {
    content: none;
}

.hero-accent {
    display: block;
    width: 34px;
    height: 2px;
    margin-bottom: 13px;
    background: #d4af37;
}

.hero-content h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(2rem, 2.9vw, 3.05rem);
    line-height: 1;
    letter-spacing: -.02em;
    font-weight: 620;
    text-transform: none;
    text-wrap: nowrap;
}

.hero-content .role {
    margin-top: 12px;
    margin-bottom: 0;
    color: rgba(255,255,255,.96);
    font-size: clamp(.68rem, .78vw, .80rem);
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.35;
}

.hero-content .location {
    margin-top: 9px;
    margin-bottom: 0;
    color: rgba(255,255,255,.84);
    font-size: .76rem;
    line-height: 1.35;
}

.hero-content .maple {
    margin-left: 4px;
}

.hero-content .hero-actions {
    gap: 11px;
    margin-top: 16px;
}

.hero-content .btn {
    min-width: 128px;
    min-height: 38px;
    padding: 9px 16px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
}

@media (max-width: 760px) {
    .hero-content {
        min-height: 650px;
        padding-bottom: 42px;
    }

    .hero-content h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
        text-wrap: balance;
    }

    .hero-content .role {
        max-width: 300px;
    }
}
