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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky navbar */
}

:root {
    --primary-color: #1a4d6d;
    --secondary-color: #2d7a9f;
    --accent-color: #ffd700;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #f9f9f9;
    --border-color: #ddd;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-logo {
    font-size: 1.8rem;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.nav-menu a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a4d6d 0%, #2d7a9f 50%, #4a9bc5 100%);
    color: var(--text-light);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "42";
    position: absolute;
    font-size: 20rem;
    font-weight: bold;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Sections */
.section {
    background: var(--card-bg);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Info Box */
.info-box {
    background: #fff9e6;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(145deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

.feature-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Awards Section */
.award-section {
    background: linear-gradient(145deg, #fff 0%, #f0f8ff 100%);
}

.award-box {
    background: white;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.award-box:hover {
    transform: scale(1.02);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.award-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.award-detail {
    color: #666;
    font-style: italic;
}

.footnote {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Specifications */
.specs {
    background: #f5f5f5;
}

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

.spec-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.spec-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* TeamSpeak Section Styles */
.server-address {
    background: #e6f3ff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.05em;
}

.password-game {
    background: linear-gradient(145deg, #fff9e6 0%, #fff5d6 100%);
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 2rem 0;
}

.password-game h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.game-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.05em;
}

.quiz-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.question-block {
    margin-bottom: 1.5rem;
}

.question {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.05em;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: #e6f3ff;
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.radio-text {
    font-size: 1.05em;
    color: var(--text-dark);
}

.radio-label:has(input:checked) {
    background: #e6f3ff;
    border-color: var(--secondary-color);
    border-width: 3px;
}

.question-block input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.question-block input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.game-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.05em;
}

.game-result.success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.game-result.partial {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.game-result.fail {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.server-details {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-box {
    background: linear-gradient(145deg, #d4edda 0%, #c3e6cb 100%) !important;
    border: 3px solid #28a745 !important;
}

.connection-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.connection-info p {
    margin: 0.5rem 0;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: linear-gradient(145deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.step-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-card ol {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.step-card ol li {
    margin-bottom: 0.5rem;
}

.step-card .note {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 0.95em;
}

.step-card a {
    color: var(--secondary-color);
    font-weight: bold;
}

.connect-steps {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    margin-top: 1.5rem;
}

.connect-steps p strong {
    color: var(--primary-color);
    font-size: 1.15em;
    display: block;
    margin: 1.5rem 0 0.5rem 0;
}

.connect-steps p:first-child strong {
    margin-top: 0;
}

.connect-steps ol {
    margin-left: 1.5rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.connect-steps ol li {
    margin-bottom: 0.5rem;
}

#teamspeak h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-note {
    font-style: italic;
    font-size: 1.1rem;
    margin: 1rem 0 !important;
}

.footer-small {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 1rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

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

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

    .hero {
        padding: 3rem 1rem;
    }

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

    .section {
        padding: 1.5rem 1rem;
    }
}
