:root {
    --bg-color: #1a1a2e;
    --card-bg-color: #2b2b40;
    --primary-color: #e94560;
    --secondary-color: #4da6ff;
    --text-color: #e5e5e5;
    --accent-color: #e94560;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* --- Navigation --- */
header {
    background-color: var(--card-bg-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav .logo {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- General Styles --- */
h1, h2, h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

/* --- Buttons --- */
.btn {
    padding: 1rem 2.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(77, 166, 255, 0.2);
}

.secondary-btn:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
    color: var(--bg-color);
    box-shadow: 0 6px 15px rgba(77, 166, 255, 0.4);
}

/* --- Sections --- */
section {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('quizz background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 25%;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.6);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}


.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.3rem;
    margin: 1.5rem 0 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Features Section */
#features {
    background-color: var(--card-bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.feature-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.feature-card p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Commands Section */
#commands {
    background-color: var(--bg-color);
}

.commands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.command-group {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(77, 166, 255, 0.2);
}

.command-group h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.command-group p {
    margin: 0.75rem 0;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    display: block;
    word-wrap: break-word;
    font-size: 0.95rem;
}

/* News Section */
#news {
    background-color: var(--card-bg-color);
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-item {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.news-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Support Section */
#support {
    background-color: var(--card-bg-color);
}

#support p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}


/* Footer */
footer {
    background-color: var(--bg-color);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.95rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .secondary-btn {
        margin-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .btn {
        width: 80%;
        margin: 0 auto;
    }

    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }

    section {
        padding: 4rem 1rem;
    }
    .news-container, .features-grid, .commands-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-logo {
        width: 120px;
        height: 120px;
    }
    nav .logo {
        font-size: 1.25rem;
    }
}