/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body > *:not(.splash-screen) {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(15, 15, 15, 0.7);
    border-bottom: 1px solid #333;
}

.navbar .logo {
    margin-right: 15px;
}

.brand-text h1 {
    font-size: 1.8em;
    color: red;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.brand-text p {
    font-size: 0.9em;
    color: #00bfff;
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    filter: brightness(0.4) saturate(1.2);
}

.main-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Notification Bar --- */
.notification-bar {
    width: 100%;
    background: linear-gradient(90deg, rgba(255,0,0,0.7), rgba(255,165,0,0.7));
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.notification-content {
    display: flex;
    width: max-content; /* dono copies ek line me aayengi */
    animation: scrollText 20s linear infinite;
}

.notification-text {
    display: flex;
    gap: 50px;
    padding: 0 20px;
}

.notification-text span {
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* sirf aadha move karega */
    }
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 80px 0 50px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-section h1 {
    font-size: 4em;
    font-weight: 700;
    color: red;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    animation: textGlow 2s ease-in-out infinite alternate;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 15px;
    animation: fadeInDown 1s ease-out 1s forwards;
    opacity: 0;
}

.contact-info {
    font-size: 1em;
    margin-top: 20px;
}
.contact-info a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: #fff;
}

.match-rules-btn {
    background-color: #ff4500;
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.5);
}

.match-rules-btn:hover {
    background-color: #cc3700;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.7);
}

/* --- Tournament Grid Section --- */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    margin-top: 20px;
}

.tournament-box {
    background: rgba(15, 15, 15, 0.7);
    border: 2px solid #00bfff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    overflow: hidden;
    animation: slideUp 0.8s ease-out forwards;
}

.tournament-box:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.6), 0 0 80px rgba(0, 191, 255, 0.3);
    background: rgba(25, 25, 25, 0.8);
}

.tournament-box h2 {
    color: #00bfff;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 15px;
}

.details p {
    font-size: 1.2em;
    margin: 5px 0;
}

.entry-fee {
    color: #ffd700;
}

.prize-pool {
    color: #00ff99;
    font-weight: 600;
}

.join-btn {
    background-color: #00bfff;
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.5);
}

.join-btn:hover {
    background-color: #0099cc;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.7);
}

/* --- Modal Styling --- */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    padding-top: 50px;
}

.modal-content {
    background: linear-gradient(135deg, #1e1e1e, #0a0a0a);
    margin: 5% auto;
    padding: 40px;
    border: 2px solid #00bfff;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.4);
    animation: zoomIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.close-btn {
    color: #00bfff;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover, .close-btn:focus {
    color: white;
}

.modal-content h2 {
    font-size: 2.5em;
    color: #00bfff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

#join-form .form-group:nth-child(1) { animation-delay: 0.2s; }
#join-form .form-group:nth-child(2) { animation-delay: 0.4s; }
#join-form .form-group:nth-child(3) { animation-delay: 0.6s; }
#join-form .form-group:nth-child(4) { animation-delay: 0.8s; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffcc00;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    outline: none;
}

.payment-info-box {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-top: 25px;
    animation: pulse 1.5s ease-in-out infinite;
}

.payment-info {
    font-size: 1.3em;
    font-weight: 600;
    color: #00ff99;
}

.upi-info {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffd700;
    word-break: break-all;
    margin-top: 10px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #00bfff;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.5);
}

.submit-btn:hover {
    background-color: #0099cc;
    transform: translateY(-3px);
}

.close-btn {
    color: #00bfff;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover, .close-btn:focus {
    color: white;
}

/* --- Rules Modal --- */
.rules-content {
    margin-top: 20px;
}

.language-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.lang-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lang-btn.active {
    background-color: #00bfff;
}

.rules-text {
    display: none;
    padding: 15px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-top: 10px;
}

.rules-text.active {
    display: block;
}

.rules-text ol {
    text-align: left;
    padding-left: 20px;
}

.rules-text li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* --- Footer --- */
.footer-section {
    padding: 20px 0;
    background: rgba(15, 15, 15, 0.7);
    border-top: 1px solid #333;
    text-align: center;
}

.social-link-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}
.social-link {
    color: #fff;
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-link:hover {
    color: #00bfff;
    transform: scale(1.2);
}

.policy-text {
    margin-top: 10px;
}

.policy-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.policy-link:hover {
    color: #00bfff;
}

.separator {
    color: #fff;
    margin: 0 5px;
}

/* --- Splash Screen Styles --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOutSplash 1s ease-out 3s forwards;
    opacity: 1;
}

.splash-content {
    text-align: center;
    opacity: 0;
    animation: fadeInSplash 1s ease-in 0.5s forwards;
}

.splash-logo {
    width: 150px;
    height: auto;
    animation: zoomInPulse 1.5s ease-in-out infinite;
}

.splash-text {
    font-size: 1.5em;
    color: #fff;
    margin-top: 15px;
    letter-spacing: 2px;
}

/* Splash Screen Animations */
@keyframes fadeInSplash {
    to { opacity: 1; }
}

@keyframes fadeOutSplash {
    to { opacity: 0; visibility: hidden; }
}

@keyframes zoomInPulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(0.8); }
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px #00bfff, 0 0 10px #00bfff; }
    to { text-shadow: 0 0 20px #00bfff, 0 0 40px #00bfff; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 153, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 20px rgba(0, 255, 153, 0.9); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 153, 0.7); }
}

/* New button click effect */
.join-btn.click-effect {
    animation: buttonPulse 0.4s ease-out;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* QR code styling */
.qr-button {
    background-color: #00bfff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.4);
}

.qr-button:hover {
    background-color: #0099cc;
    transform: translateY(-2px);
}

.qr-code-container {
    display: none;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid #00bfff;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.qr-code-container.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.qr-code-container img {
    max-width: 200px;
    height: auto;
    border: 5px solid white;
    border-radius: 5px;
}

.qr-code-container p {
    font-size: 1.1em;
    color: #eee;
    margin-top: 10px;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3em;
    }
    .modal-content {
        margin-top: 20px;
    }
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .navbar .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .notification-text {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2em;
    }
    .tournament-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 20px;
    }
    .upi-info {
        font-size: 1.2em;
    }
     .notification-text span {
        font-size: 0.8em;
    }
    .language-selector {
        flex-direction: column;
        align-items: center;
    }
}
