/* --------------------------- */
/* 00 :root — Variabelen
/* --------------------------- */
:root {
    /* Accent palette */
    --accent-1: #00bcd4;
    --accent-2: #ff7ba0;
    --accent-3: #7af27a;
    --accent-4: #8b6cff;
    --accent-5: #ffb86b;

    /* Gradient combos */
    --accent-glow: 0 8px 30px rgba(0, 188, 212, 0.12);
    --accent-grad-1: linear-gradient(90deg, var(--accent-1), var(--accent-4));
    --accent-grad-2: linear-gradient(90deg, var(--accent-2), var(--accent-5));

    /* Basis */
    --bg: #0b0d0f;
    --card: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    --container: 1100px;
    --gap: 18px;
    --glass: rgba(255, 255, 255, 0.03);
    --muted: #9aa1a6;
    --radius: 12px;
    --surface: #121416;
    --text: #e9eef0;

    /* UI sizes */
    --btn-radius: 10px;
    --transition: 180ms cubic-bezier(.2, .9, .2, 1);
}

/* --------------------------- */
/* 01 Reset & Base
/* --------------------------- */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    line-height: 1.5;
    margin: 0;
    overflow-x: hidden;
}

body::before {
    animation: gradientFlow 120s ease infinite;
    background: linear-gradient(120deg, rgba(139, 108, 255, 0.05), rgba(0, 188, 212, 0.05), rgba(255, 123, 160, 0.05), rgba(123, 255, 179, 0.05));
    background-size: 400% 400%;
    content: "";
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    z-index: -1;
}

a {
    color: var(--text);
}

/* Gradient animations */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 100%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 0%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --------------------------- */
/* 02 Layout / Containers
/* --------------------------- */
.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
    margin-bottom: 20px;
    padding: 24px;
}

.container {
    margin: 20px auto;
    max-width: var(--container);
    padding: 20px;
}

/* --------------------------- */
/* 03 Header / Navigation
/* --------------------------- */
.brand {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 1000;
}

.header-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
}

.header-inner>div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav {
    display: flex;
    transition: all 0.3s ease;
}

.nav a {
    color: var(--muted);
    font-weight: 600;
    margin-left: 18px;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent-1);
    transform: translateY(-1px);
    transition: var(--transition);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    height: 22px;
    justify-content: space-between;
    width: 28px;
    z-index: 1000;
}

.menu-toggle span {
    background: var(--text);
    border-radius: 2px;
    display: block;
    height: 3px;
    transition: all 0.3s ease;
    width: 100%;
}

/* --------------------------- */
/* 04 Hero
/* --------------------------- */
.hero {
    border-radius: 14px;
    margin-bottom: 20px;
    padding: 84px 0 40px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero h2 {
    font-size: 30px;
    margin: 0 0 6px;
}

.hero p {
    color: var(--muted);
    margin: 0 0 8px;
    max-width: 780px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.hero-stats>div {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    min-width: 100px;
    padding: 12px 16px;
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 18px;
}

.hero-stats span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

/* --------------------------- */
/* 05 Section Headings
/* --------------------------- */
.container h3 {
    display: inline-block;
    margin-bottom: 14px;
    padding-bottom: 8px;
    position: relative;
}

.container h3::after {
    background: var(--accent-grad-1);
    border-radius: 4px;
    bottom: 0;
    content: '';
    height: 4px;
    left: 0;
    opacity: 0.95;
    position: absolute;
    width: 48px;
}

/* --------------------------- */
/* 06 Skills / Timeline / Tech Chips
/* --------------------------- */
.skills-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.skills-grid li {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 14px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.skills-grid li:hover {
    box-shadow: 0 12px 40px rgba(12, 18, 30, 0.5);
    transform: translateY(-6px);
}

.timeline article {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
    padding: 12px 0;
}

.timeline h4 {
    margin: 0;
}

.timeline time {
    color: var(--muted);
    font-size: 13px;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.tech-chips span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    font-weight: 600;
    padding: 8px 12px;
    transition: transform var(--transition);
}

.tech-chips span:hover {
    transform: translateY(-4px);
}

/* --------------------------- */
/* 07 Projects / Controls / Cards
/* --------------------------- */
.filter-buttons button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 8px 12px;
    transition: all var(--transition);
}

.filter-buttons button.active {
    background: var(--accent-grad-2);
    border: 0;
    box-shadow: var(--accent-glow);
    color: #061017;
    transform: translateY(-2px);
}

.filter-buttons button:hover {
    filter: brightness(1.05);
}

.project-card {
    animation: floatUp 300ms ease both;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.6);
    transform: translateY(-8px);
}

.project-card::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    content: '';
    height: 6px;
    left: 0;
    position: absolute;
    top: 0;
    transition: background var(--transition);
}

.project-card .meta {
    padding: 14px;
}

.project-card h4 {
    margin: 0 0 6px;
}

.project-card img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms;
    width: 100%;
}

.project-card .thumb {
    background: #0b0b0b;
    height: 160px;
    overflow: hidden;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.project-card p.muted {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 8px;
}

.project-card .category {
    background: var(--accent-1);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 188, 212, 0.08);
    color: #071018;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.project-card[data-category*="Python" i] .category {
    background: linear-gradient(90deg, #7af27a, #35d67f);
    box-shadow: 0 8px 30px rgba(58, 214, 121, 0.09);
    color: #041007;
}

.project-card[data-category*="Roblox" i] .category {
    background: linear-gradient(90deg, #ff6b6b, #ff7ba0);
    box-shadow: 0 8px 30px rgba(255, 123, 160, 0.09);
    color: #071018;
}

.project-card[data-category*="Uncategorized" i] .category {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.project-card[data-category*="Website" i] .category {
    background: linear-gradient(90deg, #8b6cff, #00bcd4);
    box-shadow: 0 8px 30px rgba(139, 108, 255, 0.08);
    color: #051018;
}

.project-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.projects-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

#projectSearch {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: var(--text);
    min-width: 220px;
    padding: 10px;
}

.btn,
.btn-ghost,
.btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--btn-radius);
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    text-decoration: none;
    transition: box-shadow var(--transition), opacity var(--transition), transform var(--transition);
    user-select: none;
}

.btn:focus,
.btn-primary:focus {
    outline: 3px solid rgba(0, 188, 212, 0.12);
    outline-offset: 3px;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--accent-grad-1);
    border: none;
    box-shadow: 0 6px 24px rgba(0, 188, 212, 0.12);
    color: #051018;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text);
}

/* --------------------------- */
/* 08 Contact Section
/* --------------------------- */
.contact-btn {
    background: var(--accent-1);
    border: none;
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9em 1.6em;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.contact-container {
    margin: 0 auto;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.section-title {
    color: var(--accent-1);
    font-size: 2.4rem;
    margin-bottom: 0.5em;
}

.section-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 2em;
}

.contact-form {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(0, 188, 212, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    padding: 2em;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.2);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.contact-form:hover {
    box-shadow: 0 0 35px rgba(0, 188, 212, 0.3);
    transform: translateY(-3px);
}

.contact-section {
    -webkit-backdrop-filter: blur(14px);
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    margin: 40px auto;
    max-width: 800px;
    opacity: 1;
    padding: 60px 20px;
    position: relative;
    transition: all 0.4s ease;
}

.contact-section::before {
    animation: gradientPulse 25s ease infinite alternate;
    background: radial-gradient(circle at 30% 30%, rgba(0, 188, 212, 0.15), transparent 70%), radial-gradient(circle at 70% 70%, rgba(139, 108, 255, 0.15), transparent 70%);
    background-size: 200% 200%;
    border-radius: 16px;
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.form-group {
    text-align: left;
}

.form-status {
    animation: fadeIn 0.5s ease;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 1em;
    padding: 0.8em 1em;
}

.form-status.error {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.form-status.success {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
    color: #00e5ff;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: var(--text);
    padding: 12px;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
}

input:focus,
textarea:focus {
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 8px 26px rgba(0, 188, 212, 0.1);
    transform: translateY(-2px);
}

textarea {
    min-height: 120px;
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%, 50% 100%;
        opacity: 0.7;
    }

    50% {
        background-position: 100% 50%, 0% 50%;
        opacity: 0.9;
    }

    100% {
        background-position: 0% 50%, 50% 100%;
        opacity: 0.7;
    }
}

/* --------------------------- */
/* 09 Admin / Table tweaks
/* --------------------------- */
table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px;
    text-align: left;
}

a.btn {
    display: inline-block;
}

/* --------------------------- */
/* 10 Footer
/* --------------------------- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 30px;
    padding: 22px 0;
}

.site-footer .container {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.site-footer a {
    color: var(--muted);
}

/* --------------------------- */
/* 11 Animations / Utilities
/* --------------------------- */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.project-card {
    animation: floatUp 300ms ease both;
}

/* --------------------------- */
/* Responsive Adjustments
/* --------------------------- */
@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 36px 0;
    }

    .hero h2 {
        font-size: 22px;
    }

    .hero-stats>div {
        min-width: 88px;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .nav {
        background: linear-gradient(180deg, rgba(8, 8, 12, 0.55), transparent);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        transition: all 0.35s ease;
    }

    .nav.open {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        z-index: 1000;
    }

    .nav a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 1.05rem;
        margin: 0;
        padding: 14px 20px;
        text-align: center;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Overlay behind nav */
.nav-overlay {
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    height: 200%;
    pointer-events: none;
    position: fixed;
    inset: 0;
    transition: opacity 0.4s ease;
    z-index: 999;
}

.nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
}