@font-face {
    font-family: 'RDR2';
    src: url('Fonts/chinese rocks rg.otf') format('opentype');
}

/* 1. Reset the default browser margins so you don't get weird scrollbars */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevents scrolling */
    background-color: #000;
}

/* 2. Your container settings */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: hidden;
}

/* 3. The actual video settings (This is the secret sauce) */
.background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Makes it responsive and fills the whole screen */
    object-position: center; /* Keeps the video perfectly centered */
}

/* 4. Logo in top-right corner */
.logo-container {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 20;
}

.top-right-logo {
    width: 80px;
    height: auto;
}

/* 5. The Glassmorphism Button */
.glass-btn {
    /* Positioning it on the top left */
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 20; /* Keeps the button above the image */
    
    /* Text styling */
    font-family: 'Minercraft', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 12px 24px;
    
    /* Glass Effect Magic */
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* The background blur */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    
    /* Hover animation setup */
    transition: background 0.3s ease, transform 0.2s ease;
}

/* 5. Hover effect for the button */
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.25); /* Makes it slightly brighter on hover */
    transform: translateY(-2px); /* Lifts the button up slightly */
}

/* 6. Centered "Coming soon..." text */
.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
}

.text h1 {
    font-family: 'RDR2', sans-serif;
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    text-align: center;
}

.text h1 .red-text {
    color: #ff0000;
}

/* 6. Small Countdown Timer in bottom center */
.countdown-timer {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 15;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: 'RDR2', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 18px;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}

.countdown-label {
    font-family: 'Minercraft', sans-serif;
    font-size: 0.8rem;
    color: #ffffff;
    margin-top: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 7. Visit Prerna'25 Button (Glassified) */
.visit-button {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 15;

    /* Glassmorphism styling */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Text styling */
    color: #ffffff;
    text-decoration: none;
    font-family: 'RDR2', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    padding: clamp(10px, 1.5vw, 15px) clamp(20px, 3vw, 30px);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.visit-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 8. Media Query for extremely small screens (Extra fallback for mobile devices) */
@media screen and (max-width: 480px) {
    .glass-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .top-right-logo {
        width: 50px;
    }

    .text h1 {
        font-size: 2rem;
    }

    .countdown-timer {
        gap: 10px;
        bottom: 120px;
    }

    .countdown-number {
        font-size: 1.5rem;
        padding: 8px 12px;
        min-width: 50px;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .visit-button {
        position: absolute;
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .visit-button:hover {
        transform: translateX(50%) scale(1.05);
    }
}

/* Ultra-small screens (smartwatch size) */
@media screen and (max-width: 320px) {
    .glass-btn {
        padding: 8px 16px;
        font-size: 10px;
    }

    .top-right-logo {
        width: 40px;
    }

    .text h1 {
        font-size: 1.5rem;
    }

    .countdown-timer {
        gap: 8px;
        bottom: 100px;
    }

    .countdown-number {
        font-size: 1.2rem;
        padding: 6px 10px;
        min-width: 40px;
    }

    .countdown-label {
        font-size: 0.5rem;
    }

    .visit-button {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}