/* ===== AVENIX SOFTWARE - GECONSOLIDEERDE STYLESHEET ===== */

/* Base Styles */
:root {
    /* Fluid font sizing based on viewport */
    font-size: clamp(14px, 0.8vw + 0.5rem, 16px);
}

html {
    scroll-behavior: smooth;
}

/* ===== UTILITY CLASSES ===== */

.glass { 
    backdrop-filter: saturate(160%) blur(8px);
}

.glass-effect {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Interaction Utilities */
.tap-highlight { 
    -webkit-tap-highlight-color: transparent; 
}

.clip-path-button {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

/* ===== ANIMATIONS & KEYFRAMES ===== */

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

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

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Continuous Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(250,204,21,0.5); }
    80% { box-shadow: 0 0 0 14px rgba(250,204,21,0); }
    100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(250,204,21,0.3); }
    50% { box-shadow: 0 0 30px rgba(250,204,21,0.6); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(250,204,21,0.3); }
    50% { box-shadow: 0 0 30px rgba(250,204,21,0.6); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-8px); }
    70% { transform: translateY(-4px); }
}

@keyframes wiggle {
    0%, 7%, 14%, 21% { transform: rotate(0deg); }
    3.5% { transform: rotate(-2deg); }
    10.5%, 17.5% { transform: rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== ANIMATION CLASSES ===== */

/* Entrance Animations */
.animate-fadeInDown { animation: fadeInDown 0.8s ease-out forwards; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 0.8s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.6s ease-out forwards; }
.animate-fadeInRight { animation: fadeInRight 0.6s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.7s ease-out forwards; }
.animate-scaleIn { animation: scaleIn 0.5s ease-out forwards; }

/* Continuous Animations */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-floaty { animation: floaty 6s ease-in-out infinite; }
.animate-gradient {
    background: linear-gradient(-45deg, #FACC15, #10b981, #FACC15, #10b981);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease-in-out infinite;
}
.animate-shimmer { animation: shimmer 2s linear infinite; }
.animate-pulseRing { animation: pulseRing 2s cubic-bezier(0,0,0.2,1) infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-glow { animation: glow 3s ease-in-out infinite; }
.animate-bounce-custom { animation: bounce 2s infinite; }
.animate-wiggle { animation: wiggle 1s ease-in-out; }
.animate-pulse-custom { animation: pulse 2s infinite; }

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Initially hidden for animations */
.animate-on-load {
    opacity: 0;
}

/* ===== COMPONENT STYLES ===== */

/* Navigation */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px); /* Performance optimized: 16px -> 12px */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== MODERN DESKTOP NAVBAR ===== */
#desktopNav {
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    contain: layout style paint;
}

#desktopNav.scrolled {
    background: hsl(217, 33%, 7%, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modern Nav Links - No borders, only color transitions */
.nav-link-modern {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-modern:hover {
    color: hsl(45, 100%, 51%) !important;
}

/* CTA Button Modern */
.cta-button-modern {
    border: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

.cta-button-modern:hover {
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.3);
    transform: translateY(-1px);
}

/* Phone Link Modern */
.phone-link-modern {
    border: none;
    outline: none;
}

/* Logo adjustments */
#desktopNav.scrolled .logo-container img {
    filter: brightness(0) invert(1) !important;
}

/* Logo crop - removes whitespace */
.logo-container img {
    object-fit: cover;
    object-position: left center;
    max-width: none;
    width: auto;
}



/* ===== HERO GEOMETRIC BACKGROUND ===== */

/* Animated Gradient Mesh */
.hero-gradient-mesh {
    background: linear-gradient(135deg, 
        hsl(217, 33%, 7%) 0%,
        hsl(214, 32%, 12%) 25%,
        hsl(217, 33%, 7%) 50%,
        hsl(214, 32%, 10%) 75%,
        hsl(217, 33%, 7%) 100%
    );
    background-size: 400% 400%;
    animation: gradientMeshFlow 20s ease infinite;
}

@keyframes gradientMeshFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Geometric Shapes Container */
.geometric-shapes-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geometric-shape {
    position: absolute;
    opacity: 0.35;
}

/* Circle 1 - Large Top Right */
.circle-1 {
    top: 10%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.5) 0%, rgba(250, 204, 21, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: floatShape1 25s ease-in-out infinite;
}

/* Hexagon - Center */
.hexagon-1 {
    top: 40%;
    right: 30%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.35), rgba(245, 158, 11, 0.2));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    filter: blur(15px);
    animation: floatShape2 30s ease-in-out infinite, rotateShape 40s linear infinite;
}

/* Blob 1 - Bottom Left (organic shape) */
.square-1 {
    bottom: 15%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(ellipse at 30% 30%, rgba(250, 204, 21, 0.4), rgba(245, 158, 11, 0.2) 60%, transparent);
    border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    filter: blur(12px);
    animation: floatShape3 20s ease-in-out infinite, morphBlob 15s ease-in-out infinite;
}

/* Ring - Top Left */
.ring-1 {
    top: 20%;
    left: 20%;
    width: 350px;
    height: 350px;
    border: 3px solid rgba(250, 204, 21, 0.4);
    border-radius: 50%;
    filter: blur(8px);
    animation: floatShape1 35s ease-in-out infinite reverse, pulseGlow 5s ease-in-out infinite;
}

/* Triangle - Bottom Right */
.triangle-1 {
    bottom: 20%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid rgba(250, 204, 21, 0.3);
    filter: blur(12px);
    animation: floatShape2 28s ease-in-out infinite reverse;
}

/* Small Circles */
.circle-2 {
    top: 60%;
    left: 40%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.45) 0%, rgba(250, 204, 21, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    animation: floatShape3 18s ease-in-out infinite;
}

.circle-3 {
    top: 30%;
    left: 60%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.5) 0%, rgba(245, 158, 11, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    animation: floatShape1 22s ease-in-out infinite reverse;
}

/* Blob 2 - Organic Shape */
.square-2 {
    top: 70%;
    right: 40%;
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse at 60% 40%, rgba(250, 204, 21, 0.35), rgba(245, 158, 11, 0.18) 50%, transparent);
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    filter: blur(10px);
    animation: floatShape2 25s ease-in-out infinite, morphBlob2 18s ease-in-out infinite;
}

/* Animated Grid Pattern - Dot style (softer) */
.hero-grid-pattern {
    background-image: radial-gradient(circle, rgba(250, 204, 21, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridScroll 30s linear infinite;
    opacity: 0.6;
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Particle Lines */
.particle-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.7), rgba(250, 204, 21, 0.9), rgba(250, 204, 21, 0.7), transparent);
    opacity: 0;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
}

.line-1 {
    top: 25%;
    left: 0;
    width: 100%;
    animation: particleMove1 8s ease-in-out infinite;
}

.line-2 {
    top: 55%;
    right: 0;
    width: 80%;
    animation: particleMove2 10s ease-in-out infinite 2s;
}

.line-3 {
    top: 75%;
    left: 0;
    width: 60%;
    animation: particleMove3 12s ease-in-out infinite 4s;
}

/* Animations */
@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-40px, 30px); }
    50% { transform: translate(20px, -50px); }
    75% { transform: translate(40px, 20px); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 40px) rotate(10deg); }
}

@keyframes rotateShape {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(250, 204, 21, 0.4);
        opacity: 0.35;
    }
    50% { 
        box-shadow: 0 0 50px rgba(250, 204, 21, 0.7);
        opacity: 0.5;
    }
}

/* Blob morphing animations */
@keyframes morphBlob {
    0%, 100% {
        border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    }
    25% {
        border-radius: 55% 45% 50% 50% / 60% 40% 60% 40%;
    }
    50% {
        border-radius: 50% 50% 45% 55% / 45% 55% 45% 55%;
    }
    75% {
        border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
    }
}

@keyframes morphBlob2 {
    0%, 100% {
        border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    }
    33% {
        border-radius: 45% 55% 45% 55% / 60% 40% 55% 45%;
    }
    66% {
        border-radius: 55% 45% 60% 40% / 50% 50% 45% 55%;
    }
}

@keyframes particleMove1 {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    50% { 
        opacity: 0.9;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes particleMove2 {
    0% { 
        transform: translateX(100%);
        opacity: 0;
    }
    50% { 
        opacity: 0.8;
    }
    100% { 
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes particleMove3 {
    0% { 
        transform: translateX(-100%) scaleX(1);
        opacity: 0;
    }
    50% { 
        opacity: 0.7;
        transform: translateX(0%) scaleX(1.2);
    }
    100% { 
        transform: translateX(100%) scaleX(1);
        opacity: 0;
    }
}

/* Responsive - Reduce complexity on smaller screens */
@media (max-width: 768px) {
    .geometric-shape {
        opacity: 0.2;
    }
    
    .circle-1, .hexagon-1 {
        display: none;
    }
    
    .particle-line {
        display: none;
    }
    
    .hero-grid-pattern {
        opacity: 0.4;
    }
}

/* ===== WATER WAVE BUTTON ANIMATIONS (ALL BUTTONS) ===== */

/* Apply water wave ONLY to hero section buttons (not navbar) */
.hero-button,
section .clip-path-button,
section a[href*="diensten.html"],
section a[href*="portfolio.html"],
section a[href*="prijzen.html"],
section a[href*="faq.html"],
section .inline-flex.items-center.justify-center {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Water wave effect - Layer 1 (ONLY hero section buttons) */
.hero-button::before,
section .clip-path-button::before,
section a[href*="diensten.html"]::before,
section a[href*="portfolio.html"]::before,
section a[href*="prijzen.html"]::before,
section a[href*="faq.html"]::before,
section .inline-flex.items-center.justify-center::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.2) 30%, 
        transparent 60%);
    opacity: 0;
    transform: translateX(-100%) rotate(0deg);
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

/* Water wave effect - Layer 2 (ONLY hero section buttons) */
.hero-button::after,
section .clip-path-button::after,
section a[href*="diensten.html"]::after,
section a[href*="portfolio.html"]::after,
section a[href*="prijzen.html"]::after,
section a[href*="faq.html"]::after,
section .inline-flex.items-center.justify-center::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
        rgba(250, 204, 21, 0.3) 0%, 
        rgba(245, 158, 11, 0.2) 30%, 
        transparent 60%);
    opacity: 0;
    transform: translateX(-100%) rotate(0deg);
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

/* Activate waves on hover (ONLY hero section buttons) */
.hero-button:hover::before,
section .clip-path-button:hover::before,
section a[href*="diensten.html"]:hover::before,
section a[href*="portfolio.html"]:hover::before,
section a[href*="prijzen.html"]:hover::before,
section a[href*="faq.html"]:hover::before,
section .inline-flex.items-center.justify-center:hover::before {
    opacity: 1;
    animation: waterWave1 1.5s ease-out;
}

.hero-button:hover::after,
section .clip-path-button:hover::after,
section a[href*="diensten.html"]:hover::after,
section a[href*="portfolio.html"]:hover::after,
section a[href*="prijzen.html"]:hover::after,
section a[href*="faq.html"]:hover::after,
section .inline-flex.items-center.justify-center:hover::after {
    opacity: 1;
    animation: waterWave2 1.5s ease-out 0.15s;
}

/* Water wave animations */
@keyframes waterWave1 {
    0% {
        transform: translateX(-100%) translateY(0%) rotate(0deg) scale(0.8);
    }
    50% {
        transform: translateX(0%) translateY(-10%) rotate(5deg) scale(1);
    }
    100% {
        transform: translateX(100%) translateY(0%) rotate(10deg) scale(1.2);
    }
}

@keyframes waterWave2 {
    0% {
        transform: translateX(-100%) translateY(0%) rotate(0deg) scale(0.9);
    }
    50% {
        transform: translateX(0%) translateY(10%) rotate(-5deg) scale(1.1);
    }
    100% {
        transform: translateX(100%) translateY(0%) rotate(-10deg) scale(1.3);
    }
}

/* Button lift and shadow on hover (ONLY hero section buttons) */
.hero-button:hover,
section .clip-path-button:hover,
section a[href*="diensten.html"]:hover,
section a[href*="portfolio.html"]:hover,
section a[href*="prijzen.html"]:hover,
section a[href*="faq.html"]:hover,
section .inline-flex.items-center.justify-center:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(250, 204, 21, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Ripple on click (ONLY hero section buttons) */
.hero-button:active,
section .clip-path-button:active,
section a[href*="diensten.html"]:active,
section a[href*="portfolio.html"]:active,
section a[href*="prijzen.html"]:active,
section a[href*="faq.html"]:active,
section .inline-flex.items-center.justify-center:active {
    transform: translateY(-1px) scale(0.98);
}

/* Ensure text stays on top of wave effects (ONLY hero section) */
.hero-button > *,
section .clip-path-button > *,
section a[href*="diensten.html"] > *,
section a[href*="portfolio.html"] > *,
section a[href*="prijzen.html"] > *,
section a[href*="faq.html"] > *,
section .inline-flex.items-center.justify-center > * {
    position: relative;
    z-index: 10;
}

/* Subtle continuous shimmer for hero buttons */
.hero-button,
section .clip-path-button {
    background-size: 200% 200%;
    background-position: 0% 50%;
}

.hero-button:hover,
section .clip-path-button:hover {
    background-position: 100% 50%;
}

/* ===== LAPTOP RESPONSIVE (1024px - 1920px) ===== */
@media (min-width: 1024px) and (max-width: 1920px) {
    /* Hero Section */
    .hero-heading {
        font-size: 2.5rem !important;
        line-height: 1.25 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .hero-button {
        font-size: 0.875rem !important;
        padding: 0.625rem 1.25rem !important;
    }
    
    /* Hero spacing */
    .hero-section .space-y-8 {
        gap: 1.5rem;
    }
    
    /* Navbar Container - Compacter */
    #desktopNav {
        top: 1rem !important;
    }
    
    #desktopNav > div {
        gap: 0.75rem !important;
    }
    
    
    /* Logo - Kleiner */
    .logo-container {
        width: 160px !important;
        height: 75px !important;
    }
    
    .logo-container img {
        height: 4.5rem !important;
    }
    
    /* Scrolled state - Nog compacter */
    #desktopNav.scrolled {
        padding: 0.5rem 1.5rem !important;
        top: 0.5rem !important;
    }
    
    #desktopNav.scrolled .logo-container img {
        transform: scale(0.8) !important;
    }
}

/* ============================================
   MOBIELE MENU
   ============================================ */

/* Mobile header styling */
.mobile-nav-header {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
    transition: all 0.3s ease;
}

.mobile-nav-header:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}


/* Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

/* Cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FACC15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger animation delays for child elements */
.fade-in.visible > *:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in.visible > *:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in.visible > *:nth-child(3) {
    transition-delay: 0.3s;
}

/* Smooth scale animation for sections - Only when JS is loaded */
.js-loaded .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-loaded .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Fallback: content is visible without JS */
.animate-on-scroll {
    opacity: 1;
    transform: none;
}

/* Stagger animation for grid children - Only when JS is loaded */
.js-loaded .stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback: grid children are visible without JS */
.stagger-children > * {
    opacity: 1;
    transform: none;
}

.js-loaded .stagger-children.visible > *:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.js-loaded .stagger-children.visible > *:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.js-loaded .stagger-children.visible > *:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.js-loaded .stagger-children.visible > *:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.js-loaded .stagger-children.visible > *:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.js-loaded .stagger-children.visible > *:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Loading */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FACC15;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

/* Cursor */
#cursor {
    animation: blink 1s infinite;
}


/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FACC15;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F59E0B;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * { 
        animation: none !important; 
        transition: none !important;
    }
    .animate-on-load { 
        opacity: 1 !important; 
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .auto-dark .glass-effect {
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
/* Fix voor glitchy scroll behavior en auto-positioning op mobiel */

@media (max-width: 1023px) {
    /* Smooth touch scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce motion voor betere performance */
    .geometric-shape,
    .particle-line {
        animation: none !important;
    }
}

/* Extra fixes voor kleine mobiele schermen */
@media (max-width: 640px) {
    /* Prevent horizontal scroll */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Fix voor formulieren - voorkom zoom op iOS */
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Fix voor iPhone notch en safe areas */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

#dienstenSubmenu {
  transform: translate3d(0, -10px, 0);
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out, transform 0.2s ease-out;
  contain: layout style paint;
}

#dienstenSubmenu:not([style*="opacity: 0"]) {
  will-change: transform, opacity;
}

#dienstenSubmenu[style*="opacity: 0"] {
  will-change: auto;
}

/* ===== MOBILE MENU - Clean Implementation ===== */

/* Menu Toggle Button */
#mobileMenuToggle {
    will-change: transform;
    border: none;
    outline: none;
    background: transparent;
}

#mobileMenuToggle:hover .mobile-menu-line {
    background: hsl(45, 100%, 51%);
}

#mobileMenuToggle[aria-expanded="true"] .mobile-menu-line:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
}

#mobileMenuToggle[aria-expanded="true"] .mobile-menu-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

#mobileMenuToggle[aria-expanded="true"] .mobile-menu-line:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
}

#mobileMenuToggle[aria-expanded="true"]:hover .mobile-menu-line {
    background: hsl(45, 100%, 51%);
}

/* Overlay */
#mobileMenuOverlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Menu Panel */
#mobileMenu {
    will-change: transform;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

#mobileMenu.is-open {
    transform: translateX(0);
}


/* Menu Links */
.mobile-menu-link {
    position: relative;
    cursor: pointer;
    border: none;
    outline: none;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-link:focus-visible {
    outline: 2px solid rgba(255, 204, 3, 0.5);
    outline-offset: -2px;
}

/* Dropdown */
.mobile-menu-dropdown {
    border: none;
}

.mobile-menu-dropdown-content {
    max-height: none;
    opacity: 1;
}

.mobile-menu-dropdown-content a {
    border: none;
}

/* Close Button */
#mobileMenuClose {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

#mobileMenuClose:focus-visible {
    outline: 2px solid rgba(255, 204, 3, 0.5);
    outline-offset: 2px;
}

/* Scrollbar Styling */
#mobileMenu::-webkit-scrollbar {
    width: 6px;
}

#mobileMenu::-webkit-scrollbar-track {
    background: transparent;
}

#mobileMenu::-webkit-scrollbar-thumb {
    background: rgba(255, 204, 3, 0.3);
    border-radius: 3px;
}

#mobileMenu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 204, 3, 0.5);
}

/* ===== ROTATING TEXT ANIMATION ===== */
#rotatingText {
    display: inline-block;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    min-width: 200px;
    text-align: left;
}

/* ===== HERO CODE ELEMENTS ===== */
:root {
    --code-element-opacity: 0.15;
    --code-element-size: clamp(3rem, 8vw, 6rem);
    --code-element-color: hsl(45, 100%, 51%);
}

.hero-code-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.code-bracket,
.code-tag,
.code-prompt,
.code-function {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: 300;
    color: var(--code-element-color);
    opacity: var(--code-element-opacity);
    font-size: var(--code-element-size);
    user-select: none;
    will-change: transform;
}

/* Posities - makkelijk aan te passen */
.code-bracket-1 {
    top: 20%;
    left: 5%;
    transform: rotate(-15deg);
}

.code-bracket-2 {
    bottom: 25%;
    right: 10%;
    transform: rotate(15deg);
}

.code-tag-1 {
    top: 50%;
    right: 8%;
    transform: rotate(25deg);
}

.code-prompt-1 {
    bottom: 15%;
    left: 8%;
    transform: rotate(-10deg);
}

.code-bracket-3 {
    top: 35%;
    left: 12%;
    transform: rotate(20deg);
}

.code-bracket-4 {
    bottom: 40%;
    right: 15%;
    transform: rotate(-20deg);
}

.code-tag-2 {
    top: 70%;
    left: 15%;
    transform: rotate(-30deg);
}

.code-prompt-2 {
    top: 15%;
    right: 20%;
    transform: rotate(15deg);
}

.code-function-1 {
    bottom: 50%;
    left: 20%;
    transform: rotate(10deg);
}

.code-function-2 {
    top: 60%;
    right: 25%;
    transform: rotate(-25deg);
}

/* Optioneel: zeer subtiele float animatie (alleen als nodig) */
@media (prefers-reduced-motion: no-preference) {
    .code-bracket-1 {
        animation: subtleFloat 20s ease-in-out infinite;
    }
    
    .code-bracket-2 {
        animation: subtleFloat 25s ease-in-out infinite reverse;
    }
    
    .code-bracket-3 {
        animation: subtleFloat 22s ease-in-out infinite;
    }
    
    .code-tag-1 {
        animation: subtleFloat 18s ease-in-out infinite reverse;
    }
    
    .code-function-1 {
        animation: subtleFloat 24s ease-in-out infinite;
    }
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-20px) rotate(-12deg); }
}

/* ===== EINDE VAN ALGEMENE STYLES ===== */
