body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Carmen Sans', Arial, sans-serif;
    color: white;
    overflow-x: hidden;
}

.video-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

.video-container video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.logo {
    width: 25vw; /* Your existing width */
    margin-bottom: 20px;
    max-width: 100px;
    margin-bottom: 2rem;
    animation: shadowSplit 2s ease-in-out infinite; /* Animation for shadow splitting */
}

@keyframes shadowSplit {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0)); /* Start with no shadow */
    }
    50% {
        filter: drop-shadow(5px 5px 10px rgba(43, 168, 104, 0.5)) /* Green shadow right */
        drop-shadow(-5px -5px 10px rgba(80, 79, 79, 0.5)) /* Dark grey shadow left */
        drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.8)); /* White shadow center */

    }
    100% {
        filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0)); /* Back to no shadow */
    }
}

h1 {
    font-size: clamp(1.5rem, 6vw, 3rem);
    margin: 0;
}

h2 {
    font-size: clamp(1rem, 4vw, 2rem);
    margin: 0.5rem 0;
}

p {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    max-width: 90%;
    margin: 1rem auto;
}

form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

input[type="email"] {
    padding: 0.6rem; /* Matches button padding height */
    border: none;
    border-radius: 5px;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    width: clamp(150px, 70vw, 300px); /* Same width for both */
    box-sizing: border-box; /* Ensures padding doesn’t add to width */
}

button {
    padding: 0.6rem; /* Matches input padding height */
    border: none;
    border-radius: 5px;
    background-color: #2BA868;
    color: white;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    cursor: pointer;
    width: clamp(150px, 70vw, 300px); /* Same width as input */
    box-sizing: border-box; /* Ensures padding doesn’t add to width */
}

button:hover {
    background-color: #504F4F;
}

footer {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.social-icons {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons i {
    color: white;
    font-size: clamp(1.2rem, 4vw, 1.875rem);
}
footer p {
    font-size: 0.6rem; /* Default size for desktop */
    margin: 0.3rem 0;
    text-align: center;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

/* Smaller size for mobile only (up to 768px) */
@media (max-width: 768px) {
    footer p {
        font-size: clamp(0.3rem, 0.8vw, 0.5rem); /* Tiny on mobile */
    }
}

.social-icons img {
    width: 30px;
    height: 30px;
}



footer a {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: white;
    text-decoration: none;
}

/* Fade-in animation for overlay content */
.overlay > * {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Staggered animation delays */
.overlay > *:nth-child(1) { animation-delay: 0.2s; }
.overlay > *:nth-child(2) { animation-delay: 0.4s; }

/* Mobile responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    p {
        font-size: 1em;
    }
    form {
        flex-direction: column;
    }
    input[type="email"], button {
        width: 100%;
    }
}

#countdown {
    font-size: 2em;
    margin-top: 20px;
}

/* Define the font */
@font-face {
    font-family: 'Carmen Sans';
    src: url('fonts/CarmenSans-Regular.woff2') format('woff2'),
         url('fonts/CarmenSans-Regular.woff') format('woff'),
         url('fonts/CarmenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Carmen Sans';
    src: url('fonts/CarmenSans-Bold.woff2') format('woff2'),
         url('fonts/CarmenSans-Bold.woff') format('woff'),
         url('fonts/CarmenSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Apply the font to your website */
body {
    font-family: 'Carmen Sans', sans-serif;
}

.social-icons i {
    color: white;
    font-size: 30px; 
    margin: 0 10px;  
}

.video-container {
    position: fixed; /* Fixes it to the viewport */
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Prevents scrollbars */
    z-index: -1; /* Keeps it behind content */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scales video to cover container, cropping if needed */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers video perfectly */
    min-width: 100vw; /* Ensures it spans full width */
    min-height: 100vh; /* Ensures it spans full height */
}
footer p {
    font-size: 0.8em;
    margin: 5px 0;
    text-align: center;
}

@media (min-width: 769px) {
    footer p {
        text-align: left;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/background.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: 20vw;
    max-width: 150px;
    opacity: 0;
    animation: fadeInLogo 1s ease forwards, shadowSplit 2s ease-in-out infinite;
}

.preloader-text {
    font-size: clamp(1.5rem, 5vw, 3rem);
    opacity: 0;
    animation: slideInText 1.5s ease forwards 1s;
    text-align: center;
    margin: 0;
}

.preloader-text .highlight {
    display: block;
    font-weight: bold;
    color: #ffffff;
}

.preloader-text .subtext {
    font-size: 0.5em;
    font-weight: normal;
    display: block;
    color: #aaaaaa;
}

/* Animations */
@keyframes fadeInLogo {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInText {
    from {
        opacity: 0;
        transform: translateY(20px); /* Start slightly below */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shadowSplit {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0)); /* No shadow */
    }
    50% {
        filter: drop-shadow(5px 5px 10px rgba(43, 168, 104, 0.5)) /* Green shadow right */
        drop-shadow(-5px -5px 10px rgba(80, 79, 79, 0.5)) /* Dark grey shadow left */
        drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.8)); /* White shadow center */
    }
    100% {
        filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0)); /* Back to no shadow */
    }
}

/* Ensure main content is hidden until preloader is done */
.video-container,
.overlay {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-container.visible,
.overlay.visible {
    opacity: 1;
}

.title-text {
    font-size: clamp(1.2rem, 4vw, 3rem); /* Matches your responsive h1 */
    text-align: center;
    margin: 0;
}

.title-highlight {
    display: block;
    font-weight: bold;
    color: #ffffff;
}

.title-subtext {
    display: block;
    font-size: 0.5em; /* Half the size of title-text */
    font-weight: normal;
    color: #aaaaaa;
}

.typing-text {
    font-size: clamp(0.9rem, 3vw, 2rem); /* Your h2 size */
    margin: clamp(0.3rem, 1vw, 0.5rem) 0;
    display: inline-block;
    white-space: nowrap;
    border-right: 3px solid white; /* Blinking cursor */
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}