/* Skill pictogram theme switching */
[data-theme="dark"] .iconScreen {
    content: url('../../img/screen.png');
}
[data-theme="dark"] .iconLogica {
    content: url('../../img/logica.png');
}
[data-theme="dark"] .iconTool {
    content: url('../../img/tool.png');
}
/* Skill pictogram shadow */

@media (max-width: 1100px) {

    .navbarToggler {
        display: block !important;
        right: 0.5rem;
        z-index: 2000;
        padding: 0.6rem;
    }
    .navbarCollapse {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 1000;
    }
    .navbarCollapse.active {
        display: block;
    }
    .navbarNav {
        flex-direction: column;
    }
    .navbarNav li {
        margin: 0;
        padding: 0.75rem 1.5rem;
    }
}
.logoSubtitle {
        display: block;
        font-size: 0.4em;
        font-weight: 400;
        margin-top: 0.2rem;
        margin-left: 0.6rem;
        letter-spacing: 0.55em;
        color: var(--text-color);
        transition: all 0.3s ease;
        white-space: nowrap;
}
.langDropdown {
        left: 0;
        right: auto;
        width: 13%;
        min-width: unset;
        top: calc(100% + 0.5rem);
    }

@media (max-width: 600px) {
    .logoSubtitle {
        font-size: 0.32em;
        letter-spacing: 0.12em;
    }
    /* Removed duplicate .navbarToggler display:block in lower media query */


     /* sets language dropdown at the left */
    .langDropdown {
        left: 0;
        right: auto;
        width: 20%;
        min-width: unset;
        top: calc(100% + 0.5rem);
    }
}


@media (max-width: 400px) {


    .logoSubtitle {
        font-size: 0.22em;
        letter-spacing: 0.08em;
    }
       .navbarCollapse {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 3rem 0;
        z-index: 1000;
    }

      
    .navbar, .navbar .container {
        
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer .container {
        margin: 0;
        padding: 0;
    }
    .footer, .footerContent, .footerSection {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
    }
    .footer .logo .logoSubtitle {
        justify-content: center;
        margin: 0;
    }

}
@media (max-width: 350px) {
    .footerTitle {
        margin-left: 0 !important;
        text-align: center !important;
        display: block;
        width: 100%;
    }
}
/* Background image for skills section only in light mode */
.skills {
    background-image: url("../../img/denen.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    width: 100%;
    min-height: 400px;
    position: relative;
    z-index: 0;
}

[data-theme="dark"] .skills {
    background-image: none !important;
}
/* Add margin to highlights section */
.highlightsSection {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    padding: 2.5rem 2vw;
}
/* Highlights Section Flex Layout */
.highlightFlex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 3.5rem;
    max-width: 1100px;
    margin: 0 auto 3.5rem auto;
    padding: 3rem 2vw;
}
.highlightImgWrap {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 220px;
    max-width: 340px;
}
.highlightImg {
    width: 100%;
    height: auto;
    max-width: 340px;
    border-radius: 2rem;
    box-shadow: 0 4px 32px 0 rgba(59,91,253,0.10);
    object-fit: contain;
    display: block;
}
.highlightTextWrap {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    min-width: 0;
}
.highlightTextBlock {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 0;
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .highlightFlex {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1vw;
    }
    .highlightImgWrap {
        max-width: 100vw;
        min-width: 0;
        justify-content: center;
        margin-bottom: 1.2rem;
    }
    .highlightImg {
        max-width: 90vw;
        border-radius: 1.2rem;
    }
    .highlightTextWrap {
        gap: 1.2rem;
    }
    .navbarToggler {
        display: block;

    }
    .langDropdown {
        left: 0;
        right: auto;
        width: 15%;
        min-width: unset;
        top: calc(100% + 0.5rem);
    }
}
/* Client Highlights Section */

.clientHighlights {
    background: none;
    padding: 3rem 0 2rem 0;
    margin-bottom: 2rem;
}
.clientHighlightsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.clientHighlightBlock {
    background: var(--bg-light, #fff);
    border-radius: var(--radius, 1.25rem);
    box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.07));
    border: 1px solid var(--border-color, #e5e7eb);
    padding: 2rem 1.5rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.clientHighlightBlock h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--primary-color, #3b5bfd);
    letter-spacing: 0.01em;
}
.clientHighlightBlock p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-dark, #222);
}
.clientHighlightBlock small {
    color: var(--text-light, #555);
    font-size: 0.97rem;
    margin-top: 0.18rem;
    line-height: 1.5;
}
.clientHighlightBlock:hover {
    box-shadow: 0 6px 24px rgba(59,91,253,0.10);
    border-color: var(--primary-color, #3b5bfd);
}
@media (max-width: 900px) {
    .clientHighlightsGrid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem;
    }
}
:root {
    --primary-color: #3b5bfd;
    --primary-dark: #2f49c5;
    --secondary-color: #ffa94d;
    --text-color: #1f2933;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --bg-light: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
    --radius: 10px;
    --transition: all 0.25s ease;
}

[data-theme="dark"] {
    --primary-color: #8ab4ff;
    --primary-dark: #5c82d1;
    --secondary-color: #ffc77d;
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --bg-color: #0f172a;
    --bg-light: #111827;
    --border-color: #1f2937;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}


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

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: radial-gradient(circle at 20% 20%, rgba(59, 91, 253, 0.06), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(255, 169, 77, 0.08), transparent 30%),
        var(--bg-color);
    transition: var(--transition);
    position: relative;
    overflow-x: hidden;
}

.container {
    background-image: url("../../img/denen.png") no-repeat;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container .navbar {
    padding: 1rem 0;
    margin-left: 10%;
}


h1,
h2,
h3,
h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.8rem;
    font-weight: 800;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.8rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(59, 91, 253, 0.12);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    width: fit-content;
}

.metaRow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.metaCard {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow);
}

.metaLabel {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metaValue {
    display: block;
    margin-top: 0.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.subtitle,
.sectieSubtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    margin-top: 0;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.navbar {
    padding: 0 20px;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}


.navbarLeft {
    display: flex;
    align-items: center;
}

.navbarRight {
    display: flex;
    align-items: center;
    margin-top: 5rem;
}

[data-theme="dark"] .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'Montserrat','Allura', cursive;
    font-size: 4rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0px;
    background: linear-gradient(90deg, #1f47f7 0%, #3b5bfd 35%, #8ab4ff 65%, #1f47f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(67, 97, 238, 0.6);
}

[data-theme="dark"] .logo {
    color: #4361ee;
    text-shadow: 0 0 15px rgba(67, 97, 238, 0.4);
}

[data-theme="dark"] .logo:hover {
    text-shadow: 0 0 20px rgba(67, 97, 238, 0.8);
}
/* Logo Subtitle */

.logoSubtitle {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    margin-top: 0.2rem;
    margin-left: 0.6rem;
    letter-spacing: 0.55em;
    color: var(--text-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .logoSubtitle {
        font-size: 0.40em;
        letter-spacing: 0.40em;
    }
   
}

@media (max-width: 400px) {
    .logoSubtitle {
        font-size: 0.4em;
        letter-spacing: 0.40em;
    }
}

[data-theme="dark"] .logoSubtitle {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
                 0 0 16px rgba(59, 91, 253, 0.6),
                 0 0 24px rgba(138, 180, 255, 0.4);
    font-weight: 500;
    
}

.navbarToggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 111;
}

.navbarToggler span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: var(--transition);
}

.navbarToggler.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbarToggler.open span:nth-child(2) {
    opacity: 0;
}

.navbarToggler.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbarNav {
    display: flex;
    list-style: none;
}



.navbarNav li {
    margin-left: 2rem;
    margin-top: 2rem;
}

.navbarNav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    
}

/* .navbarNav a:hover {
    color: var(--primary-color);
} */

/* .navbarNav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
} */

.navbarNav a:hover::after {
    width: 100%;
}

.themaToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.themaToggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Language Switcher */
.langSwitcher {
    position: relative;
}

.langToggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.langToggle:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.langToggle svg {
    flex-shrink: 0;
}

.currentLang {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.langDropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 80px;
    z-index: 1000;
}

.langDropdown.active {
    display: flex;
}

.langOption {
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: calc(var(--radius) / 1.5);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

.langOption:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.langOption.active {
    background-color: var(--primary-color);
    color: white;
}




.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(140deg, rgba(59, 91, 253, 0.08) 0%, rgba(255, 169, 77, 0.06) 100%);
    padding: 3rem 0;
    border-radius: calc(var(--radius) * 1.6);
}
.heroGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: center;
}

.heroLeft {
    display: grid;
    gap: 1.25rem;
}

.heroLeft h1 {
    font-size: clamp(2.5rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.heroActions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.heroRight {
    display: flex;
    justify-content: flex-end;
}

.heroVisual {
    position: relative;
    display: grid;
    gap: 1rem;
    max-width: 520px;
    width: 100%;
}

.heroVisual picture {
    border-radius: calc(var(--radius) * 1.6);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.heroVisual img {
    width: 100%;
    height: auto;
    display: block;
}

.glassCard {
    position: absolute;
    bottom: 12%;
    right: 6%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    border-radius: calc(var(--radius) * 1.2);
    padding: 0.9rem 1.1rem;
    min-width: 210px;
}

.glassCard {
    position: absolute;
    bottom: 12%;
    right: 6%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    border-radius: calc(var(--radius) * 1.2);
    padding: 0.9rem 1.1rem;
    min-width: 210px;
}

[data-theme="dark"] .glassCard {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(31, 41, 55, 0.8);
}

.glassLabel {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.glassValue {
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--text-color);
}

.glassSub {
    margin-top: 0.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.skills {
    padding: 4rem 0;
}

.skillsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skills {
    padding: 4rem 0;
}

.skillKaart .skillIcon {
   margin-bottom: 1em;
    color: var(--primary-color);
    margin-bottom: 0;
    padding: 0;
    align-items: center;
    font-weight: 500;
   
    
    
}

.skills h2 {
    margin-left: 2rem;
   
}

.skills .skillsGrid .skillKaart h3 {
    margin-top: 0;
    margin-left: 0;
    font-family: 'Montserrat','Allura', cursive;
    color: var(--primary-color);
    text-align: center; 
    font-weight: 600;
    align-items: center;
    
    
    
}


.skillsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skillKaart:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
    border-color: rgba(59, 91, 253, 0.2);
}

.skillKaart {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.skillKaart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.65) 100%);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.skillKaart > * {
    position: relative;
    z-index: 2;
}

.skillKaart:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
    border-color: rgba(59, 91, 253, 0.2);
    
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.25);
    /* Glass effect: more transparency */
    backdrop-filter: blur(8px) saturate(150%);
}

.skillKaart:hover::after {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.45) 100%);
    backdrop-filter: blur(6px) saturate(120%);
}

[data-theme="dark"] .skillKaart:hover {
    border-color: rgba(138, 180, 255, 0.3);
    background-image: url("../../img/fullMoon3.jpg");
    background-size: cover;
    background-position: center;
}

.skillKaart h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    
    margin-left: 1.5rem;
    
}
.skillsGrid .skillKaart h3 {
    color: var(--primary-color);
    font-family: 'Arial', 'sans-serif';
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 700;
    
    margin-left: 1.5rem;
}

.skillKaart h3::after {

    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.skillKaart ul {
    list-style: none;
}

.skillKaart li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.skillKaart li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* About */
.about {
    padding: 4rem 0;
}

.aboutContent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.aboutContent .aboutFoto {

    font-size: min(2.23vw, .83em);
    width: 40.625em;
    height: 45.5625em;
    position: relative;
    gap: 0rem;
}

.aboutContent .cs-picture {
    overflow: hidden;
    position: absolute;
    display: block;
}

.aboutContent .cs-picture img {
    position: absolute;
    top: 0;
    left: 0%;
    height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}


.aboutContent .aboutFoto {
    font-size: 1rem;
    width: 50vw;
    max-width: 40.625rem;
    min-height: clamp(36.25rem, 50vw, 45.5625rem);
    flex: none;
    display: flex;
}

.aboutFoto .foto-ieper {
    border-radius: 6.25em 6.25em 1.5em 6.25em;
    width: 32.625em;
    height: 45.5625em;
    height: auto;
    position: relative;
    left: auto;
    top: auto;
}

.aboutFoto .foto-mari {
    border-radius: 1.5em;
    width: 23.625em;
    height: 28.75em;
    right: 0;
    bottom: 6.25em;
    position: absolute;
    left: 40;
    top: 50;
}

.handtekening {
    font-style: italic;
    text-align: right;
    margin-top: 30px;
    margin-right: 2em;
    color: #7f8c8d;
}

.aboutButtons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
    padding-right: 2rem;
}

.cv {
    padding: 4rem 0;
    position: relative;
}

.cvContainer {
    max-width: 1100px;
    margin: 0 ;
    padding: 0rem;
}

.cvHeader {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #1a1a2e;
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cvHeader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../img/techGSM.png') center/cover no-repeat;
    background-size: cover;
    animation: puzzleAssemble 4.5s ease-in-out forwards;
    opacity: 0.9;
    filter: blur(0px);
}

@keyframes puzzleAssemble {
    0% {
        filter: blur(30px);
        opacity: 0;
    }
    50% {
        filter: blur(8px);
        opacity: 0.5;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes fadeInImage {
    0% {
        filter: blur(30px);
        opacity: 0;
    }
    50% {
        filter: blur(8px);
        opacity: 0.5;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

.cvHeader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(140deg, rgba(59, 91, 253, 0.15) 0%, rgba(255, 169, 77, 0.05) 100%);
    z-index: 0;
}

.cvHeaderContent {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.cvProfileImage {
    flex-shrink: 0;
}

.cvProfileImage img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cvProfileImage img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cvHeaderText {
    flex: 1;
}

.cvTitle {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cvTitle h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cvSubtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0.5rem 0 0 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cvAbout {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.cvAbout p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
}

.cvAvailable {
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.cvContactBtn {
    display: inline-block;
    background: transparent;
    color: rgba(255, 169, 77, 0.6);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 169, 77, 0.6);
}

.cvContactBtn:hover {
    background: rgba(255, 169, 77, 0.6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 169, 77, 0.25);
}

.cvContactLink {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 169, 77, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.cvContactLink:hover {
    border-bottom-color: rgba(255, 169, 77, 0.4);
    color: rgba(255, 169, 77, 0.3);
}

.cvContent {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.cvLeft,
.cvRight {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cvSection {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cvSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b5bfd 0%, #ffa94d 100%);
}

.cvSection:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cvSection h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cvSection h3::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.cvItem {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.cvItem:hover {
    border-left-color: var(--primary-color);
    padding-left: 1.2rem;
}

.cvItem:last-child {
    margin-bottom: 0;
}

.cvItem h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    color: var(--text-primary);
}

.cvMeta {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cvList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cvList li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.cvList li::before {
    content: '▸';
    color: var(--primary-color);
    font-weight: bold;
}

.cvList li:hover {
    padding-left: 0.5rem;
    color: var(--primary-color);
}

.cvList li:last-child {
    border-bottom: none;
}

.cvSubList {
    list-style: none;
    padding: 0 0 0 1.5rem;
    margin: 0.5rem 0 0 0;
}

.cvSubList li {
    padding: 0.3rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.cvSubList li:before {
    content: "→ ";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.cvSkills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skillTag {
    background: #E8EFFE;
    color: #3b5bfd;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 91, 253, 0.15);
    position: relative;
    overflow: hidden;
}

.skillTag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 91, 253, 0.1), transparent);
    transition: left 0.5s ease;
}

.skillTag:hover::before {
    left: 100%;
}

.skillTag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 91, 253, 0.25);
    background: #D6E0FF;
}

[data-theme="dark"] .skillTag {
    background: var(--primary-color);
}

[data-theme="dark"] .cvSection {
    border-left-color: var(--primary-color);
}

.cvItem p strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

[data-theme="dark"] .cvHeader::before {
    background: linear-gradient(140deg, rgba(59, 91, 253, 0.25) 0%, rgba(255, 169, 77, 0.08) 100%);
}

[data-theme="dark"] .cvSection {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cvSection:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Mobile Optimization - Hero Section */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .heroGrid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .heroLeft {
        gap: 1rem;
    }
    
    .heroLeft h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .heroActions {
        gap: 0.5rem;
        flex-direction: column;
    }
    
    .heroActions .btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.2rem;
    }
    
    .heroRight {
        justify-content: center;
    }
    
    .heroVisual {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .glassCard {
        bottom: 8%;
        right: 4%;
        min-width: 160px;
        padding: 0.7rem 0.9rem;
    }
    
    .glassLabel {
        font-size: 0.75rem;
    }
    
    .glassValue {
        font-size: 0.95rem;
        margin-top: 0.25rem;
    }
    
    .glassSub {
        font-size: 0.85rem;
        margin-top: 0.15rem;
    }
}

/* Mobile Optimization - Highlights Section */
@media (max-width: 768px) {
    .highlightsSection {
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 1.5rem 1vw;
    }
    
    .highlightFlex {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1vw;
        margin: 0 auto 2rem auto;
    }
    
    .highlightImgWrap {
        max-width: 100%;
        min-width: 0;
        margin-bottom: 0;
    }
    
    .highlightImg {
        max-width: 100%;
        border-radius: 1rem;
    }
    
    .highlightTextWrap {
        gap: 1rem;
    }
    
    .highlightTextBlock h2 {
        font-size: 1.8rem;
    }
    
    .highlightTextBlock p {
        font-size: 1rem;
    }
}

/* Mobile Optimization - Skills Section */
@media (max-width: 768px) {
    .skills {
        padding: 2rem 0;
    }
    
    .skills h2 {
        margin-left: 1rem;
        font-size: 2rem;
    }
    
    .skillsGrid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .skillKaart {
        padding: 1.5rem;
    }
    
    .skillKaart h3 {
        font-size: 1.3rem;
        margin-left: 1rem;
        margin-bottom: 1rem;
    }
    
    .skillKaart li {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
}

/* Mobile Optimization - About Section */
@media (max-width: 768px) {
    .about {
        padding: 2rem 1rem;
    }
    
    .aboutContent {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: flex-start;
    }
    
    /* About Images Container - Designer Approach */
    .aboutContent .aboutFoto {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        margin: 0;
    }
    
    .aboutFoto .cs-picture {
        flex: 1;
        min-width: 0;
        aspect-ratio: 3/4;
        overflow: hidden;
        display: flex;
    }
    
    .aboutFoto .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .aboutFoto .foto-ieper {
        border-radius: 1.5rem 1.5rem 0.8rem 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .aboutFoto .foto-mari {
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* About Text */
    .aboutContent .aboutText h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        line-height: 1.3;
    }
    
    .aboutContent .aboutText p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.6;
        color: var(--text-light);
    }
    
    .handtekening {
        margin-top: 1.5rem;
        margin-right: 0;
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    /* About Buttons */
    .aboutButtons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .aboutButtons .btn {
        width: 100%;
        padding: 1rem;
        text-align: center;
        font-size: 0.95rem;
    }
}
@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }
    /* Nav full width, no margins */
    .navbar {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    .navbar .container {
        padding: 1rem 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    /* About section centered and responsive */
    .about {
      
        width: 100%;
    }
    .aboutContent {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: center;
        box-sizing: border-box;
        justify-content: center;
        ;
    }
     .aboutFoto, .aboutSection, .aboutText {
        text-align: center;
        padding: 0;
        margin: 0 auto !important;
        width: 100%;

    }
    .aboutFoto {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
        margin: 0 !important;
        float: none !important;
        padding: 0 !important;
        justify-content: center;
    }
    .aboutFoto img, .aboutContent img {
        margin: 0 !important;
        padding: 0 !important;
        display: block;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    /* Only ensure images are responsive */
    .aboutContent .cs-picture img {
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
    /* About buttons centered and full width */
    .aboutButtons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0 !important;
        justify-content: center;
        width: 100%;
    }
    .aboutButtons .btn {
        width: 100%;
        padding: 1rem;
        margin: 0 auto;
    }
    /* Footer full width, no margins */
    .footer {
        margin: 0;
        padding: 2rem 0;
        width: 100%;
        justify-content: center;
    }
    .footerContent {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .footerSection {
        margin: 0;
        padding: 0;
        text-align: center;
        width: 100%;
    }
    .footerBottom {
        margin: 0;
        padding: 1rem 1rem 0;
    }
}
    
    /* Stack images on very small screens */
    @media (max-width: 480px) {
        .aboutContent .aboutFoto {
            flex-direction: column;
            gap: 1.2rem;
            padding: 0;
            justify-content: center;
        }
        
        .aboutFoto .cs-picture {
            width: 100%;
            
        }
    }


@media (max-width: 768px) {
    .cvContainer {
        padding: 0 1rem;
    }
    
    .cvHeaderContent {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cvProfileImage img {
        width: 150px;
        height: 150px;
    }
    
    .cvContent {
        grid-template-columns: 1fr;
    }
    
    .cvHeader {
        padding: 2rem 1.5rem;
    }
    
    .cvTitle h1 {
        font-size: 2.5rem;
    }
    
    .cvSubtitle {
        font-size: 1.2rem;
    }
}

.cvTitel {
    margin: 6rem 0 6rem 2rem;
    position: center;
}

.CvFoto {
    margin-top: 20rem;
}


/* Portfolio */
.portfolio {
    padding: 4rem 0;
}

.portfolioGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolioKaart {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

/* .portfolioKaart:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
} */

.portfolioFoto {
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.portfolioFoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolioKaart:hover .portfolioFoto img {
    transform: scale(1.06);
}

.portfolioContent {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolioContent h3 {
    margin-bottom: 0.5rem;
}

.portfolioContent p {
    flex-grow: 1;
}

.portfolioButton {
    margin-top: 1rem;
}

.portfolioButton .btn {
    font-size: 1rem;
}

.portfolioLinks {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.popUp {
    position: fixed;
    color: white;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;

}

.popUp.active {
    opacity: 1;
    visibility: visible;
}

.popupDicht {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 5rem;
    color: #8892b0;
    cursor: pointer;

}

.popupDicht:hover {
    color: var(--primary-color);
}

/* Contact */
.sectieContact {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.contactForm {
    margin-top: 2rem;
}

.formRij {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.formGroep {
    margin-bottom: 1.5rem;
}

.formGroep label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.formGroep input,
.formGroep textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-light);
    color: var(--text-color);
    transition: var(--transition);
}

.formGroep input:focus,
.formGroep textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.formGroep textarea {
    min-height: 150px;
    resize: vertical;
}

.errorMessage {
    display: block;
    margin-top: 0.5rem;
    color: #e63946;
    font-size: 0.875rem;
}

.has-error input,
.has-error textarea {
    border-color: #e63946;
}

.alert {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
}

.alertSuccess {
    background-color: rgba(56, 163, 165, 0.2);
    border: 1px solid #38a3a5;
    color: #38a3a5;
}

.footer {
    background-color: var(--bg-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.footerContent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footerSection {
    text-align: center;
}

.footerSection h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.footerTitle {
    font-family: 'Montserrat','Allura', cursive;
    font-size: 2rem !important;
    font-weight: 700 !important;
    background: linear-gradient(90deg, #1f47f7 0%, #3b5bfd 35%, #8ab4ff 65%, #1f47f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.footerSection p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.footerLinks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footerLinks li {
    margin-bottom: 0.5rem;
}

.footerLinks a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.footerLinks a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.githubIcon {
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
    transition: var(--transition);
}

.footerLinks a:hover .githubIcon {
    transform: rotate(15deg);
}

.footerBottom {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.footerBottom p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}


@media (max-width: 768px) {


    .navbar .container {
        padding: 1rem 1rem;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 2rem;

    }

    .logo {
        font-size: 2.5rem;
        
    }

    .navbarToggler {
        display: block;

    }

    .navbarCollapse {
       
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 1000;
    }

    .navbarCollapse.active {
        display: block;
    }

    .navbarNav {
        flex-direction: column;
    }

    .navbarNav li {
        margin: 0;
        padding: 0.75rem 0;
    }

    .hero {
        min-height: auto;
        padding: 9rem 0 4rem;
        margin-top: 3rem;
    }

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

    .image-placeholder {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .aboutContent .aboutText h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .aboutContent .aboutText p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .handtekening {
        margin-top: 1.5rem;
        margin-right: 0;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .aboutButtons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        justify-content: center;
        padding-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .aboutButtons .btn {
        width: 100%;
        padding: 1rem;
        text-align: center;
        font-size: 0.95rem;
    }
    
    /* Footer Mobile Optimization */
    .footer {
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
    }
    
    .footerContent {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footerSection {
        text-align: center;
    }
    
    .footerSection h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footerTitle {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .footerSection p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .footerLinks {
        margin-top: 0.5rem;
    }
    
    .footerLinks li {
        margin-bottom: 0.4rem;
    }
    
    .footerLinks a {
        font-size: 0.85rem;
    }
    
    .footerBottom {
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .footerBottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 747px) {
    .aboutContent .aboutFoto {

        width: 100vw;

    }
    .navbarToggler {
        display: block;

    }

}

@media (max-width: 480px) {
    .navbarToggler {
        display: block;
        right: 1rem;
        z-index: 2000;
        padding: 0.6rem;
    }

    .heroContent {
        margin-left: 0;
        text-align: center;
    }

    .heroContent p {
        font-size: 1.2rem;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

    .heroGrid {
        gap: 2rem;
    }

    .heroLeft {
        text-align: left;
    }

    .heroActions {
        justify-content: flex-start;
    }

    /* ensure buttons are centered on small screens */
    .btn-primary,
    .btn-outline {
        margin: 0 auto;
    }

    .navbarCollapse.active {
        display: inline;
        position: absolute;
        top: 20%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: var(--shadow);
        padding: 1rem;
        z-index: 1000;
    }

    .popupDicht {
        font-size: 3rem;
        top: 10px;
        right: 15px;
    }
}

.navbarNav {
    flex-wrap: wrap;
}

.themaToggle {
    margin-left: 1rem;
}

/* Animated backgrounds */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Night stars */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.3);
    animation: twinkle 4s ease-in-out infinite;
}

[data-theme="light"] .star {
    display: none;
}

.star-1 { top: 15%; left: 20%; animation-delay: 0s; }
.star-2 { top: 25%; left: 70%; animation-delay: 1s; }
.star-3 { top: 40%; left: 15%; animation-delay: 2s; }
.star-4 { top: 60%; left: 85%; animation-delay: 0.5s; }
.star-5 { top: 75%; left: 40%; animation-delay: 1.5s; }
.star-6 { top: 30%; left: 50%; animation-delay: 3s; }
.star-7 { top: 50%; left: 30%; animation-delay: 2.5s; }
.star-8 { top: 80%; left: 65%; animation-delay: 1.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.5); }
}

/* Shooting stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, #fff, transparent);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .shooting-star {
    display: none;
}


.shooting-1 {
    top: 18%;
    right: -100px;
    animation: shoot 10s linear infinite;
    animation-delay: 5s;
    /* Fast visible, long pause: use steps in keyframes */
}

.shooting-2 {
    top: 38%;
    right: -100px;
    animation: shoot 8s linear infinite;
    animation-delay: 2s;
}

.shooting-3 {
    top: 68%;
    right: -100px;
    animation: shoot 12s linear infinite;
    animation-delay: 4s;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 1;
        width: 80px;
    }
    20% {
        opacity: 0.7;
        transform: translateX(-1600px) translateY(900px) rotate(-45deg);
    }
    21% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: translateX(-1600px) translateY(900px) rotate(-45deg);
    }
}

/* Day particles */
.day-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 91, 253, 0.25), rgba(59, 91, 253, 0.08) 50%, transparent 75%);
    opacity: 0;
    animation: float 15s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(59, 91, 253, 0.15);
}

[data-theme="dark"] .day-particle {
    display: none;
}

.particle-1 {
    width: 140px;
    height: 140px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    background: radial-gradient(circle, rgba(255, 169, 77, 0.28), rgba(255, 169, 77, 0.1) 50%, transparent 75%);
    box-shadow: 0 0 45px rgba(255, 169, 77, 0.2);
    animation-delay: 4s;
}

.particle-3 {
    width: 170px;
    height: 170px;
    bottom: 15%;
    left: 20%;
    background: radial-gradient(circle, rgba(59, 91, 253, 0.22), rgba(59, 91, 253, 0.06) 50%, transparent 75%);
    animation-delay: 8s;
}

.particle-4 {
    width: 95px;
    height: 95px;
    top: 40%;
    left: 70%;
    background: radial-gradient(circle, rgba(255, 142, 60, 0.25), rgba(255, 142, 60, 0.08) 50%, transparent 75%);
    box-shadow: 0 0 35px rgba(255, 142, 60, 0.18);
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.85;
    }
    50% {
        transform: translateY(-40px) translateX(25px) scale(1.15);
        opacity: 0.6;
    }
    80% {
        opacity: 0.85;
    }
}

/* Sunlight rays */
.sun-ray {
    position: absolute;
    top: -50%;
    width: 120px;
    height: 200vh;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 200, 100, 0.08) 20%,
        rgba(255, 220, 150, 0.15) 40%,
        rgba(255, 220, 150, 0.12) 60%,
        rgba(255, 200, 100, 0.06) 80%,
        transparent 100%);
    transform-origin: top center;
    opacity: 0;
    animation: rayGlow 8s ease-in-out infinite;
    pointer-events: none;
}

[data-theme="dark"] .sun-ray {
    display: none;
}

.ray-1 {
    left: 10%;
    transform: rotate(-8deg);
    animation-delay: 0s;
    width: 100px;
}

.ray-2 {
    left: 30%;
    transform: rotate(5deg);
    animation-delay: 2s;
    width: 130px;
}

.ray-3 {
    left: 50%;
    transform: rotate(-3deg);
    animation-delay: 4s;
    width: 110px;
}

.ray-4 {
    left: 70%;
    transform: rotate(7deg);
    animation-delay: 1s;
    width: 95px;
}

.ray-5 {
    left: 85%;
    transform: rotate(-6deg);
    animation-delay: 3s;
    width: 105px;
}

@keyframes rayGlow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
}



