/* ====================== ROOT & DARK MODE ====================== */

:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #222;
    --text-light: #777;
    --primary: #4292c6;
    --shadow: 0 10px 35px rgba(0,0,0,.08);
    --border: rgba(0,0,0,.06);

    --modal-overlay: rgba(0,0,0,0.8);
    --modal-bg: #ffffff;
    --modal-text: #111;
    --modal-subtext: #555;
    --modal-border: rgba(0,0,0,.08);
    --modal-badge: rgba(0,0,0,.05);
}

.dark {
    --bg: #0f172a;
    --card: #162033;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: rgba(255,255,255,.06);
    --shadow: 0 10px 35px rgba(0,0,0,.35);

    --modal-overlay: rgba(0,0,0,0.88);
    --modal-bg: #162033;
    --modal-text: #f1f5f9;
    --modal-subtext: #cbd5e1;
    --modal-border: rgba(255,255,255,.08);
    --modal-badge: rgba(255,255,255,.08);
}

/* ====================== RESET & BASE ====================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background .3s, color .3s;
    width: 100%;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* ====================== HEADER ====================== */

header {
    position: fixed;
    top: 25px;
    left: calc(50% + 180px);
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--card);
    padding: 10px;
    border-radius: 60px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .3s;
}

.nav-btn {
    padding: 11px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
    transition: .3s;
    font-size: .95rem;
    font-weight: 500;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--primary);
    color: #fff;
}

.mode-btn,
.menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: .3s;
}

.mode-btn:hover,
.menu-toggle:hover {
    background: var(--primary);
    color: #fff;
}

.menu-toggle {
    display: none;
}

/* ====================== MOBILE MENU ====================== */

.mobile-menu {
    position: fixed;
    top: 95px;
    right: 20px;
    width: 240px;
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .3s;
    z-index: 9999;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    transition: .3s;
}

.mobile-menu a:hover {
    background: var(--primary);
    color: #fff;
}

.mobile-menu-top {
    display: flex;
    justify-content: flex-end;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.mobile-theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    transition: .3s;
}

.mobile-theme-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ====================== MAIN LAYOUT ====================== */

.main-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    margin-top: 140px;
    align-items: start;
}

.site-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .5px;
}

.site-logo span {
    color: var(--primary);
}

.mobile-logo {
    display: none;
}

.sidebar,
.content-area {
    width: 100%;
    min-width: 0;
}

.sidebar-content,
.content-frame,
.rss-sidebar-block {
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: .3s;
}

.sidebar-content {
    padding: 40px;
}

.content-frame {
    padding: 45px;
    height: 920px;
    overflow: hidden;
}

.left-column{

    display:flex;
    flex-direction:column;
    gap:10px;
    height:auto;

}

/* ====================== SECTIONS ====================== */

.section {
    display: none;
    width: 100%;
    height: 100%;
}

.section.active {
    display: flex;
    flex-direction: column;
}

.scroll-area,
.about-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 0;
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 2.4rem;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70px;
    height: 4px;
    border-radius: 20px;
    background: var(--primary);
}

/* ====================== GRID & CARDS ====================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.card {
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: .3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-light);
    font-size: .95rem;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ====================== BUTTONS ====================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 25px;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* ====================== LOGO BANNER ====================== */

.logo-banner {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    margin-top: 25px;
    flex-shrink: 0;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 30px;
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll 35s linear infinite;
    will-change: transform;
}

.logo-item {
    height: 55px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 12px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ====================== RSS ====================== */

.rss-title {
    margin-bottom: 5px;
    font-size: 1.2rem;
    padding-left: 40px;
    padding-top: 20px;
}

.rss-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-left: 35px;
}

.rss-tab {
    border: none;
    background: var(--bg);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
    font-weight: 600;
    font-size: .85rem;
}

.rss-tab.active,
.rss-tab:hover {
    background: var(--primary);
    color: #fff;
}

.rss-feed {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding-left: 35px;
    padding-right: 20px;
    padding-bottom: 25px;
}

.rss-feed.active {
    display: flex;
}

.rss-title-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg);
    cursor: pointer;
    transition: .2s;
    font-size: .86rem;
    line-height: 1.35;
}

.rss-title-item:hover {
    opacity: 0.85;
}

/* ====================== ARTICLE MODAL ====================== */

.article-modal {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(16px);
}

.article-modal.open {
    display: flex;
}

.article-box {
    width: min(800px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--modal-bg);
    color: var(--modal-text);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border: 1px solid var(--modal-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.modal-source {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 70%;
    overflow: hidden;
}

.modal-logo {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.modal-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--modal-badge);
    color: var(--modal-text);
    white-space: nowrap;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: var(--modal-text);
    opacity: 0.7;
    transition: 0.2s;
}

.close-modal:hover {
    opacity: 1;
}

#articleModalTitle {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 18px;
    color: var(--modal-text);
}

.modal-image {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 18px;
    display: block;
}

.modal-text {
    color: var(--modal-subtext);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 24px;
}

/* ====================== FOOTER ====================== */

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
}

/* ====================== SCROLLBAR ====================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* ====================== MOBILE ====================== */

@media (max-width: 992px) {

    header {
        left: 50%;
        width: calc(100% - 20px);
        justify-content: space-between;
        padding: 10px 14px;
    }

    .nav-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-logo {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text);
    }

    .mobile-logo span {
        color: var(--primary);
    }

    .mode-btn {
        order: 1;
    }

    .mobile-logo {
        order: 2;
    }

    .menu-toggle {
        order: 3;
    }

    .main-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 120px;
    }

    .content-area {
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    .rss-sidebar-block {
        order: 3;
    }

    .container {
        padding: 0 10px;
    }

    .sidebar-content,
    .content-frame {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .content-frame {
        display: flex;
        flex-direction: column;
        min-height: 935px;
        overflow: visible;
    }

    .scroll-area,
    .about-content {
        flex: 1;
        overflow-y: auto;
        padding-right: 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo-track {
        gap: 20px;
    }

    .logo-item {
        height: 45px;
    }

    .mode-btn {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .article-box {
        width: 96%;
        padding: 20px;
    }
}

@media (max-width: 600px) {

    header {
        top: 15px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn {
        width: 100%;
    }

    .rss-tabs {
        padding-left: 20px;
    }

    .rss-feed {
        padding-left: 20px;
    }

    .rss-title {
        padding-left: 20px;
    }
}


/* ====================== ICON FIXES ====================== */

.fa-solid,
.fab,
.fa-brands {
    color: var(--primary);
}

.mode-btn i,
.mobile-theme-btn i {
    transition: transform 0.4s ease;
    color: var(--text) !important;
}

.mode-btn:hover i,
.mobile-theme-btn:hover i {
    color: #fff !important;
}

.btn i {
    color: #fff !important;
}

/* ================= IMAGE THEME ================= */

.image-theme .sidebar-content,
.image-theme .content-frame,
.image-theme .rss-sidebar-block,
.image-theme header,
.image-theme .mobile-menu {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(12px);
}

.image-theme {
    --text: #111;
    --text-light: #444;
}

/* ======================== order mobile versie ==================================== */
@media (max-width: 992px){

    .main-wrapper{
        display:flex;
        flex-direction:column;
    }

    .content-area{
        order:1;
    }

    .left-column{
        order:2;

        display:flex;
        flex-direction:column;
    }

    .rss-sidebar-block{
        order:1;
    }

    .sidebar{
        order:2;
    }
}

/* ================= WEATHER ================= */

.weather-widget{

    margin-top:1px;

    padding:10px 12px !important;

    overflow:hidden;
}

.weather-top{

    display:flex;

    align-items:center;

    justify-content:space-between;
}

.weather-left{

    display:flex;

    align-items:center;

    gap:12px;
}

.weather-icon{

    width:40px;
    height:30px;

    border-radius:10px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
        rgba(255,255,255,.05);

    font-size:16px;

    flex-shrink:0;
}

.weather-temp{

    font-size:18px;

    font-weight:500;

    line-height:1;
}

.weather-location{

    margin-top:2px;

    font-size:12px;

    opacity:.7;
}

.weather-bottom{

    margin-top:8px;

    padding-top:8px;

    border-top:
        1px solid rgba(255,255,255,.06);

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    flex-wrap:wrap;

    font-size:12px;

    opacity:.72;

    line-height:1;

    text-align:center;
}

.weather-bottom span{

    display:flex;

    align-items:center;

    gap:4px;
}

/* =====================================================
   RESUME
===================================================== */

/* ================= SKILLS ================= */

.resume-skills-list{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-bottom:60px;
}

.resume-skill-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;

    padding:18px 22px;

    background:var(--bg);

    border:1px solid var(--border);

    border-radius:18px;

    transition:.3s;
}

.resume-skill-item:hover{
    transform:translateY(-2px);
    border-color:var(--primary);
}

.resume-skill-left{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:240px;
}

.resume-skill-icon{
    width:48px;
    height:48px;

    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(66,146,198,.12);

    font-size:20px;

    flex-shrink:0;
}

.resume-skill-title{
    font-size:16px;
    font-weight:600;
    color:var(--text);
}

.resume-skill-description{
    flex:1;
    color:var(--text-light);
    line-height:1.6;
    font-size:15px;
}

/* ================= TIMELINE ================= */

.resume-timeline{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:40px;
    margin-top:30px;
}

.resume-timeline::before{
    content:'';
    position:absolute;
    top:0;
    bottom:0;
    left:50%;
    width:3px;
    background:var(--border);
    transform:translateX(-50%);
}

.resume-timeline-item{
    width:100%;
    display:flex;
    position:relative;
}

.resume-timeline-item.left{
    justify-content:flex-start;
}

.resume-timeline-item.right{
    justify-content:flex-end;
}

.resume-timeline-card{
    width:calc(50% - 40px);

    background:var(--bg);

    border:1px solid var(--border);

    border-radius:22px;

    padding:28px;

    box-shadow:var(--shadow);

    transition:.3s;
}

.resume-timeline-card:hover{
    transform:translateY(-4px);
    border-color:var(--primary);
}

.resume-timeline-dot{
    position:absolute;

    top:35px;

    left:50%;

    width:18px;
    height:18px;

    background:var(--primary);

    border-radius:50%;

    transform:translateX(-50%);

    z-index:5;

    box-shadow:0 0 15px rgba(66,146,198,.4);
}

.resume-timeline-period{
    color:var(--primary);
    margin-bottom:12px;
    font-size:14px;
    font-weight:600;
}

.resume-timeline-card h3{
    margin-bottom:10px;
    color:var(--text);
}

.resume-timeline-card h4{
    margin-bottom:14px;
    color:var(--text-light);
    font-weight:500;
}

.resume-timeline-card p{
    line-height:1.8;
    color:var(--text-light);
}

/* =====================================================
   RESUME MOBILE FIXES
===================================================== */


/* =====================================================
   MOBILE RESUME SKILLS REDESIGN
===================================================== */

@media (max-width:768px){

    /* voorkom horizontale scroll */
    html,
    body{

        overflow-x:hidden;
    }

    /* skills container */
    .resume-skills-grid{

        display:flex !important;
        flex-direction:column !important;

        gap:14px !important;

        width:100% !important;
    }

    /* skill cards */
    .resume-skill-item{

        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;

        box-sizing:border-box;

        display:flex;
        flex-direction:column;

        align-items:flex-start;

        gap:14px;

        padding:16px !important;

        border-radius:18px;

        overflow:hidden;
    }

    /* bovenste gedeelte */
    .resume-skill-left{

        width:100% !important;
        min-width:0 !important;

        display:flex;
        align-items:center;

        gap:14px;
    }

    /* icon */
    .resume-skill-icon{

        width:44px;
        height:44px;

        min-width:44px;

        font-size:18px;

        flex-shrink:0;
    }

    /* titel */
    .resume-skill-title{

        font-size:15px !important;
        line-height:1.3;

        word-break:break-word;
    }

    /* beschrijving */
    .resume-skill-description{

        width:100% !important;
        max-width:100% !important;

        font-size:13px !important;
        line-height:1.6;

        opacity:.9;

        overflow-wrap:anywhere;
        word-break:break-word;

        white-space:normal;
    }

    /* progress bars */
    .resume-skill-progress{

        width:100%;
    }

    /* percentages */
    .resume-skill-percent{

        font-size:12px;
    }

    /* extra nette spacing */
    .resume-section{

        padding-left:18px !important;
        padding-right:18px !important;
    }
}

    /* =====================================================
   MOBILE TIMELINE REDESIGN
===================================================== */

@media (max-width:768px){

    /* verwijder middenlijn */
    .resume-timeline::before{

        display:none !important;
    }

    /* normale lijst layout */
    .resume-timeline{

        display:flex;
        flex-direction:column;

        gap:16px;

        width:100%;
    }

    /* items */
    .resume-timeline-item{

        width:100% !important;

        padding:0 !important;
        margin:0 !important;

        left:auto !important;
    }

    /* verwijder dots */
    .resume-timeline-dot{

        display:none !important;
    }

    /* cards */
    .resume-timeline-card{

        width:100% !important;
        max-width:100% !important;

        box-sizing:border-box;

        padding:18px !important;

        border-radius:18px;

        min-height:auto !important;
    }

    /* titel */
    .resume-timeline-card h3{

        font-size:17px;
        line-height:1.4;

        margin-bottom:6px;
    }

    /* bedrijf */
    .resume-timeline-card h4{

        font-size:14px;

        margin-bottom:10px;
    }

    /* datum */
    .resume-timeline-period{

        font-size:13px;

        margin-bottom:12px;
    }

    /* beschrijving */
    .resume-timeline-card p{

        font-size:14px;

        line-height:1.6;

        margin:0;
    }

    /* icon bovenaan */
    .resume-timeline-header{

        display:flex;
        align-items:center;

        gap:12px;

        margin-bottom:12px;
    }

    /* algemene padding */
    .resume-section{

        padding-left:18px !important;
        padding-right:18px !important;
    }
}