body {
    margin: 0;
    background-color: #F8F9FA;
}
html {
    scroll-behavior: smooth;
}

/* Hero & navigation */
#hero {
    width: 100%;
    height: 100vh;
    background-image: url("images/background_blurry.png");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
}

#hero > nav:not(.side-nav) .nav-logo {
    position: absolute;
    top: 18px;
    left: 52px;
    display: block;
    width: 52px;
    height: 52px;
    z-index: 2;
}

#hero > nav:not(.side-nav) .nav-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#hero > nav:not(.side-nav) .nav-logo:hover {
    transform: scale(1.05);
}

#hero > nav:not(.side-nav) .nav-logo::after {
    display: none;
}

nav {
    position: relative;
    z-index: 10;
    padding: 10px 30px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 40px;

    list-style: none;

    margin: 0;
    padding: 18px 40px;
}

nav li {
    list-style: none;
}

nav a {
    position: relative;
    display: inline-block;

    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 400;

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        color 0.3s ease;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 1px;

    background: rgba(255, 255, 255, 0.8);

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

nav a:hover {
    color: #FFFFFF;
    transform: translateX(6px);
    opacity: 1;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

#hero h1 {
    margin: 0;
    text-align: center;
    font-family: "Clash Display";
    font-size: clamp(75px, 10vw, 128px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: #F4F7FC;
}

#hero h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 15px;
    margin: 26px 20px 0;
    font-family: "Clash Display", Arial, sans-serif;
    font-size: clamp(12px, 1.15vw, 18px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 249, 250, 0.90);
}

.hero-separator {
    color: rgba(248, 249, 250, 0.55);
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 34px;
    height: 48px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 249, 250, 0.65);
    border-radius: 18px;
    color: #F8F9FA;
    text-decoration: none;
    z-index: 1001;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.hero-scroll span {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    animation: hero-scroll-float 1.55s ease-in-out infinite;
}

.hero-scroll:hover {
    transform: translateX(-50%) scale(1.08);
    background-color: rgba(248, 249, 250, 0.10);
    border-color: #F8F9FA;
}

.hero-scroll:hover span {
    animation-play-state: paused;
}

@keyframes hero-scroll-float {
    0%,
    100% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(5px);
    }
}

.beyond {
    font-family: serif, "Georgia", "Times New Roman";
    font-style: italic;
    font-weight: 200;
    color: #F8F9FA;
}
.code {
    font-family: "Stardom", sans-serif;
    color: #F8F9FA;
}

#hero > nav:not(.side-nav),
#hero h1,
#hero h2 {
    will-change: transform, opacity, filter;
}

#hero {
    will-change: background-position;
}

.title-section > h2 {
    will-change: translate, opacity;
}

/* Main layout */

main {
    position: relative;
    background-color: #F8F9FA;

    margin-top: 0;
} 

.projects-intro{
    text-align: left;
}

main h1 {
    font-family: serif, arial;
    font-size: 50px;

    padding: 0 0 0 20px;
}

#projects h2{
    text-align: left;

}
#certificates h2 {
    text-align: right;
}
section {
    min-height: calc(100vh + 180px);
    box-sizing: border-box;

    padding: 70px 10% 180px;

    scroll-margin-top: 0;
}
#about {
    scroll-margin-top: -25px;
}

section h2 {
    margin: 0;

    font-family: "Clash Display", sans-serif;
    font-size: clamp(60px, 6.5vw, 102px);
    font-weight: 500;

    line-height: 0.85;
    letter-spacing: -0.055em;

    color: #171c2b;
}

section p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #555;
}

.tree-caption {
    margin: 6px 0 0;
    text-align: center;
    font-family: "Clash Display", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.4px;

    color: #6B4A35;
}

/* About */

.about{
    margin-top: 120px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    
}

.about-left p {
    
    max-width: 580px;

    font-size: 18px;
    line-height: 1.45;

    letter-spacing: -0.01em;

    margin-top: 20px;
    margin-bottom: 26px;
}
.about-left-text {
    padding-bottom: 0;
    border-bottom: 1px solid rgba(24, 32, 51, 0.22);
}

#about-left-intro p {
    font-style: italic;
}

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

    margin-top: 33px;
    margin-bottom: 0;

    padding: 14px 70px;

    border: 1px solid rgba(24, 32, 51, 0.35);
    border-radius: 4px;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    color: #182033;
    background: transparent;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.cv-button:hover {
    background-color: #6B4A35;
    color: #F8F9FA;
    border-color: #182033;
    transform: translateY(-2px);
}

#quote {
    color: #6B4A35;
    font-size: 35px;
    font-family: "Clash Display", Arial, sans-serif;
    font-style: italic;
    font-weight: 400;

    margin-top: 10px;
}

.quote-line {
    display: block;
    width: max-content;
    white-space: nowrap;
}

.line1 {
    margin-left: 0;
}

.line2 {
    margin-left: 25px;
}

.line3 {
    margin-left: 50px;
}

#quote_2 {
    white-space: nowrap;

}

#felt {
    padding: 0 8px 3px 3px;
    display: inline-block;

    font-family: "Clash Display", Arial, sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    font-style: italic;

    background: linear-gradient(
        90deg,
        #293019 0%,
        #465026 55%,
        #6C7040 100%
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    transition: transform 0.25s ease;
}

#felt:hover {
    transform: translateY(-3px) scale(1.12);
}

#justseen {
    display: inline-block;

    background: linear-gradient(
        to right,
        #6B4A35 0%,
        #7D5A42 35%,
        #A78670 65%,
        rgba(107, 74, 53, 0) 100%
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#justseen span {
    display: inline-block;
}

#justseen {
    display: inline-block;
}

#justseen span {
    display: inline-block;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.f1 { margin-left: 0px;   opacity: 1; }
.f2 { margin-left: -0.9px;   opacity: 0.98; }
.f3 { margin-left: 2px; opacity: 0.95; }
.f4 { margin-left: 3px; opacity: 0.90; }
.f5 { margin-left: 2px; opacity: 0.82; }
.f6 { margin-left: 1.8px;   opacity: 0.68; }
.f7 { margin-left: 4px; opacity: 0.48; }
.f8 { margin-left: 5px;   opacity: 0.27; }
.f9 { margin-left: 8px;   opacity: 0.08; }

.about-bottom-left {
    transform: translateY(-8px) scale(0.96);
    transform-origin: top left;
}

.skills {
    width: 60%;
    margin-top: -10px;
}

.skills-title {
    margin: 10px 0 25px;

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #2d1e15;
}

.skill-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;

    padding: 25px 0;

    border-top: 1px solid rgba(24, 32, 51, 0.28);
}

.skills-title + .skill-row {
    border-top: 1px solid #182033;
}

.core-skills {
    margin-top: 80px;
}

.skill-row:last-child {
    border-bottom: 1px solid #182033;
}

.skill-number {
    font-family: monospace;
    font-size: 14px;
    font-weight: 400;

    color: #888;
}

.skill-name {
    font-family: "Clash Display", Arial, sans-serif;
    font-size: clamp(30px, 3vw, 55px);
    font-weight: 400;
    line-height: 1;

    color: #182033;

    margin-bottom: 0;
}

.skill-row-design {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
}

.skill-row-design .skill-number {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.skill-row-design .skill-name {
    grid-column: 2;
    grid-row: 1;
}

.skill-row-design .skill-sub {
    grid-column: 2;
    grid-row: 2;

    margin-top: 13px;

    font-size: 18px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;

    color: rgba(24, 32, 51, 0.52);
}

.fact-value,
.skill-name {
    font-family: "Clash Display", Arial, sans-serif;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.fact-label,
.skill-number {
    font-weight: 400;
}

.quick-facts-title,
.skills-title {
    font-weight: 700;
}
.fact-label,
.skill-number {
    font-weight: 400;
    
}

.quick-facts-title,
.skills-title {
    font-weight: 700;
}

.about {
    position: relative;
    overflow: hidden;
}

.title-section {
    position: relative;
    overflow: hidden;
}

.title-section::before {
    content: attr(data-title);

    position: absolute;
    top: 0;

    font-family: serif, "Georgia", "Times New Roman";
    font-size: clamp(130px, 16vw, 260px);
    font-weight: 700;
    font-style: italic;

    line-height: 0.8;
    letter-spacing: -0.06em;

    color: #182033;
    opacity: 0.055;

    white-space: nowrap;

    pointer-events: none;
    z-index: 0;
}

.title-section > * {
    position: relative;
    z-index: 1;
}

.title-left::before {
    left: 5%;
}

.title-right::before {
    right: 5%;
}

.title-center::before {
    left: 50%;
    transform: translateX(-50%);
}

.title-left h2 {
    text-align: left;
}

.title-right h2 {
    text-align: right;
}

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

#certificates::before {
    left: 3%;
    bottom: 2%;
    font-size: 180px;
}

#about::before {
    font-size: clamp(100px, 11.5vw, 185px);
    top: 30px;
}

.skills {
    position: relative;
}

.internship-note {
    position: absolute;
    right: -5%;
    top: 65px;
    width: max-content;
    max-width: 280px;
    padding: 17px 22px;

    background: #F8F9FA;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 16px;

    box-shadow: 0 8px 28px rgba(23, 17, 13, 0.04);

    transform: rotate(3deg);
    animation: note-slide-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.internship-note::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 30px;

    width: 16px;
    height: 16px;
    background: #F8F9FA;

    border-right: 1px solid rgba(107, 74, 53, 0.35);
    border-bottom: 1px solid rgba(107, 74, 53, 0.35);

    transform: rotate(45deg);
}

.internship-note-label {
    font-family: "Clash Display", sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #6B4A35;
}

.internship-note p {
    margin: 8px 0 0;
    font-family: "Clash Display", sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: #49362B;
}

@keyframes note-slide-in {
    from {
        opacity: 0;
        translate: 45px 0;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.quick-facts {
    width: 100%;
    margin-top: 171px;
}

.quick-facts-title {
    margin: 0 0 18px;

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 1000;
    letter-spacing: 2px;

    color: #2d1e15;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 5fr);

    border-top: 1px solid #182033;
    border-bottom: 1px solid #182033;
}

.fact {
    padding: 18px 15px 20px 0;

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fact:not(:first-child) {
    padding-left: 18px;
    border-left: 1px solid rgba(24, 32, 51, 0.2);
}

.fact-label {
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1.4px;
    color: #888;
}

.fact-value {
    font-family: "Clash Display", Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    color: #182033;
}

#about > .about-content {
    width: 108.7%;
    margin-left: -6.5%;

    transform: translateY(15px) scale(0.88)  translateX(0px);
    transform-origin: top center;
}

#about > h2,
#projects > h2,
#certificates > h2,
#contact > h2 {
    transform: translateY(-45px);
}

/* Projects */

#projects {
    transform: translateY(-230px);
}

.projects-intro {
    margin-bottom: 55px;
    text-align: left;
    max-width: 600px;
    margin-left: 0;

    font-style: italic;
    color: #17110D;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    position: relative;
    overflow: hidden;

    height: 550px;
    border-radius: 16px;

    background:
linear-gradient(
    145deg,
    #17110D 0%,
    #241B15 50%,
    #31251D 78%,
    #27301F 100%
);
    box-shadow:
        0 10px 35px rgba(34, 27, 15, 0.10);
}

.project-image img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    opacity: 0;

    transition:
        opacity 0.45s ease,
        filter 0.45s ease,
        transform 0.45s ease;
}

.projects-grid .project-card:nth-child(2) .project-image img {
    object-position: 80.2% center;
}

.project-card:hover .project-image img {
    opacity: 0.88;

    filter:
        brightness(0.62)
        saturate(0.90);

    transform: scale(1.01);
}
.project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(25, 20, 15, 0);

    transition: background 0.4s ease;

    pointer-events: none;
    z-index: 1;
}

.project-card:hover .project-image::after {
    background: rgba(25, 20, 15, 0.18);
}

.project-label {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 90%;

    text-align: center;

    z-index: 4;
    pointer-events: none;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.project-label h3 {
    margin: 0;

    font-family: "Clash Display", sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.1;

    color: #F4F3F0;
}

.project-label p {
    margin: 18px 0 0;

    font-family: Arial, sans-serif;
    font-size: 13px;

    letter-spacing: 4px;

    color: rgba(244, 243, 240, 0.78);
}

.project-label h3,
.project-label p {
    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.project-card:hover .project-label h3 {
    color: rgba(244, 243, 240, 0.14);
}

.project-card:hover .project-label p {
    color: rgba(244, 243, 240, 0.10);
}

.project-meta {
    position: absolute;

    bottom: 22px;
    left: 25px;
    right: 25px;

    display: flex;
    justify-content: space-between;

    z-index: 4;

    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    pointer-events: none;

    color: rgba(211, 199, 175, 0.62);
}

.project-overlay {
    position: absolute;
    inset: 0;

    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding: 30px;
    box-sizing: border-box;

    opacity: 0;

    transition: opacity 0.35s ease;

    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}

.project-overlay p {
    margin: 0;

    max-width: 85%;

    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;

    color: #F4F3F0;
}

.project-overlay a {
    margin-top: 15px;

    width: fit-content;

    font-family: Arial, sans-serif;
    font-size: 16px;

    color: #D8D1C8;

    text-decoration: none;

    transition: color 0.2s ease;
}

.project-overlay a:hover {
    color: #FFFFFF;

}

.projects-github-link {
    position: relative;
    display: block;
    width: fit-content;
    margin: 48px auto 0;

    font-family: "Clash Display", Arial, sans-serif;
    font-size: 17px;
    color: #49362B;
    text-decoration: none;

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.35s ease;
}

.projects-github-link::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -5px;

    width: 100%;
    height: 1px;

    background: rgba(73, 54, 43, 0.65);

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-github-link:hover {
    color: #2F211A;
    transform: translateX(6px);
}

.projects-github-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 500px;
    }
}

/* CERTIFICATES */

#certificates {
    transform: translateY(-250px);
}

.certificate-list {
    margin-top: 45px;
}

.certificate-item {
    display: grid;
    grid-template-columns: 1fr auto 30px;
    align-items: center;

    padding: 35px 15px;
    border-top: 1px solid #9b9da3;

    font-family: "Clash Display", sans-serif;
    font-size: 22px;

    color: #171c2b;
    text-decoration: none;

    transition: 0.25s;
}

.certificate-item:last-child {
    border-bottom: 1px solid #9b9da3;
}

.certificate-meta {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #777;

    margin-right: 30px;
}

.certificate-open {
    text-align: right;
    font-family: Arial, sans-serif;
    font-size: 20px;
}

.certificate-item:hover {
    color: white;
    padding-left: 25px;

}

.cert1:hover {
    background-color: hsl(79, 30%, 16%);
}

.cert2:hover {
    background-color: hsl(79, 27%, 22%);
}

.cert3:hover {
    background-color: hsl(79, 24%, 28%);
}

.cert4:hover {
    background-color: hsl(79, 21%, 34%);
}

.cert5:hover {
    background-color: hsl(79, 18%, 40%);
}

.cert6:hover {
    background-color: hsl(79, 15%, 46%);
}

.cert7:hover {
    background-color: hsl(79, 12%, 52%);
}

.cert8:hover {
    background-color: hsl(79, 10%, 58%);
}

.cert9:hover {
    background-color: #5A514A;
}

.certificate-item:hover {
    color: #F8F9FA;
}

.certificate-item:hover .certificate-meta {
    color: rgba(248, 249, 250, 0.72);
}

.certificate-item:hover .certificate-open {
    color: #F8F9FA;
}

/* CONTACT */

#contact {
    min-height: 100vh;
    box-sizing: border-box;

    padding: 70px 10% 0;
    border-bottom: 18px solid #F8F9FA;

    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#contact h2 {
    text-align: center;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.contact-links,
.contact-socials,
.contact-version {
    width: auto;
    min-width: 140px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-version {
    align-items: flex-start;
}

.contact-content p {
    margin: 0 0 28px;

    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;

    color: rgba(255, 255, 255, 0.75);
}

.contact-links a,
.contact-socials a {
    position: relative;

    width: fit-content;
    max-width: 100%;

    margin-bottom: 12px;

    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.2;

    color: white;
    text-decoration: none;

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
}

.contact-links a::after,
.contact-socials a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 100%;
    height: 1px;

    background: rgba(255, 255, 255, 0.8);

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-links a:hover,
.contact-socials a:hover {
    transform: translateX(6px);
    opacity: 0.72;
}

.contact-links a:hover::after,
.contact-socials a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-version span {
    font-family: Arial, sans-serif;
    font-size: 18px;

    color: white;
}

.contact-buttons {
    font-family: Arial, sans-serif;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-button {
    width: 210px;
    padding: 18px 30px;

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

    color: white;
    text-decoration: none;

    border: 2px solid white;
    border-radius: 50px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.contact-button:hover {
    background-color: #F8F9FA;
    color: #5b0b16;
    transform: translateY(-3px);
}

.contact-content .contact-button {
    font-size: 15px;
}

.contact-name {
    font-family: "Clash Display", sans-serif;
    font-size: 17vw;
    font-weight: 500;
    line-height: 0.8;

    color: white;
    text-align: center;
}

/* SIDE NAV */

.side-nav {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%) translateX(40px);

    z-index: 100;
    pointer-events: none;

    padding: 30px 12px;

    background: rgba(248, 249, 250, 0.72);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(107, 74, 53, 0.14);
    border-radius: 8px;

    box-shadow:
        0 8px 30px rgba(23, 17, 13, 0.05);

    opacity: 0;

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease;
}

.side-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.side-nav li {
    list-style: none;

    opacity: 0;
    transform: translateX(70px);

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.side-nav.active {
    pointer-events: auto;

    opacity: 1;

    transform:
        translateY(-50%)
        translateX(0);
}

.side-nav.active li {
    opacity: 1;
    transform: translateX(0);
}

.side-nav a {
    position: relative;
    display: inline-block;

    color: #49362B;
    text-decoration: none;

    font-family: "Clash Display", sans-serif;

    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.02em;

    transform: translateX(0);

    transition:
        color 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);

}

.side-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 100%;
    height: 1px;

    background: rgba(73, 54, 43, 0.65);

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-nav a:hover {
    color: #2F211A;
    transform: translateX(6px);
}

.side-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.side-nav.active li:nth-child(1) {
    transition-delay: 0s;
}

.side-nav.active li:nth-child(2) {
    transition-delay: 0.08s;
}

.side-nav.active li:nth-child(3) {
    transition-delay: 0.16s;
}

.side-nav.active li:nth-child(4) {
    transition-delay: 0.24s;
}

.side-nav.active li:nth-child(5) {
    transition-delay: 0.32s;
}

.side-nav:not(.active) {
    transition:
        transform 0.18s ease,
        opacity 0.14s ease;
}

.side-nav:not(.active) li {
    transition:
        transform 0.18s ease,
        opacity 0.12s ease;
}

.side-nav:not(.active) li:nth-child(5) {
    transition-delay: 0s;
}

.side-nav:not(.active) li:nth-child(4) {
    transition-delay: 0.03s;
}

.side-nav:not(.active) li:nth-child(3) {
    transition-delay: 0.06s;
}

.side-nav:not(.active) li:nth-child(2) {
    transition-delay: 0.09s;
}

.side-nav:not(.active) li:nth-child(1) {
    transition-delay: 0.12s;
}

/* SCROLL SNAKE / SWOOSH */
main {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

#snake-layer,
#snake-title-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    overflow: visible;
}

#snake-layer {
    z-index: 2;
}

#snake-title-layer {
    z-index: 6;
}

#snake-svg,
#snake-title-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

#snake-path,
#snake-title-path {
    fill: none;
    stroke: #6B4A35;
    stroke-width: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.10;
    vector-effect: non-scaling-stroke;
    will-change: stroke-dashoffset;
}

.title-section {
    position: relative;
    z-index: 3;
}

.title-section > * {
    position: relative;
    z-index: 4;
}

#contact {
    z-index: auto;
}

#contact::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        #F8F9FA 0%,
        #F8F9FA 20%,
        #d9aab2 45%,
        #a54c5a 68%,
        #5b0b16 100%
    );
}

#contact::before {
    z-index: 1;
}

#contact > * {
    position: relative;
    z-index: 4;
}
    
.quick-facts,
.core-skills {
    will-change: translate;
}

    nav a,
.side-nav a,
section p,
.cv-button,
.skills-title,
.skill-row-design .skill-sub,
.quick-facts-title,
.project-label p,
.project-meta,
.project-overlay p,
.project-overlay a,
.certificate-meta,
.certificate-open,
.contact-content p,
.contact-links a,
.contact-socials a,
.contact-version span,
.contact-buttons,
.contact-button {
    font-family: "Clash Display", Arial, sans-serif;
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    #snake-path,
    #snake-title-path {
        stroke-width: 18px;
        opacity: 0.08;
    }

    #hero {
        min-height: 620px;
        height: 100svh;
        background-size: cover;
        background-position: center top;
    }

    #hero > nav:not(.side-nav) {
        padding: 12px 20px 0;
    }

    #hero > nav:not(.side-nav) .nav-logo {
        top: 16px;
        left: 20px;
        width: 44px;
        height: 44px;
    }

    #hero > nav:not(.side-nav) ul,
    .side-nav {
        display: none;
    }

    #header-text {
        width: 100%;
        padding: 0 22px;
        box-sizing: border-box;
    }

    #hero h1 {
        margin: 0;
        font-size: clamp(46px, 12vw, 76px);
        line-height: 0.95;
        overflow-wrap: normal;
    }

    #hero h2 {
        flex-wrap: wrap;
        gap: 7px 10px;
        margin: 20px auto 0;
        max-width: 92%;
        font-size: clamp(10px, 2.8vw, 13px);
        line-height: 1.35;
        text-align: center;
    }

    section {
        min-height: auto;
        padding: 90px 24px 120px;
    }

    section h2 {
        font-size: clamp(48px, 15vw, 76px);
        line-height: 0.92;
    }

    .title-section::before {
        font-size: clamp(80px, 27vw, 150px);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #about,
    #projects,
    #certificates {
        margin-top: 0;
        transform: none;
    }

    #about > h2,
    #projects > h2,
    #certificates > h2,
    #contact > h2 {
        transform: none;
        translate: none !important;
    }

    #about > .about-content {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .about-content {
        display: block;
    }

    .about-left p {
        max-width: none;
        font-size: 16px;
        line-height: 1.6;
    }

    .skills {
        width: 100%;
        margin-top: 70px;
    }

    .quick-facts,
    .core-skills {
        margin-top: 60px;
        translate: none !important;
    }

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

    .fact:nth-child(3) {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(24, 32, 51, 0.2);
    }

    .fact:nth-child(4) {
        border-top: 1px solid rgba(24, 32, 51, 0.2);
    }

    .skill-name {
        font-size: clamp(27px, 8vw, 42px);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-image {
        height: min(520px, 125vw);
    }

    /* Touchscreens do not have hover: show project information directly. */
    .project-image img {
        opacity: 0.55;
        filter: brightness(0.5) saturate(0.9);
    }

    .project-image::after {
        background: linear-gradient(to bottom, rgba(25,20,15,.12), rgba(25,20,15,.78));
    }

    .project-label {
        top: 34px;
        transform: translateX(-50%);
    }

    .project-overlay {
        justify-content: flex-end;
        padding: 28px 24px 60px;
        opacity: 1;
        pointer-events: auto;
    }

    .project-overlay p {
        max-width: 100%;
        font-size: 15px;
    }

    .certificate-item {
        grid-template-columns: minmax(0, 1fr) 24px;
        gap: 12px;
        padding: 24px 4px;
        font-size: 19px;
    }

    .certificate-meta {
        grid-column: 1;
        grid-row: 2;
        margin-right: 0;
    }

    .certificate-open {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    #contact {
        min-height: 100svh;
        padding: 90px 24px 0;
    }

    .contact-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 24px;
        margin-top: 55px;
    }

    .contact-buttons {
        grid-column: 1 / -1;
    }

    .contact-button {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-name {
        margin-top: 80px;
        font-size: 24vw;
    }
}

@media (max-width: 480px) {
    #snake-path,
    #snake-title-path {
        stroke-width: 13px;
        opacity: 0.065;
    }

    section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .tree-caption {
        padding: 0 16px;
    }

    .cv-button {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
        box-sizing: border-box;
    }

    #quote {
        font-size: clamp(22px, 7.4vw, 31px);
    }

    .quote-line {
        width: auto;
        white-space: normal;
    }

    .line2,
    .line3 {
        margin-left: 0;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .fact,
    .fact:not(:first-child),
    .fact:nth-child(3) {
        padding: 16px 0;
        border-left: 0;
        border-top: 1px solid rgba(24, 32, 51, 0.2);
    }

    .fact:first-child {
        border-top: 0;
    }

    .skill-row,
    .skill-row-design {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .skill-row-design .skill-sub {
        font-size: 15px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skills */

#technical-skills {
    min-height: auto;
    padding-bottom: 230px;
    transform: translateY(-120px);
}

#technical-skills > h2 {
    transform: translateY(-45px);
}

.technical-skills-intro {
    text-align: right;
    font-style: italic;
    color: #6B4A35;
    margin: 0 0 65px;
}

.technical-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tech-card {
    min-height: 200px;
    padding: 35px;
    border: 1px solid rgba(24, 32, 51, 0.18);
    background: rgba(255, 255, 255, 0.28);

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

.tech-card:hover {
    background: #fff;
    border-color: #6B4A35;
    transform: translateY(-5px);
}

.technical-skills-note {
    font-family: "Clash Display", sans-serif;
    font-size: 12px;
    color: #999;
    text-align: right;
    margin: -45px 0 35px;
    letter-spacing: 0.02em;
}

.tech-tags .in-progress {
    color: #A0A0A0;
    border-color: #D8D8D8;
    background-color: #F2F2F2;
    opacity: 0.65;
}

.tech-index {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: #8B8078;
}

.tech-card h3 {
    margin: 28px 0 30px;
    font-family: "Clash Display", sans-serif;
    font-size: clamp(25px, 2.5vw, 37px);
    font-weight: 400;
    color: #182033;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid rgba(107, 74, 53, 0.25);

    font-family: "Clash Display", sans-serif;
    font-size: 14px;
    color: #49362B;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.tech-tags span:hover {
    background: #6B4A35;
    color: #F8F9FA;
    border-color: #6B4A35;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    #technical-skills {
        padding-bottom: 120px;
    }

    #technical-skills > h2 {
        transform: none;
        translate: none !important;
    }

    .technical-skills-grid {
        grid-template-columns: 1fr;
    }

    .tech-card {
        min-height: auto;
        padding: 28px;
    }

    .technical-skills-intro {
        margin-bottom: 40px;
    }
}
