/* Basic Reset & Modern Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;
    --secondary-color: #f4a261;
    --dark-color: #2b2d42;
    --light-color: #fefae0;
    --accent-color: #52b788;
    --font-family: 'Balsamiq Sans', cursive;
    --shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family), sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.8;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23f4a261" fill-opacity="0.05"%3E%3Cpath d="M0 0h20v20H0z"/%3E%3Ccircle cx="10" cy="10" r="2"/%3E%3C/g%3E%3C/svg%3E');
}

/* Typography */
h1, h2, h3 {
    font-family: 'Luckiest Guy', cursive;
    text-shadow: 3px 3px var(--dark-color);
}

h1 { font-size: 4.5rem; letter-spacing: 1px; }
h2 { font-size: 3.2rem; letter-spacing: 1px; }
h3 { font-size: 2.2rem; }

p { font-size: 1.2rem; letter-spacing: 0.5px; }

/* General Styles */
.section {
    padding: 7rem 1.5rem;
    text-align: center;
}

.section-title {
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 3px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    font-family: var(--font-family);
    border: none;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.3);
    background-color: var(--accent-color);
    color: var(--light-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
}

.logo {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2rem;
    text-decoration: none;
    color: var(--primary-color);
    text-shadow: 3px 3px var(--secondary-color);
    animation: bounce 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 30px;
    height: 4px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark-color);
}

/* Hero Section */
.hero {
    min-height: 89vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(184, 255, 209, 0.3), rgba(184, 230, 255, 0.3)), url('../img/gameplay.jpeg') no-repeat center center/cover;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    color: var(--light-color);
    z-index: 10;
}

.hero-title {
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.6rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-image {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: 400px;
    height: 400px;
    animation: chicken-run 4s infinite linear;
}
.hero-image img {
    width: 100%;
    height: auto;
}

/* Mechanics Section */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mechanics-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.mechanics-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.mechanics-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Progress Section */
.progress-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.progress-bar {
    background-color: #ddd;
    border-radius: 10px;
    height: 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    background-color: var(--accent-color);
    height: 100%;
    transition: width 2s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
}


/* Tabs Section */
.tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    background-color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: #fff;
}

.tab-button:hover {
    background-color: var(--secondary-color);
}

.tab-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tab-content img {
    width: 200px;
    border-radius: 10px;
}

/* Environment Section */
.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.environment-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.environment-item img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Accordion Section */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
}

.accordion-header {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.accordion-header.active::after {
    content: '\f106';
}

.accordion-header:hover {
    background-color: var(--secondary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    padding: 0 1.5rem;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 1.5rem;
}

/* Leaderboard Section */
.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leaderboard-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.leaderboard-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Video Section */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--light-color);
    padding: 4rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-section h3 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icons a {
    color: var(--light-color);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.newsletter {
    display: flex;
    gap: 1rem;
}
a {
    text-decoration: none;
    color: inherit;
}
.newsletter input {
    padding: 0.8rem;
    border-radius: 10px;
    border: none;
    flex: 1;
}

.newsletter .btn {
    padding: 0.8rem 1.5rem;
}
.w0 {
    width: 0%;
}
.footer-copy {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes chicken-run {
    0%, 100% { transform: translateY(0) scaleX(1); }
    50% { transform: translateY(-12px) scaleX(1.06); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-18px); }
    60% { transform: translateY(-8px); }
}

/* Responsive Adjustments */
@media screen and (max-width: 992px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 90px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 2rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.8rem; }
    p { font-size: 1rem; }

    .hero {
        flex-direction: column;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        position: static;
        width: 250px;
        height: auto;
        margin-top: 2rem;
        animation: none;
    }

    .mechanics-grid, .environment-grid, .leaderboard-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-content {
        flex-direction: column;
        text-align: center;
    }

    .tab-content img {
        margin-bottom: 1rem;
    }
}