/* ===== Theme Switcher (cross-theme) ===== */
.theme-switcher {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    gap: 2px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.theme-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.45rem 1.05rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.theme-btn:hover {
    color: #fff;
}

.theme-btn.active {
    background: linear-gradient(135deg, #8A2BE2, #00F2FE);
    color: #fff;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.4);
}

@media (max-width: 768px) {
    .theme-switcher {
        top: auto;
        bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
        padding: 3px;
    }
    .theme-btn {
        font-size: 0.72rem;
        padding: 0.4rem 0.9rem;
    }
    /* Reserve a lane at the bottom for the floating switcher.
       Use body footer to outrank the later `footer { padding: ... }` shorthand. */
    body footer {
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
    --tech-blue: #001F44;
    --innovation-violet: #8A2BE2;
    --digital-teal: #00F2FE;
    --accent-orange: #FF6B00;
    --bg-charcoal: #121212;
    --white: #FFFFFF;
    --light-gray: #E8E8E8;
    --text-muted: #B0B0B0;
    --gradient-brand: linear-gradient(135deg, var(--innovation-violet), var(--digital-teal));
    --gradient-hero: linear-gradient(160deg, var(--tech-blue) 0%, #0a1628 40%, var(--bg-charcoal) 100%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--innovation-violet) var(--bg-charcoal);
}

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-charcoal);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--innovation-violet), var(--digital-teal));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9b3cf3, #33f5fe);
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-charcoal);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.5);
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.4s ease;
    background: rgba(0, 31, 68, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#navbar.scrolled {
    background: rgba(0, 31, 68, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(138, 43, 226, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-logo img {
    height: 40px;
    transition: height 0.3s ease;
}

#navbar.scrolled .nav-logo img {
    height: 32px;
}

.nav-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--white) 0%, var(--digital-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: font-size 0.3s ease;
}

#navbar.scrolled .nav-brand-name {
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.nav-cta {
    background: var(--gradient-brand);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.nav-links a.nav-cta::after {
    display: none;
}

.nav-links a.nav-cta:hover {
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('images/background2.png') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    width: 350px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 40px rgba(138, 43, 226, 0.4)) drop-shadow(0 2px 10px rgba(0, 242, 254, 0.2));
}

#hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: 6px;
}

.hero-title-name {
    background: linear-gradient(135deg, var(--white) 0%, var(--digital-teal) 50%, var(--innovation-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--digital-teal);
    opacity: 0.8;
    margin-bottom: 1.8rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

/* ===== Diensten Section ===== */
#diensten {
    padding: 7rem 0;
    background: var(--bg-charcoal);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* SVG icons hidden by default — Classic uses PNG. Bento/Brutal swap them in. */
.icon-svg {
    display: none;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Service Popups ===== */
.service-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.service-popup-overlay.active {
    display: flex;
}

.service-popup {
    position: relative;
    max-width: 1050px;
    width: 92%;
    max-height: 85vh;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(138, 43, 226, 0.3), 0 0 20px rgba(0, 242, 254, 0.1);
    overflow: hidden;
    animation: showcaseZoomIn 0.3s ease;
}

.service-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-popup-close:hover {
    background: rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.6);
}

.service-popup-content {
    display: none;
}

.service-popup-content.active {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.service-popup-image {
    flex: 1.5;
    min-width: 0;
}

.service-popup-image img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-popup-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-popup-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-popup-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.service-card[data-popup] {
    cursor: pointer;
}

.service-card[data-popup]::after {
    content: 'Bekijk voorbeeld';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--digital-teal);
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card[data-popup]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .service-popup-content.active {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem;
        padding-top: 3rem;
        overflow-y: auto;
        max-height: 80vh;
    }

    .service-popup-image {
        flex: none;
    }

    .service-popup-text {
        flex: none;
    }
}

/* ===== Over Ons Section ===== */
#over {
    padding: 7rem 0;
    position: relative;
    background: var(--tech-blue);
    overflow: hidden;
}

.over-bg {
    position: absolute;
    inset: 0;
    background: url('images/background1.png') center/cover no-repeat;
    opacity: 0.05;
}

.over-content {
    position: relative;
    z-index: 2;
}

.over-text {
    max-width: 800px;
    margin: 0 auto;
}

#over .section-title {
    text-align: left;
}

.over-intro {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.over-text > p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.over-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.value-icon img {
    border-radius: 12px;
}

.value strong {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.value p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== Contact Section ===== */
#contact {
    padding: 7rem 0;
    background: var(--bg-charcoal);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--innovation-violet);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    font-size: 1.05rem;
}

.contact-info {
    padding-top: 1rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-item strong {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Footer ===== */
footer {
    padding: 2.5rem 0;
    background: var(--tech-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 35px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    color: rgba(176, 176, 176, 0.5);
    font-size: 0.75rem;
    line-height: 1.5;
}

.obfuscated-email {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.obfuscated-email:hover {
    color: var(--digital-teal);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .over-values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #hero h1 {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 31, 68, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s ease;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

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

    #hero h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-tagline {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero-logo {
        width: 150px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-brand-name {
        font-size: 1.1rem;
    }

    #over .section-title {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-right {
        text-align: center;
    }
}