/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ice-blue: #a8e6ff;
    --steel-grey: #3a4a59;
    --neon-cyan: #00fff7;
    --gunmetal-black: #1c1f26;
    --electric-white: #e6f7ff;
    --frost-glow: rgba(168, 230, 255, 0.3);
    --neon-glow: rgba(0, 255, 247, 0.5);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--gunmetal-black) 0%, var(--steel-grey) 100%);
    color: var(--electric-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-glow);
}

/* Frost Particles */
.frost-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.frost-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="%23a8e6ff" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="60" r="1.5" fill="%2300fff7" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="4s" repeatCount="indefinite"/></circle><circle cx="60" cy="80" r="1" fill="%23a8e6ff" opacity="0.2"><animate attributeName="opacity" values="0.2;0.7;0.2" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Header */
.main-header {
    background: rgba(28, 31, 38, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-cyan);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-glow);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--electric-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    margin-top: 80px;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gunmetal-black) 0%, var(--steel-grey) 50%, var(--gunmetal-black) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--ice-blue), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-text {
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px var(--neon-glow); }
    25% { text-shadow: 2px 0 var(--neon-cyan), -2px 0 var(--ice-blue); }
    50% { text-shadow: -2px 0 var(--neon-cyan), 2px 0 var(--ice-blue); }
    75% { text-shadow: 0 0 10px var(--neon-glow); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--ice-blue);
}

.cta-button,
.ice-crack-btn {
    background: linear-gradient(45deg, var(--neon-cyan), var(--ice-blue));
    color: var(--gunmetal-black);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover,
.ice-crack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--neon-glow);
}

.cta-button:hover::before,
.ice-crack-btn:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: crack 0.6s ease-out;
}

@keyframes crack {
    0% { width: 0; height: 0; }
    50% { width: 100%; height: 100%; }
    100% { width: 200%; height: 200%; opacity: 0; }
}

.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--neon-cyan) 49%, var(--neon-cyan) 51%, transparent 52%);
    opacity: 0.1;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Games Showcase */
.games-showcase {
    padding: 6rem 0;
    background: var(--gunmetal-black);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-card {
    background: rgba(58, 74, 89, 0.3);
    border: 1px solid var(--ice-blue);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--frost-glow);
    border-color: var(--neon-cyan);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-image {
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.game-info p {
    color: var(--ice-blue);
    margin-bottom: 1rem;
}

.play-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-cyan), var(--ice-blue));
    color: var(--gunmetal-black);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--neon-glow);
}

/* Community Highlights */
.community-highlights {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--steel-grey) 0%, var(--gunmetal-black) 100%);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: rgba(168, 230, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--neon-cyan) 49%, var(--neon-cyan) 51%, transparent 52%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-card:hover::before {
    opacity: 0.1;
    animation: scan 2s linear infinite;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-glow));
}

.highlight-card h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.highlight-card p {
    color: var(--ice-blue);
}

/* Upcoming Events */
.upcoming-events {
    padding: 6rem 0;
    background: var(--gunmetal-black);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.event-card {
    background: rgba(58, 74, 89, 0.3);
    border: 1px solid var(--ice-blue);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-unit {
    background: rgba(0, 255, 247, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 1rem;
    min-width: 60px;
}

.time-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    font-family: 'Orbitron', monospace;
}

.time-label {
    display: block;
    font-size: 0.8rem;
    color: var(--ice-blue);
    text-transform: uppercase;
}

.event-card h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.event-card p {
    color: var(--ice-blue);
}

/* Disclaimer */
.disclaimer {
    padding: 2rem 0;
    background: rgba(0, 255, 247, 0.1);
    border-top: 1px solid var(--neon-cyan);
}

.disclaimer-content {
    text-align: center;
}

.disclaimer-content p {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: var(--gunmetal-black);
    border-top: 1px solid var(--neon-cyan);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--ice-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--steel-grey);
    color: var(--ice-blue);
}

/* Game Page Styles */
.game-container {
    margin-top: 80px;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-title {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.game-description {
    font-size: 1.2rem;
    color: var(--ice-blue);
    margin-bottom: 2rem;
}

.game-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.game-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 10px 30px var(--frost-glow);
}

.game-iframe-container {
    background: rgba(58, 74, 89, 0.3);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.game-iframe-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

.game-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.invite-btn {
    background: linear-gradient(45deg, var(--ice-blue), var(--neon-cyan));
    color: var(--gunmetal-black);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.invite-btn:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 10px 30px var(--neon-glow);
}

/* Contact Page */
.contact-form {
    background: rgba(58, 74, 89, 0.3);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(28, 31, 38, 0.8);
    border: 1px solid var(--ice-blue);
    border-radius: 10px;
    color: var(--electric-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ice-blue);
}

.submit-btn {
    background: linear-gradient(45deg, var(--neon-cyan), var(--ice-blue));
    color: var(--gunmetal-black);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--neon-glow);
}

/* Policy Pages */
.policy-content {
    background: rgba(168, 230, 255, 0.1);
    border: 1px solid var(--ice-blue);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.policy-content h2 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.policy-content h3 {
    color: var(--ice-blue);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.policy-content p,
.policy-content li {
    color: var(--electric-white);
    margin-bottom: 1rem;
}

.policy-content ul {
    padding-left: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .time-unit {
        padding: 0.5rem;
        min-width: 50px;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .game-iframe-container iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-card {
        margin: 0 1rem;
    }
    
    .contact-form {
        margin: 0 1rem;
    }
}

/* Circuit Lines Animation */
.circuit-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

.circuit-lines::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 49%, var(--neon-cyan) 50%, transparent 51%),
        linear-gradient(180deg, transparent 49%, var(--neon-cyan) 50%, transparent 51%);
    background-size: 100px 100px;
    animation: circuit-flow 10s linear infinite;
}

@keyframes circuit-flow {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100px 0, 0 100px; }
}