/* --- FONTS & VARIABLES --- */
/* Font loading moved to HTML for performance */

/* Smooth reveal after FOUC prevention */
html {
    transition: opacity 0.15s ease-in;
}

:root {
    --bg-color: #040108;
    --card-bg: #141414;
    --card-glass: rgba(10, 10, 10, 0.85);
    --text-color: #ffffff;
    --text-muted: #B0B7C3;
    --border-color: #333;

    --col-particulier: #FF9F1C;
    --col-creative: #FF0055;
    --col-kmo: #00F0FF;
    --col-managed: #39FF14;
    --col-synergy: #9900ff;

    --font-main: 'Outfit', sans-serif;
    --container-width: 1200px;
    --container-wide: 1400px;

    /* Typography Scale */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 2rem;
    /* 32px */
    --text-4xl: 2.5rem;
    /* 40px */
    --text-5xl: 3rem;
    /* 48px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Section Spacing */
    --section-padding-y: 120px;
    --section-gap: 80px;

    /* Transition Timing */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Scroll-snap for homepage sections (desktop only) */
@media (min-width: 1100px) {
    html.scroll-snap-enabled {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
        overflow-x: hidden;
        height: 100vh;
    }

    html.scroll-snap-enabled body {
        overflow: visible;
        height: auto;
    }

    /* All snap sections get alignment */
    .scroll-snap-section {
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }

    /* Hero and top sections */
    html.scroll-snap-enabled #home,
    html.scroll-snap-enabled .hero-section,
    html.scroll-snap-enabled .testimonials-slider,
    html.scroll-snap-enabled .wordcloud-section,
    html.scroll-snap-enabled .bento-section {
        scroll-snap-align: start;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    /* Page-level fade-in to prevent layout shift */
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.page-ready {
    opacity: 1;
}

/* --- VANTA BACKGROUND --- */
#vanta-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: #040108;
    /* Prevent flash of unstyled content/white background */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 20px;
}

/* KNOP STIJLEN (Algemeen) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    background: white;
    color: black;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
    transition: transform 0.1s var(--ease-out), box-shadow 0.1s var(--ease-out);
}

/* --- MODERN NAVIGATION MENU --- */

/* Prevent layout shift - reserve space for dynamically injected content */
#nav-placeholder {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    min-height: 48px;
    min-width: 200px;
}

#footer-placeholder {
    min-height: 300px;
}

.main-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: top 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

/* Sticky Navigation - Shrinks on scroll */
.main-nav.scrolled {
    top: 10px;
    transform: scale(0.92);
    transform-origin: top left;
}

.main-nav.scrolled .logo-icon {
    height: 24px !important;
    width: 24px !important;
}

.main-nav.scrolled .logo-text {
    font-size: 0.95rem;
}

.main-nav.scrolled .nav-expand-trigger,
.main-nav.scrolled .nav-btn {
    height: 42px;
    font-size: 0.8rem;
    padding: 0 14px;
}

/* Always Visible Buttons */
.nav-visible {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    height: 48px;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.nav-btn:active {
    transform: translateY(0);
}

.logo-btn {
    padding: 0 16px 0 12px;
    height: 48px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.logo-btn img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-btn:hover img {
    transform: scale(1.08);
}

/* New split logo styles */
.logo-icon {
    height: 28px !important;
    width: 28px !important;
    object-fit: contain;
    margin: 0;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9b5de5 0%, #f15bb5 50%, #00bbf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-btn:hover .logo-text {
    background: linear-gradient(135deg, #b77de9 0%, #f47dc7 50%, #3dcbfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help-btn {
    width: 48px;
    padding: 0;
    font-size: 1.2rem;
}

.contact-btn {
    text-decoration: none;
}

.help-btn.hidden {
    display: none !important;
}

/* Expandable Menu */
.nav-expandable {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
    pointer-events: none;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 0;
    overflow: hidden;
}

.main-nav:hover .nav-expandable,
.main-nav.is-open .nav-expandable {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    max-width: 2000px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu-items {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    height: 48px;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-action-btn {
    height: 48px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.nav-action-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* Nav Horizontal Expand System - 4 colored triggers that expand on hover */
.nav-expand-group {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.nav-expand-trigger {
    height: 48px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    position: relative;
}

.nav-expand-trigger:hover {
    transform: translateY(-2px);
}

/* Menu button - keeping simple black style for all triggers */
/* Colors removed - all buttons now use the base .nav-expand-trigger styling */

/* Hidden items - vertical dropdown below trigger */
.nav-expand-items {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 8px;
    /* Visual spacing moved inside */
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: transparent;
    /* Background moved to inner content */
    border-radius: 12px;
    box-shadow: none;
    /* Slow transition for closing */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

/* Inner wrapper styling for the actual dropdown appearance */
.nav-expand-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    margin-top: 0;
    /* Reduced from 8px - closer to trigger */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Invisible bridge for regular dropdowns - same as mega-menu */
.nav-expand-items::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -20px;
    right: -20px;
    height: 35px;
    background: transparent;
    pointer-events: auto;
}


/* On hover of the group, dropdown opens */
.nav-expand-group:hover .nav-expand-items,
.nav-expand-group.is-open .nav-expand-items {
    max-height: 600px;
    opacity: 1;
    padding: 16px 8px 8px 8px;
    /* Extra top padding to account for bridge */
    pointer-events: auto;
    /* Fast transition for opening */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep ALL expanded items open as long as mouse is anywhere on nav-visible */
/* This prevents menus from closing while navigating between different menu buttons */
.nav-visible:hover .nav-expand-group.menu-hovered .nav-expand-items {
    max-height: 600px;
    opacity: 1;
    padding: 16px 8px 8px 8px;
    /* Extra top padding to account for bridge */
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-expand-item {
    height: 44px;
    padding: 0 16px;
    /* Same glassy background as main menu buttons */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    justify-content: flex-start;
}

.nav-expand-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* === MEGA MENU STYLES === */
.mega-menu .nav-expand-items.nav-mega {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 680px;
    max-width: 800px;
    padding: 20px;
    gap: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    /* CRITICAL: Position below the trigger button */
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    /* Reduced from 8px - menu sits closer to trigger */
    padding-top: 20px;
    z-index: 1000;
}

/* Invisible bridge - positioned ABOVE the menu to connect with button */
/* Extended dimensions for stable hover during diagonal mouse movement */
.mega-menu .nav-expand-items.nav-mega::after {
    content: '';
    position: absolute;
    top: -50px;
    /* Extended from -30px - deeper overlap with trigger zone */
    left: -40px;
    /* Extended from -20px - wider horizontal coverage */
    right: -40px;
    height: 60px;
    /* Extended from 40px - taller bridge for better stability */
    background: transparent;
    pointer-events: auto;
}

/* Add hover extension to the trigger button itself */
.mega-menu .nav-expand-trigger::after {
    content: '';
    position: absolute;
    bottom: -20px;
    /* Extends trigger hitzone downward into the gap */
    left: -10px;
    right: -10px;
    height: 25px;
    background: transparent;
    pointer-events: auto;
}

.mega-menu:hover .nav-expand-items.nav-mega,
.mega-menu.is-open .nav-expand-items.nav-mega {
    display: flex;
    opacity: 1;
    max-height: none;
    pointer-events: auto;
}

.mega-col {
    flex: 1 1 150px;
    min-width: 150px;
    padding: 10px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.mega-col:last-child {
    border-right: none;
}

.mega-col h4 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Emoji above text, centered */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.2;
}

.mega-col .nav-expand-item {
    height: 38px;
    font-size: 0.85rem;
    padding: 0 8px;
    margin-bottom: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.mega-col .nav-expand-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

/* Mobile mega menu - stack columns, full width */
@media (max-width: 900px) {
    .mega-menu .nav-expand-items.nav-mega {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        max-width: none;
        min-width: auto;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        flex-direction: column;
        padding: 16px;
        transform: none;
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }

    .mega-col {
        flex: none;
        width: 100%;
        min-width: auto;
        padding: 12px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mega-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mega-col h4 {
        font-size: 0.85rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
        height: auto;
        min-height: auto;
        color: white;
    }

    .mega-col .nav-expand-item {
        height: 44px;
        font-size: 0.9rem;
        padding: 0 12px;
        margin-bottom: 4px;
        border-radius: 10px;
    }

    /* Mobile close button for mega menu */
    .mega-menu-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: white;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        z-index: 10;
    }

    .mega-menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    /* Mobile: Click-based menu opening via .is-open class */
    .nav-expand-group.is-open .nav-expand-items {
        max-height: 600px;
        opacity: 1;
        padding: 16px 8px 8px 8px;
        pointer-events: auto;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mega-menu.is-open .nav-expand-items.nav-mega {
        display: flex;
        opacity: 1;
        max-height: none;
        pointer-events: auto;
    }

    /* Disable hover-based opening on mobile */
    .nav-expand-group:hover .nav-expand-items,
    .mega-menu:hover .nav-expand-items.nav-mega {
        /* Don't open on hover on mobile - only via .is-open */
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }

    /* Re-enable when .is-open is applied */
    .nav-expand-group.is-open:hover .nav-expand-items,
    .mega-menu.is-open:hover .nav-expand-items.nav-mega {
        max-height: 600px;
        opacity: 1;
        pointer-events: auto;
    }
}

/* Hide close button on desktop only */
@media (min-width: 901px) {
    .mega-menu-close {
        display: none;
    }

    /* Hamburger button hidden on desktop */
    .hamburger-btn {
        display: none !important;
    }

    /* Mobile drawer hidden on desktop */
    .mobile-drawer,
    .mobile-drawer-backdrop {
        display: none !important;
    }
}

/* ==========================================
   MOBILE HAMBURGER & DRAWER SYSTEM
   ========================================== */

/* Hamburger Button - Visible on mobile only */
.hamburger-btn {
    display: none;
    /* Hidden by default, shown in mobile media query */
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Drawer Backdrop */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2999;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer Panel */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 0, 20, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3000;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #9b5de5 0%, #f15bb5 50%, #00bbf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-drawer-content {
    padding: 15px;
}

.mobile-drawer-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-section:last-child {
    border-bottom: none;
}

.mobile-drawer-section h4 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 8px;
}

.mobile-drawer-section a {
    display: block;
    padding: 12px 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.mobile-drawer-section a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
}

/* Drawer action buttons */
.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.drawer-lang-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.drawer-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.drawer-contact-btn {
    display: block;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--col-synergy) 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 93, 229, 0.4);
}

/* Quick action buttons row at TOP of drawer */
.mobile-drawer-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-quick-btn {
    flex: 1;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-quick-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.drawer-quick-btn.drawer-contact-btn {
    background: linear-gradient(135deg, var(--col-synergy) 0%, #8b5cf6 100%);
    border-color: transparent;
}

/* Mobile-specific styles */
@media (max-width: 900px) {

    /* Mobile nav: COMPACT glass bar - only as wide as content */
    .main-nav {
        top: 12px !important;
        left: 12px !important;
        right: auto !important;
        width: auto !important;
        padding: 8px 12px !important;
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
        /* Single glass background */
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
        transform: none !important;
    }

    /* NO changes on scroll */
    .main-nav.scrolled {
        top: 12px !important;
        left: 12px !important;
        right: auto !important;
        width: auto !important;
        padding: 8px 12px !important;
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
        transform: none !important;
    }

    /* Logo button - NO background, NO border (parent has it) */
    .main-nav .logo-btn,
    .main-nav.scrolled .logo-btn {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        padding: 0 !important;
    }

    .main-nav .logo-btn:hover {
        background: none !important;
        transform: none !important;
    }

    /* Logo icon - FIXED 24px */
    .main-nav .logo-icon,
    .main-nav.scrolled .logo-icon {
        height: 24px !important;
        width: 24px !important;
        min-height: 24px !important;
        min-width: 24px !important;
        max-height: 24px !important;
        max-width: 24px !important;
    }

    /* Logo text */
    .main-nav .logo-text,
    .main-nav.scrolled .logo-text {
        display: inline !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: white !important;
    }

    /* Hamburger - NO background (parent has it) */
    .hamburger-btn,
    .main-nav.scrolled .hamburger-btn {
        display: flex !important;
        width: 28px !important;
        height: 28px !important;
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 1.1rem !important;
        color: white !important;
    }

    .hamburger-btn:hover {
        background: none !important;
    }

    /* NUCLEAR OPTION: Hide EVERYTHING in nav except logo and hamburger */
    .main-nav .nav-menu-items {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Hide all nav-expand elements */
    .main-nav .nav-expand-group,
    .main-nav .nav-expand-trigger,
    .main-nav .nav-expand-items,
    .main-nav .nav-expand-items.nav-mega,
    .main-nav .mega-menu,
    .nav-expand-group,
    .nav-expand-trigger,
    .nav-expand-items {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }

    /* Make sure only logo-btn and hamburger-btn are visible */
    .main-nav .nav-visible {
        display: flex !important;
    }

    .main-nav .nav-visible>.logo-btn,
    .main-nav .nav-visible>.hamburger-btn {
        display: flex !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        left: auto !important;
    }
}


/* Onboarding Form Styles */
.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(153, 0, 255, 0.6);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(153, 0, 255, 0.15);
}

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

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

/* Stagger animation for menu items */
.main-nav:hover .nav-link,
.main-nav.is-open .nav-link {
    animation: navItemFadeIn 0.4s ease forwards;
    opacity: 0;
}

.main-nav:hover .nav-link:nth-child(1),
.main-nav.is-open .nav-link:nth-child(1) {
    animation-delay: 0.05s;
}

.main-nav:hover .nav-link:nth-child(2),
.main-nav.is-open .nav-link:nth-child(2) {
    animation-delay: 0.1s;
}

.main-nav:hover .nav-link:nth-child(3),
.main-nav.is-open .nav-link:nth-child(3) {
    animation-delay: 0.15s;
}

.main-nav:hover .nav-link:nth-child(4),
.main-nav.is-open .nav-link:nth-child(4) {
    animation-delay: 0.2s;
}

.main-nav:hover .nav-link:nth-child(5),
.main-nav.is-open .nav-link:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes navItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FLY-IN ANIMATIONS FOR HOMEPAGE (Desktop only) --- */
/* Cards start hidden and offset */
.animate-fly-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When visible, animate to normal position */
.animate-fly-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for bento cards */
.bento-card.animate-fly-in:nth-child(1) {
    transition-delay: 0s;
}

.bento-card.animate-fly-in:nth-child(2) {
    transition-delay: 0.05s;
}

.bento-card.animate-fly-in:nth-child(3) {
    transition-delay: 0.1s;
}

.bento-card.animate-fly-in:nth-child(4) {
    transition-delay: 0.15s;
}

.bento-card.animate-fly-in:nth-child(5) {
    transition-delay: 0.2s;
}

.bento-card.animate-fly-in:nth-child(6) {
    transition-delay: 0.25s;
}

.bento-card.animate-fly-in:nth-child(7) {
    transition-delay: 0.3s;
}

.bento-card.animate-fly-in:nth-child(8) {
    transition-delay: 0.35s;
}

.bento-card.animate-fly-in:nth-child(9) {
    transition-delay: 0.4s;
}

.bento-card.animate-fly-in:nth-child(10) {
    transition-delay: 0.45s;
}

.bento-card.animate-fly-in:nth-child(11) {
    transition-delay: 0.5s;
}

.bento-card.animate-fly-in:nth-child(12) {
    transition-delay: 0.55s;
}

.bento-card.animate-fly-in:nth-child(13) {
    transition-delay: 0.6s;
}

.bento-card.animate-fly-in:nth-child(14) {
    transition-delay: 0.65s;
}

/* Service blocks with alternating direction */
.service-block.animate-fly-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-block.animate-fly-in:nth-child(even) {
    transform: translateX(50px);
}

.service-block.animate-fly-in.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Styles */
@media (max-width: 900px) {
    .main-nav {
        left: 0;
        top: 0;
        right: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
        /* Glassmorphism background for mobile nav bar */
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        /* Curved bottom corners only - like inverted U */
        border-radius: 0 0 24px 24px;
        padding: 12px 12px 10px 12px;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
    }

    .nav-visible {
        flex-wrap: nowrap;
        gap: 4px;
        width: auto;
        justify-content: center;
    }

    /* Mobile: use favicon for logo, compact size */
    .logo-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        flex-shrink: 0;
        gap: 0;
        border-radius: 8px;
    }

    .logo-btn .logo-icon {
        height: 22px !important;
        width: 22px !important;
    }

    .logo-btn .logo-text {
        display: none;
    }

    .logo-btn img {
        height: auto;
    }

    /* Compact triggers for mobile - use clamp for responsive sizing */
    .nav-expand-trigger {
        height: 36px;
        font-size: clamp(0.6rem, 2.5vw, 0.75rem);
        padding: 0 8px;
        white-space: nowrap;
    }

    .nav-expand-group {
        flex: 0 1 auto;
        position: relative;
    }

    /* Mobile: expand below the button, stacked vertically */
    .nav-expand-items {
        position: absolute;
        left: 0;
        top: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        white-space: nowrap;
        margin-top: 4px;
        min-width: 120px;
        background: rgba(0, 0, 0, 0.95);
        border-radius: 8px;
        padding: 4px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        z-index: 100;
    }

    .nav-expand-item {
        height: 36px;
        font-size: 0.7rem;
        padding: 0 12px;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        border-radius: 6px;
    }

    .nav-btn {
        height: 44px;
        padding: 0 16px;
        font-size: 0.85rem;
    }

    .help-btn {
        width: 44px;
        font-size: 1.1rem;
    }

    .nav-expandable {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 12px;
        flex-direction: column;
        align-items: stretch;
        width: calc(100vw - 80px);
        max-width: 320px;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        transform: translateY(-10px) scale(0.98);
        max-width: none;
    }

    .main-nav.is-open .nav-expandable {
        transform: translateY(0) scale(1);
    }

    .nav-menu-items {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0 16px;
        height: 44px;
        border-radius: 10px;
    }

    .nav-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 12px;
        margin-top: 8px;
        width: 100%;
    }

    /* Mobile horizontal expand adjustments */
    .nav-expand-group {
        flex-wrap: wrap;
    }

    .nav-expand-trigger {
        height: 40px;
        font-size: 0.8rem;
        padding: 0 12px;
    }

    .nav-expand-items {
        flex-wrap: wrap;
    }

    .nav-expand-item {
        height: 40px;
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .nav-action-btn {
        flex: 1;
        min-width: 80px;
        height: 40px;
        font-size: 0.8rem;
    }

    .logo-btn {
        height: 48px;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-btn img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    /* Nav stays at edges - no override needed */

    .nav-btn {
        height: 40px;
        padding: 0 12px;
        font-size: 0.8rem;
    }

    .logo-btn {
        padding: 0 3px;
        height: 40px;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-btn img {
        height: 70px;
    }

    .help-btn {
        width: 40px;
        font-size: 1rem;
    }

    .nav-expandable {
        width: calc(100vw - 70px);
        max-width: 280px;
    }
}

@media (min-width: 901px) {
    .mobile-only {
        display: none;
    }
}


/* --- HERO --- */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    text-align: left;
    position: relative;
    z-index: 10;
}

.tom-photo {
    width: 280px;
    height: auto;
    object-fit: contain;
    z-index: 10;
    /* Start hidden - revealed by JS after setting correct seasonal image */
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.9));
    margin-right: -20px;
}

.tom-photo.loaded {
    opacity: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: #e5e5e5;
    max-width: 650px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 1);
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

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

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    position: relative;
    z-index: 10;
}

@media (min-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .span-2-tablet {
        grid-column: span 2;
    }
}

@media (min-width: 1100px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .span-2-desktop {
        grid-column: span 4;
        text-align: center;
    }

    .span-2-desktop .bento-content {
        justify-content: center;
    }
}

.bento-card {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    border: 1px solid #333;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    transition: transform 0.3s, background 0.3s, opacity 0.6s ease-out;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* Desktop-only fly-in animation for homepage bento cards */
@media (min-width: 1100px) {
    .bento-card.animate-fly-in {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .bento-card.animate-fly-in.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /* Staggered delays for each card in the grid */
    .bento-card.animate-fly-in:nth-child(1) {
        transition-delay: 0s;
    }

    .bento-card.animate-fly-in:nth-child(2) {
        transition-delay: 0.08s;
    }

    .bento-card.animate-fly-in:nth-child(3) {
        transition-delay: 0.16s;
    }

    .bento-card.animate-fly-in:nth-child(4) {
        transition-delay: 0.24s;
    }

    .bento-card.animate-fly-in:nth-child(5) {
        transition-delay: 0.32s;
    }

    .bento-card.animate-fly-in:nth-child(6) {
        transition-delay: 0.40s;
    }

    .bento-card.animate-fly-in:nth-child(7) {
        transition-delay: 0.48s;
    }

    .bento-card.animate-fly-in:nth-child(8) {
        transition-delay: 0.56s;
    }

    .bento-card.animate-fly-in:nth-child(9) {
        transition-delay: 0.64s;
    }

    .bento-card.animate-fly-in:nth-child(10) {
        transition-delay: 0.72s;
    }

    /* Fly-in animation for service blocks */
    .service-block.animate-fly-in {
        opacity: 0;
        transform: translateY(80px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-block.animate-fly-in.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-card>div:last-child {
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (max-width: 480px) {
    .bento-card {
        padding: 20px;
        min-height: 180px;
    }

    .bento-card h3 {
        font-size: 1.3rem;
    }

    .bento-card p {
        font-size: 0.9rem;
    }

    .bento-extra {
        font-size: 0.8rem;
    }
}

.bento-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* When animated and visible, keep hover effect working properly */
@media (min-width: 1100px) {
    .bento-card.animate-fly-in.is-visible:hover {
        transform: translateY(-5px) scale(1);
    }
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0;
}

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

.bento-extra {
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 15px;
    color: #fff;
    font-weight: 600;
    opacity: 0.8;
}

/* --- PARTICULIER HERO --- */
.part-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 60px;
}

@media(min-width: 900px) {
    .part-hero {
        flex-direction: row;
        align-items: stretch;
    }
}

.part-hero-content {
    flex: 1;
    background: var(--card-glass);
    backdrop-filter: blur(10px);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    border: 1px solid var(--border-color);
    border-right: none;
}

.part-hero-img {
    flex: 1;
    position: relative;
    min-height: 450px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-left: none;
}

.part-hero-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width: 899px) {
    .part-hero-content {
        border-radius: 16px 16px 0 0;
        border: 1px solid #333;
        border-bottom: none;
        padding: 30px;
    }

    .part-hero-img {
        border-radius: 0 0 16px 16px;
        border: 1px solid #333;
        border-top: none;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .part-hero-content {
        padding: 20px;
    }

    .part-hero-content h1 {
        font-size: 2rem !important;
    }

    .part-hero-content h2 {
        font-size: 1rem !important;
    }

    .part-hero-content h3 {
        font-size: 1.1rem !important;
    }

    .part-hero-img {
        height: 250px;
    }
}

/* --- SERVICE BLOKKEN (Uniform voor Home & Sub) --- */
.service-block {
    background: var(--card-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

a.service-block {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    /* Ensure it sits above background elements */
}

a.service-block:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media(min-width: 900px) {
    .service-block {
        flex-direction: row;
        align-items: stretch;
    }

    .service-block:nth-child(even) {
        flex-direction: row-reverse;
    }

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

    /* Right-align buttons in even rows (when image is on left) to avoid sticky CTA overlap */
    .service-block:nth-child(even) .service-text {
        align-items: flex-end;
        text-align: right;
    }

    .service-block:nth-child(even) .service-text ul {
        text-align: left;
    }

    .service-block:nth-child(even) .service-text h3,
    .service-block:nth-child(even) .service-text p {
        text-align: left;
    }

    /* Right-align buttons container in even rows (text is on right, image on left) */
    .service-block:nth-child(even) .service-text>div {
        justify-content: flex-end;
        width: 100%;
    }

    /* When image-box comes first (image on left), right-align the text content and buttons */
    .service-block .service-img-box:first-child~.service-text {
        align-items: flex-end;
    }

    .service-block .service-img-box:first-child~.service-text>div[style*="flex"] {
        justify-content: flex-end !important;
    }

    .service-img-box {
        flex: 1;
        position: relative;
        min-height: 400px;
    }

    .service-img-box img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media(max-width: 899px) {
    .service-text {
        padding: 30px;
    }

    .service-img-box {
        height: 250px;
        width: 100%;
        position: relative;
    }

    .service-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .service-text {
        padding: 20px;
    }

    .service-text h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .service-img-box {
        height: 200px;
    }
}

.service-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 0;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-text li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #ccc;
}

.service-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Panels (FAQ/Tarieven) - Zelfde breedte als service-block */
.panel-box {
    background: var(--card-glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px;
    backdrop-filter: blur(10px);
    width: 100%;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .panel-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .panel-box {
        padding: 20px 15px;
    }
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pricing-table th,
.pricing-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: white;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .pricing-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .pricing-table th:first-child,
    .pricing-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--card-glass);
        z-index: 1;
    }
}

@media (max-width: 480px) {

    .pricing-table th,
    .pricing-table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
}

/* --- STICKY CTA --- */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-radius: 50px;
    padding: 8px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1900;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 480px) {
    .sticky-cta {
        bottom: 20px;
        max-width: 95%;
        padding: 6px 8px;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

.sticky-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
}

.cta-button {
    background: #fff;
    color: #000;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
    margin-top: 0;
}

/* --- FOOTER --- */
.site-footer {
    background: rgba(5, 5, 5, 0.5);
    color: var(--text-muted);
    padding: 120px 0 60px;
    border-top: 1px solid #222;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* 4-column footer layout with wider form */
.footer-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
        align-items: start;
    }

    .footer-grid-4 {
        grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
        align-items: start;
    }
}

/* Mobile footer improvements - 2 columns for links */
@media (max-width: 767px) {

    .footer-grid,
    .footer-grid-4 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Hide contact form on mobile to save space - just show CTA */
    .footer-col-form {
        order: 99;
    }

    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-links a {
        font-size: 0.9rem;
        padding: 4px 0;
        display: inline-block;
    }
}

/* Form column takes more space */
.footer-col-form {
    min-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--col-synergy);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    transition: 0.2s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted #666;
    transition: 0.3s;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.contact-link:hover {
    color: var(--col-synergy);
    border-bottom-color: var(--col-synergy);
    transform: translateX(5px);
}

.contact-link[href^="tel:"]::before {
    content: '📞';
    font-size: 1.2rem;
}

.contact-link[href^="mailto:"]::before {
    content: '✉️';
    font-size: 1.2rem;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
}

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

.footer-form button {
    width: 100%;
    padding: 14px;
    background: var(--col-synergy);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    margin-top: 10px;
}

.footer-form button:hover {
    background: #fff;
    color: var(--col-synergy);
    box-shadow: 0 0 15px var(--col-synergy);
    transform: translateY(-2px);
}

.footer-watermark {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    font-weight: 900;
    color: #111;
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.5;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

/* Contact column social icons wrapper */
.contact-social {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.contact-social .social-link {
    width: 36px;
    height: 36px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    background: var(--col-synergy);
    border-color: var(--col-synergy);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(153, 0, 255, 0.4);
}

.social-link svg {
    transition: transform 0.3s var(--ease-out);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Footer Trust Badges */
.footer-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.trust-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .footer-trust {
        gap: 12px;
    }

    .trust-badge {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* Cookie Float - FUTURISTIC CYBERPUNK DESIGN */
@keyframes cookieGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(155, 93, 229, 0.3), 0 0 40px rgba(0, 187, 249, 0.1), inset 0 0 20px rgba(155, 93, 229, 0.05);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 187, 249, 0.4), 0 0 60px rgba(155, 93, 229, 0.15), inset 0 0 30px rgba(0, 187, 249, 0.08);
    }
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatIn {
    from {
        transform: translateY(100px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

#cookie-float {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 520px;

    /* Futuristic glass background */
    background: linear-gradient(135deg, rgba(10, 0, 25, 0.92) 0%, rgba(20, 10, 40, 0.88) 50%, rgba(5, 5, 20, 0.92) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Animated gradient border */
    border: 2px solid transparent;
    border-radius: 24px;
    background-clip: padding-box;

    /* Outer glow */
    box-shadow:
        0 0 20px rgba(155, 93, 229, 0.3),
        0 0 40px rgba(0, 187, 249, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.5);

    padding: 24px 28px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated border gradient overlay */
#cookie-float::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    padding: 2px;
    background: linear-gradient(90deg, #9b5de5, #00bbf9, #f15bb5, #00f5d4, #9b5de5);
    background-size: 300% 300%;
    animation: borderFlow 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0.7;
}

/* Hexagonal accent decoration */
#cookie-float::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 8px;
    background: linear-gradient(90deg, transparent, #00bbf9, #9b5de5, transparent);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    border-radius: 0 0 4px 4px;
}

#cookie-float.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    animation: cookieGlow 3s ease-in-out infinite;
}

#cookie-float.hidden {
    display: none;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cookie-icon {
    font-size: 2.2rem;
}

.cookie-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #fff 0%, #00bbf9 50%, #9b5de5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 187, 249, 0.3);
}

.cookie-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 5px;
}

.cookie-text a {
    color: #00bbf9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.cookie-text a:hover {
    color: #f15bb5;
    border-bottom-color: #f15bb5;
}

.cookie-options {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
    padding: 16px;
    background: rgba(155, 93, 229, 0.08);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.cookie-options.show {
    display: flex;
}

.cookie-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cookie-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.cookie-option-desc {
    font-size: 0.85rem;
    color: #aaa;
    margin-left: 30px;
}

.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #333;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle.active {
    background: var(--col-kmo);
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle.active .cookie-slider {
    transform: translateX(20px);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.cookie-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s;
    text-align: center;
}

.cookie-btn-primary {
    background: var(--col-kmo);
    color: black;
}

.cookie-btn-primary:hover {
    background: var(--col-kmo);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid #555;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #777;
}


.cookie-btn-accept {
    background: var(--col-managed);
    /* Green */
    color: black;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}

.cookie-btn-accept:hover {
    background: var(--col-managed);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.5);
}

.cookie-btn-reject {
    background: var(--col-particulier);
    /* Orange */
    color: black;
    /* Better contrast on orange */
}

.cookie-btn-reject:hover {
    background: var(--col-particulier);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.5);
}

/* --- COOKIE BACKDROP --- */
#cookie-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2999;
    /* Just below cookie float (3000) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#cookie-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    #cookie-float {
        /* Fixed bottom bar style for mobile - 5% smaller to prevent scrollbars */
        bottom: 20px;
        left: 5%;
        right: 5%;
        width: auto;
        transform: translateY(100px);
        /* Only Y for animation, not X */
        border-radius: 16px;
        padding: 10px 14px;
        gap: 8px;
        flex-direction: column;
        align-items: center;
        max-height: 45vh;
        overflow-y: auto;

        /* Futuristic glassmorphism */
        background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        /* Animated gradient border */
        border: 1px solid transparent;
        background-clip: padding-box;
        position: fixed;

        /* Neon glow effect */
        box-shadow:
            0 0 20px rgba(153, 0, 255, 0.15),
            0 0 40px rgba(0, 240, 255, 0.08),
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    #cookie-float.show {
        transform: translateY(0);
        /* Animate in from bottom */
    }

    /* Simple border on mobile instead of gradient pseudo-element */
    #cookie-float {
        border: 1px solid rgba(153, 0, 255, 0.4);
    }

    #cookie-float::after {
        display: none;
        /* Disable the complex gradient border on mobile */
    }

    .cookie-buttons {
        flex-direction: row;
        width: 100%;
        gap: 8px;
    }

    .cookie-btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.8rem;
        border-radius: 24px;
        font-weight: 700;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Enhanced button glow on mobile */
    .cookie-btn-accept {
        box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    }

    .cookie-btn-reject {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }

    .cookie-btn-secondary {
        background: transparent;
        border: 1px solid rgba(153, 0, 255, 0.4);
        color: rgba(255, 255, 255, 0.8);
    }

    .cookie-header,
    .cookie-text,
    .cookie-options {
        display: none;
    }

    #cookie-float::before {
        content: '\1F6E1\FE0F Privacy';
        color: white;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        text-shadow: 0 0 10px rgba(153, 0, 255, 0.3);
    }
}

@media (max-width: 768px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .tom-photo {
        margin-right: 0;
        width: 220px;
    }

    .footer-watermark {
        font-size: 4rem;
    }

    /* Ensure proper padding for content below fixed header */
    .hero-wrapper {
        padding-top: 100px !important;
    }

    div[style*="padding-top: 140px"] {
        padding-top: 100px !important;
    }

    /* Portfolio grid optimization for tablets */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 20px !important;
    }

    /* FAQ grid optimization for tablets */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .hero-wrapper {
        padding-top: 90px !important;
    }

    div[style*="padding-top: 140px"] {
        padding-top: 90px !important;
    }

    /* Portfolio grid optimization */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .portfolio-item {
        padding: 20px !important;
    }

    .portfolio-item div[style*="height: 200px"] {
        height: 150px !important;
        font-size: 2rem !important;
    }

    /* FAQ grid optimization */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Section headings */
    h2[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
    }
}

/* --- TOM COOL POPUP GREETINGS --- */
.tom-photo {
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.tom-photo:hover {
    transform: scale(1.05);
}

.tom-greeting-popup {
    position: fixed;
    background: rgba(10, 10, 10, 0.95);
    /* Deeper black for better readability */
    backdrop-filter: blur(12px);
    border: 1px solid var(--col-synergy);
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 300px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 10000;
    pointer-events: none;
    animation: popupAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    font-family: var(--font-main);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 500;
}

/* Mobile optimizations for popup */
@media (max-width: 768px) {
    .tom-greeting-popup {
        max-width: 90vw !important;
        /* Prevent cutoff */
        font-size: 0.9rem;
        padding: 14px 18px;
        border-width: 1px;
    }
}

@keyframes popupAppear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.tom-greeting-popup.fade-out {
    animation: popupFadeOut 0.3s ease-out forwards;
}

@keyframes popupFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* --- PORTFOLIO TITLE --- */
.section-title-glass {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 auto 50px;
    color: var(--accent-color);
    background: var(--card-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 40px;
    width: fit-content;
    max-width: 95%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .section-title-glass {
        font-size: 2rem;
        padding: 15px 25px;
        width: 100%;
        border-radius: 12px;
    }
}

/* --- LOGIN & DASHBOARD --- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    height: 80px;
    margin: 0 auto 15px;
    display: block;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: white;
}

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

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--col-creative);
    box-shadow: 0 0 0 4px rgba(255, 0, 85, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.btn-glow {
    background: var(--col-creative);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    background: #ff1f6d;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

.login-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.login-footer {
    margin-top: 25px;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--text-muted);
}

.login-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(10, 10, 10, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-brand img {
    height: 40px;
}

.sidebar-brand span {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu a.active {
    background: var(--col-creative);
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--col-kmo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: black;
}

.dash-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}


/* Microsoft Button */
.btn-microsoft {
    background: #2F2F2F;
    color: white;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-microsoft:hover {
    background: #3e3e3e;
    border-color: #888;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* Prevent FOUC (Flash of Unstyled Content) on dashboard */
body.dashboard-body {
    display: none;
}

/* --- 404 PAGE --- */
.page-404 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
}

.terminal-window {
    width: 600px;
    max-width: 100%;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.t-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.t-close {
    background: #ff5f56;
}

.t-max {
    background: #ffbd2e;
}

.t-min {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    overflow-y: auto;
    color: #39FF14;
    /* Hacker green */
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.glitch-404 {
    font-size: 6rem;
    font-weight: 800;
    color: #f0f0f0;
    text-shadow: 2px 2px 0px #FF0055, -2px -2px 0px #00F0FF;
    animation: glitch 2s infinite alternate-reverse;
    margin-bottom: 20px;
    font-family: var(--font-main);
    letter-spacing: -5px;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px 0px #FF0055, -2px -2px 0px #00F0FF;
        transform: skewX(0deg);
    }

    10% {
        text-shadow: -2px 2px 0px #FF0055, 2px -2px 0px #00F0FF;
        transform: skewX(-5deg);
    }

    20% {
        text-shadow: 2px -2px 0px #FF0055, -2px 2px 0px #00F0FF;
        transform: skewX(5deg);
    }

    30% {
        text-shadow: -2px 2px 0px #FF0055, 2px -2px 0px #00F0FF;
        transform: skewX(0deg);
    }

    100% {
        text-shadow: 2px 2px 0px #FF0055, -2px -2px 0px #00F0FF;
        transform: skewX(0deg);
    }
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 14px;
    background: #39FF14;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.emergency-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #FF0055;
    color: #FF0055;
    font-family: var(--font-main);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.emergency-btn:hover {
    background: #FF0055;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

/* --- Dashboard Extra Styles --- */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    min-width: 200px;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.invoice-item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.invoice-item-row input,
.invoice-item-row select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    color: white;
    border-radius: 6px;
}

.btn-micro {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* --- MOBILE OPTIMIZATION --- */

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {

    /* Layout */
    .dashboard-layout {
        flex-direction: column;
    }

    /* Sidebar - Mobile: Hidden by default */
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        padding: 10px 20px;
        z-index: 1000;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-menu {
        display: none;
        /* Toggled via JS */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #111;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
    }

    .sidebar-menu.show {
        display: flex;
    }

    .main-content {
        padding-top: 80px;
        /* Space for fixed header */
    }

    /* Top Bar */
    .top-bar {
        flex-direction: row;
        /* Keep row */
        margin-bottom: 20px;
    }

    .top-bar h1 {
        font-size: 1.5rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    /* Grids & Flex */
    .form-row,
    .invoice-item-row {
        flex-direction: column;
        gap: 10px;
    }

    .stat-card {
        min-width: 100%;
    }

    /* Kanban */
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        /* Stack columns */
    }

    /* Tables */
    .table-container {
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .data-table th,
    .data-table td {
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    /* Modals */
    .modal-card {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* --- SMART ESTIMATOR WIZARD --- */
.wizard-card {
    background: rgba(10, 10, 10, 0.85);
    /* fallback */
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    /* Default full width */
    max-width: 900px;
    /* Max width to prevent it being too stretched */
    margin: 0 auto;
    /* Center it */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.wizard-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--col-creative), var(--col-kmo));
    width: 0%;
    transition: width 0.4s ease;
}

.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.wizard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.wizard-content {
    flex: 1;
    /* Pushes buttons down */
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.selection-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selection-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.selection-card.selected {
    border-color: var(--col-kmo);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.selection-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

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

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: white;
    color: black;
    border: none;
    margin-left: auto;
    /* Push to right if alone */
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Result Box */
.result-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.price-tag {
    font-size: 4rem;
    font-weight: 800;
    color: var(--col-managed);
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
    margin-bottom: 10px;
}

.disclaimer {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.summary-list {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.summary-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.summary-item:last-child {
    border-bottom: none;
}

/* =====================================
   SECTION NAVIGATOR - Circles Only (no vertical line)
   ===================================== */
.section-navigator {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Vertical line removed for cleaner look */
.section-navigator::before {
    display: none;
}

.section-nav-item {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-nav-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.section-nav-item:hover .section-nav-dot {
    transform: scale(1.3);
    border-color: white;
}

/* Active state - bigger with glow */
.section-nav-item.active .section-nav-dot {
    width: 24px;
    height: 24px;
    border-width: 3px;
    box-shadow:
        0 0 15px currentColor,
        0 0 30px currentColor,
        0 0 45px currentColor;
    animation: sectionPulse 2s ease-in-out infinite;
}

@keyframes sectionPulse {

    0%,
    100% {
        box-shadow:
            0 0 10px currentColor,
            0 0 20px currentColor;
    }

    50% {
        box-shadow:
            0 0 20px currentColor,
            0 0 40px currentColor,
            0 0 60px currentColor;
    }
}

/* Tooltip */
.section-nav-label {
    position: absolute;
    left: 50px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.9);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-nav-item:hover .section-nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* Section-specific colors */
.section-nav-item[data-section="particulier"] .section-nav-dot {
    border-color: var(--col-particulier);
}

.section-nav-item[data-section="particulier"].active .section-nav-dot {
    background: var(--col-particulier);
    color: var(--col-particulier);
}

.section-nav-item[data-section="creative"] .section-nav-dot {
    border-color: var(--col-creative);
}

.section-nav-item[data-section="creative"].active .section-nav-dot {
    background: var(--col-creative);
    color: var(--col-creative);
}

.section-nav-item[data-section="kmo"] .section-nav-dot {
    border-color: var(--col-kmo);
}

.section-nav-item[data-section="kmo"].active .section-nav-dot {
    background: var(--col-kmo);
    color: var(--col-kmo);
}

.section-nav-item[data-section="managed"] .section-nav-dot {
    border-color: var(--col-managed);
}

.section-nav-item[data-section="managed"].active .section-nav-dot {
    background: var(--col-managed);
    color: var(--col-managed);
}

.section-nav-item[data-section="training"] .section-nav-dot {
    border-color: #FFD700;
}

.section-nav-item[data-section="training"].active .section-nav-dot {
    background: #FFD700;
    color: #FFD700;
}

.section-nav-item[data-section="webdev"] .section-nav-dot {
    border-color: #FF6B35;
}

.section-nav-item[data-section="webdev"].active .section-nav-dot {
    background: #FF6B35;
    color: #FF6B35;
}

.section-nav-item[data-section="data"] .section-nav-dot {
    border-color: #00D4AA;
}

.section-nav-item[data-section="data"].active .section-nav-dot {
    background: #00D4AA;
    color: #00D4AA;
}

.section-nav-item[data-section="synergy"] .section-nav-dot {
    border-color: var(--col-synergy);
}

.section-nav-item[data-section="synergy"].active .section-nav-dot {
    background: var(--col-synergy);
    color: var(--col-synergy);
}

/* Security - Red */
.section-nav-item[data-section="security"] .section-nav-dot {
    border-color: #ef4444;
}

.section-nav-item[data-section="security"].active .section-nav-dot {
    background: #ef4444;
    color: #ef4444;
}

/* AI - Cyan */
.section-nav-item[data-section="ai"] .section-nav-dot {
    border-color: #06b6d4;
}

.section-nav-item[data-section="ai"].active .section-nav-dot {
    background: #06b6d4;
    color: #06b6d4;
}

/* Cloud - Blue */
.section-nav-item[data-section="cloud"] .section-nav-dot {
    border-color: #3b82f6;
}

.section-nav-item[data-section="cloud"].active .section-nav-dot {
    background: #3b82f6;
    color: #3b82f6;
}

/* Network - Green */
.section-nav-item[data-section="network"] .section-nav-dot {
    border-color: #22c55e;
}

.section-nav-item[data-section="network"].active .section-nav-dot {
    background: #22c55e;
    color: #22c55e;
}

/* Backup - Purple */
.section-nav-item[data-section="backup"] .section-nav-dot {
    border-color: #8b5cf6;
}

.section-nav-item[data-section="backup"].active .section-nav-dot {
    background: #8b5cf6;
    color: #8b5cf6;
}

/* Hide on mobile and tablets */
@media (max-width: 1200px) {
    .section-navigator {
        display: none;
    }
}

/* =====================================
   BACK TO TOP BUTTON - Modern Glassmorphism
   ===================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top::before {
    content: '';
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg) translateY(2px);
    transition: transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.back-to-top:hover::before {
    transform: rotate(45deg) translateY(-1px);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}


/* =====================================
   SCROLL INDICATOR - Animated arrow at top
   ===================================== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 20px;
    position: relative;
    z-index: 10;
}

.scroll-indicator-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-indicator-chevron {
    font-size: 2.5rem;
    color: rgba(102, 126, 234, 0.8);
    animation: scrollBounce 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(15px);
        opacity: 0.5;
    }
}

/* =====================================
   SECTION CHEVRONS - Between service cards
   ===================================== */
.section-chevron {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    position: relative;
}

.section-chevron span {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1;
    transition: all 0.3s ease;
    animation: chevronPulse 3s ease-in-out infinite;
}

.section-chevron:hover span {
    color: rgba(102, 126, 234, 0.6);
    transform: scale(1.2);
}

@keyframes chevronPulse {

    0%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    50% {
        opacity: 0.5;
        transform: translateY(5px);
    }
}

/* Hide scroll indicator after scrolling down */
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        padding: 20px 0 10px;
    }

    .scroll-indicator-text {
        font-size: 0.75rem;
    }

    .scroll-indicator-chevron {
        font-size: 2rem;
    }

    .section-chevron {
        padding: 20px 0;
    }

    .section-chevron span {
        font-size: 2rem;
    }
}

/* =====================================
   NAV AUTH BUTTONS (Login/Signup)
   ===================================== */
/* CTA button - fixed top right */
.nav-cta-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    height: 48px;
    padding: 0 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-cta-button:hover {
    background: linear-gradient(135deg, #7c91ee 0%, #8a5fb8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Mobile adjustments */
@media (max-width: 900px) {
    .nav-cta-button {
        height: 36px;
        padding: 0 14px;
        font-size: 0.75rem;
        top: 12px;
        right: 12px;
        border-radius: 8px;
    }
}

/* Very small screens: hide */
@media (max-width: 380px) {
    .nav-cta-button {
        display: none;
    }
}

/* --- SKELETON LOADERS --- */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-card {
    min-height: 200px;
    border-radius: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* --- CARD GLOW EFFECTS --- */
.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    transition: left 0.6s var(--ease-out);
    pointer-events: none;
}

.card-glow:hover::before {
    left: 150%;
}

/* --- FOCUS VISIBLE (Accessibility) --- */
:focus-visible {
    outline: 2px solid rgba(153, 0, 255, 0.6);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(153, 0, 255, 0.6);
    outline-offset: 2px;
}

/* =====================================
   SKIP TO CONTENT LINK (Accessibility)
   ===================================== */
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 10000;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 20px;
    outline: 3px solid white;
    outline-offset: 2px;
}

/* =====================================
   FORM VALIDATION UX
   ===================================== */
/* Valid input state */
input:valid:not(:placeholder-shown):not([type="hidden"]):not([type="checkbox"]),
textarea:valid:not(:placeholder-shown) {
    border-color: rgba(57, 255, 20, 0.5);
}

/* Invalid input state - only show after interaction */
input:invalid:not(:placeholder-shown):not(:focus):not([type="hidden"]):not([type="checkbox"]),
textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(255, 82, 82, 0.7);
}

/* Form error message */
.form-error {
    color: #ff5252;
    font-size: 0.85rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeInError 0.3s ease;
}

.form-error::before {
    content: '\26A0';
    font-size: 1rem;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake animation for invalid form submission */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.form-shake {
    animation: shake 0.5s ease;
}

/* =====================================
   SKELETON LOADERS
   ===================================== */
.skeleton {
    background: linear-gradient(90deg,
            rgba(51, 51, 51, 0.8) 25%,
            rgba(80, 80, 80, 0.8) 50%,
            rgba(51, 51, 51, 0.8) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Review card skeleton */
.review-skeleton {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-skeleton .skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-skeleton .skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.review-skeleton .skeleton-name {
    height: 16px;
    width: 120px;
}

.review-skeleton .skeleton-stars {
    height: 20px;
    width: 100px;
    margin-top: 8px;
}

.review-skeleton .skeleton-text {
    height: 14px;
    width: 100%;
}

.review-skeleton .skeleton-text:last-child {
    width: 75%;
}

/* ==========================================
   SECURITY PROMO BANNER
   ========================================== */
.security-promo-banner {
    margin: 40px 20px;
    padding: 0;
}

.security-promo-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.12), rgba(0, 187, 249, 0.08));
    border: 2px solid rgba(155, 93, 229, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.security-promo-content:hover {
    border-color: rgba(0, 187, 249, 0.5);
    box-shadow: 0 0 40px rgba(155, 93, 229, 0.2), 0 0 20px rgba(0, 187, 249, 0.15);
}

.security-promo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #9b5de5, #00bbf9);
}

.security-promo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 12px rgba(155, 93, 229, 0.6));
    flex-shrink: 0;
}

.security-promo-text {
    flex: 1;
}

.security-promo-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #fff, #00bbf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.security-promo-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.5;
}

.security-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #9b5de5, #00bbf9);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.security-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(155, 93, 229, 0.4);
}

@media (max-width: 768px) {
    .security-promo-content {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .security-promo-content::before {
        width: 100%;
        height: 4px;
    }

    .security-promo-text h3 {
        font-size: 1.1rem;
    }

    .security-promo-text p {
        font-size: 0.9rem;
    }
}