/* ========================================
   FREE FIRE CHRISTMAS EDITION - STYLESHEET
   ======================================== */

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

:root {
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --primary: #dc2626;
    --primary-glow: rgba(220, 38, 38, 0.4);
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.4);
    --green: #22c55e;
    --blue: #3b82f6;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(180deg, #0a0e1a 0%, #050810 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
}

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

/* ========== SNOWFALL ========== */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) translateX(0); opacity: 1; }
    100% { transform: translateY(110vh) translateX(20px); opacity: 0.3; }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), #f97316);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo-text h1 {
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(220, 38, 38, 0.2);
    color: var(--primary);
}

.menu-btn {
    display: none;
    background: var(--bg-card);
    border: none;
    color: var(--text);
    font-size: 24px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .menu-btn { display: block; }
}

/* ========== HERO ========== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 100px 16px 50px;
}

 .hero-bg {
     position: absolute;
     inset: 0;
     background:
         linear-gradient(135deg, rgba(220, 38, 38, 0.35), rgba(251, 191, 36, 0.18)),
         url('../images/hero-banner.jpg');
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     opacity: 0.55;
 }

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

.badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(48px, 12vw, 100px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(20px, 5vw, 40px);
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-fire {
    background: linear-gradient(135deg, var(--primary), #f97316);
    color: white;
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-fire:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--primary-glow);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #0a0e1a;
    box-shadow: 0 0 30px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--gold-glow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 60px 0;
}

.section-dark {
    background: rgba(17, 24, 39, 0.5);
}

.section-title {
    font-size: clamp(24px, 5vw, 36px);
    text-align: center;
    margin-bottom: 10px;
}

.gradient-fire {
    background: linear-gradient(135deg, var(--primary), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-gold {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ========== FEATURE CARDS ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.4));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-icon.blue { background: linear-gradient(135deg, var(--blue), #8b5cf6); }
.feature-icon.red { background: linear-gradient(135deg, var(--primary), #f97316); }
.feature-icon.green { background: linear-gradient(135deg, var(--green), #10b981); }
.feature-icon.gold { background: linear-gradient(135deg, var(--gold), #f59e0b); }

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.explore {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ========== CODE CARDS ========== */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.code-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.4));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.code-card:hover {
    box-shadow: 0 0 30px var(--gold-glow);
}

.code-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--green);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0 16px 0 8px;
}

.code-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.code-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.code-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ========== CTA CARD ========== */
.cta-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.4));
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 0 40px var(--primary-glow);
}

.cta-card h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
    background: rgba(17, 24, 39, 0.5);
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: 50px;
}

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

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col a, .footer-col p {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero { min-height: 80vh; padding-top: 80px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-card { padding: 16px; }
    .feature-icon { width: 44px; height: 44px; font-size: 22px; }
    .feature-card h3 { font-size: 14px; }
    .feature-card p { display: none; }
}
