* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f8f3eb;
    color: #202020;
    line-height: 1.6;
    overflow-x: hidden
}

img {
    display: block;
    width: 100%
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font-family: inherit
}

:root {
    --cream: #f8f3eb;
    --blue: #cfeeff;
    --blue-strong: #1687ff;
    --pink: #ffd8df;
    --yellow: #ffe36b;
    --green: #dcefd9;
    --coral: #ff8f85;
    --black: #202020;
    --white: #ffffff;
    --border: #222222
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 4%;
    background: rgba(248, 243, 235, 0.88);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease
}

.logo {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.5px
}

.main-nav {
    display: flex;
    gap: 27px
}

.main-nav a {
    position: relative;
    font-size: 11px;
    font-weight: 600
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width 0.25s ease
}

.main-nav a:hover::after {
    width: 100%
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 13px
}

.language-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800
}

.language-toggle span {
    opacity: 0.35
}

.nav-button {
    background: var(--black);
    color: white;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    transition: 0.25s ease
}

.nav-button:hover {
    background: var(--blue-strong);
    transform: translateY(-2px)
}

/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    padding: 145px 8% 90px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px
}

.hero-text {
    max-width: 850px
}

.small-label {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 18px
}

.hero h1 {
    font-size: clamp(55px, 8vw, 112px);
    line-height: 0.86;
    letter-spacing: -6px;
    font-weight: 800
}

.hero h1 span {
    color: var(--blue-strong)
}

.hero-description {
    max-width: 500px;
    margin: 30px 0 25px;
    font-size: 15px
}

.availability {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap
}

.availability div {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--black);
    border-radius: 11px
}

.availability strong {
    font-size: 9px
}

.availability span {
    font-size: 10px
}

.hero-buttons {
    display: flex;
    gap: 10px
}

/* ================= BUTTONS ================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 21px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s ease
}

.button.primary {
    background: var(--blue-strong);
    color: white
}

.button.secondary {
    border: 1px solid var(--black)
}

.button:hover {
    transform: translateY(-3px)
}

/* ================= HERO VISUAL ================= */

.hero-visual {
    position: relative;
    max-width: 470px;
    width: 100%;
    margin-left: auto
}

.photo-frame {
    position: relative;
    padding: 11px;
    background: white;
    transform: rotate(2deg);
    box-shadow: 8px 10px 0 var(--black)
}

.photo-frame img {
    aspect-ratio: 4 / 5;
    object-fit: cover
}

.doodle {
    position: absolute;
    z-index: 5;
    font-family: "Permanent Marker", cursive;
    color: var(--coral);
    font-size: 21px
}

.doodle-top {
    top: -30px;
    right: -25px;
    transform: rotate(8deg)
}

.doodle-bottom {
    bottom: -38px;
    left: -50px;
    transform: rotate(-8deg)
}

/* ================= GENERAL SECTIONS ================= */

.section {
    padding: 105px 8%
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 55px
}

.section-heading span {
    font-size: 11px;
    font-weight: 800;
    color: var(--blue-strong)
}

.section-heading h2 {
    font-size: clamp(40px, 6vw, 75px);
    line-height: 0.95;
    letter-spacing: -4px
}

/* ================= ABOUT ================= */

.about {
    background: var(--blue)
}

.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 75px;
    align-items: center
}

.about-image {
    padding: 10px;
    background: white;
    transform: rotate(-2deg);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1)
}

.about-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover
}

.about-text {
    max-width: 700px
}

.large-text {
    font-size: 23px;
    line-height: 1.35;
    margin-bottom: 28px
}

.about-text p:not(.large-text) {
    margin-bottom: 16px;
    font-size: 14px
}

.hand-note {
    display: inline-block;
    margin-top: 15px;
    font-family: "Permanent Marker", cursive;
    color: var(--blue-strong);
    transform: rotate(-3deg)
}

/* ================= SKILLS ================= */

.skills-section {
    background: var(--cream)
}

.skills-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 13px
}

.skill-card {
    min-height: 245px;
    padding: 22px;
    border: 1px solid var(--black);
    border-radius: 17px;
    transition: 0.3s ease
}

.skill-card:hover {
    transform: translateY(-7px) rotate(-1deg)
}

.skill-card span {
    font-size: 10px;
    font-weight: 800
}

.skill-card h3 {
    margin: 48px 0 13px;
    font-size: 19px;
    line-height: 1.1
}

.skill-card p {
    font-size: 12px;
    line-height: 1.5
}

.pink {
    background: var(--pink)
}

.blue {
    background: var(--blue)
}

.yellow {
    background: var(--yellow)
}

.green {
    background: var(--green)
}

.coral {
    background: #ffd4ca
}

/* ================= EXPERIENCES ================= */

.experience {
    background: white
}

.timeline {
    max-width: 1200px;
    margin: auto
}

.experience-item {
    display: grid;
    grid-template-columns: 145px 220px minmax(0, 1fr);
    gap: 30px;
    padding: 30px;
    margin-bottom: 18px;
    border: 1px solid rgba(32, 32, 32, 0.12);
    border-radius: 20px;
    align-items: start;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease
}

.experience-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--blue-strong);
    opacity: 0.8;
    transition: width 0.35s ease
}

.experience-item:nth-child(2)::before {
    background: var(--pink)
}

.experience-item:nth-child(3)::before {
    background: var(--yellow)
}

.experience-item:nth-child(4)::before {
    background: var(--coral)
}

.experience-item:nth-child(1) {
    background: #f6fbff
}

.experience-item:nth-child(2) {
    background: #fff7f9
}

.experience-item:nth-child(3) {
    background: #fffdf0
}

.experience-item:nth-child(4) {
    background: #fff6f3
}

.experience-item:hover {
    transform: translateY(-7px);
    box-shadow: 9px 12px 0 rgba(32, 32, 32, 0.08);
    border-color: rgba(32, 32, 32, 0.25)
}

.experience-item:hover::before {
    width: 10px
}

.experience-image {
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease
}

.experience-item:hover .experience-image {
    transform: rotate(-1.5deg) scale(1.025);
    box-shadow: 5px 7px 0 rgba(32, 32, 32, 0.12)
}

.experience-content h3 {
    transition: transform 0.35s ease, color 0.35s ease
}

.experience-item:hover .experience-content h3 {
    transform: translateX(4px);
    color: var(--blue-strong)
}

.experience-date {
    transition: transform 0.35s ease, color 0.35s ease
}

.experience-item:hover .experience-date {
    transform: translateX(4px);
    color: var(--blue-strong)
}

.experience-date {
    font-size: 9px;
    font-weight: 800
}

.experience-image {
    width: 220px;
    height: 275px;
    overflow: hidden;
    border-radius: 4px
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.experience-content h3 {
    font-size: 23px;
    line-height: 1.15;
    margin-bottom: 5px
}

.experience-content h4 {
    color: var(--blue-strong);
    font-size: 12px;
    margin-bottom: 16px
}

.experience-content ul {
    padding-left: 17px
}

.experience-content li {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.5
}

/* ================= PROJECTS ================= */

.projects {
    background: #fff8f1;
    overflow: hidden
}

.section-intro {
    max-width: 600px;
    font-size: 16px;
    margin-top: -25px;
    margin-bottom: 40px
}

.project-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto
}

.project-slide {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 45px;
    min-height: 405px;
    padding: 22px;
    background: white;
    border: 1px solid var(--black);
    border-radius: 21px;
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.08);
    transition: opacity 0.18s ease, transform 0.18s ease
}

.project-slide-image {
    width: 100%;
    overflow: hidden;
    border-radius: 13px;
    background: #eee
}

.project-slide-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease
}

.project-slide:hover .project-slide-image img {
    transform: scale(1.03)
}

.project-slide-content {
    position: relative;
    padding-right: 10px
}

.project-slide-content>span:first-child {
    display: block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--blue-strong);
    margin-bottom: 15px
}

.project-counter {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #999
}

.project-counter #projectNumber {
    color: var(--black)
}

.project-slide-content h3 {
    font-size: clamp(35px, 4vw, 53px);
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 19px
}

.project-slide-content p {
    max-width: 420px;
    font-size: 13px;
    line-height: 1.6;
    color: #444
}

.project-arrow {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--black);
    border-radius: 50%;
    background: transparent;
    color: var(--black);
    font-size: 21px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease
}

.project-arrow:hover {
    background: var(--black);
    color: white;
    transform: scale(1.08)
}

.project-progress {
    width: 100%;
    max-width: 1100px;
    height: 3px;
    margin: 25px auto 0;
    background: #ddd;
    overflow: hidden
}

#projectProgress {
    display: block;
    height: 100%;
    width: 10%;
    background: var(--black);
    transition: width 0.3s ease
}

.project-mobile-hint {
    margin-top: 14px;
    text-align: center;
    font-family: "Permanent Marker", cursive;
    color: var(--coral);
    font-size: 14px;
    transform: rotate(-2deg)
}

/* ================= TOOLS ================= */

.tools {
    background: var(--yellow)
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

.tools-list span {
    padding: 9px 15px;
    background: white;
    border: 1px solid var(--black);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.25s ease
}

.tools-list span:hover {
    transform: rotate(-2deg) translateY(-3px)
}

/* ================= EDUCATION ================= */

.education {
    background: var(--cream)
}

.education-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 35px;
    align-items: start
}

.education-card {
    padding: 35px;
    background: white;
    border: 1px solid var(--black);
    border-radius: 18px
}

.education-card span {
    font-size: 10px;
    font-weight: 800
}

.education-card h3 {
    font-size: 30px;
    line-height: 1.1;
    margin: 13px 0
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.languages h3 {
    width: 100%;
    margin-bottom: 5px
}

.languages span {
    padding: 9px 14px;
    background: var(--pink);
    border-radius: 30px;
    font-size: 12px
}

/* ================= LINKEDIN ================= */

.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 30px;
    padding: 12px 18px;
    background: var(--black);
    color: white;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease
}

.linkedin-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: white;
    color: var(--black);
    font-size: 12px;
    font-weight: 800
}

.linkedin-button:hover {
    background: var(--blue-strong);
    transform: translateY(-4px);
    box-shadow: 5px 6px 0 rgba(32, 32, 32, 0.15)
}

/* =====================================================
   CENTRES D'INTÉRÊT — CORRECTED EDITORIAL LAYOUT
===================================================== */

.interests {
    background: #fff8f1;
    overflow: hidden
}

.interests-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-top: -25px;
    margin-bottom: 45px
}

.interests-intro p {
    max-width: 650px;
    font-size: 15px
}

.interest-note {
    font-family: "Permanent Marker", cursive;
    color: var(--coral);
    font-size: 16px;
    transform: rotate(-4deg);
    white-space: nowrap
}

/* MAIN LAYOUT */

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 430px 300px;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto
}

/* ALL CARDS */

.interest-card {
    min-height: 0;
    width: 100%;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--black);
    border-radius: 24px;
    position: relative;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease
}

/* TRAVEL = LARGE FEATURE CARD */

.interest-travel {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: 1.25fr 0.75fr;
    background: var(--blue)
}

/* MODE + ANIMAUX = EQUAL CARDS */

.interest-fashion,
.interest-animals {
    grid-row: 2;
    grid-template-columns: 0.95fr 1.05fr
}

.interest-fashion {
    background: var(--pink)
}

.interest-animals {
    background: var(--yellow)
}

/* IMAGES */

.interest-photo,
.interest-travel .interest-photo {
    min-height: 0;
    height: 100%;
    width: 100%;
    border: 0;
    position: relative;
    overflow: hidden
}

.interest-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease
}

/* INDIVIDUAL CROPPING */

.interest-travel .interest-photo img {
    object-position: center 48%
}

.interest-fashion .interest-photo img {
    object-position: center center
}

.interest-animals .interest-photo img {
    object-position: center center
}

/* IMAGE HOVER */

.interest-card:hover .interest-photo img {
    transform: scale(1.035)
}

/* CONTENT */

.interest-card-content {
    min-height: 0;
    height: 100%;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.interest-card-content>span {
    margin-bottom: auto;
    font-size: 10px;
    font-weight: 800
}

/* TRAVEL TYPOGRAPHY */

.interest-travel .interest-card-content {
    padding: 34px
}

.interest-travel .interest-card-content h3 {
    font-size: clamp(58px, 6vw, 88px);
    line-height: 0.9;
    margin-bottom: 18px
}

/* SMALLER CARDS TYPOGRAPHY */

.interest-fashion .interest-card-content h3,
.interest-animals .interest-card-content h3 {
    font-size: clamp(42px, 4vw, 64px);
    line-height: 0.9;
    margin-bottom: 14px
}

.interest-card-content p {
    max-width: 390px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5
}

.interest-travel .interest-card-content p {
    max-width: 430px
}

/* CARD HOVER */

.interest-card:hover {
    transform: translateY(-7px) rotate(-0.7deg);
    box-shadow: 8px 10px 0 rgba(32, 32, 32, 0.1)
}

/* ================= INTERNSHIP ================= */

.internship {
    padding: 120px 8%;
    background: var(--black);
    color: white
}

.internship-content {
    max-width: 1050px
}

.internship h2 {
    font-size: clamp(50px, 8vw, 105px);
    line-height: 0.9;
    letter-spacing: -6px;
    margin-bottom: 35px
}

.internship h2 span {
    color: var(--yellow)
}

.internship p {
    max-width: 700px;
    font-size: 17px;
    margin-bottom: 30px
}

.internship-dates {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px
}

.internship-dates div {
    padding: 15px 19px;
    border: 1px solid white;
    border-radius: 13px
}

.internship-dates strong,
.internship-dates span {
    display: block
}

.internship-dates strong {
    color: var(--yellow);
    font-size: 11px
}

.internship-dates span {
    font-size: 12px
}

/* ================= CONTACT ================= */

.contact {
    background: var(--blue)
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px
}

.contact h3 {
    font-size: clamp(40px, 5vw, 62px);
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 22px
}

.contact-content>div:first-child p {
    max-width: 500px;
    font-size: 15px
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 19px
}

.contact-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25)
}

.contact-item span {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 3px
}

.contact-item a,
.contact-item strong {
    font-size: 15px;
    font-weight: 700
}

.contact-item a:hover {
    color: var(--blue-strong)
}

/* ================= FOOTER ================= */

footer {
    padding: 45px 8%;
    background: var(--black);
    color: white
}

.footer-logo {
    font-size: 19px;
    font-weight: 800
}

footer p {
    font-size: 11px;
    opacity: 0.7
}

.footer-links {
    display: flex;
    gap: 25px;
    margin: 16px 0
}

.footer-links a {
    font-size: 11px
}

.footer-links a:hover {
    color: var(--yellow)
}

footer small {
    font-size: 9px;
    opacity: 0.4
}

/* ================= TABLET ================= */

@media (max-width:1000px) {

    .main-nav {
        gap: 13px
    }

    .hero {
        grid-template-columns: 1fr
    }

    .hero-visual {
        margin: 0 auto
    }

    .skills-cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .experience-item {
        grid-template-columns: 120px 200px minmax(0, 1fr)
    }

    .experience-image {
        width: 200px;
        height: 250px
    }

}

/* ================= MOBILE ================= */

@media (max-width:800px) {

    .navbar {
        padding: 15px 5%
    }

    .main-nav {
        display: none
    }

    .nav-button {
        display: none
    }

    .hero {
        padding: 120px 6% 75px
    }

    .hero h1 {
        font-size: 54px;
        letter-spacing: -4px
    }

    .section {
        padding: 80px 6%
    }

    .section-heading h2 {
        font-size: 43px
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px
    }

    .large-text {
        font-size: 21px
    }

    .skills-cards {
        grid-template-columns: 1fr
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 17px
    }

    .experience-image {
        width: 100%;
        max-width: 350px;
        height: 280px
    }

    /* PROJECT CAROUSEL */

    .project-carousel {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 6px
    }

    .project-slide {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
        padding: 13px
    }

    .project-slide-image img {
        aspect-ratio: 4 / 3
    }

    .project-slide-content {
        padding: 5px 5px 13px
    }

    .project-slide-content h3 {
        font-size: 35px
    }

    .project-slide-content p {
        font-size: 12px
    }

    .project-arrow {
        width: 37px;
        height: 37px;
        font-size: 17px
    }

    .education-grid {
        grid-template-columns: 1fr
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px
    }

    .internship {
        padding: 90px 6%
    }

    .internship h2 {
        font-size: 54px;
        letter-spacing: -4px
    }

    /* INTEREST INTRO */

    .interests-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px
    }

    .interest-note {
        align-self: flex-end
    }

    /* INTEREST GRID */

    .interests-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px
    }

    .interest-travel,
    .interest-fashion,
    .interest-animals {
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: 1fr
    }

    .interest-travel {
        min-height: 520px
    }

    .interest-fashion,
    .interest-animals {
        min-height: 440px
    }

    .interest-photo,
    .interest-travel .interest-photo {
        min-height: 250px;
        height: 250px
    }

    .interest-travel .interest-photo {
        height: 300px
    }

    .interest-card-content,
    .interest-travel .interest-card-content {
        min-height: 190px;
        height: auto;
        padding: 24px
    }

    .interest-travel .interest-card-content h3 {
        font-size: 58px
    }

    .interest-fashion .interest-card-content h3,
    .interest-animals .interest-card-content h3 {
        font-size: 48px
    }

}

/* ================= VERY SMALL MOBILE ================= */

@media (max-width:480px) {

    .hero h1 {
        font-size: 45px;
        letter-spacing: -3px
    }

    .hero-description {
        font-size: 14px
    }

    .availability {
        flex-direction: column
    }

    .availability div {
        width: 100%
    }

    .section-heading {
        gap: 10px
    }

    .section-heading h2 {
        font-size: 38px
    }

    .project-carousel {
        grid-template-columns: 32px minmax(0, 1fr) 32px
    }

    .project-arrow {
        width: 31px;
        height: 31px;
        font-size: 15px
    }

    .project-slide-content h3 {
        font-size: 31px
    }

    .internship h2 {
        font-size: 45px
    }

}













/* ==============================
   MOBILE RESPONSIVE FIX
   ============================== */

@media (max-width: 768px) {

    /* Prevent horizontal overflow */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    section,
    header,
    footer {
        max-width: 100%;
    }

    /* General spacing */
    section {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Main headings */
    h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        line-height: 0.95;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.1;
    }

    /* Cards should fit the screen */
    .experience-card,
    .project-card {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Experience cards */
    .experience-card {
        height: auto;
    }

    /* Images never exceed their containers */
    .experience-card img,
    .project-card img {
        max-width: 100%;
        object-fit: contain;
    }

    /* Allow skill/tool tags to wrap */
    .tools,
    .skills,
    .tools-list,
    .skills-list {
        display: flex;
        flex-wrap: wrap;
        max-width: 100%;
    }

    /* Avoid fixed-width layouts */
    .container,
    .section-container {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {

    section {
        padding-left: 16px;
        padding-right: 16px;
    }

    p {
        overflow-wrap: break-word;
    }

    /* Keep cards inside the viewport */
    .experience-card,
    .project-card {
        width: 100%;
    }
}