* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #ddd6fe;
    --bg-dark: #0f0f23;
    --bg-card: #1a1a2e;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -2;
}

.background-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.2) 0%, transparent 50%);
    animation: floatingOrbs 8s ease-in-out infinite;
}

.background-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(108, 92, 231, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(253, 121, 168, 0.1) 50%, transparent 70%);
    animation: movingLights 12s linear infinite;
}

@keyframes floatingOrbs {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3; 
    }
    25% { 
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.5; 
    }
    50% { 
        transform: translate(-15px, 20px) scale(0.9);
        opacity: 0.4; 
    }
    75% { 
        transform: translate(30px, 10px) scale(1.05);
        opacity: 0.6; 
    }
}

@keyframes movingLights {
    0% { transform: translateX(-100%) rotate(0deg); }
    100% { transform: translateX(100%) rotate(360deg); }
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.download-btn {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Hind Siliguri', 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.title-main {
    display: block;
    color: var(--text-light);
}

.title-highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { 
        filter: brightness(1) drop-shadow(0 0 5px rgba(102, 126, 234, 0.5));
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
        transform: scale(1.02);
    }
    100% { 
        filter: brightness(1) drop-shadow(0 0 5px rgba(102, 126, 234, 0.5));
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
    animation: buttonPulse 0.6s ease;
}

@keyframes buttonPulse {
    0% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-5px) scale(1.08); }
    100% { transform: translateY(-3px) scale(1.05); }
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.6s both;
}

.hero-stats .stat {
    animation: bounceIn 0.8s ease-out;
}

.hero-stats .stat:nth-child(1) { animation-delay: 0.8s; }
.hero-stats .stat:nth-child(2) { animation-delay: 1s; }
.hero-stats .stat:nth-child(3) { animation-delay: 1.2s; }

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
}

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

.feature-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(108, 92, 231, 0.3);
    background: rgba(26, 26, 46, 0.95);
}

.feature-card:hover .feature-icon {
    animation: float 2s ease-in-out infinite;
    transform: scale(1.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.6;
}

/* Tournaments Section */
.tournaments {
    padding: 100px 0;
}

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

.tournament-card {
    background: rgba(26, 26, 46, 0.9);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(253, 121, 168, 0.3);
    transition: all 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(253, 121, 168, 0.3);
    background: rgba(26, 26, 46, 0.95);
}

.tournament-game {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.tournament-prize {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.tournament-date,
.tournament-players {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 20px;
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    width: 100%;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.download-content h2 {
    color: white;
}

.download-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.download-buttons {
    margin-bottom: 40px;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
    flex-direction: column;
    gap: 5px;
}

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.info-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 15px;
}

.link-group h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: var(--text-light);
    opacity: 0.7;
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.link-group a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(108, 92, 231, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    opacity: 0.6;
}

.animate-in {
    animation: sectionSlideIn 1s ease-out;
}

@keyframes sectionSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-img {
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(108, 92, 231, 0.4));
}

/* Add loading animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced button animations */
.btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a:not(.download-btn) {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .download-info {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 15px 40px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .tournament-card {
        padding: 25px 20px;
    }
}