
/*
Theme Name: Gilles Portfolio
Theme URI: https://gilles.ganderstudio.be
Author: Gilles Van Eupen
Author URI: https://ganderstudio.be
Description: A custom WordPress theme for my personal portfolio.
Version: 1.0.0
Text Domain: gilles-portfolio
*/


/* =========================================
   DESIGN VARIABLES
   ========================================= */

:root {
    --color-background: #F3E7D0;
    --color-text: #25291C;
    --color-accent: #A8794F;
    --color-border: #D5C9B0;
    --color-surface: #E9DFC9;
    --color-highlight: #E6E49F;
    --color-muted: #5C604F;

    --content-width: 1200px;

    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 20px;
}


/* =========================================
   RESET & GENERAL STYLING
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

main {
    width: min(
        calc(100% - 48px),
        var(--content-width)
    );
    margin: 0 auto;
}

section {
    scroll-margin-top: 110px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

p {
    line-height: 1.65;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--color-text);
    color: white;
}

.skip-link:focus {
    top: 12px;
}


/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.site-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-background);
}

.site-nav {
    width: min(
        calc(100% - 48px),
        var(--content-width)
    );

    min-height: 88px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.site-logo {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
}

.language-switcher ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.language-switcher .current-lang a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================
   SHARED COMPONENTS
   ========================================= */

.section-label,
.hero-label,
.project-category {
    margin-bottom: 20px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -1.5px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    padding: 14px 24px;
    border-radius: var(--radius-small);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

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

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

.button-primary {
    background: var(--color-text);
    color: var(--color-background);
}

.button-primary:hover {
    background: var(--color-accent);
}

.button-secondary {
    border: 1px solid var(--color-text);
    color: var(--color-text);
}

.button-secondary:hover {
    background: var(--color-text);
    color: var(--color-background);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--color-accent);
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 200px;

    padding: 24px;
    background: var(--color-surface);

    color: var(--color-muted);
    font-size: 14px;
    text-align: center;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    padding: 80px 0 96px;
}

.hero-label {
    margin-bottom: 16px;
}

.hero h1 {
    margin-bottom: 24px;

    font-size: clamp(44px, 7vw, 88px);
    letter-spacing: -3px;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 32px;

    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
}


/* =========================================
   FEATURED PROJECT
   ========================================= */

.featured-project {
    padding: 72px 0 104px;
    border-top: 1px solid var(--color-border);
}

.featured-project-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 56px;
}

.featured-project-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;

    border-radius: var(--radius-large);
    background: var(--color-surface);
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.featured-project-image:hover img {
    transform: scale(1.025);
}

.featured-project-info h2 {
    margin-bottom: 24px;

    font-size: clamp(36px, 4vw, 54px);
    letter-spacing: -1.5px;
}

.project-description {
    max-width: 480px;
    margin-bottom: 24px;

    font-size: 16px;
    color: var(--color-muted);
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 24px 0 32px;
}

.project-skills span {
    padding: 7px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);

    font-size: 12px;
    font-weight: 600;
}

.project-skills .skill-tag {
    background: var(--color-highlight);
    border-color: var(--color-highlight);
}


/* =========================================
   PROJECT GRID
   ========================================= */

.projects-section {
    padding: 88px 0;
    border-top: 1px solid var(--color-border);
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 36px;
}

.filter-button {
    padding: 9px 18px;

    border: 1px solid var(--color-border);
    border-radius: 100px;

    background: transparent;
    color: var(--color-text);

    font-size: 13px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-background);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 28px;
}

.project-card {
    min-width: 0;
}

.project-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.project-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;

    border-radius: var(--radius-medium);
    background: var(--color-surface);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.025);
}

.project-card-content {
    padding: 24px 4px 0;
}

.project-card .project-category {
    margin-bottom: 12px;
    font-size: 11px;
}

.project-card h3 {
    margin-bottom: 12px;
    font-size: clamp(22px, 3vw, 28px);
}

.project-card-description {
    margin-bottom: 16px;
    color: var(--color-muted);
    font-size: 14px;
}

.project-card .project-skills {
    margin: 20px 0 24px;
}

.project-empty-message {
    margin-top: 32px;
    color: var(--color-muted);
}


/* =========================================
   TECHNICAL SKILLS
   ========================================= */

.skills-section {
    padding: 88px 0;
    border-top: 1px solid var(--color-border);
}

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

.skill-group {
    padding: 36px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);

    background: var(--color-surface);
}

.skill-icon {
    display: inline-block;
    margin-bottom: 28px;

    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.skill-group h3 {
    margin-bottom: 14px;
    font-size: 22px;
}

.skill-group p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}


/* =========================================
   ABOUT
   ========================================= */

.about-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 72px;

    padding: 104px 0;
    border-top: 1px solid var(--color-border);
}

.about-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;

    border-radius: var(--radius-large);
    background: var(--color-surface);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 28px;

    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1px;
}

.about-content p:not(.section-label) {
    max-width: 560px;
    margin-bottom: 18px;

    color: var(--color-muted);
    font-size: 16px;
}


/* =========================================
   CONTACT
   ========================================= */

.contact-section {
    padding: 80px 48px;
    margin-bottom: 88px;

    border-radius: var(--radius-large);
    background: var(--color-highlight);
}

.contact-section h2 {
    margin-bottom: 20px;

    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -2px;
}

.contact-section > p:not(.section-label) {
    max-width: 520px;
    margin-bottom: 32px;
}

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


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    border-top: 1px solid var(--color-border);
}

.footer-content,
.footer-bottom {
    width: min(
        calc(100% - 48px),
        var(--content-width)
    );
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 32px;

    padding: 56px 0;
}

.footer-identity strong {
    font-size: 18px;
}

.footer-identity p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;

    padding: 20px 0;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
}


/* =========================================
   INDIVIDUAL PROJECT PAGES
   ========================================= */

.single-project {
    padding: 64px 0 104px;
}

.single-project-header {
    max-width: 900px;
    margin: 0 auto 48px;
}

.back-link {
    display: inline-block;
    margin-bottom: 48px;

    color: var(--color-muted);
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--color-accent);
}

.single-project-header h1 {
    margin-bottom: 24px;

    font-size: clamp(44px, 6vw, 80px);
    letter-spacing: -2px;
}

.single-project-intro {
    max-width: 680px;

    font-size: 20px;
    color: var(--color-muted);
}

.single-project-image {
    margin-bottom: 72px;
    overflow: hidden;

    border-radius: var(--radius-large);
}

.single-project-image img {
    width: 100%;
    height: auto;
}

.project-story {
    max-width: 900px;
    margin: 0 auto;

    font-size: 17px;
    line-height: 1.8;
}

.project-story h2 {
    margin: 72px 0 24px;
    font-size: clamp(30px, 4vw, 42px);
}

.project-story h3 {
    margin: 48px 0 20px;
    font-size: 26px;
}

.project-story p {
    margin-bottom: 24px;
}

.project-story img {
    border-radius: var(--radius-medium);
}

.project-story figure {
    margin: 40px 0;
}

.project-story figcaption {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 13px;
}

.project-story pre {
    padding: 24px;
    overflow-x: auto;

    border-radius: var(--radius-medium);
    background: var(--color-text);
    color: var(--color-background);
}

.project-story iframe,
.project-story video {
    max-width: 100%;
}

.project-story .alignwide {
    max-width: var(--content-width);
    width: min(
        calc(100vw - 48px),
        var(--content-width)
    );

    margin-left: 50%;
    transform: translateX(-50%);
}

.single-project-footer {
    max-width: 900px;
    margin: 80px auto 0;
    padding-top: 32px;

    border-top: 1px solid var(--color-border);
}


/* =========================================
   STANDARD PAGES & ARCHIVE
   ========================================= */

.standard-page {
    max-width: 900px;
    min-height: 60vh;

    margin: 0 auto;
    padding: 80px 0;
}

.page-header h1,
.archive-header h1 {
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -2px;
}

.page-content {
    font-size: 17px;
}

.archive-header {
    padding: 80px 0 48px;
}

.archive-pagination {
    margin-top: 56px;
}

.archive-pagination .nav-links {
    justify-content: center;
}


/* =========================================
   SCROLL ANIMATIONS
   ========================================= */

.has-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);

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

.has-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 900px) {

    .featured-project-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-section {
        grid-template-columns: 1fr 1.2fr;
        gap: 36px;
    }

    .site-nav {
        gap: 20px;
    }

    .nav-links {
        gap: 18px;
    }
}


@media (max-width: 768px) {

    main {
        width: min(
            calc(100% - 36px),
            var(--content-width)
        );
    }

    .site-nav {
        width: calc(100% - 36px);
        min-height: 72px;
    }

    .site-logo {
        font-size: 16px;
    }

    .js .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 42px;
        height: 42px;
        padding: 8px;

        border: 1px solid var(--color-border);
        border-radius: var(--radius-small);
        background: transparent;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-text);
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .js .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 12px 18px 24px;

        border-bottom: 1px solid var(--color-border);
        background: var(--color-background);
    }

    .js .nav-links.is-open {
        display: flex;
    }

    .js .nav-links > a {
        padding: 12px 0;
    }

    .language-switcher {
        margin-top: 12px;
    }

    .hero {
        padding: 64px 0 76px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .featured-project {
        padding: 56px 0 76px;
    }

    .projects-section,
    .skills-section {
        padding: 72px 0;
    }

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

    .about-section {
        grid-template-columns: 1fr;
        padding: 76px 0;
    }

    .about-image {
        max-width: 420px;
    }

    .contact-section {
        padding: 48px 28px;
        margin-bottom: 64px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .single-project {
        padding: 48px 0 76px;
    }

    .single-project-intro {
        font-size: 17px;
    }
}


@media (max-width: 480px) {

    .hero h1 {
        font-size: 44px;
    }

    .project-skills span {
        font-size: 11px;
    }

    .skill-group {
        padding: 28px;
    }

    .contact-section {
        padding: 36px 24px;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-links {
        gap: 16px;
    }
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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

    .has-reveal .reveal {
        opacity: 1;
        transform: none;
    }
}