/* Google Fonts - Import for a gaming-inspired font */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;700&family=Orbitron:wght@400;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-bg: #1a0f26; /* Deep, dark background (based on image) */
  --secondary-bg: #2a1a3a; /* Slightly lighter accent background */
  --accent-color: #6a1b9a; /* Royal purple for accents (based on image) */
  --text-color: #e0e0e0; /* Light grey for general text */
  --heading-color: #ffffff; /* White for headings */
  --button-primary: #00e676; /* Vibrant green for primary buttons (like 'Enter') */
  --button-hover: #00c853; /* Darker green on hover */
  --border-color: #4a0e6e; /* Subtle purple border */
  --box-shadow-dark: rgba(0, 0, 0, 0.4);
  --box-shadow-light: rgba(0, 0, 0, 0.2);
}

/* General Body and Container Styles */
body {
  font-family: 'Chakra Petch', sans-serif; /* Applied to general text */
  background-color: #0D0D2B;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0; /* Remove default body margin */
  padding: 0; /* Remove default body padding */
  overflow-x: hidden; /* Prevent horizontal scroll due to transitions */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background-color: #1A1A40; 
  color: var(--heading-color);
  box-shadow: 0 0 15px rgba(0,255,194,0.3);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #00ffc2; 
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px; /* Increased gap for better spacing */
}

.logo-link {
  font-family: 'Orbitron', sans-serif; /* Futuristic font for logo */
  font-size: 1.8em;
  font-weight: 700;
  color: var(--button-primary); /* Vibrant green for the logo */
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.6); /* Glow effect for logo */
}

/* About Us Section */
.about-us {
  background-color: #1A1A40; /* Use secondary background for contrast */
  padding: 80px 0; /* More padding */
  text-align: center;
  
  border-bottom: 1px solid #00ffc2;
  box-shadow: 0 -4px 10px var(--box-shadow-dark), 0 4px 10px var(--box-shadow-dark);
  margin-bottom: 0; /* Remove margin-bottom */
}

.about-us h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5em;
  color: var(--heading-color);
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.about-us p {
  font-size: 1.2em;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: var(--text-color);
}


/* --- MOBILE SPECIFIC STYLES --- */
@media (max-width: 768px) {
  .header {
    padding: 5px 0; /* Slightly less padding on mobile */
  }

  .header .container {
    display: flex;
    justify-content: flex-start;/* Align items to the start for menu toggle */
    align-items: center;
  }

  /* Menu Toggle is now visible and on the left */
  .menu-toggle {
    display: flex; /* Hidden on desktop by default */
    background: none;
    order: -1;
    margin-right: auto;
    border: none;
    color: var(--button-primary); /* Green for menu icon */
    font-size: 2em; /* Larger icon */
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
    transition: color 0.3s ease;
  }

  .menu-toggle:hover {
    color: var(--button-hover);
  }

  /* Logo link takes up space and centers itself */
  .logo-link {
    flex-grow: 1.5;
    text-align: center;
    font-size: 2em; /* Slightly smaller logo on mobile */
  }
  
  /* Overlay for when mobile menu is open */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* Darker overlay */
    z-index: 1000;
  }

  .overlay.active {
    display: block;
  }
  .animated-icon {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
  /* About Us Section adjustments for mobile */
  .about-us {
    padding: 50px 0;
  }

  .about-us h2 {
    font-size: 2em;
  }

  .about-us p {
    font-size: 1em;
  }
}


/* Reuse general modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8); /* Dark overlay */
}

.modal-content {
  background-color: var(--primary-bg);
  margin: 12% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px var(--button-primary);
  color: var(--text-color);
  animation: popupScale 0.s ease-out;
}


/* Cool animation */
@keyframes popupScale {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Add other fixed sections similarly... */
--- GAMING THEME FOR TOURNAMENT SECTION --- */
.sports-tournaments {
    background-color: #1a1a2e; 
    padding: 60px 0; /* Adjusted padding for more prominence */
    margin-bottom: 30px;
    border-radius: 12px;
   border-bottom: 1px solid #00ffc2;  /* Slightly more rounded corners */
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.15); /* Electric cyan glow shadow */
    text-align: center;
    border: 1px solid #00ffc2; /* Thin cyan border */
    position: relative; /* Needed for potential pseudo-elements */
    overflow: hidden; /* To contain background patterns if added */
}

/* Optional: Add a subtle diagonal pattern for more texture */
.sports-tournaments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 255, 255, 0.05),
        rgba(0, 255, 255, 0.05) 5px,
        transparent 5px,
        transparent 10px
    );
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}


.sports-tournaments h3 {
    font-size: 3em; /* Larger, more impactful title */
    margin-bottom: 40px;
    color: #00ffff; /* Bright electric cyan */
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7); /* Glow effect */
    letter-spacing: 2px; /* Spaced out letters */
    position: relative;
    z-index: 1; /* Bring above pseudo-element */
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    position: relative;
    z-index: 1; /* Bring above pseudo-element */
}

.tournament-item {
    background-color: #2b2b40; /* Darker card background */
    border: 1px solid #4a4a60; /* Subtle border */
    border-radius: 10px;
    padding: 25px; /* Slightly more padding */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 0 10px rgba(0, 255, 255, 0.2); /* Deeper shadow with subtle glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #e0e0e0; /* Lighter text for contrast */
}

.tournament-item:hover {
    transform: translateY(-8px) scale(1.02); /* More pronounced lift and slight scale */
    box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 20px rgba(0, 255, 255, 0.5); /* Stronger shadow and glow on hover */
}

.tournament-item img {
    max-width: 100%;
    height: 180px; /* Consistent height */
    object-fit: cover;
    border-radius: 8px; /* Slightly rounded images */
    margin-bottom: 20px;
    border: 2px solid #00ffff; /* Cyan border for images */
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4); /* Image glow */
}

.tournament-item h4 {
    font-size: 1.6em; /* Larger title */
    margin: 10px 0;
    color: #ffffff; /* White title for impact */
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5); /* Subtle glow on title */
    flex-grow: 1;
}

.tournament-item p {
    font-size: 1.1em;
    color: #c0c0c0; /* Lighter grey for details */
    margin-bottom: 8px;
}

/* Highlight Prize Pool */
.tournament-item p:nth-of-type(2) { /* Targeting the Prize Pool paragraph specifically */
    color: #ffcc00; /* Gold/yellow for prize pool */
    font-weight: bold;
    font-size: 1.2em; /* Slightly larger prize pool text */
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}


.register-tournament-btn {
    padding: 12px 25px; /* Slightly larger button */
    border: none;
    border-radius: 8px; /* More rounded button */
    cursor: pointer;
    font-weight: bold;
    background-color: #00ffff; /* Electric cyan button */
    color: #1a1a2e; /* Dark text on button */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 20px; /* More space above button */
    font-size: 1.1em;
    text-transform: uppercase; /* Uppercase for a gaming feel */
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4); /* Button glow */
}

.register-tournament-btn:hover {
    background-color: #00e6e6; /* Brighter cyan on hover */
    transform: translateY(-3px) scale(1.03); /* Lift and scale more */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 5px 15px rgba(0,0,0,0.6); /* Stronger glow and shadow */
}


/* Modal (Popup) Styles - Used for Tournament Registration and Payment Proof */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* Darker overlay for gaming feel */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #2b2b40; /* Dark background for modal */
    margin: auto;
    padding: 30px;
    border: 2px solid #00ffff; /* Cyan border */
    width: 90%;
    max-width: 550px; /* Slightly wider modal */
    border-radius: 12px; /* More rounded */
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3), 0 0 25px rgba(0, 255, 255, 0.2); /* Gaming glow */
    position: relative;
    animation: fadeIn 0.3s ease-out;
    color: #e0e0e0; /* Light text */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content h4 {
    font-size: 2em; /* Larger headings */
    margin-top: 0;
    margin-bottom: 15px;
    color: #00ffff; /* Cyan heading */
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
}
.modal-content h2, .modal-content h3 {
    font-size: 1.6em;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #ffffff; /* White headings */
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.modal-content p {
    font-size: 1.1em;
    color: #c0c0c0; /* Light grey text */
    text-align: center;
    margin-bottom: 25px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.modal-content label {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff; /* White label */
    width: 100%;
    text-align: left;
    padding-left: 5px;
}

.modal-content input[type="text"],
.modal-content input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #00ffff; /* Cyan border for inputs */
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #3a3a50; /* Darker input background */
    color: #ffffff; /* White text in inputs */
}

.modal-content input[type="text"]::placeholder {
    color: #a0a0a0; /* Lighter placeholder */
}

.modal-content input[type="text"]:focus,
.modal-content input[type="file"]:focus {
    border-color: #00e6e6; /* Brighter cyan on focus */
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); /* Stronger glow on focus */
}

/* Specific style for the status message in OCR modal */
#status {
    margin-top: 20px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word;
    color: #ffcc00; /* Gold for status messages */
}
    /* Mobile adjustments for tournament section */
    .sports-tournaments h3 {
        font-size: 2.2em; /* Smaller title on mobile */
    }

    .tournament-item {
        padding: 15px; /* Less padding on smaller screens */
    }

    .register-tournament-btn {
        font-size: 1em;
        padding: 10px 20px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-content h4 {
        font-size: 1.5em;
    }
}
   body.no-scroll {
    overflow: hidden;
}

.toggle-buttons {
    text-align: center;
    margin: 30px 0 10px;
}

.toggle-buttons .btn {
    margin: 0 10px;
    padding: 10px 20px;
}

.toggle-buttons .btn.active {
    background-color: #007bff;
    color: white;
    border: none;
}
/* Styling for the new tournament intro paragraph */
.sports-tournaments .tournament-intro {
    font-size: 1.2em; /* Slightly larger text */
    color: #e0e0e0; /* Light gray to contrast with dark background */
    margin-bottom: 30px; /* Space below the intro text */
    max-width: 700px; /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3); /* Subtle glow */
}

/* 🎮 Gaming background for Tournament View */
body.gaming-bg {
    background-color: #0d0d1a; /* Dark gaming color */
    transition: background-color 0.5s ease;
}
body.gaming-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #1A1A40;
  padding: 40px 20px;
  border-radius: 5px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  color: #00ffc2;
  box-shadow: 0 0 20px #00ffc2;
  border: 2px solid #00ffc2;
  position: relative;
  font-family: 'Orbitron', sans-serif;
}

.modal-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #00ffc2;
  text-transform: uppercase;
}

.modal-content p {
  margin: 10px 0;
  font-size: 16px;
  color: #ffffff;
}

.modal-content a {
  color: #00ffc2;
  text-decoration: none;
  font-weight: bold;
}

.modal-content a:hover {
  text-decoration: underline;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  color: red;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #00ffc2;
}
/* Game Card Selector Styles - Enhanced for Gaming (Version 2) */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;700&display=swap'); /* Modern, techy font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap'); /* Retro pixelated font for specific titles */

:root {
    /* Keeping the base theme colors for consistency but removing their glow usage */
    --primary-bg: #1A1A2E; 
    --card-bg-start: #2C0059; /* Deeper purple for card gradient start */
    --card-bg-end: #4A148C;   /* Lighter purple for card gradient end */
    --accent-color-1: #00BCD4; /* Cyan-blue for primary highlights */
    --accent-color-2: #00FFC0; /* Neon green for secondary highlights/text */
    --text-color: #E0E0E0; /* Light gray for general text */
    --heading-color: #FFFFFF; /* White for main headings */
    --special-text-color: #FFD700; /* Gold for Free Fire/BGMI */
    /* Shadows are removed, so these variables will have limited use or can be removed if not used elsewhere */
    --shadow-strength: rgba(0, 0, 0, 0.3); /* Kept for potential subtle use, but no strong glow */
}

body{
  background: #1A1A40;
}

.game-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 30px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.game-card {
    background-color: #0D0D2B; /* A solid, dark, slightly purplish-blue color */
    border-radius: 12px; /* Slightly less rounded, more modern */
    padding: 15px; /* Increased padding for a cleaner look */
    width: 250px; /* Consistent width */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Subtle, non-glowing shadow for depth */
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1); /* Subtle, defined border */
    position: relative;
    overflow: hidden;
    animation: none; 
}


.game-card::before {
    content: none; /* Explicitly remove content */
}

.game-card:hover {
    transform: translateY(-5px); /* Lift slightly on hover, less aggressive */
    border-color: var(--accent-color-1); /* Simple border highlight on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); /* Slightly stronger non-glowing shadow */
}

.game-card:hover::before {
    opacity: 0;
    filter: none;
}

.game-card img {
    width: 100%;
    max-width: 220px;
    height: 160px;
    border-radius: 10px; /* Slightly less rounded image corners */
    object-fit: cover;
    object-position: center;
    margin-bottom: 15px; /* More space below image */
    /* REMOVED: strong glowing border/shadow */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle image border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Subtle image shadow */
    transition: all 0.3s ease;
}

.game-card:hover img {
    border-color: var(--accent-color-2); /* Image border changes to accent-color-2 on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Slightly more prominent shadow on hover */
}

.game-card h4 {
    color: var(--heading-color); /* White heading for clean look */
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.3em; /* Slightly smaller heading font */
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Less letter spacing */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
    margin-bottom: 10px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.game-card:hover h4 {
    color: var(--accent-color-1); /* Heading color changes to accent-color-1 on hover */
    text-shadow: 0 0 5px var(--accent-color-1); /* Very subtle shadow/light */
}

.game-card h4.game-title-special {
    font-family: 'Press Start 2P', cursive;
    color: var(--special-text-color);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); /* Retain a subtle shadow for special text */
}
