/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #FF6B6B;
}

.logo-egg {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: #FF6B6B;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Gameplay Hero Section */
.gameplay-hero {
    height: 89vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/gameplay-bg.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.3);
    animation: bounceIn 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-demo {
    position: relative;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.demo-basket {
    font-size: 3rem;
    color: #8B4513;
    animation: slideBasket 3s ease-in-out infinite;
}

.demo-eggs {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.demo-egg {
    position: absolute;
    font-size: 2rem;
    animation: demoFall 2s linear infinite;
}

/* Section Styles */
.gameplay-section {
    padding: 100px 0;
}

.alt-bg {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-icon {
    font-size: 3rem;
    color: #FF6B6B;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Controls Section */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.control-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.control-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF6B6B, #FFD700, #4ECDC4, #FF6B6B);
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-card:hover {
    transform: translateY(-10px);
}

.control-card:hover::before {
    opacity: 1;
}

.control-icon {
    font-size: 4rem;
    color: #4ECDC4;
    margin-bottom: 1.5rem;
}

.control-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.control-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Objectives Section */
.objectives-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.objective-visual {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #4ECDC4, #FFD700);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
}

.falling-eggs-demo {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.egg-item {
    position: absolute;
    font-size: 2rem;
    animation: objectiveFall 3s linear infinite;
}

.egg-item:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.egg-item:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.egg-item:nth-child(3) {
    left: 80%;
    animation-delay: 2s;
}

.basket-demo {
    font-size: 4rem;
    color: #8B4513;
    animation: slideBasket 3s ease-in-out infinite;
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.objective-item:hover {
    transform: translateX(10px);
}

.objective-item i {
    font-size: 2rem;
    color: #FF6B6B;
    min-width: 40px;
}

.objective-item h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.objective-item p {
    color: #666;
    font-size: 1rem;
}

/* Scoring Section */
.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.score-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.score-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.score-card h3 {
    font-family: 'Fredoka One', cursive;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.score-points {
    font-size: 2rem;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.score-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Power-ups Guide */
.powerups-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.powerup-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.powerup-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.powerup-visual {
    min-width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FF6B6B, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.powerup-info h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.powerup-info p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.powerup-stats {
    display: flex;
    gap: 2rem;
}

.powerup-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ECDC4;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Difficulty Timeline */
.difficulty-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.difficulty-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #FF6B6B, #FFD700, #4ECDC4, #FF6B6B);
    transform: translateX(-50%);
}

.difficulty-level {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.difficulty-level:nth-child(even) {
    flex-direction: row-reverse;
}

.level-marker {
    min-width: 80px;
    height: 80px;
    background: white;
    border: 4px solid #FF6B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FF6B6B;
    position: relative;
    z-index: 2;
    margin: 0 2rem;
}

.level-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.level-content h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.level-content ul {
    list-style: none;
}

.level-content li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.level-content li i {
    color: #4ECDC4;
}

/* Game Modes */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mode-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.mode-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.mode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mode-icon {
    font-size: 4rem;
    color: #4ECDC4;
    margin-bottom: 1.5rem;
}

.mode-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.mode-card p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mode-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: linear-gradient(135deg, #FF6B6B, #FFD700);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tips & Strategies */
.tips-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tips-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tip-nav:hover,
.tip-nav.active {
    background: linear-gradient(135deg, #FF6B6B, #FFD700);
    color: white;
    transform: translateX(5px);
}

.tip-nav i {
    font-size: 1.5rem;
}

.tip-nav span {
    font-weight: 600;
}

.tips-content {
    position: relative;
}

.tip-panel {
    display: none;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tip-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.tip-panel h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tip-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.tip-item i {
    color: #4ECDC4;
    margin-top: 0.2rem;
    min-width: 20px;
}

.tip-item p {
    color: #666;
    line-height: 1.6;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.achievement-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.achievement-category h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.achievement-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.achievement-icon.bronze {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
}

.achievement-icon.silver {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.achievement-icon.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.achievement-info h4 {
    font-family: 'Fredoka One', cursive;
    color: #333;
    margin-bottom: 0.5rem;
}

.achievement-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.reward {
    background: linear-gradient(135deg, #4ECDC4, #45B7B8);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Call to Action */
.gameplay-cta {
    background: linear-gradient(135deg, #FF6B6B, #FFD700);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: white;
    color: #FF6B6B;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #FF6B6B;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.footer-bottom p {
    opacity: 0.7;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate3d(0,100%,0);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
a {
    text-decoration: none;
    color: inherit;
}
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideBasket {
    0%, 100% {
        transform: translateX(-50px);
    }
    50% {
        transform: translateX(50px);
    }
}

@keyframes demoFall {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(350px);
        opacity: 0;
    }
}

@keyframes objectiveFall {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(400px);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        z-index: 999;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .objectives-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .scoring-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .powerup-item {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .difficulty-timeline::before {
        left: 30px;
    }

    .difficulty-level {
        flex-direction: row !important;
        padding-left: 80px;
    }

    .level-marker {
        position: absolute;
        left: 0;
        margin: 0;
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .tips-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tips-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .tip-nav {
        min-width: 150px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .gameplay-section {
        padding: 60px 0;
    }

    .control-card,
    .mode-card {
        padding: 2rem 1.5rem;
    }

    .powerup-item {
        padding: 1.5rem;
    }

    .tip-panel {
        padding: 2rem;
    }
}