/* Apple-inspired color variables */
:root {
    --apple-blue: #007AFF;
    --apple-gray: #8E8E93;
    --apple-black: #1D1D1F;
    --apple-white: #F5F5F7;
    --apple-light-gray: #FAFAFA;
    --container-width: 1200px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--apple-black);
    background-color: var(--apple-white);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.site-header {
    background: linear-gradient(135deg, var(--apple-black) 0%, #2C2C2E 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--apple-light-gray);
    text-align: center;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Main content */
.main-content {
    padding: 3rem 0;
}

/* Game section */
.game-section {
    margin-bottom: 4rem;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Features section */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.feature-block {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 122, 255, 0.1);
}

.section-title {
    font-size: 2rem;
    color: var(--apple-black);
    margin-bottom: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--apple-gray);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
    color: var(--apple-blue);
}

/* Description section */
.description-section {
    background: white;
    padding: 5rem 0;
    margin: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.description-content {
    color: var(--apple-gray);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    padding: 0 2rem;
}

.description-content p {
    margin-bottom: 1.75rem;
}

/* Tips section */
.tips-section {
    margin-bottom: 5rem;
}

.tips-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tips-list {
    list-style: none;
}

.tips-list li {
    color: var(--apple-gray);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.tips-list li:hover {
    transform: translateX(5px);
    color: var(--apple-blue);
}

/* Footer */
.site-footer {
    background: var(--apple-black);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

/* Responsive design */
@media (max-width: 1200px) {
    .game-container {
        max-width: 90%;
    }

    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block,
    .tips-container {
        padding: 2rem;
    }

    .description-content {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .feature-block,
    .tips-container {
        padding: 1.5rem;
    }

    .feature-list li,
    .tips-list li {
        font-size: 1rem;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-block,
.tips-container,
.description-section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Menu */
.nav-menu {
    background-color: #333;
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0.5rem;
    }
}
