@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #070a12;
    --bg-2: #0c1120;
    --card: rgba(16, 22, 38, .72);
    --card-hover: rgba(22, 30, 50, .88);
    --line: rgba(255,255,255,.09);
    --line-strong: rgba(255,255,255,.16);
    --text: #f8fafc;
    --muted: #9ca8bd;
    --blue: #38bdf8;
    --purple: #8b5cf6;
    --cyan: #22d3ee;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0,0,0,.30);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 50% -10%, rgba(56,189,248,.11), transparent 30%),
        radial-gradient(circle at 90% 75%, rgba(139,92,246,.10), transparent 32%),
        linear-gradient(135deg, #070a12 0%, #0b1020 52%, #080a15 100%);
}

/* Ambient background */
.background {
    position: fixed;
    inset: 0;
    z-index: -20;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(56,189,248,.13), transparent 25%),
        radial-gradient(circle at 88% 88%, rgba(124,58,237,.14), transparent 28%);
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.blob {
    position: fixed;
    z-index: -10;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: .18;
}

.blob1 {
    width: 420px;
    height: 420px;
    top: -180px;
    left: -180px;
    background: #0ea5e9;
}

.blob2 {
    width: 520px;
    height: 520px;
    right: -260px;
    bottom: -260px;
    background: #7c3aed;
}

.blob3 {
    width: 260px;
    height: 260px;
    top: 42%;
    left: 42%;
    background: #06b6d4;
    opacity: .06;
}

/* Floating navigation */
.side-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 9999;
    display: flex;
    gap: 5px;
    padding: 6px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 12, 22, .72);
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.side-nav a {
    position: relative;
    padding: 9px 13px;
    color: #aeb8ca;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 12px;
    transition: .25s ease;
}

.side-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.side-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(124,58,237,.95));
    box-shadow: 0 8px 24px rgba(56,189,248,.18);
}

/* Live badge */
.twitch-link { position: relative; }

.live-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    z-index: 2;
    padding: 3px 7px;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
    border: 2px solid #0a0e19;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 18px rgba(239,68,68,.55);
    animation: pulse-live 1.8s infinite;
    pointer-events: none;
}

@keyframes pulse-live {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Main layout */
main {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 130px 0 50px;
}

.hero {
    width: 100%;
    margin: 0 auto 55px;
}

.profile-card {
    position: relative;
    overflow: hidden;
    padding: 64px 50px 52px;
    text-align: center;
    border: 1px solid var(--line-strong);
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 0%, rgba(56,189,248,.12), transparent 42%),
        linear-gradient(145deg, rgba(20,29,48,.88), rgba(11,16,29,.78));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56,189,248,.35), transparent 35%, rgba(139,92,246,.25));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.profile-card::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 120px;
    left: 50%;
    top: -100px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(56,189,248,.25);
    filter: blur(50px);
}

.avatar {
    position: relative;
    width: 128px;
    height: 128px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.75);
    border-radius: 50%;
    box-shadow:
        0 0 0 7px rgba(56,189,248,.08),
        0 0 45px rgba(56,189,248,.38);
    transition: .3s ease;
}

.avatar:hover {
    transform: translateY(-4px) scale(1.04);
}

.profile-card h1 {
    margin-top: 22px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2.5px;
    background: linear-gradient(90deg, #fff 10%, #67e8f9 50%, #a78bfa 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.location {
    margin-top: 13px;
    color: #b6c2d6;
    font-size: 14px;
    font-weight: 600;
}

.profile-card p {
    margin-top: 18px;
    color: #aeb8ca;
    font-size: 15px;
    line-height: 1.8;
}

#discord {
    margin-top: 28px;
    padding: 13px 22px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: linear-gradient(135deg, #5865f2, #3b82f6);
    box-shadow: 0 12px 35px rgba(59,130,246,.24);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s ease;
}

#discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(59,130,246,.36);
}

/* Sections */
#socials,
#skills,
#projects,
#past-projects,
.card-section {
    margin: 90px auto;
}

#skills,
#projects,
#past-projects,
#socials {
    width: 100%;
}

#skills h2,
#projects h2,
#past-projects h2,
#socials h2,
.card-section h2 {
    margin-bottom: 26px;
    text-align: center;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.8px;
}

#skills h2::after,
#projects h2::after,
#past-projects h2::after,
#socials h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
}

/* Glass information cards */
.card-section {
    width: 100%;
    padding: 38px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 18px 60px rgba(0,0,0,.18);
    backdrop-filter: blur(20px);
}

.card-section p {
    max-width: 760px;
    margin: 0 auto;
    color: #aeb8ca;
    font-size: 15px;
    line-height: 1.8;
}

.card-section p + p {
    margin-top: 4px;
}

.card-section strong {
    color: #67e8f9;
}

/* Stijl voor hyperlinks binnen een card-section */
.card-section a {
    color: #3b82f6; /* Kies hier jouw gewenste kleur (bijv. helder blauw/paars of groen) */
    text-decoration: none; /* Verwijdert de standaard onderstreping */
    font-weight: 600; /* Maakt de tekst iets dikker voor betere leesbaarheid */
    transition: color 0.2s ease-in-out;
}

/* Effect wanneer je er met de muis overheen beweegt (hover) */
.card-section a:hover {
    color: #1d4ed8; /* Donkerdere tint bij het hoveren */
    text-decoration: underline; /* Optioneel: onderstreping bij hover */
}

/* Socials */
.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.socials a {
    position: relative;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,.045);
    transition: .25s ease;
}

.socials a:hover {
    transform: translateY(-5px);
    border-color: rgba(56,189,248,.35);
    background: rgba(56,189,248,.12);
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
}

.socials img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    /* In plaats van brightness(0) invert(1) */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(200%);
    opacity: .88;
    
    /* Zorgt ervoor dat Webkit/Safari de render-laag hardwarematig forceert */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* =========================================
   STREAM AGENDA
   ========================================= */

.schedule-section {
    margin: 90px auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #67e8f9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.8px;
}

.section-heading p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.schedule-note a {
    color: #3b82f6; /* Kies hier jouw gewenste kleur (bijv. helder blauw/paars of groen) */
    text-decoration: none; /* Verwijdert de standaard onderstreping */
    font-weight: 600; /* Maakt de tekst iets dikker voor betere leesbaarheid */
    transition: color 0.2s ease-in-out;
}

/* Effect wanneer je er met de muis overheen beweegt (hover) */
.schedule-note a:hover {
    color: #1d4ed8; /* Donkerdere tint bij het hoveren */
    text-decoration: underline; /* Optioneel: onderstreping bij hover */
}

.schedule-day {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 29, 48, .82),
            rgba(11, 16, 29, .72)
        );

    box-shadow: 0 15px 45px rgba(0,0,0,.15);
    transition: .3s ease;
}

.schedule-day::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    top: -55px;
    right: -45px;
    border-radius: 50%;
    background: rgba(56,189,248,.12);
    filter: blur(25px);
}

.schedule-day:hover {
    transform: translateY(-6px);
    border-color: rgba(56,189,248,.30);
    background: rgba(22, 30, 50, .90);
    box-shadow: 0 22px 55px rgba(0,0,0,.25);
}

.day-name {
    position: relative;
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 11px;
    font-weight: 900;

    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(56,189,248,.25),
        rgba(139,92,246,.25)
    );

    border: 1px solid rgba(255,255,255,.10);
}

.schedule-info {
    position: relative;
    margin-top: 20px;
}

.schedule-info h3 {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 800;
}

.schedule-time {
    display: block;
    margin-top: 8px;
    color: #67e8f9;
    font-size: 11px;
    font-weight: 700;
}

.schedule-game {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.schedule-status {
    position: relative;
    margin-top: auto;
    align-self: flex-start;

    padding: 6px 9px;

    color: #67e8f9;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;

    border: 1px solid rgba(56,189,248,.18);
    border-radius: 999px;
    background: rgba(56,189,248,.08);
}

.schedule-status::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    vertical-align: 1px;

    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,.7);
}

.schedule-status.off {
    color: #7f8ba1;
    border-color: rgba(255,255,255,.07);
    background: rgba(255,255,255,.035);
}

.schedule-status.off::before {
    background: #64748b;
    box-shadow: none;
}

.schedule-note {
    margin-top: 18px;
    color: #6f7b90;
    text-align: center;
    font-size: 11px;
}

.schedule-note span {
    color: #22c55e;
    margin-right: 4px;
}


/* Tablet */
@media (max-width: 950px) {
    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Mobile */
@media (max-width: 600px) {
    .schedule-section {
        margin: 65px auto;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .schedule-day {
        min-height: 190px;
    }

    .schedule-day:last-child {
        grid-column: span 2;
    }
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.skill {
    padding: 22px 12px 18px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    transition: .3s ease;
}

.skill:hover {
    transform: translateY(-6px);
    border-color: rgba(56,189,248,.30);
    background: rgba(56,189,248,.07);
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.skill img {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
}

.skill span {
    display: block;
    color: #dbe4f2;
    font-size: 12px;
    font-weight: 700;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.project {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(20,27,44,.78), rgba(12,17,29,.70));
    box-shadow: 0 12px 45px rgba(0,0,0,.14);
    transition: .3s ease;
}

.project::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    top: -70px;
    right: -50px;
    border-radius: 50%;
    background: rgba(56,189,248,.10);
    filter: blur(25px);
    pointer-events: none;
}

.project:hover {
    transform: translateY(-7px);
    border-color: rgba(56,189,248,.28);
    background: var(--card-hover);
    box-shadow: 0 24px 55px rgba(0,0,0,.24);
}

.project h3 {
    margin-bottom: 10px;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.35;
}

.project p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.project .socials {
    margin-top: 18px;
    justify-content: flex-start;
}

.project .socials a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.project .socials img {
    width: 18px;
    height: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.tags span {
    padding: 6px 10px;
    color: #ccefff;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(56,189,248,.17);
    border-radius: 999px;
    background: rgba(56,189,248,.08);
}

.project.past {
    min-height: 175px;
    opacity: .82;
    background: rgba(255,255,255,.025);
}

.project.past:hover {
    opacity: 1;
}

.project.past .tags span {
    color: #aeb8ca;
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
}

/* Twitch embed */
.twitch-embed-wrapper {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #05070d;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

#twitch-embed iframe {
    display: block;
    max-width: 100%;
}

/* Scroll reveal */
.hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: .7s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    margin-top: 70px;
    padding: 28px 20px;
    color: #657188;
    text-align: center;
    font-size: 11px;
    border-top: 1px solid var(--line);
}

/* Tablet */
@media (max-width: 900px) {
    .side-nav {
        top: 14px;
        max-width: calc(100% - 24px);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .side-nav::-webkit-scrollbar { display: none; }

    .side-nav a {
        flex-shrink: 0;
    }

    main {
        padding-top: 105px;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Mobile */
@media (max-width: 600px) {
    main {
        width: min(100% - 24px, 520px);
        padding-top: 92px;
    }

    .side-nav {
        width: calc(100% - 20px);
        justify-content: flex-start;
        border-radius: 16px;
    }

    .side-nav a {
        padding: 8px 10px;
        font-size: 11px;
    }

    .profile-card {
        padding: 45px 20px 38px;
        border-radius: 26px;
    }

    .avatar {
        width: 108px;
        height: 108px;
    }

    .profile-card h1 {
        font-size: 42px;
        letter-spacing: -1.8px;
    }

    .card-section {
        padding: 28px 20px;
    }

    #socials,
    #skills,
    #projects,
    #past-projects,
    .card-section {
        margin-top: 65px;
        margin-bottom: 65px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .project {
        min-height: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
