* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Starfield Container */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main content wrapper */
#main-content {
    position: relative;
    z-index: 1;
    background: transparent;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: rgb(124, 62, 62);
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Content layers */
.content-layer {
    position: relative;
    z-index: 1;
}

/* Glass effect */
.glass-effect {
    background: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation stacking */
#navbar {
    z-index: 100;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Header Container - width control only */
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .header-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }
}
.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
}

/* Appointment Modal Styles */
.appointment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.appointment-modal.active {
    display: flex;
}

.appointment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.appointment-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90%;
    max-height: 800px;
    background: white;
    border-radius: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

.appointment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.appointment-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.appointment-modal-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .appointment-modal-container {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        animation: modalSlideUp 0.3s ease-out;
    }
    
    .appointment-modal-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.glow-purple {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.3);
}

.text-glow-blue {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.5);
}

.text-glow-purple {
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Fade in animation - Progressive Enhancement */
.fade-in {
    /* Default: content visible without JavaScript */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Enhanced animations when JavaScript is enabled */
.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide animations - Progressive Enhancement */
.slide-left {
    /* Default: content visible without JavaScript */
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right {
    /* Default: content visible without JavaScript */
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Enhanced animations when JavaScript is enabled */
.js-enabled .slide-left {
    opacity: 0;
    transform: translateX(-50px);
}

.js-enabled .slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.js-enabled .slide-right {
    opacity: 0;
    transform: translateX(50px);
}

.js-enabled .slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Navbar blur effect */
.navbar-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* FAQ accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(0deg);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

/* Input focus glow */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
}


/* Logo Container Animation */
@keyframes logoFadeIn {
    0% { opacity: 0; }
    33% { opacity: 0; }
    100% { opacity: 1; }
}

.logo-container {
    animation: logoFadeIn 1.5s ease-out forwards;
}

/* Logo Styles */
.logo-container img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-container a:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Menu Item Animations */
@keyframes menuItemSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-item {
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: menuItemSlide 0.6s ease-out forwards;
    /* Fallback: ensure visibility after animation completes */
    transition: opacity 0s linear 1s;
}

/* Stagger menu item animations */
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
.menu-item:nth-child(7) { animation-delay: 0.7s; }

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(168, 85, 247, 0.8));
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.menu-item:hover::after {
    width: 100%;
}

.menu-item:hover {
    color: rgb(96, 165, 250);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.menu-item.active {
    color: rgb(96, 165, 250);
}

.menu-item.active::after {
    width: 100%;
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .logo-container,
    .menu-item,
    .fade-in,
    .slide-left,
    .slide-right {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile Menu Item Animations */
.mobile-menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, color 0.3s ease;
}

.mobile-menu.open .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Icon Animation */
.hamburger-icon {
    transition: transform 0.3s ease;
}

.hamburger-icon.active {
    transform: rotate(180deg);
}

.hamburger-icon svg {
    transition: transform 0.3s ease;
}

.hamburger-icon.active svg {
    transform: rotate(90deg);
}

/* Afspraak Maken Button */
.btn-afspraak-maken {
    border-radius: 9999px; /* Half-round */
    font-weight: 700; /* Bold */
    color: white; /* White text */
    background-color: #dc2626; /* Red background */
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: menuItemSlide 1.0s ease-out forwards, heartbeat 1.5s 1s infinite;
    /* Fallback: ensure visibility after animation completes */
    transition: opacity 0s linear 1s;
}

.btn-afspraak-maken:hover {
    background-color: #ef4444; /* Slightly lighter red on hover */
    animation-play-state: paused;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

/* Hero Slider Styles */
.hero-slider-container-sterrenhemelgroningen {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.hero-slider-slides-sterrenhemelgroningen {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.hero-slide-sterrenhemelgroningen {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-slide-sterrenhemelgroningen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Hero Slider Navigation Dots */
.hero-slider-dot-sterrenhemelgroningen {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.hero-slider-dot-sterrenhemelgroningen.active {
    transform: scale(1.2);
}

/* Hero Slider Control Buttons */
.hero-slider-btn-prev-sterrenhemelgroningen,
.hero-slider-btn-next-sterrenhemelgroningen {
    cursor: pointer;
    border: none;
    outline: none;
    backdrop-filter: blur(5px);
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-slide-sterrenhemelgroningen > .container {
    position: relative;
    z-index: 2;
}

/* Ensure header link text is white */
.menu-item,
.mobile-menu-item {
    color: #ffffff;
}

.hero-slider-btn-prev-sterrenhemelgroningen:focus,
.hero-slider-btn-next-sterrenhemelgroningen:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Responsive adjustments for slider controls */
@media (max-width: 768px) {
    .hero-slider-btn-prev-sterrenhemelgroningen,
    .hero-slider-btn-next-sterrenhemelgroningen {
        width: 10px;
        height: 10px;
        font-size: 0.75rem;
    }
    
    .hero-slider-btn-prev-sterrenhemelgroningen {
        left: 1rem;
    }
    
    .hero-slider-btn-next-sterrenhemelgroningen {
        right: 1rem;
    }
}

/* Light ray effects for desktop intro section */
@media (min-width: 1024px) {
    .bg-gradient-radial {
        background: radial-gradient(ellipse at center top, 
            rgba(6, 182, 212, 0.1) 0%, 
            rgba(6, 182, 212, 0.05) 30%, 
            transparent 70%);
    }
    
    #intro .animate-pulse {
        animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
    
    /* Enhanced light beam effect */
    #intro .absolute:nth-child(3) > div {
        background: linear-gradient(to bottom, 
            rgba(34, 211, 238, 0.3) 0%, 
            rgba(34, 211, 238, 0.15) 20%, 
            rgba(34, 211, 238, 0.05) 50%, 
            transparent 100%);
        filter: blur(40px);
        transform-origin: top center;
        animation: lightBeam 6s ease-in-out infinite;
    }
}

@keyframes lightBeam {
    0%, 100% { 
        opacity: 0.6; 
        transform: scaleY(1) translateY(0);
    }
    50% { 
        opacity: 1; 
        transform: scaleY(1.2) translateY(-20px);
    }
}

/* Appointment Modal Styles */
#appointmentModal {
    transition: opacity 0.3s ease-in-out;
}

#appointmentModal.hidden {
    opacity: 0;
    pointer-events: none;
}

#appointmentModal > div {
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}

#appointmentModal:not(.hidden) > div {
    transform: translateY(0);
}
