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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack children vertically */
}

/* Create a wrapper for snap sections */
.snap-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* For better mobile scrolling */
}

.hero-background {
    height: 100vh;
    width: 100%;
    position: relative;
    background-image: url('./assets/landing-page-background.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.hero-title {
    font-size: min(5rem, 15vw);
    font-weight: 700;
    color: white;
    letter-spacing: 4px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 9999;
    will-change: transform;
}

.hero-title.scrolled {
    font-size: min(2rem, 6vw);
    transform: translate(0, 0);
    left: 4rem;
    top: 2rem;
    color: #333;
    position: fixed;
    z-index: 9999;
}

.hero-title.scrolled::before,
.hero-title.scrolled::after {
    display: none;
}

header {
    display: none;
}

.content {
    flex: 1; /* Allow the content to grow and fill available space */
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 8rem 0 4rem;
    width: 100vw;
    max-width: 1600px; /* Set max width for 16:9 aspect ratio */
    margin: 0 auto; /* Center the content */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.video-section {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 max(4rem, 5vw);
    max-width: 1400px;
    will-change: transform, opacity;
    margin-bottom: 60px;
}

.video-section:last-child {
    margin-bottom: 40px; /* Adjust this value to increase space */
}

.video-thumbnail-container {
    flex: 1;
    aspect-ratio: 16/9; /* Maintain 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%; /* Ensure it doesn't exceed the container */
}

.video-thumbnail-container:hover {
    transform: scale(1.05);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.video-thumbnail:hover {
    transform: scale(1.08);
}

.video-details {
    flex: 1;
    padding: 1rem 0;
}

.video-details h2 {
    font-size: min(2.5rem, 6vw);
    margin-bottom: 1rem;
    color: #333;
}

.video-details p {
    font-size: min(1.1rem, 4vw);
    line-height: 1.6;
    color: #666;
    font-weight: 300;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.video-modal iframe {
    width: min(90vw, calc(90vh * 16/9));
    height: min(50.625vw, 90vh);
    max-height: 90vh;
    max-width: calc(90vh * 16/9);
    border: none;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

html {
    scroll-snap-type: y mandatory;
    height: 100%;
}

@media (max-width: 1024px) {
    .video-section {
        gap: 2rem;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .video-section {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .video-thumbnail-container {
        flex: none;
        width: 100%;
    }

    .video-details {
        flex: none;
        padding: 1rem 0;
    }

    .hero-title.scrolled {
        left: 1.5rem;
        padding: 0.5rem 1rem;
        margin: -0.5rem -1rem;
    }
}

@media (max-width: 480px) {
    .video-modal iframe {
        width: 98vw;
        height: calc(98vw * 9/16);
    }
}

/* Remove mix-blend-mode as it might cause visibility issues */
.hero-title, .hero-title.scrolled {
    mix-blend-mode: normal;
}

.floating-header {
    width: calc(100% - 40px);
    height: 80px;
    background-color: #f4f3f1; /* Change to desired background color */
    position: fixed; /* Keep it fixed at the top */
    top: 10px;
    left: 20px;
    right: 20px;
    z-index: 1000; /* Ensure it stays above other content */
    padding: 1rem; /* Add some padding */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
    transition: opacity 1.3s ease, transform 0.3s ease; /* Smooth transition */
    opacity: 0; /* Initially hidden */
}

.floating-header.visible {
    opacity: 1; /* Show the header */
    transition: opacity 1.3s ease, transform 0.3s ease; /* Smooth transition */
    transform: translateY(0); /* Reset position */
} 

.youtube-icon {
    margin-left: 95%; /* Push the icon to the right */
    display: flex;
    position: relative; /* Keep it fixed at the top */
    top: 10px;
    align-items: center; /* Center vertically */
}

.color-squares {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow wrapping to the next line */
    gap: 10px; /* Space between squares */
}

.color-square-container {
    width: calc(50% - 5px); /* Two columns, adjust for gap */
    position: relative;
    top: 20px;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center vertically */
}

.color-square {
    width: 30px; /* Set width */
    height: 30px; /* Set height */
    margin-right: 10px; /* Space between square and label */
    border-radius: 8px; /* Rounded corners */
}

.color-label {
    font-size: 12px; /* Adjust font size */
    color: #333; /* Text color */
}

.footer {
    background-color: #333; /* Dark background color */
    color: white; /* Text color */
    text-align: center; /* Center text */
    padding: 20px 0; /* Padding for top and bottom */
    width: 100%; /* Full width */
    position: fixed; /* Fix the footer at the bottom */
    bottom: 0; /* Align to the bottom */
    left: 0; /* Align to the left */
    z-index: 1000; /* Ensure it stays above other content */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease; /* Smooth transition */
}

.footer.visible {
    opacity: 1; /* Show the footer */
}

.footer-content {
    max-width: 100%; /* Max width for content */
    margin: 0 auto; /* Center the content */
}

.footer a {
    color: #f4f3f1; /* Link color */
    text-decoration: none; /* Remove underline */
}

.about-section {
    padding: 2rem; /* Add padding */
    margin-top: 20px; /* Space above the section */
    max-width: 95%; /* Max width for the section */
    margin-left: auto; /* Center the section */
    margin-right: auto; /* Center the section */
}

.about-section h2 {
    font-size: 2rem; /* Heading size */
    margin-bottom: 1rem; /* Space below the heading */
}

.about-section p {
    line-height: 1.5; /* Increase line space */
    font-size: 1rem; /* Paragraph size */
    color: #333; /* Text color */
    margin-bottom: 20px; /* Add extra padding at the bottom */
}