/* Colors taken over from the original site (colors/jorisR.css + style.css) */
:root {
    --primary: #3A4C5F;
    --primary-dark: #2b3947;
    --text: #3d4451;
    --bg: #efefef;
    --card: #fff;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Open Sans", sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* Navbar */
.navbar {
    background-color: transparent;
    transition: background-color .3s, box-shadow .3s;
}
.navbar.scrolled,
.navbar:has(.navbar-collapse.show),
.navbar:has(.navbar-collapse.collapsing) {
    background-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.navbar-brand { padding: 0; }
/* Logo is dark on transparent; render it white on the dark navbar */
.nav-logo { height: 75px; filter: brightness(0) invert(1); }
.navbar .nav-link.active { border-bottom: 2px solid #fff; }

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 76, 95, .7);
}
.hero-content { position: relative; padding-top: 70px; }
.hero-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    margin-bottom: 1.25rem;
}
.hero h1 { font-weight: 700; font-size: clamp(2rem, 6vw, 3.25rem); }

/* Sections */
.section { padding: 70px 0; scroll-margin-top: 50px; }
.section-alt { background-color: #e5e5e5; }
.section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: .5rem;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

.card { border: 0; background-color: var(--card); }

/* About */
.info-list li { padding: .5rem 0; border-bottom: 1px solid #eee; }
.info-list li:last-child { border-bottom: 0; }
.info-list i { color: var(--primary); margin-right: .6rem; }
.info-list span { display: inline-block; min-width: 120px; font-weight: 600; }

/* Skills */
.skill { margin-bottom: 1.25rem; }
.skill-head { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.skill .progress { height: 8px; background-color: #d6d6d6; }
.skill .progress-bar {
    background-color: var(--primary);
    width: 0;
    transition: width 1.2s ease-out;
}

/* Experience */
.filter-bar .btn {
    margin: 0 .35rem .5rem 0;
    border-radius: 20px;
    font-size: .85rem;
}
.btn-filter { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-filter:hover,
.btn-filter.active { background-color: var(--primary); color: #fff; }

.project .card { transition: transform .2s, box-shadow .2s; }
.project .card:hover { transform: translateY(-4px); box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12) !important; }
.project .date { color: var(--primary); font-weight: 600; font-size: .85rem; text-transform: uppercase; }
.project .role { font-style: italic; color: #777; margin-bottom: .75rem; }
.project .tags { margin-top: auto; }
.tag {
    display: inline-block;
    font-size: .75rem;
    padding: .15rem .55rem;
    margin: 0 .25rem .25rem 0;
    border-radius: 10px;
    background-color: #e8ecf0;
    color: var(--primary);
}

/* Training */
.badge.year { background-color: var(--primary); font-size: .85rem; }

/* Contact */
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 .35rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: background-color .2s;
}
.social a:hover { background-color: var(--primary-dark); color: #fff; }

/* Footer */
.footer { background-color: var(--primary); color: #dfe4ea; padding: 20px 0; }

/* Back to top */
.btn-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    z-index: 1000;
}
.btn-top.show { display: flex; }
.btn-top:hover { color: #fff; background-color: var(--primary-dark); }
