/********** Font Import **********/
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

/********** Global Variables **********/
:root {
    /* Color variables for theme consistency */
    --siren-red: #FF0F2D;
    --siren-blue: #006AFF;
    --cyber-teal: #00FFD1;
    --neon-purple: #D300C5;
    --cyber-yellow: #F9F002;
    --cyber-dark: #0D0221;
    --cyber-light: #E5E5E5;
    --neon-pink: #FF2A6D;
    /* Glow effects for shadows and highlights */
    --glow-effect: 0 0 10px var(--siren-blue), 0 0 20px var(--siren-red);
    --menu-glow: 0 0 10px var(--neon-purple), 0 0 20px rgba(211, 0, 197, 0.5);
    /* Font family fallback */
    --main-font: 'Rajdhani', 'Orbitron', sans-serif;
}

/********** Reset and Base Styles **********/
* {
    /* Reset margins and paddings for consistent layout */
    margin: 0;
    padding: 0;
    /* Use border-box for easier sizing */
    box-sizing: border-box;
    /* Apply main font to all elements */
    font-family: var(--main-font);
}

body {
    /* Background gradient for cyberpunk theme */
    background: linear-gradient(135deg, var(--cyber-dark) 0%, #1A0038 100%);
    /* Default text color */
    color: var(--cyber-light);
    /* Apply main font */
    font-family: var(--main-font);
}

/* matrix effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
}

.matrix-rain canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/********** Header Section **********/
.header {
    /* Header background with transparency */
    background: linear-gradient(135deg, rgba(13, 2, 33, 0.9), rgba(5, 0, 20, 0.95));
    /* Border and glow effect */
    border-bottom: 2px solid var(--siren-blue);
    box-shadow: var(--glow-effect);
    /* Padding and sticky positioning */
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* backdrop-filter: blur(5px); */
    /* Commented out blur effect */
    overflow: visible;
}

/* Police Siren Lights Animation */
.header::after {
    /* Pseudo-element for siren animation */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Gradient for siren colors */
    background: linear-gradient(90deg,
            transparent,
            var(--siren-red),
            var(--siren-blue),
            transparent);
    /* Animation for moving siren */
    animation: siren 5s ease-in-out infinite;
    overflow: hidden;
}

@keyframes siren {

    /* Keyframes for siren translation */
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.header-container {
    /* Container for header content */
    max-width: 1200px;
    margin: 0 auto;
    /* Flex layout for alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* Logo flex container */
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    /* Hover scale transition */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    /* Logo image sizing and shadow */
    height: 60px;
    filter: drop-shadow(0 0 5px var(--siren-red));
}

.logo-text {
    /* Logo text styling with gradient and shadow */
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--siren-red), var(--siren-blue), var(--cyber-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 15, 45, 0.7);
    /* Flicker animation */
    animation: flicker 1.5s infinite alternate;
}

/* Retro-Futuristic Scanlines Overlay */
.header::before {
    /* Pseudo-element for scanlines effect */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Repeating gradient for scanlines */
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
}

/* Glitch Effect (Speeds Up on Hover) */
.logo:hover .logo-text {
    /* Faster glitch on hover */
    animation: glitch 0.2s linear infinite;
}

@keyframes flicker {

    /* Keyframes for flicker effect with opacity and shadow changes */
    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--siren-blue), 0 0 20px var(--siren-red);
    }

    20%,
    24%,
    55% {
        opacity: 0.8;
        text-shadow: none;
    }
}

@keyframes glitch {

    /* Keyframes for glitch with translation and clip-path */
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
        clip-path: inset(0 0 95% 0);
    }

    40% {
        transform: translate(-2px, -2px);
        clip-path: inset(95% 0 0 0);
    }

    60% {
        transform: translate(2px, 2px);
        clip-path: inset(0 95% 0 0);
    }

    80% {
        transform: translate(2px, -2px);
        clip-path: inset(0 0 0 95%);
    }

    100% {
        transform: translate(0);
        clip-path: inset(0);
    }
}

/********** Button Styles **********/
/* Cyberpunk-style button with hover effects and gradient animation */
.cyberpunk-btn {
    /* Transparent background button with border */
    background: transparent;
    color: var(--cyber-light);
    border: 1px solid var(--siren-blue);
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--menu-glow);
}

/* Gradient background that appears on hover */
.cyberpunk-btn::before {
    /* Pseudo-element for hover gradient */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.8s ease;
}

/* Hover effects for the cyberpunk button */
.cyberpunk-btn:hover::before {
    opacity: 1;
}

.cyberpunk-btn:hover {
    color: var(--cyber-light);
    box-shadow: 0 0 15px var(--neon-pink);
    transform: translateY(-2px);
}

/* Container for authentication buttons */
.auth-buttons {
    /* Flex container for buttons */
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/********** Modal and Authentication Styles **********/
/* Modal Styles - Fixed to overlay entire screen and centered */
/* Background overlay for modal */
.modal {
    /* Full-screen overlay modal */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 90vh;
    background-color: rgba(13, 2, 33, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* High z-index to overlay everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scrolling */
}

/* Active state for modal */
.modal.active {
    opacity: 1;
    visibility: visible;
    padding-top: 10px !important;
}

/* Content container within modal */
.modal-content {
    /* Modal content box with max width */
    width: 100%;
    max-width: 450px;
    background: rgba(13, 2, 33, 0.98);
    border: 2px solid var(--siren-blue);
    box-shadow: var(--glow-effect), 0 0 40px rgba(0, 106, 255, 0.5);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.5s ease;
    margin: 10px;
    /* Margin for smaller screens */
}

/* Scale up modal content when active */
.modal.active .modal-content {
    transform: scale(1);
}

/* Close button for modal */
.close-modal {
    /* Circular close button */
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--siren-red);
    color: var(--siren-red);
    border-radius: 50%;
    font-size: 33px;
    font-weight: 500;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* Hover effect for close button */
.close-modal:hover {
    background: var(--siren-red);
    color: var(--cyber-light);
    box-shadow: 0 0 15px var(--siren-red);
}

/* Container for authentication forms */
.auth-container {
    /* Full-width container with background */
    width: 100%;
    background: rgba(13, 2, 33, 0.95);
    overflow: hidden;
}

/* Header with tab selection (Sign In/Sign Up) */
.auth-header {
    /* Flex tabs header */
    display: flex;
    border-bottom: 1px solid var(--siren-blue);
}

/* Individual tab styling */
.auth-tab {
    /* Flexible tab with transitions */
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active tab styling */
.auth-tab.active {
    color: var(--cyber-yellow);
    background: rgba(0, 106, 255, 0.1);
    box-shadow: inset 0 -3px 0 var(--siren-blue);
}

/* Content area for forms */
.auth-content {
    /* Padding for form content */
    padding: 30px;
}

/* Forms are hidden by default */
.auth-form {
    display: none;
}

/* Active form is displayed */
.auth-form.active {
    display: block;
    /* Fade-in animation */
    animation: fadeIn 0.5s ease;
}

/* Form group styling for input fields */
.form-group {
    /* Container for labels and inputs */
    margin-bottom: 10px;
    position: relative;
}

.form-group label {
    /* Label styling */
    display: block;
    margin-bottom: 3px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--cyber-light);
    transition: all 0.3s ease;
}

.form-group input {
    /* Input field styling */
    width: 100%;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--siren-blue);
    color: var(--cyber-light);
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    /* Remove iOS shadow */
}

/* Focus state for input fields */
.form-group input:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}

/* Valid input state */
.form-group input.valid {
    border-color: var(--cyber-teal);
    box-shadow: var(--success-glow);
}

/* Invalid input state */
.form-group input.invalid {
    border-color: var(--siren-red);
    box-shadow: 0 0 10px rgba(255, 15, 45, 0.5);
}

/* Error message styling */
.error-message {
    /* Hidden error text with animation */
    color: var(--siren-red);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    animation: shake 0.5s ease;
}

/* Password strength meter container */
.password-strength {
    /* Strength bar container */
    height: 5px;
    margin-top: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Password strength bar that expands based on strength */
.password-strength-bar {
    /* Dynamic width bar */
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Text indicator for password strength */
.password-strength-text {
    /* Strength text label */
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: right;
}

/* Social authentication section */
.social-auth {
    margin-top: 30px;
}

/* Divider with text in the middle */
.divider {
    /* Flex divider with lines */
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--cyber-light);
}

.divider::before,
.divider::after {
    /* Pseudo-lines for divider */
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--siren-blue), transparent);
}

.divider span {
    /* Text in divider */
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Container for social buttons */
.social-buttons {
    /* Flex container for social buttons */
    display: flex;
    gap: 15px;
}

/* Social button styling */
.social-btn {
    /* General social button */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border: 1px solid;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.social-btn i {
    /* Icon in button */
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Google-specific button styling */
.google-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: #DB4437;
    color: #fff;
}

.google-btn:hover {
    background: rgba(219, 68, 55, 0.2);
    box-shadow: 0 0 15px rgba(219, 68, 55, 0.5);
}

/* Submit button styling */
.submit-btn {
    /* Full-width submit button with gradient */
    width: 100%;
    padding: 4px;
    background: linear-gradient(45deg, var(--siren-blue), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

/* Shimmer effect on hover */
.submit-btn::before {
    /* Hover shimmer pseudo-element */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Hover effects for submit button */
.submit-btn:hover {
    background: linear-gradient(45deg, var(--neon-purple), var(--siren-blue));
    box-shadow: 0 0 15px rgba(211, 0, 197, 0.7);
    transform: translateY(-2px);
}

/* Disabled state for submit button */
.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled:hover::before {
    left: -100%;
}

/* Forgot password link styling */
.forgot-link {
    /* Right-aligned link */
    display: block;
    text-align: right;
    margin-top: 15px;
    color: var(--siren-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.forgot-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 42, 109, 0.7);
}

/* Success message popup */
.success-message {
    /* Fixed top-center success popup */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 2, 33, 0.9);
    border: 1px solid var(--cyber-teal);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: var(--success-glow);
    z-index: 10000;
    /* Above modal */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    max-width: 90%;
    text-align: center;
}

.success-message.active {
    opacity: 1;
    visibility: visible;
    animation: slideDown 0.5s ease;
}

.success-message i {
    /* Icon in success message */
    color: var(--cyber-teal);
    margin-right: 10px;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    /* Centered reCAPTCHA container */
    margin: 15px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.g-recaptcha>div {
    width: 100% !important;
}

.g-recaptcha iframe {
    width: 100% !important;
    transform: scale(0.95);
    transform-origin: 0 0;
}

/* reCAPTCHA error message */
.recaptcha-error {
    /* Hidden error for reCAPTCHA */
    color: var(--siren-red);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    text-align: center;
    animation: shake 0.5s ease;
}

/* Search Button */
.search-trigger {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1000;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.search-trigger:hover {
    transform: scale(1.1);
    border: 1px solid var(--neon-pink);
}

.search-trigger svg {
    width: 28px;
    height: 28px;
    stroke: var(--neon-pink);
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 5px var(--neon-pink));
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 2, 33, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
    animation: overlayAppear 0.4s ease;
}

@keyframes overlayAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    z-index: 10000;
    animation: searchSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--siren-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--siren-red);
    font-size: 24px;
    font-weight: 300;
    box-shadow: 0 0 15px rgba(255, 15, 45, 0.3);
}

.close-search:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 15, 45, 0.6);
    background: rgba(255, 15, 45, 0.1);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    padding: 25px 70px 25px 30px;
    font-size: 20px;
    font-family: var(--font-primary);
    font-weight: 500;
    background: rgba(13, 2, 33, 0.8);
    border: 2px solid var(--cyber-teal);
    border-radius: 15px;
    color: var(--cyber-light);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 209, 0.2), inset 0 0 20px rgba(0, 255, 209, 0.05);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
}

#searchInput::placeholder {
    color: rgba(229, 229, 229, 0.4);
    letter-spacing: 2px;
}

#searchInput:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(211, 0, 197, 0.4), 0 0 60px rgba(211, 0, 197, 0.2), inset 0 0 30px rgba(211, 0, 197, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--cyber-teal);
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 5px var(--cyber-teal));
}

.loading {
    display: none;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.loading.active {
    display: block;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 255, 209, 0.2);
    border-top: 3px solid var(--cyber-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    filter: drop-shadow(0 0 5px var(--cyber-teal));
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.results-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(13, 2, 33, 0.9);
    border: 2px solid rgba(0, 255, 209, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 255, 209, 0.2), inset 0 0 30px rgba(0, 255, 209, 0.05);
    display: none;
}

.results-container.active {
    display: block;
    animation: resultsAppear 0.4s ease;
}

@keyframes resultsAppear {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-track {
    background: rgba(13, 2, 33, 0.5);
    border-radius: 10px;
}

.results-container::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(211, 0, 197, 0.5);
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-teal);
    box-shadow: 0 0 15px rgba(0, 255, 209, 0.7);
}

.result-item {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 255, 209, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--cyber-teal), var(--neon-purple));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.result-item:hover::before {
    transform: scaleY(1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: rgba(0, 255, 209, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 255, 209, 0.1);
    transform: translateX(5px);
}

.result-name {
    font-size: 20px;
    font-family: var(--font-heading);
    color: var(--cyber-light);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 209, 0.3);
}

.result-category {
    font-size: 14px;
    color: var(--neon-purple);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(211, 0, 197, 0.5);
}

.result-description {
    font-size: 13px;
    color: rgba(229, 229, 229, 0.6);
    margin-top: 8px;
    line-height: 1.4;
}

.no-results {
    padding: 40px;
    text-align: center;
    color: rgba(229, 229, 229, 0.5);
    font-size: 18px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-teal), transparent);
    animation: scan 2s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 209, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 209, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.grid-bg.active {
    opacity: 1;
}

/********** Animations **********/
/* Keyframe animations */
@keyframes fadeIn {

    /* Fade and translate animation */
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    /* Shake effect for errors */
    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes slideDown {

    /* Slide down for success message */
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Scroll Reveal Animations */
.reveal {
    /* Initial state for reveal */
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    /* Active revealed state */
    opacity: 1;
    transform: translateY(0);
}

/********** Media Queries for Responsiveness **********/
/* Mobile Optimizations */
@media (max-width: 768px) {
    .header-container {
        /* Stack header on mobile */
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .modal {
        padding: 15px;
        align-items: center;
        /* Center vertically */
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        margin: 0 auto;
    }

    .auth-content {
        padding: 20px;
    }

    .auth-tab {
        padding: 16px 12px;
        font-size: 1rem;
        min-height: 50px;
    }

    .form-group input {
        padding: 5px;
    }

    .submit-btn {
        padding: 13px;
        font-size: 1rem;
    }

    .social-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .g-recaptcha iframe {
        transform: scale(0.85);
        transform-origin: 0 0;
    }

    .auth-buttons {
        /* Row layout for buttons on mobile */
        display: flex;
        flex-direction: row;
        gap: 15px;
        width: 100%;
        max-width: 280px;
    }

    .cyberpunk-btn {
        width: 100%;
        text-align: center;
        font-size: 15px;
        padding: 3px 0px;
        font-weight: 900;

    }

    .success-message {
        width: 90%;
        padding: 12px 20px;
    }
}

/* Further mobile optimizations for smaller screens */
@media (max-width: 480px) {
    .auth-content {
        padding: 15px;
    }

    .auth-tab {
        padding: 14px 8px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .social-buttons {
        flex-direction: column;
    }

    .divider span {
        font-size: 0.8rem;
    }

    .g-recaptcha {
        margin: 10px 0;
    }

    .g-recaptcha iframe {
        transform: scale(0.8);
        transform-origin: 0 0;
    }

    .close-modal {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
}

/* Extra small screen optimizations */
@media (max-width: 350px) {
    .auth-tab {
        font-size: 0.8rem;
        padding: 12px 6px;
    }

    .auth-content {
        padding: 12px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 6px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 0.9rem;
    }
}

/********** Content Styles **********/
/* Content styling for demo purposes */
.content {
    /* General content padding and centering */
    background: linear-gradient(135deg, rgba(13, 2, 33, 0.5) 0%, rgba(26, 0, 56, 0.5) 100%);
    padding: 2rem;
    margin: 0 auto;
}

.content h2 {
    /* Heading color and shadow */
    color: var(--cyber-yellow);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(249, 240, 2, 0.5);
}

.content p {
    /* Paragraph spacing */
    margin-bottom: 1rem;
    line-height: 1.6;
}

/********** Navigation and Game Grid **********/
/* Navigation */
.cyber-nav {
    /* Navigation container */
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.cyber-activities {
    /* Activities section with border */
    position: relative;
    max-width: 1200px;
    margin-top: 7rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 7rem;
    padding: 1rem;
}

.menu-toggle {
    /* Hidden toggle button for mobile menus */
    display: none;
    width: 100%;
    background: var(--cyber-dark);
    color: var(--cyber-yellow);
    border: 1px solid var(--neon-purple);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: var(--menu-glow);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--neon-purple);
    color: var(--cyber-light);
}

.game-grid {
    /* Grid for game cards */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.game-card {
    /* Individual game card styling */
    position: relative;
    background: rgba(13, 2, 33, 0.7);
    border: 1px solid var(--neon-purple);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(211, 0, 197, 0.3);
}

.game-link {
    text-decoration: none;
    color: var(--cyber-light);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--menu-glow);
    border-color: var(--cyber-yellow);
}

.game-card::before {
    /* Hover gradient overlay */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            transparent,
            transparent,
            transparent,
            var(--neon-purple),
            transparent,
            transparent);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-card:hover::before {
    opacity: 0.6;
    animation: shine 1.5s infinite;
}

@keyframes shine {

    /* Shine animation for card hover */
    0% {
        transform: rotate(30deg) translate(-10%, -10%);
    }

    100% {
        transform: rotate(30deg) translate(10%, 10%);
    }
}

.game-icon {
    /* Game icon styling */
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    filter: drop-shadow(0 0 5px var(--neon-purple));
    transition: all 0.3s ease;
}

.portal-small {
    /* Small portal element, hidden by default */
    position: absolute;
    display: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 0;
    right: 0;
    bottom: 60px;
    left: 0;
    margin: auto;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%),
        conic-gradient(#00f, #f0f, #0ff, #00f);
    animation: rotate 5s linear infinite;
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.5);
}

.game-card:hover .game-icon {
    filter: drop-shadow(0 0 10px var(--cyber-yellow));
    transform: scale(1.05);
}

.game-title {
    /* Game title text */
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Title in carousel */
    color: var(--cyber-yellow);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.game-year {
    /* Game year text */
    font-size: 0.8rem;
    color: var(--cyber-yellow);
    opacity: 0.8;
}

/* Loading animation for async content */
.loading::after {
    /* Spinner for loading */
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {

    /* Rotation for spinner */
    to {
        transform: rotate(360deg);
    }
}

/********** Portal Section **********/
/* Portal Styling */
.landing-container {
    /* Full-screen portal container, hidden by default */
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 99;
    background-color: #0D0221;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Portal Styling */
.portal {
    /* Circular portal with gradient and animation */
    position: relative;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%),
        conic-gradient(#00f, #f0f, #0ff, #00f);
    animation: rotate 5s linear infinite;
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.5);
}

.portal-inner {
    /* Inner pulsing circle */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(0, 0, 0, 0) 80%);
    animation: pulse 2s ease-in-out infinite;
}

.portal.active .portal-inner {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 2s ease-in-out infinite;
}

/* Character Styling */
.character {
    /* Positioned character element */
    position: absolute;
    bottom: 100px;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.5s;
}

/* Start Button Styling */
#jumpBtn {
    /* Start button positioning and styling */
    position: absolute;
    bottom: 50px;
    padding: 15px 30px;
    font-size: 18px;
    background: #ff4500;
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1;
}

#jumpBtn:hover {
    background: #e03e00;
}

/* Main Content Styling */
.mainContent {
    /* Centered main content */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

/* Animations */
@keyframes rotate {

    /* Full rotation */
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    /* Pulse scale and opacity */
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes jump {

    /* Jump animation with scale and opacity */
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-300px) scale(1.5);
        opacity: 0.7;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/********** Hero Section **********/
/* Hero Section */
.cyber-hero {
    /* Hero background with border and shadow */
    background: linear-gradient(135deg, rgba(13, 2, 33, 0.5) 0%, rgba(26, 0, 56, 0.5) 100%);
    position: relative;
    padding: 8rem 1rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 4px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(211, 0, 197, 0.3);
    font-family: var(--main-font);
}

.hero-content {
    /* Content positioning */
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.glitch {
    /* Glitch text effect */
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 5.5rem;
    color: transparent;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--cyber-yellow);
    margin: 0;
    animation: glitch-effect 3s infinite alternate;
}

.glitch::before,
.glitch::after {
    /* Pseudo-elements for glitch layers */
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-dark);
}

.glitch::before {
    left: 3px;
    text-shadow: -3px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -3px 0 var(--neon-purple);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-effect {

    /* Glitch translate and skew */
    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-5px, 5px) skew(5deg);
    }

    40% {
        transform: translate(5px, -5px) skew(-3deg);
    }

    60% {
        transform: translate(-5px, 5px) skew(2deg);
    }

    80% {
        transform: translate(5px, -5px) skew(-5deg);
    }
}

@keyframes glitch-anim-1 {

    /* Random clip rect for glitch 1 */
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    10% {
        clip: rect(112px, 9999px, 76px, 0);
    }

    20% {
        clip: rect(85px, 9999px, 77px, 0);
    }

    30% {
        clip: rect(27px, 9999px, 97px, 0);
    }

    40% {
        clip: rect(64px, 9999px, 98px, 0);
    }

    50% {
        clip: rect(61px, 9999px, 85px, 0);
    }

    60% {
        clip: rect(99px, 9999px, 114px, 0);
    }

    70% {
        clip: rect(34px, 9999px, 115px, 0);
    }

    80% {
        clip: rect(98px, 9999px, 129px, 0);
    }

    90% {
        clip: rect(43px, 9999px, 96px, 0);
    }

    100% {
        clip: rect(82px, 9999px, 64px, 0);
    }
}

@keyframes glitch-anim-2 {

    /* Random clip rect for glitch 2 */
    0% {
        clip: rect(65px, 9999px, 119px, 0);
    }

    10% {
        clip: rect(25px, 9999px, 145px, 0);
    }

    20% {
        clip: rect(129px, 9999px, 102px, 0);
    }

    30% {
        clip: rect(79px, 9999px, 136px, 0);
    }

    40% {
        clip: rect(128px, 9999px, 123px, 0);
    }

    50% {
        clip: rect(92px, 9999px, 78px, 0);
    }

    60% {
        clip: rect(112px, 9999px, 67px, 0);
    }

    70% {
        clip: rect(32px, 9999px, 91px, 0);
    }

    80% {
        clip: rect(34px, 9999px, 149px, 0);
    }

    90% {
        clip: rect(142px, 9999px, 134px, 0);
    }

    100% {
        clip: rect(57px, 9999px, 74px, 0);
    }
}

.hero-subtitle {
    /* Subtitle with pulse animation */
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--cyber-light);
    margin: 2rem 0 3rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(249, 240, 2, 0.3);
    animation: subtitle-pulse 3s ease-in-out infinite;
}

@keyframes subtitle-pulse {

    /* Pulse opacity and scale */
    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.neon-underline {
    /* Underline with animation */
    position: relative;
    color: var(--cyber-yellow);
    font-weight: 600;
}

.neon-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-expand 1.5s ease-out forwards;
}

@keyframes underline-expand {

    /* Expand underline */
    to {
        transform: scaleX(1);
    }
}

.cyber-button {
    /* Cyber button with border and hover effects */
    position: relative;
    display: flex;
    max-width: fit-content;
    text-align: center;
    justify-content: center;
    background: transparent;
    text-decoration: none;
    margin: 5rem auto;
    color: var(--cyber-yellow);
    border: 3px solid var(--neon-purple);
    padding: 1.2rem 3rem;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(211, 0, 197, 0.5);
    z-index: 1;
}

.cyber-button:hover {
    background: rgba(211, 0, 197, 0.2);
    color: var(--cyber-light);
    box-shadow: 0 0 25px var(--neon-purple), 0 0 35px rgba(211, 0, 197, 0.5);
    transform: translateY(-3px);
}

.cyber-button::before {
    /* Hover gradient swipe */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 0, 197, 0.4), transparent);
    transition: 0.5s;
}

.cyber-button:hover::before {
    left: 100%;
}

.button-hologram {
    /* Hologram effect below button */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: var(--neon-purple);
    filter: blur(15px);
    opacity: 0;
    transition: all 0.4s ease;
}

.cyber-button:hover .button-hologram {
    opacity: 0.7;
    bottom: -15px;
}

.cyber-button-inline {
    /* Cyber button with border and hover effects */
    /* Cyber button with border and hover effects */
    position: relative;
    display: flex;
    max-width: fit-content;
    justify-content: center;
    background: transparent;
    text-decoration: none;
    color: var(--cyber-yellow);
    margin: auto;
    border: 3px solid var(--neon-purple);
    padding: 1.2rem 3rem;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(211, 0, 197, 0.5);
    z-index: 1;
}

.cyber-button-inline:hover {
    background: rgba(211, 0, 197, 0.2);
    color: var(--cyber-light);
    box-shadow: 0 0 25px var(--neon-purple), 0 0 35px rgba(211, 0, 197, 0.5);
    transform: translateY(-3px);
}

.cyber-button-inline::before {
    /* Hover gradient swipe */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 0, 197, 0.4), transparent);
    transition: 0.5s;
}

.cyber-button-inline:hover::before {
    left: 100%;
}

.cyber-button-inline:hover .button-hologram {
    opacity: 0.7;
    bottom: -15px;
}

.grid-overlay {
    /* Grid background overlay with animation */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(211, 0, 197, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(211, 0, 197, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {

    /* Move grid background */
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 40px;
    }
}

.particle-field {
    /* Particle overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle-field::before {
    /* Radial gradients for particles */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, var(--neon-purple) 0%, transparent 2%),
        radial-gradient(circle at 80% 70%, var(--cyber-yellow) 0%, transparent 3%),
        radial-gradient(circle at 40% 60%, var(--neon-pink) 0%, transparent 1.5%),
        radial-gradient(circle at 60% 20%, var(--cyber-yellow) 0%, transparent 2.5%);
    opacity: 0.3;
    animation: particles-twinkle 5s infinite alternate;
}

@keyframes particles-twinkle {

    /* Twinkle opacity */
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.4;
    }
}

.cyber-circle {
    /* Large circle overlay */
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211, 0, 197, 0.1) 0%, transparent 70%);
    filter: blur(30px);
    top: -200px;
    right: -200px;
    animation: circle-pulse 8s infinite alternate;
    z-index: 1;
}

.cyber-circle-sm {
    /* Small circle overlay */
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 240, 2, 0.1) 0%, transparent 70%);
    filter: blur(20px);
    bottom: -100px;
    left: -100px;
    animation: circle-pulse 6s infinite alternate-reverse;
    z-index: 1;
}

@keyframes circle-pulse {

    /* Pulse scale and opacity for circles */
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/********** Additional Global Variables **********/
:root {
    /* Additional or repeated variables */
    --neon-purple: #D300C5;
    --cyber-yellow: #F9F002;
    --cyber-dark: #0D0221;
    --cyber-light: #E5E5E5;
    --neon-pink: #FF2A6D;
}

/********** Stats Section **********/
.cyber-stats {
    /* Stats background and shadow */
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(13, 2, 33, 0.9) 0%, rgba(26, 0, 56, 0.9) 100%);
    box-shadow: 0 0 40px rgba(211, 0, 197, 0.2);
    overflow: hidden;
    font-family: var(--main-font);
}

.stat-grid {
    /* Grid for stats cards */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stat-card {
    /* Individual stat card */
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 5px;
    background: rgba(13, 2, 33, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px var(--neon-purple), 0 0 60px rgba(211, 0, 197, 0.3);
    border-color: var(--cyber-yellow);
}

.stat-value-container {
    /* Container for value and unit */
    position: relative;
    margin-bottom: 1rem;
}

.stat-value {
    /* Large stat number */
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cyber-yellow);
    font-family: var(--main-font);
    text-shadow: 0 0 15px rgba(249, 240, 2, 0.5);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-value {
    text-shadow: 0 0 25px var(--cyber-yellow);
    color: #fff;
}

.stat-unit {
    /* Unit label with animation */
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.8rem;
    color: var(--neon-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--cyber-dark);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--neon-purple);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-unit {
    opacity: 1;
    transform: translateY(0);
}

.stat-label {
    /* Stat description */
    font-size: 1.1rem;
    color: var(--cyber-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-label {
    color: var(--cyber-yellow);
}

.card-hologram {
    /* Hologram effect on hover */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--neon-purple);
    filter: blur(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.stat-card:hover .card-hologram {
    opacity: 0.8;
    height: 15px;
}

.card-glitch {
    /* Glitch scan effect */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(211, 0, 197, 0.1) 50%,
            transparent 55%);
    background-size: 200% 200%;
    opacity: 0;
    pointer-events: none;
    animation: glitch-scan 4s linear infinite;
}

.stat-card:hover .card-glitch {
    opacity: 0.3;
}

@keyframes glitch-scan {

    /* Scan movement */
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 100%;
    }
}

[data-glitch] {
    position: relative;
}

[data-glitch]::before {
    /* Additional glitch layer */
    content: attr(data-glitch);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: inherit;
    color: var(--neon-pink);
    overflow: hidden;
    clip-path: polygon(0 25%, 100% 65%, 100% 75%, 0 35%);
    animation: glitch-anim 5s infinite alternate;
}

@keyframes glitch-anim {

    /* Glitch translate animation */
    0% {
        opacity: 0.1;
        transform: translateX(0);
    }

    20% {
        opacity: 0.3;
        transform: translateX(-5px);
    }

    40% {
        opacity: 0.1;
        transform: translateX(5px);
    }

    60% {
        opacity: 0.3;
        transform: translateX(-5px);
    }

    80% {
        opacity: 0.1;
        transform: translateX(5px);
    }

    100% {
        opacity: 0.3;
        transform: translateX(0);
    }
}

.stats-grid-overlay {
    /* Grid overlay for stats */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(211, 0, 197, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(211, 0, 197, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    animation: grid-move 30s linear infinite;
}

.stats-connection {
    /* Bottom connection line with pulse */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    box-shadow: 0 0 10px var(--neon-purple);
    animation: connection-pulse 3s infinite;
}

@keyframes connection-pulse {

    /* Pulse opacity */
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/********** Activities Section **********/
/* ************************************************************************************** */
.activities-grid {
    /* Grid for activities cards */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.activities-card {
    /* Similar to game-card */
    position: relative;
    background: rgba(13, 2, 33, 0.7);
    border: 1px solid var(--neon-purple);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(211, 0, 197, 0.3);
}

.activities-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--menu-glow);
    border-color: var(--cyber-yellow);
}

.activities-card::before {
    /* Hover gradient */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            transparent,
            transparent,
            transparent,
            var(--neon-purple),
            transparent,
            transparent);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.activities-card:hover::before {
    opacity: 0.6;
    animation: glow 1.5s infinite;
}

@keyframes glow {

    /* Glow movement (similar to shine) */
    0% {
        transform: rotate(30deg) translate(-10%, -10%);
    }

    100% {
        transform: rotate(30deg) translate(10%, 10%);
    }
}

.activities-icon {
    /* Icon styling */
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    filter: drop-shadow(0 0 5px var(--neon-purple));
    transition: all 0.3s ease;
}

.activities-card:hover .activities-icon {
    filter: drop-shadow(0 0 10px var(--cyber-yellow));
    transform: scale(1.05);
}

.activities-title {
    /* Title text */
    font-weight: 600;
    color: var(--cyber-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activities-year {
    /* Year text */
    font-size: 0.8rem;
    color: var(--cyber-yellow);
    opacity: 0.8;
}

/********** Trending Articles and Footer **********/
/* Trending Articles */
.articles-grid {
    /* Grid for articles */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem
}

.article-card {
    /* Article card background */
    border: 1px solid var(--neon-purple);
    text-decoration: none;
    color: var(--cyber-light);
    padding: 1rem;
    border-radius: 8px;
}

.article-card:hover {
    animation: easeCards 2s ease-in-out infinite;
}

@keyframes easeCards {

    /* Keyframes for siren translation */
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(3px);
        box-shadow: var(--menu-glow);
    }

    100% {
        transform: translateX(0px);
    }
}

.article-card h3 {
    /* Heading margin and size */
    margin-bottom: .4rem;
    font-size: 1rem
}

.article-card p {
    /* Paragraph styling */
    font-size: .85rem;
    color: var(--cyber-yellow);
    opacity: .9
}

.trailer-section {
    padding: 4rem 2rem;
    text-align: center;
}

.trailer-iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
    box-shadow: var(--glow-effect);
}

/* News section styles */
.news-section {
    padding: 4rem 2rem;
    margin: 0 auto;
}

.news-card {
    background: rgba(13, 2, 33, 0.7);
    display: block;
    text-decoration: none;
    max-width: 1200px;
    color: var(--cyber-light);
    margin: auto;
    border: 1px solid var(--neon-purple);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--menu-glow);
}

.news-title {
    color: var(--cyber-yellow);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.news-date {
    color: var(--neon-pink);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

footer {
    /* Footer text and border */
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    border-top: 1px dashed rgba(255, 255, 255, 0.02);
    margin-top: 2rem
}

/********** Carousel Section **********/
/* Carousel */
.cyber-carousel {
    margin: 3rem auto;
}

.carousel-container {
    /* Carousel wrapper with perspective */
    position: relative;
    width: 1200px;
    max-width: 100%;
    overflow: hidden;
    height: 500px;
    perspective: 2000px;
    margin: 2rem auto;
}

.carousel-title {
    /* Title with underline */
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cyber-yellow);
    text-shadow: var(--glow-effect);
    position: relative;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--neon-purple);
    box-shadow: var(--glow-effect);
}

.carousel {
    /* 3D carousel */
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}

.carousel-item {
    /* Individual carousel item */
    position: absolute;
    width: 300px;
    height: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 10px;
    overflow: hidden;
    background-color: #0d0221;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    filter: brightness(0.7);
}

.carousel-item img {
    /* Image fit */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-item::before {
    /* Gradient overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(13, 2, 33, 0.9));
    z-index: 1;
}

.carousel-item::after {
    /* Hover gradient */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(211, 0, 197, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item:hover::after {
    opacity: 1;
}

.game-info {
    /* Info reveal on hover */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-item:hover .game-info {
    transform: translateY(0);
    opacity: 1;
}

.game-year {
    /* Year in carousel */
    font-size: 1rem;
    color: var(--cyber-light);
    opacity: 0.8;
}

.nav-dots {
    /* Dots navigation */
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 15px;
}

.dot {
    /* Individual dot */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyber-light);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--neon-purple);
    opacity: 1;
    box-shadow: 0 0 10px var(--neon-purple);
    transform: scale(1.2);
}

.carousel-controls {
    /* Prev/next buttons */
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    transform: translateY(-50%);
}

.carousel-btn {
    /* Button styling */
    background: rgba(13, 2, 33, 0.7);
    color: var(--cyber-yellow);
    border: 2px solid var(--neon-purple);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    box-shadow: 0 0 10px rgba(211, 0, 197, 0.5);
}

.carousel-btn:hover {
    background: var(--neon-purple);
    color: var(--cyber-dark);
    transform: scale(1.1);
}

/* CRT Scanlines Effect */
.scanlines {
    /* Global scanlines overlay */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 100;
    opacity: 0.2;
}

/********** Responsive Adjustments for Hero, Nav, and Carousel **********/
/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }

    .logo-image {
        height: 50px;
    }

    .menu-toggle {
        display: block;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        display: none;
    }

    .game-grid.active {
        display: grid;
    }

    .game-card {
        padding: 0.75rem;
        width: 70%;
        margin: 0 auto;
    }

    .game-icon {
        width: 60px;
        height: 60px;
    }

    .glitch {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .cyber-button {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    .cyber-nav {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .cyber-activities {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-value {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .carousel-container {
        height: 400px;
    }

    .carousel-item {
        width: 250px;
        height: 350px;
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-item {
        width: 200px;
        height: 300px;
    }

    .carousel-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .logo-image {
        height: 40px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-item {
        width: 180px;
        height: 250px;
    }

    .game-info {
        padding: 1rem;
    }

    .game-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .carousel-container {
        height: 400px;
    }

    .carousel-item {
        width: 250px;
        height: 350px;
    }
}

/********** Newsletter **********/
/* Additional Features CSS */
/* Newsletter Signup */
.newsletter-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(13, 2, 33, 0.5) 0%, rgba(26, 0, 56, 0.5) 100%);
    margin: auto;
    border-radius: 4px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 1rem auto;
}

.newsletter-input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--siren-blue);
    color: var(--cyber-light);
    font-size: 1rem;
    border-radius: 4px;
    flex: 1;
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-button {
        width: 100%;
    }
}

/********** Exploration **********/
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background: rgba(13, 2, 33, 0.8);
    border: 1px solid var(--neon-purple);
    border-radius: 8px;
    max-width: 90%;
    padding: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--cyber-yellow);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(211, 0, 197, 0.2);
    color: var(--cyber-light);
}

.info-card li:before {
    content: "▸ ";
    color: var(--neon-purple);
    font-weight: bold;
}

.info-card a {
    color: var(--cyber-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.info-card a:hover {
    color: var(--cyber-yellow);
    text-shadow: 0 0 10px rgba(249, 240, 2, 0.5);
}

.info-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon-purple);
    transition: width 0.3s ease;
}

.info-card a:hover::after {
    width: 100%;
}

/********** Footer **********/
/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    color: var(--cyber-light);
    font-size: 2rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--neon-purple);
}

/* Lazy Loading Images */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/*  */