/* Reset some default browser styles */
body, h1, p, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #FFF;
    text-align: center;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Title Styling */
h1 {
    font-size: 3em;
    margin: 0;
    text-shadow: 0 0 10px #4B0082;
    z-index: 1;
}

/* Paragraph Styling */
p {
    font-size: 1.2em;
    margin: 20px auto;
    width: 80%;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
    animation-delay: 1s;
    z-index: 1;
}

/* Button Styling */
.contact-btn {
    background-color: #4B0082;
    color: #FFF;
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    margin-top: 30px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    z-index: 1;
}

.contact-btn:hover {
    background-color: #6A0DAD;
}

/* Fade-In Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Space Animation Background */
.space-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('space-animation.gif') no-repeat center center/cover;
    z-index: -3;
    opacity: 0.3;
}

/* Sparkles */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -2;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ffffff, rgba(255, 255, 255, 0));
    border-radius: 50%;
    animation: sparkleAnimation 2s infinite ease-in-out;
}

@keyframes sparkleAnimation {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Lasers */
.lasers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.laser {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #4B0082, transparent);
    animation: laserAnimation 1s infinite linear;
}

@keyframes laserAnimation {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.delay-1 {
    animation-delay: 1s;
}

.delay-2 {
    animation-delay: 2.5s; /* Slightly after the first paragraph */
}


/* Pop-up Timer Styling */
#popup-timer {
    position: fixed;
    bottom: -100px; /* Start completely off-screen */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    width: auto; /* Allow content to define width */
    padding: 15px 30px;
    background-color: rgba(75, 0, 130, 0.9); /* Deep purple background with slight transparency */
    color: #FFF;
    text-align: center;
    font-size: 1.2em;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 25px; /* Rounded corners */
    z-index: 10;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    transition: bottom 0.5s ease-in-out; /* Smooth transition */
    opacity: 0; /* Start invisible */
}

#popup-timer.show {
    bottom: 20px; /* Move into view */
    opacity: 1; /* Fade in */
}

/* Responsive Styling */
@media screen and (max-width: 600px) {
    #popup-timer {
        padding: 10px 20px; /* Reduce padding */
        font-size: 1em; /* Reduce font size */
    }

    #popup-timer p {
        font-size: 1.2em; /* Slightly smaller text for better readability */
    }
}

/* Confetti Styling */
.confetti {
    position: absolute;
    width: 8px;
    height: 14px;
    background-color: #FFF;
    opacity: 0.7;
    animation: confettiAnimation 2s ease-out forwards;
}

.confetti:nth-child(odd) {
    background-color: #FFD700; /* Gold */
}

.confetti:nth-child(even) {
    background-color: #FF4500; /* OrangeRed */
}

@keyframes confettiAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) rotate(720deg);
        opacity: 0;
    }
}

.hidden {
    display: none;
}

/* Countdown Text Styling */
#popup-timer p {
    margin: 0;
    font-size: 1.5em;
}

/* Responsive Styling for Mobile */
@media screen and (max-width: 600px) {
    #popup-timer {
        padding: 10px 20px; /* Reduce padding */
        font-size: 1em; /* Reduce font size */
    }

    #popup-timer p {
        font-size: 1.2em; /* Slightly smaller text for better readability */
    }

    /* Shift up the content on mobile */
    body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100vh;
        padding-top: 10vh; /* Start closer to the top */
    }

    h1 {
        margin-top: 5vh; /* Reduce top margin */
    }

    p {
        margin-top: 2vh;
    }

    .contact-btn {
        margin-top: 3vh; /* Adjust margin to keep spacing consistent */
    }
}