@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/*------------ Animations --------------*/

@keyframes appear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.scroll-animation {
    transition: opacity 0.65s ease;
}

.scroll-animation.scroll-pending {
    opacity: 0;
}

.scroll-appear {
    opacity: 1;
}

/*------------ Général --------------*/

body {
    background: #141414;
    color: #fff;
}

.container {
    padding: 10px 10%;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

a {
    color: inherit;
}

/*------------ Header accueil --------------*/

.home-header {
    animation: appear 0.7s ease both;
    width: 100%;
    min-height: 720px;
    padding: 0 0 70px;
    background:
        radial-gradient(circle at 82% 18%, rgba(44, 148, 70, 0.14), transparent 30%),
        linear-gradient(180deg, #171717 0%, #141414 100%);
    border-bottom: 1px solid #242424;
}

.home-container {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
}

#projets > .container,
#contact > .container {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero-content h1 span {
    color: #2c9446;
}

.home-nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
}

.home-nav ul li {
    list-style: none;
}

.home-nav ul li a {
    color: #d2d2d2;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
}

.home-nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: #2c9446;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.25s ease;
}

.home-nav ul li a:hover {
    color: #ffffff;
}

.home-nav ul li a:hover::after,
.home-nav ul li a:focus-visible::after {
    width: 100%;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
    padding: clamp(58px, 7vw, 90px) 0 54px;
}

.home-hero-content {
    max-width: 770px;
}

.home-eyebrow {
    color: #95dda7;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.home-hero-content h1 {
    color: #ffffff;
    font-size: clamp(42px, 5.2vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 18px;
}

.home-status {
    color: #ffffff;
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.55;
    max-width: 680px;
    margin-bottom: 18px;
}

.home-intro {
    color: #ababab;
    font-size: 15px;
    line-height: 1.75;
    max-width: 720px;
}

.home-photo {
    width: 270px;
    aspect-ratio: 4 / 5;
    padding: 8px;
    border: 1px solid rgba(149, 221, 167, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.home-photo img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid #2c9446;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-action-primary {
    background: #2c9446;
}

.home-action-secondary {
    background: transparent;
    border-color: #3a3a3a;
}

.home-action:hover,
.home-action:focus-visible {
    background: #23783a;
    border-color: #23783a;
    transform: translateY(-2px);
}

.home-tabs {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-tabs .tab-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.home-tabs .tab-links {
    appearance: none;
    border: 1px solid #333333;
    border-radius: 999px;
    background: #1b1b1b;
    color: #b7b7b7;
    padding: 9px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.home-tabs .tab-links:hover {
    color: #ffffff;
    border-color: #4a4a4a;
}

.home-tabs .tab-links:focus-visible,
.home-action:focus-visible,
.home-nav a:focus-visible {
    outline: 2px solid #95dda7;
    outline-offset: 3px;
}

.home-tabs .tab-links.active-link {
    color: #ffffff;
    background: rgba(44, 148, 70, 0.2);
    border-color: #2c9446;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.home-tab-panel {
    min-height: 122px;
}

.home-tab-panel ul {
    margin: 0;
    padding: 0;
}

.home-tab-panel ul li {
    list-style: none;
}

.home-tab-panel ul li span {
    color: #95dda7;
    font-size: 13px;
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.skills-grid li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 92px;
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #292929;
    border-radius: 10px;
}

.skills-grid strong {
    color: #d5d5d5;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.timeline-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
}

.timeline-list li {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #292929;
}

.timeline-list p {
    color: #c0c0c0;
    font-size: 14px;
    line-height: 1.5;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 50px;
}

/*------------ Projets accueil --------------*/

#projets {
    padding: 50px 0;
}

.project-year {
    margin-bottom: 80px;
}

.year-header {
    display: flex;
    align-items: end;
    gap: 18px;
    margin-bottom: 25px;
    border-left: 5px solid #2c9446;
    padding-left: 18px;
}

.year-header h2 {
    font-size: 42px;
    color: #fff;
}

.year-header span {
    color: #ababab;
    font-size: 16px;
    margin-bottom: 8px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    grid-gap: 40px;
    justify-content: flex-start;
    margin-top: 30px;
}

.work {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: #1e1e1e;
    text-decoration: none;
    display: block;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 17, 10, 0.94) 0%,
        rgba(16, 67, 30, 0.97) 55%,
        #164d27 100%
    );
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 0 24px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);

    transition: height 0.5s;
}

.layer h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 13px;
    letter-spacing: -0.01em;
}

.layer p {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.work:hover img {
    transform: scale(1.07);
}

.work:hover .layer,
.work:focus-visible .layer {
    height: 100%;
}

.work:focus-visible {
    outline: 3px solid #95dda7;
    outline-offset: 4px;
}

/*------------ Pages projet --------------*/

.project-page-header {
    padding: 20px 10%;
    background: #111111;
    border-bottom: 1px solid #222222;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: #95dda7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-link:hover {
    color: #ffffff;
    transform: translateX(-4px);
    text-decoration: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #888888;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #95dda7;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 10px;
    color: #555555;
}

.breadcrumb span {
    color: #ffffff;
    font-weight: 500;
}

.project-hero {
    padding: 50px 10% 40px;
    background: linear-gradient(180deg, #181818 0%, #141414 100%);
    border-bottom: 1px solid #222222;
}

.project-hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-year {
    background: rgba(44, 148, 70, 0.15);
    color: #95dda7;
    border: 1px solid rgba(44, 148, 70, 0.35);
}

.badge-category {
    background: #222222;
    color: #dddddd;
    border: 1px solid #333333;
}

.project-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.project-hero h1 span {
    color: #2c9446;
}

.project-hero p.project-intro {
    color: #cccccc;
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin-bottom: 20px;
}

.project-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-pill {
    background: #1e1e1e;
    color: #95dda7;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #2a2a2a;
}

/*------------ Blocs de contenu projet ------------*/

.project-content {
    padding: 50px 10% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card,
.project-section {
    background: #1a1a1a;
    border: 1px solid #282828;
    border-radius: 12px;
    padding: 35px;
    margin-top: 0;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-card h2,
.project-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #2c9446;
    padding-left: 14px;
}

.project-card p,
.project-section p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-section p:last-child,
.project-card p:last-child {
    margin-bottom: 0;
}

.project-section ul {
    padding-left: 25px;
    color: #bbbbbb;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/*------------ Médias & Centrage ------------*/

.media-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 0;
    width: 100%;
}

.project-media,
.project-video {
    width: 100%;
    max-width: 850px;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    margin: 20px auto 0;
    border-radius: 10px;
    border: 1px solid #333333;
    background: #111111;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-media:hover {
    transform: scale(1.015);
    border-color: #2c9446;
}

/* Galeries des pages projet */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.project-gallery-item {
    overflow: hidden;
    background: #111111;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
}

.project-gallery-item .project-media {
    width: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #2e2e2e;
    border-radius: 0;
    box-shadow: none;
}

.project-gallery-item figcaption {
    padding: 12px 15px;
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.45;
}

/* Grille spécifique pour les captures mobiles (ex: Discourd) */

.mobile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 25px;
    margin-top: 25px;
    justify-items: center;
}

.mobile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 230px;
}

.mobile-card img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #2e2e2e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.mobile-card img:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #2c9446;
}

.mobile-card span {
    font-size: 14px;
    color: #999999;
    font-weight: 500;
    text-align: center;
}

.mobile-screenshot-gallery .mobile-card {
    max-width: 260px;
}

.mobile-screenshot-gallery .mobile-card img {
    height: auto;
    max-height: none;
    object-fit: contain;
}

/*------------ Section Footer "Autres Projets" ------------*/

.other-projects-wrapper {
    background: #0d0d0d;
    border-top: 2px solid #222222;
    padding: 60px 10% 80px;
    margin-top: 60px;
}

.other-projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.other-projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.other-projects-header h2 {
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
}

.other-projects-header h2 span {
    color: #2c9446;
}

.other-projects-header p {
    color: #888888;
    font-size: 15px;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    justify-content: center;
}

.other-card {
    background: #181818;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #282828;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.other-card:hover {
    transform: translateY(-6px);
    border-color: #2c9446;
    box-shadow: 0 10px 25px rgba(44, 148, 70, 0.2);
}

.other-card-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #111111;
    position: relative;
}

.other-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.other-card:hover .other-card-img img {
    transform: scale(1.08);
}

.other-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.other-card-tag {
    font-size: 11px;
    color: #2c9446;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.other-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.other-card-desc {
    font-size: 13px;
    color: #999999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*------------ Visionneuse Lightbox Modal ------------*/

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid #333333;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.lightbox-close:hover {
    background: #2c9446;
    transform: scale(1.1);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
}

.table-container {
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #333;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #292929;
    color: #ffffff;
}

td {
    background-color: #1e1e1e;
}

/*------------ Boutons --------------*/

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #2c9446;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover {
    background: #2c9446;
}

.btn.btn2 {
    display: inline-block;
    background: #2c9446;
}

.project-btn {
    display: inline-block;
    border: 2px solid #fff;
    border-radius: 5px;
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.project-btn:hover {
    background-color: #2c9446;
    color: white;
}

#play-button {
    background-color: rgba(150, 115, 115, 0.478);
}

#play-button:hover {
    background-color: rgb(150, 115, 115);
}

#close-game-button {
    margin: 20px auto 0;
    display: block;
}

/*------------ Jeu intégré --------------*/

#game-container {
    display: none;
    height: 650px;
    width: 100%;
    max-width: 854px;
    margin: 30px auto 0;
}

#game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/*------------ Contact --------------*/

.sub-title-MeContacter {
    margin-top: 80px;
    font-size: 40px;
}

.contact-left {
    flex-basis: 98%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #2c9446;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 50px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #2c9446;
    transform: translateY(-5px);
}

/*------------ Footer général --------------*/

.site-footer {
    background: #101010;
    border-top: 1px solid #252525;
    padding: 28px 10%;
}

.site-footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-footer p {
    color: #ababab;
    font-size: 14px;
}

.site-footer p span {
    color: #2c9446;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer-links a {
    color: #cccccc;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer-links a:hover {
    color: #95dda7;
}

/*------------ Scrollbar --------------*/

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#2c9446, #174f25);
    border-radius: 5px;
}

/*------------ Tablette --------------*/

@media (max-width: 1300px) {
    .home-container {
        width: min(1100px, calc(100% - 64px));
    }

    #projets > .container,
    #contact > .container {
        width: min(1100px, calc(100% - 64px));
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 55px;
    }

    .home-photo {
        width: 240px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .home-header {
        min-height: auto;
        padding-bottom: 54px;
    }

    .home-container {
        width: min(680px, calc(100% - 48px));
    }

    #projets > .container,
    #contact > .container {
        width: min(680px, calc(100% - 48px));
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 54px 0 42px;
    }

    .home-photo {
        width: min(240px, 70vw);
        grid-row: 2;
    }

    .timeline-list {
        grid-template-columns: 1fr;
    }
}

/*------------ Mobile --------------*/

@media only screen and (max-width: 600px) {
    .container {
        padding: 10px 7%;
    }

    .home-container {
        width: calc(100% - 36px);
    }

    #projets > .container,
    #contact > .container {
        width: calc(100% - 36px);
    }

    .home-nav {
        min-height: 68px;
    }

    .home-nav ul {
        gap: 16px;
    }

    .home-nav ul li a {
        font-size: 13px;
    }

    .home-hero {
        padding: 42px 0 36px;
    }

    .home-hero-content h1 {
        font-size: clamp(36px, 12vw, 48px);
    }

    .home-status {
        font-size: 16px;
    }

    .home-intro {
        font-size: 14px;
    }

    .home-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-action {
        width: 100%;
    }

    .home-photo {
        width: min(210px, 68vw);
    }

    .home-tabs .tab-titles {
        gap: 8px;
    }

    .home-tabs .tab-links {
        flex: 1 1 auto;
        padding-inline: 12px;
        font-size: 12px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid li {
        min-height: auto;
    }

    .timeline-list li {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }

    .sub-title {
        font-size: 40px;
    }

    .year-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .year-header h2 {
        font-size: 36px;
    }

    .work-list {
        grid-template-columns: 250px;
        grid-gap: 30px;
        justify-content: center;
    }

    .work {
        width: 250px;
        height: 250px;
    }

    .layer {
        padding: 0 25px;
    }

    .project-page-header {
        padding: 25px 7%;
    }

    .project-hero {
        padding: 50px 7% 25px;
    }

    .project-hero h1 {
        font-size: 38px;
    }

    .project-hero p {
        font-size: 17px;
    }

    .project-content {
        padding: 20px 7% 60px;
    }

    .project-section h2 {
        font-size: 28px;
    }

    .project-section p {
        font-size: 18px;
    }

    .project-section ul {
        font-size: 17px;
    }

    .project-media,
    .project-video {
        border-radius: 18px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-gallery-item {
        border-radius: 12px;
    }

    .project-gallery-item .project-media {
        border-radius: 0;
    }

    #game-container {
        height: 420px;
    }

    .contact-left {
        flex-basis: 100%;
    }

    .site-footer-container {
        flex-direction: column;
        text-align: center;
    }

    .site-footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@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;
        scroll-behavior: auto !important;
    }

    .scroll-animation,
    .scroll-animation.scroll-pending {
        opacity: 1;
    }
}
