/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #FF6B35;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #FF6B35;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Hero Gameplay Section */
.hero-gameplay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-gameplay-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gameplay-content h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out;
}

.gameplay-content p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.play-demo-btn {
    background: #FFE066;
    color: #333;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.play-demo-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Interactive Demo Game */
.demo-game {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideInRight 1s ease-out;
}

.game-screen {
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, #87CEEB 0%, #98FB98 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #FF6B35;
}

.conveyor-belt {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        #8B4513 0px,
        #8B4513 20px,
        #A0522D 20px,
        #A0522D 40px
    );
    animation: moveBelt 2s linear infinite;
}

.game-egg {
    position: absolute;
    width: 30px;
    height: 40px;
    background: #FFE066;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fallEgg 3s linear infinite;
}

.game-chicken {
    position: absolute;
    top: 20px;
    width: 60px;
    height: 60px;
    background: #FF6B35;
    border-radius: 50%;
    animation: chickenBob 2s ease-in-out infinite;
}

.score-display {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.demo-instruction {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

/* Game Mechanics Section */
.game-mechanics {
    padding: 6rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mechanic-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mechanic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.1), transparent);
    transition: left 0.5s ease;
}

.mechanic-card:hover::before {
    left: 100%;
}

.mechanic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mechanic-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
}

.interactive-demo {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-demo:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.demo-details {
    display: none;
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.demo-details.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.demo-details li {
    margin-bottom: 0.5rem;
}

.interactive-demo {
    cursor: pointer;
    color: #FF6B35;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.interactive-demo:hover {
    color: #e55a24;
}

/* Game Modes Section */
.game-modes {
    padding: 6rem 0;
    background: linear-gradient(135deg, #FF6B35 0%, #FFE066 100%);
    color: #fff;
}

.modes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.modes-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.mode-tab {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.mode-tab.active {
    background: #fff;
    color: #FF6B35;
    transform: scale(1.05);
}

.mode-content {
    display: none;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.mode-content.active {
    display: block;
}

.mode-preview {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 2rem;
}

.mode-preview-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

/* Progression System */
.progression {
    padding: 6rem 0;
    background: #2C3E50;
    color: #fff;
}

.progression h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #FFE066;
}

.progression-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.level-tracker {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: center;
}

.level-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.level-progress {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, #FFE066, #FF6B35);
    border-radius: 10px;
    transition: width 2s ease;
    animation: fillProgress 3s ease-in-out infinite alternate;
}

.upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.upgrade-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upgrade-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.upgrade-cost {
    margin-top: 1rem;
}

/* Strategies Section */
.strategies {
    padding: 6rem 0;
    background: #fff;
}

.strategies-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.strategy-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.strategy-tab {
    background: #f8f9fa;
    color: #333;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.strategy-tab.active {
    background: #FF6B35;
    color: #fff;
}

.strategy-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.strategy-content.active {
    display: block;
}

.tip-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 1rem 0;
    border-left: 5px solid #FF6B35;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Statistics Section */
.statistics {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #FFE066;
    margin-bottom: 0.5rem;
}

.achievement-showcase {
    margin-top: 4rem;
    text-align: center;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.achievement-badge {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveBelt {
    from { background-position: 0 0; }
    to { background-position: 40px 0; }
}

@keyframes fallEgg {
    0% { top: -40px; left: 20%; }
    100% { top: 200px; left: 80%; }
}

@keyframes chickenBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fillProgress {
    0% { width: 30%; }
    100% { width: 85%; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-gameplay-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gameplay-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modes-tabs, .strategy-tabs {
        flex-direction: column;
        align-items: center;
    }
}