:root {
    /* Colors */
    --bg-dark: #0D0D0D;
    --bg-dark-alt: #1A1A1A;
    --neon-red: #FF3C3C;
    --neon-orange: #FF8C42;
    --electric-blue: #00FFFF;
    --text-main: #E0E0E0;
    --text-muted: #888888;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-stats: 'Rajdhani', sans-serif;
}

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

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 5rem 0;
}

.text-gradient {
    background: linear-gradient(45deg, var(--neon-red), var(--neon-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 60, 60, 0.3);
}

/* Typography Classes */
.stat-number {
    font-family: var(--font-stats);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 140, 66, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.02);
    transform: translateY(-5px);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-red), var(--neon-orange));
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 60, 60, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(255, 140, 66, 0.6);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
}

.btn-secondary:hover {
    background: rgba(255, 140, 66, 0.1);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

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

.main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--neon-orange);
    text-shadow: 0 0 8px rgba(255, 140, 66, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,60,60,0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.particle {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s infinite ease-in-out alternate;
}

.p1 { top: 20%; left: 15%; animation-delay: 0s; color: rgba(255, 60, 60, 0.2); }
.p2 { top: 70%; left: 10%; animation-delay: 1s; color: rgba(255, 140, 66, 0.2); }
.p3 { top: 30%; right: 15%; animation-delay: 2s; color: rgba(0, 255, 255, 0.2); }
.p4 { top: 80%; right: 20%; animation-delay: 3s; color: rgba(255, 255, 255, 0.1); }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(10deg); }
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Features */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-muted);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

.icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.red-glow { color: var(--neon-red); box-shadow: 0 0 20px rgba(255, 60, 60, 0.2); }
.orange-glow { color: var(--neon-orange); box-shadow: 0 0 20px rgba(255, 140, 66, 0.2); }
.blue-glow { color: var(--electric-blue); box-shadow: 0 0 20px rgba(0, 255, 255, 0.2); }

/* Challenge Cards */
.challenge-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    height: 180px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.3s;
}

.challenge-card:hover .card-image img {
    opacity: 1;
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.level-easy { color: #4CAF50; border: 1px solid #4CAF50; }
.level-medium { color: var(--neon-orange); border: 1px solid var(--neon-orange); }
.level-hard { color: var(--neon-red); border: 1px solid var(--neon-red); }

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.fill-red { background: var(--neon-red); box-shadow: 0 0 10px var(--neon-red); }
.fill-orange { background: var(--neon-orange); box-shadow: 0 0 10px var(--neon-orange); }
.fill-blue { background: var(--electric-blue); box-shadow: 0 0 10px var(--electric-blue); }

.view-all {
    color: var(--neon-orange);
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.view-all:hover {
    color: #fff;
}

/* Squad Cards */
.squad-card {
    text-align: center;
}

.squad-header {
    margin-bottom: 1.5rem;
}

.squad-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    background: #222;
    border: 2px solid rgba(255,255,255,0.1);
}

.squad-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat .value {
    color: #fff;
}

.squad-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 45px;
}

.highlight-glow {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

/* Leaderboard */
.leaderboard-wrapper {
    padding: 2rem;
}

.leaderboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.table-responsive {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    font-family: var(--font-heading);
    color: var(--text-muted);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.leaderboard-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
}

.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #222;
    font-family: var(--font-stats);
    font-weight: bold;
}

.rank-1 .rank-badge { background: linear-gradient(45deg, #FFD700, #FFA500); color: #000; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
.rank-2 .rank-badge { background: linear-gradient(45deg, #C0C0C0, #E0E0E0); color: #000; }
.rank-3 .rank-badge { background: linear-gradient(45deg, #CD7F32, #A0522D); color: #fff; }

.squad-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
}

.avatar-small {
    width: 30px;
    height: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.highlight-points {
    color: var(--neon-orange);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 140, 66, 0.3);
}

/* Blog */
.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--neon-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content h3 {
    margin-top: 0.5rem;
    font-size: 1.3rem;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--electric-blue);
    font-weight: bold;
    font-family: var(--font-heading);
}

.read-more:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Contact & Pages */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.text-content h2 {
    margin-top: 2rem;
    color: #fff;
}

.mt-4 { margin-top: 1.5rem; }

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

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--neon-orange);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.2);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(255, 60, 60, 0.2);
    border-color: var(--neon-red);
}

/* Footer */
footer {
    background: #080808;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--neon-orange);
    color: #fff;
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.5);
}

.footer-links h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--neon-red);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.animate-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .mobile-menu-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        transition: 0.3s ease;
    }
    
    .main-nav.active { left: 0; }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .main-nav a { font-size: 1.2rem; }
    
    .header-actions { display: none; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .section-padding { padding: 3rem 0; }
}