@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --dark-bg: #121212;
    --light-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header */
.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9)), url('a.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px var(--shadow-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.cta-buttons .btn {
    margin: 0 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background-color: var(--text-muted);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Features Section */
#features {
    background-color: var(--light-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* How to Play Section */
.how-to-play-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 2rem;
    flex: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline li {
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline li.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 0.2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--dark-bg);
}

.timeline h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.game-image {
    flex: 1;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.game-image.visible {
    opacity: 1;
    transform: scale(1);
}

.game-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* Elements Section */
#elements {
    background-color: var(--dark-bg);
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.element-card {
    background-color: var(--light-bg);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.element-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.element-card:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.element-card img {
    max-width: 80%;
    max-height: 80%;
}

/* Source Section */
#source {
    background-color: var(--light-bg);
    text-align: center;
}

.source-content {
    max-width: 800px;
    margin: 0 auto;
}

.notice {
    background-color: rgba(255, 255, 0, 0.1);
    border-left: 4px solid yellow;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: left;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0.5rem 0;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero {
        height: auto;
        padding: 8rem 0;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 80%;
        margin-bottom: 1rem;
    }

    .how-to-play-content {
        flex-direction: column;
    }
}
