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

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #333333;
    --hover-color: #555555;
    --border-color: #222222;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

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

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-link:hover,
.nav-link.active {
    color: #888;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 60px;
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, #111111 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--text-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Featured Quiz Section */
.featured-quiz {
    padding: 80px 0;
    background-color: #111111;
}

.featured-quiz h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-quiz > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
}

/* Quiz Container */
.quiz-container {
    background-color: var(--accent-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.quiz-header h3 {
    font-size: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.quiz-info {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    color: #cccccc;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--hover-color);
    background-color: #111111;
}

.quiz-option.selected {
    border-color: var(--text-color);
    background-color: #222222;
}

.quiz-option.correct {
    border-color: var(--success-color);
    background-color: rgba(34, 197, 94, 0.1);
}

.quiz-option.incorrect {
    border-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.1);
}

.quiz-controls {
    text-align: center;
}

.quiz-btn {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    text-decoration: none;
    display: inline-block;
}

.quiz-btn:hover {
    background-color: #cccccc;
    transform: translateY(-2px);
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quiz-result {
    text-align: center;
    padding: 2rem;
}

.quiz-result h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--success-color);
}

.quiz-result p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Categories Grid */
.quiz-categories {
    padding: 80px 0;
}

.quiz-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.category-card {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--hover-color);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-color);
}

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

/* Quiz List Styles */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.quiz-card {
    background-color: var(--accent-color);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.quiz-card:hover {
    transform: translateY(-5px);
    border-color: var(--hover-color);
}

.quiz-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.quiz-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quiz-card .quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

/* Content Pages */
.content-page {
    margin-top: 60px;
    padding: 100px 0;
}

.content-page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.content-page h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: #cccccc;
}

.content-page h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #cccccc;
}

.content-page ul,
.content-page ol {
    margin: 1rem 0 1rem 2rem;
    color: #cccccc;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 2rem auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--hover-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .quiz-grid {
        grid-template-columns: 1fr;
    }

    .content-page h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .quiz-container {
        padding: 1.5rem;
    }

    .category-card,
    .quiz-card {
        padding: 1.5rem;
    }
}