/* 
NOVAMAX - Haute Couture Hospital Clothing
Color Palette:
- Light Turquoise: #8FCACA - rgb(143, 202, 202)
- Marine Blue: #1A3A6C - rgb(26, 58, 108)
- Sky Blue: #A8D7DE - rgb(168, 215, 222)
- Dark Teal: #336666 - rgb(51, 102, 102)
- Taupe: #AA8877 - rgb(170, 136, 119)
- Salmon Pink: #FF9988 - rgb(255, 153, 136) - Accent color
*/

/* Base Styles & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fixed Video Container */
.fixed-video-container {
    position: fixed;
    bottom: calc(4.3rem + 20px);
    right: 0;
    width: 220px;
    height: auto;
    z-index: 499;
    overflow: hidden;
    border-top-left-radius: 10rem;
    transition: opacity 0.6s ease, transform 0.6s ease, bottom 0.6s ease;
}

.fixed-video-container.hide {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.fixed-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Verberg de standaard cursor voor de hele site als de aangepaste cursor actief is */
html, body {
    cursor: none;
}

/* Zorg ervoor dat de cursor ook op interactieve elementen verborgen blijft */
a, button, .nav-toggle, .scroll-indicator {
    cursor: none;
}

/* Op mobiele apparaten en touch-apparaten de standaard cursor weer tonen */
@media (max-width: 768px), (hover: none) {
    html, body, a, button, .nav-toggle, .scroll-indicator {
        cursor: auto !important;
    }
    
    .touch-device,
    .touch-device a,
    .touch-device button,
    .touch-device .nav-toggle,
    .touch-device .scroll-indicator {
        cursor: auto !important;
    }
}

/* Toon standaard cursor op touch-apparaten */
.touch-device,
.touch-device a, 
.touch-device button, 
.touch-device .nav-toggle, 
.touch-device .scroll-indicator {
    cursor: auto !important;
}

:root {
    --light-turquoise: #bcdbe4; 
    --marine-blue: #152c53;
    --sky-blue: #A8D7DE;
    --dark-teal: #3f7678;
    --taupe: #b38775;
    --salmon-pink: #ff7a73;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --light-grey: #edd9d1;
    --medium-grey: #CCCCCC;
    --dark-grey: #333333;
    
    --primary-font: 'Playfair Display', serif;
    --secondary-font: 'Jost', sans-serif;
    
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--secondary-font);
    font-weight: 300;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom Cursor */
.cursor-dot, .cursor-circle {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--salmon-pink);
    z-index: 10000;
    transition: transform 0.1s ease;
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--marine-blue);
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
}

.cursor-active .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--salmon-pink);
}

.cursor-active .cursor-circle {
    width: 60px;
    height: 60px;
    border-color: var(--salmon-pink);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-medium);
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-content h1 {
    font-family: 'Playfair Display';
    font-size: clamp(2rem, 10vw, 5rem);
    color: var(--marine-blue);
    letter-spacing: 0.2em;
    animation: fadeIn 2s ease-in-out;
}

.preloader-line {
    width: 0;
    height: 1px;
    background-color: var(--marine-blue);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    transition: width 0.3s ease-out;
}

.preloader-counter {
    font-family: var(--primary-font);
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--marine-blue);
    letter-spacing: 0.1em;
    opacity: 0;
    min-width: 4.5em; /* Zorgt voor stabiele breedte terwijl percentages veranderen */
    text-align: center;
    margin-top: 0.5rem;
    animation: fadeIn 0.5s ease-in-out forwards;
    animation-delay: 1s;
    transition: color 0.3s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Main Container */
.main-container {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    position: relative; /* For positioning the background style elements */
}

/* Background Style Elements */
.style-element {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 2s ease-in-out; /* Soepelere, langere overgang */
}

.style-element img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.1) brightness(1.1) blur(3px);
    max-height: none;
}

.style-element.loaded {
    opacity: 0; /* Begin met onzichtbaar */
}

.style-element.active {
    opacity: 1;
    z-index: 2; /* Actieve afbeelding heeft hogere z-index */
    transition: opacity 2.5s ease-in-out; /* Langere fade-in voor actieve afbeelding */
}

.style-element.inactive {
    opacity: 0;
    z-index: 1; /* Lagere z-index voor inactieve afbeelding */
    transition: opacity 3s ease-in-out; /* Langere fade-out voor inactieve afbeelding */
}

/* Verwijder de animatie voor style elements */
@keyframes float {
    0%, 50%, 100% {
        transform: translateY(0); /* Geen beweging of rotatie */
    }
}

.style-element-1 { --rotation: 5deg; }
.style-element-2 { --rotation: -3deg; }
.style-element-3 { --rotation: 2deg; }
.style-element-4 { --rotation: -4deg; }
.style-element-5 { --rotation: 3deg; }

/* Ensure content sections have proper z-index to appear above style elements */
.hero-section,
.collection-intro,
.portfolio-section,
.brand-philosophy,
.minimal-footer {
    position: relative;
    z-index: 2; /* Hogere z-index dan de achtergrondafbeeldingen */
}

/* Parallax effect for style elements */
@media (min-width: 992px) {
    .style-element {
        transition: transform var(--transition-slow), opacity var(--transition-slow);
    }
    
    .style-element-1 {
        transform: rotate(5deg) translateY(0);
    }
    
    .style-element-2 {
        transform: rotate(-3deg) translateY(0);
    }
    
    .style-element-3 {
        transform: rotate(2deg) translateY(0);
    }
    
    .style-element-4 {
        transform: rotate(-4deg) translateY(0);
    }
    
    .style-element-5 {
        transform: rotate(3deg) translateY(0);
    }
}

/* Responsive adjustments for style elements */
@media (max-width: 1400px) {
    .style-element {
        width: 100%;
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .style-element {
        width: 100%;
        max-width: 800px;
    }
    
    .philosophy-text {
        padding: 1.5rem;
        background-color: rgba(248, 248, 248, 0.8);
    }
}

@media (max-width: 768px) {
    .style-element {
        width: 100%;
        max-width: 600px;
    }
    
    .philosophy-text {
        padding: 1rem;
        background-color: rgba(248, 248, 248, 0.85);
    }
    
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.25rem;
    }
    
    .nav-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .hero-content {
        padding: 1.5rem;
        max-width: 100%;
        border-radius: 0;
    }

    .fixed-video-container {
        width: 150px;
        border-top-left-radius: 7rem;
    }
    
    /* Three column layout responsive */
    .three-column-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .column-item {
        height: 400px;
    }
    
    /* Two column layout responsive */
    .two-column-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    
    .two-column-item {
        max-width: 100%;
    }
    
    /* RTL scrolling images responsive */
    .scrolling-image-item-rtl {
        flex: 0 0 350px;
        height: 450px;
    }
}

@media (max-width: 576px) {
    .grouped-images {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: 0;
    }
    
    /* Reduce vertical spacing for rows with paired images on mobile */
    .group-5-6,
    .group-7-8,
    .group-17-18,
    .group-19-20,
    .group-22-23,
    .group-25-26 {
        margin-bottom: calc(var(--spacing-xs) / 2);
    }
    
    /* Ensure no extra space on mobile */
    .portfolio-grid > :last-child,
    .portfolio-item.centered-item:last-child,
    .grouped-images:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile single column layout */
    .portfolio-grid {
        display: block; /* Change to block instead of grid */
        padding: 0 var(--spacing-sm); /* Consistent horizontal padding */
        gap: 0; /* Remove grid gap as we're using margins now */
    }
    
    .style-element {
        width: 90vw;
    }
    
    /* Apply consistent styling to all portfolio items on mobile */
    .portfolio-item,
    .grouped-images .portfolio-item,
    .group-2-4 .portfolio-item,
    .group-5-6 .portfolio-item,
    .group-7-8 .portfolio-item,
    .group-10-12 .portfolio-item,
    .group-13-16 .portfolio-item,
    .group-17-18 .portfolio-item,
    .group-19-20 .portfolio-item,
    .group-22-23 .portfolio-item,
    .group-25-26 .portfolio-item,
    .portfolio-item.centered-item {
        width: 100%;
        margin: 0 0 var(--spacing-sm) 0; /* Consistent bottom margin */
        flex-basis: 100%;
        grid-column: auto; /* Reset any grid column settings */
        max-width: 100% !important; /* Override any max-width */
    }
    
    /* Make all images consistent */
    .portfolio-item img,
    .grouped-images .portfolio-item img,
    .portfolio-item.centered-item img {
        width: 100%;
        max-height: none;
        object-fit: contain;
        display: block;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    border-bottom-left-radius: 11rem;
    border: 1rem solid var(--white);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 var(--spacing-md);
    margin-top: -8rem;
}

.hero-image {
    position: absolute;
    bottom: 0;
    left: 19rem;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.transparent-image {
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    object-position: bottom;
}

.brand-name {
    font-family: 'Playfair Display';
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    line-height: 1;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 1.2s var(--transition-medium) forwards;
    animation-delay: 0.5s;
}

.brand-tagline-container {
    height: 1.75em;  /* Adjust based on your font size */
    overflow: hidden;
    position: relative;
}

.brand-tagline {
    font-family: var(--secondary-font);
    font-size: clamp(1.5rem, 2.5vw, 1.5rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    width: auto;
    min-width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 2s;
    cursor: pointer;
    z-index: 3; /* Verhoogde z-index om boven de achtergrondafbeeldingen te blijven */
}

.scroll-indicator span {
    font-family: var(--secondary-font);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white); /* Veranderen naar wit voor betere leesbaarheid */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Schaduw toevoegen */
    margin-bottom: 0.5rem;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background-color: var(--white); /* Veranderen naar wit voor betere zichtbaarheid */
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Schaduw toevoegen */
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--salmon-pink);
    animation: scrollLine 2s infinite;
}

/* Collection Intro */
.collection-intro {
    padding: var(--spacing-lg) var(--spacing-md) 5rem;
    text-align: center;
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    color: var(--marine-blue);
    margin-bottom: var(--spacing-sm);
}

.intro-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--dark-grey);
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}

/* Scrolling Images Section */
.scrolling-images-section {
    position: relative;
    background-color: var(--dark-teal);
    overflow: hidden;
    z-index: 20;
    width: 100%;
}

.scrolling-images-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.scrolling-images-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 80px 20px;
}

.scrolling-image-item {
    flex: 0 0 400px;
    height: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.scrolling-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Three Column Media Section */
.three-column-section {
    position: relative;
    background-color: var(--light-grey);
    width: 100%;
    padding: var(--spacing-lg) 0;
    z-index: 20;
}

.three-column-container {
    display: flex;
    gap: 1rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.column-item {
    flex: 1;
    height: 500px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.column-image, .column-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Two Column Centered Section */
.two-column-section {
    position: relative;
    background-color: var(--white);
    width: 100%;
    padding: var(--spacing-lg) 0;
    z-index: 20;
}

.two-column-container {
    display: flex;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

.two-column-item {
    flex: 0 1 auto;
    max-width: 600px;
    height: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.two-column-item:first-child {
    border-top-left-radius: 11rem;
    overflow: hidden;
}

.two-column-item:last-child {
    border-bottom-right-radius: 11rem;
    overflow: hidden;
}

.two-column-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Brand Philosophy Section */
.brand-philosophy {
    padding: var(--spacing-xl) var(--spacing-xl);
    background-color: var(--dark-teal);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    max-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin-left: 0;
    position: relative;
    z-index: 5;
    height: auto;
    padding: var(--spacing-sm);
    width: 100%;
}

.philosophy-text {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 5;
    background-color: rgba(248, 248, 248, 0.7);
    padding: 2rem 4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: var(--spacing-sm) 0;
    width: 100%;
    border-bottom-left-radius: 11rem;
}

.philosophy-text p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: var(--dark-grey);
}

/* Aangepaste stijlen voor achtergrondafbeeldingen in de philosophy sectie */
.brand-philosophy .style-element {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 2s ease-in-out;
    pointer-events: none;
    overflow: hidden;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    transform: none;
}

.brand-philosophy .style-element img {
    width: 100%; /* Gebruik de volledige breedte van de container */
    height: 100%; /* Gebruik de volledige hoogte van de container */
    object-fit: cover;
    object-position: center;
    filter: saturate(1.2) contrast(1.1) brightness(0.9) opacity(0.8);
    transform: none;
    max-width: none;
    max-height: none;
    position: absolute; /* Behoud absolute positionering */
    top: 0;
    left: 0;
}

.brand-philosophy .style-element.loaded {
    opacity: 0;
}

.brand-philosophy .style-element.active {
    opacity: 1;
    z-index: 1;
}

.brand-philosophy .style-element.inactive {
    opacity: 0;
    z-index: 0;
}

/* Add the following styles for both sections to improve the crossfade transition */
.hero-section,
.brand-philosophy {
    position: relative;
    background-color: rgba(26, 58, 108, 0.2); /* Add a dark background color to match images */
}

/* Create proper crossfading behavior */
.hero-section .style-element,
.brand-philosophy .style-element {
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Make the active elements positioned above inactive ones */
.hero-section .style-element.active,
.brand-philosophy .style-element.active {
    z-index: 2;
}

/* Keep inactive slides visible (with opacity 0) during transition */
.hero-section .style-element.inactive,
.brand-philosophy .style-element.inactive {
    z-index: 1;
}

/* Ensure all newly loaded slides start with 0 opacity */
.hero-section .style-element.loaded,
.brand-philosophy .style-element.loaded {
    opacity: 0;
    z-index: 0;
}

/* Ensure the philosophy text remains above the background images */
.philosophy-text {
    position: relative;
    z-index: 5;
}

/* Hidden Navigation */
.hidden-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 501;
}

.nav-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
}

.nav-line {
    width: 24px;
    height: 2px;
    background-color: var(--marine-blue);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active .nav-line:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle.active .nav-line:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

.nav-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.nav-content.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-family: 'Playfair Display';
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--marine-blue);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--salmon-pink);
    transition: width var(--transition-medium);
}

.nav-link:hover {
    color: var(--salmon-pink);
}

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

/* Minimal Footer */
.minimal-footer {
    padding: 1.5rem var(--spacing-md);
    text-align: center;
    background-color: var(--taupe);
}

.minimal-footer p {
    font-size: 0.8rem;
    color: var(--medium-grey);
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

/* Image Hover Effects */
.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.portfolio-item:hover::after {
    opacity: 1;
}

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

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    0% {
        width: 0;
    }
    100% {
        width: 250px;
    }
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Media Queries */
@media (max-width: 1400px) {
    :root {
        --spacing-xl: 6rem;
        --spacing-lg: 3rem;
    }
    
    .hero-content {
        padding: 2.5rem 3rem;
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .video-text-container {
        flex-direction: column;
    }
    
    .video-container, 
    .content-container {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
    }
    
    .content-container::before {
        width: 80px;
    }
    
    .content-inner {
        padding: var(--spacing-lg);
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .content-inner {
        padding: var(--spacing-md);
    }
    
    .feature-video {
        max-height: 60vh;
    }
    
    .video-container {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }

    /* Adjust philosophy section spacing for mobile */
    .brand-philosophy {
        padding: var(--spacing-xs);
        min-height: 686px;
        align-items: flex-start;
        border-top-left-radius: 0;
    }
    
    .philosophy-content {
        padding: 0;
    }
    
    .philosophy-text {
        padding: 2rem 2.6rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }
    
    .nav-toggle {
        top: 2rem;
        right: 1rem;
    }
    
    .collection-intro {
        padding: var(--spacing-xl) var(--spacing-lg) 4rem;
    }
    
    .brand-philosophy {
        padding: var(--spacing-lg);
    }
    
    .cursor-dot, .cursor-circle {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    /* Kleinere three column items */
    .column-item {
        height: 300px;
    }
    
    .three-column-container {
        padding: 0 20px;
        gap: 15px;
    }
    
    /* Kleinere two column items */
    .two-column-container {
        padding: 0 10px;
        gap: 15px;
    }
    
    /* Kleinere RTL scrolling images */
    .scrolling-image-item-rtl {
        flex: 0 0 300px;
        height: 400px;
    }
    
    .scrolling-images-track-rtl {
        gap: 15px;
        padding: 10px;
    }
    
    /* Full width video section */
    .video-container {
        max-width: 280px;
        margin: 0 auto var(--spacing-md);
    }
    
    .content-inner {
        padding: var(--spacing-sm);
        text-align: center;
    }
    
    .content-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
    
    .content-text {
        font-size: clamp(0.9rem, 1.2vw, 1rem);
    }
    
    .feature-video {
        max-height: none;
        aspect-ratio: 9/16;
        margin: 0 auto;
    }
}

/* Designer Label */
.designer-label {
    position: fixed;
    bottom: calc(4.3rem + 20px); 
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1.5rem;
    border-top-left-radius: 4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: translateX(5px);
    transition: opacity 0.6s ease, transform 0.6s ease, bottom 0.6s ease;
}

.designer-label.hide {
    opacity: 0;
    transform: translateX(5px) translateY(100%);
    pointer-events: none;
}

.designed-by {
    font-family: var(--secondary-font); /* Jost font */
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--dark-grey);
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.designer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--marine-blue);
    letter-spacing: 0.02em;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .designer-label {
        bottom: calc(4.3rem + 20px);
        padding: 0.6rem 1.2rem;
    }
    
    .designed-by {
        font-size: 0.7rem;
    }
    
    .designer-name {
        font-size: 0.9rem;
    }
    
    /* Three column layout responsive */
    .three-column-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .column-item {
        height: 400px;
    }
    
    /* Two column layout responsive */
    .two-column-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    
    .two-column-item {
        max-width: 100%;
    }
    
    /* RTL scrolling images responsive */
    .scrolling-image-item-rtl {
        flex: 0 0 350px;
        height: 450px;
    }
}

/* Audio Player */
.audio-player {
    position: fixed;
    left: 2rem;
    bottom: 8px;
    z-index: 500;
}

.sound-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sound-toggle:hover {
    transform: scale(1.05);
}

.sound-waves {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
}

.sound-waves span {
    width: 2px;
    height: 10px;
    background-color: var(--marine-blue);
    border-radius: 1px;
    transition: height 0.2s ease;
}

/* Sound wave animation when playing */
.sound-toggle.playing .sound-waves span {
    animation: soundWave 1s ease-in-out infinite;
}

.sound-toggle.playing .sound-waves span:nth-child(1) { animation-delay: 0.0s; }
.sound-toggle.playing .sound-waves span:nth-child(2) { animation-delay: 0.2s; }
.sound-toggle.playing .sound-waves span:nth-child(3) { animation-delay: 0.4s; }
.sound-toggle.playing .sound-waves span:nth-child(4) { animation-delay: 0.6s; }
.sound-toggle.playing .sound-waves span:nth-child(5) { animation-delay: 0.8s; }

@keyframes soundWave {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 20px;
    }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .audio-player {
        right: 1.5rem;
    }
    
    .sound-toggle {
        width: 40px;
        height: 40px;
    }
    
    .sound-waves {
        height: 16px;
    }
    
    .sound-waves span {
        width: 1.5px;
    }
}

/* Scrolling Images Section (Left to Right) */
.scrolling-images-section-rtl {
    position: relative;
    padding: var(--spacing-lg) 0 var(--spacing-lg);
    background-color: var(--white);
    overflow: hidden;
    z-index: 20;
    width: 100%;
    height: auto;
    min-height: 540px;
}

.scrolling-images-section-rtl.light-turquoise {
    background-color: var(--light-turquoise);
}

.scrolling-images-container-rtl {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 620px;
}

.scrolling-images-track-rtl {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 20px;
    height: 100%;
}

.scrolling-image-item-rtl {
    flex: 0 0 400px;
    height: 600px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.scrolling-image-item-rtl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .scrolling-images-section-rtl {
        min-height: 480px;
        padding: var(--spacing-md) 0;
    }

    .scrolling-images-container-rtl {
        height: 450px;
    }
    
    .scrolling-image-item-rtl {
        flex: 0 0 350px;
        height: 450px;
    }
    
    .scrolling-images-track-rtl {
        gap: 20px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .scrolling-images-section-rtl {
        min-height: 460px;
        padding: var(--spacing-sm) 0;
    }

    .scrolling-images-container-rtl {
        height: 460px;
    }
    
    .scrolling-image-item-rtl {
        flex: 0 0 300px;
        height: 460px;
    }
    
    .scrolling-images-track-rtl {
        gap: 15px;
        padding: 10px;
    }
}

/* Full Width Video Text Section */
.full-width-section {
    position: relative;
    background-color: var(--white);
    width: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-top: var(--spacing-lg);
    padding-left: 0;
}

.video-text-container {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    margin-left: 0;
    padding-left: 0;
}

.video-container {
    flex: 0 0 auto;
    width: 40%;
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
    margin-right: var(--spacing-md);
}

.feature-video {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    opacity: 0.85;
}

.content-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    background-color: var(--white);
    position: relative;
    padding-left: var(--spacing-md);
    min-height: fit-content;
    overflow-y: hidden;
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: var(--salmon-pink);
}

.content-inner {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 600px;
}

.content-title {
    font-family: var(--primary-font);
    color: var(--marine-blue);
    margin-bottom: var(--spacing-md);
    font-size: clamp(2rem, 4vw, 3rem);
}

.content-text {
    font-family: var(--secondary-font);
    color: var(--dark-grey);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Media queries for responsive layout */
@media (max-width: 992px) {
    .full-width-section {
        padding: 0;
        margin-top: 0;
    }

    .video-text-container {
        flex-direction: column;
        padding: 0;
    }
    
    .video-container, 
    .content-container {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .video-container {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .content-container {
        padding-left: 0;
    }
    
    .content-inner {
        padding: var(--spacing-lg);
        max-width: 100%;
        margin: 0 auto;
    }
    
    .feature-video {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .full-width-section {
        padding: 0;
    }

    .video-text-container {
        padding: 0;
    }

    .content-inner {
        padding: var(--spacing-md);
    }
    
    .video-container {
        width: 100%;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .feature-video {
        width: 100%;
        aspect-ratio: 9/16;
        max-height: none;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .full-width-section {
        padding: 0;
    }

    .video-text-container {
        padding: 0;
    }

    .video-container {
        width: 100%;
        max-width: 100%;
        margin: 0 0 var(--spacing-md) 0;
        padding: 0;
    }
    
    .feature-video {
        width: 100%;
        aspect-ratio: 9/16;
        max-height: none;
        margin: 0;
        object-fit: cover;
    }
    
    .content-inner {
        padding: var(--spacing-xl) var(--spacing-sm);
        text-align: left;
    }
} 

/* Slogan Overlay Styles */
.video-container {
    position: relative;
    overflow: hidden;
}

.slogan-overlay {
    position: absolute;
    bottom: 17%; /* Plaats de overlay 1/3 van de hoogte vanaf de onderkant */
    left: 50%;
    transform: translateX(-50%); /* Alleen horizontaal centreren */
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    padding: 0 20px;
}

.slogan-text {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    line-height: 1.2;
}

.slogan-text[data-text="in dienst van"] {
    font-size: 2.8rem;
}

.slogan-text.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .slogan-text {
        font-size: 3.8rem;
    }
    .slogan-text[data-text="in dienst van"] {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .slogan-text {
        font-size: 4.2rem;
    }
    .slogan-text[data-text="in dienst van"] {
        font-size: 3.4rem;
    }
}

@media (max-width: 480px) {
    .slogan-overlay {
        bottom: 5%; 
    }
    .slogan-text {
        font-size: 4.5rem;
    }
    .slogan-text[data-text="in dienst van"] {
        font-size: 3.6rem;
    }
}

@media (max-width: 480px) {
    .brand-tagline {
        font-size: 1rem;
        letter-spacing: 0.15em;
        white-space: normal;
        text-align: center;
        padding: 0;
    }
}