html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
}

/* General Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    /* All text uses Bungee Hairline and headings use Bungee */
    font-family: 'Bungee Hairline', sans-serif;
    color: #333;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bungee', cursive;
}

/* Container */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header (Supercell style) */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 100;
    transition: background 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}
header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
header .logo img {
    max-height: 60px;
    width: auto;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s;
}
header nav ul li a:hover {
    color: #8f1418;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    background: url('Images/hero-bg.png') center center/cover no-repeat;
    flex: 0 0 auto;
}
#subhero {
    position: relative;
    height: 30vh;
    background: #ee2329 center center/cover no-repeat;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    z-index: 1;
}
.hero-content {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    z-index: 2;
    color: #fff;
}
.subhero-content {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    z-index: 2;
    color: #fff;
}
.subhero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ee2329;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: background 0.3s;
}
.btn:hover {
    background: #8f1418;
}

/* Games Section */
#games {
    padding: 100px 0;
    background: #f7f7f7;
    text-align: center;
}
#games h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.game-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.game-card img {
    width: 100%;
    height: auto;
    display: block;
}
.game-card h3 {
    padding: 15px;
    font-size: 1.3rem;
}

/* About Section */
#about {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}
#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
#about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 20px auto 0 auto;
}
.about-image {
    max-width: 20%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* Contact Section */
#contact {
    padding: 80px 0;
    background: #fafafa;
    text-align: center;
}
#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
#contact p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.contact-email {
    display: inline-block;
    font-size: 1.2rem;
    color: #ee2329;
    text-decoration: none;
    border: 2px solid #ee2329;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
}
.contact-email:hover {
    background: #8f1418;
    color: #fff;
}

footer {
    background: linear-gradient(135deg, #000, #ee2329, #000);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-links {
    margin-bottom: 20px;
}
.footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #8f1418;
}
.footer-logo img {
    max-width: 120px;
    margin-bottom: 20px;
}
.social-media a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.social-media a:hover {
    color: #8f1418;
}
.animated-footer-text {
    font-size: 2rem;
    display: inline-block;
    margin: 20px 0;
    animation: fadeInOut 3s infinite;
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    50% { opacity: 1; transform: translateY(0); }
}
.tahu {
    font-family: 'Bungee', cursive;
}
.games {
    font-family: 'Bungee Hairline', cursive;
}
footer p {
    font-size: 0.9rem;
    margin-top: 20px;
}

/* AOS (Scroll Animation) Settings */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}
[data-aos].aos-animate {
    opacity: 1;
}

/* Responsive */

@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        padding: 0 10px;
    }
    header .container {
        flex-direction: row;
    }
    header nav ul {
        flex-direction: row;
        gap: 20px;
    }
    .hero-content h1, .subhero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .games-grid {
        flex-direction: column;
        gap: 20px;
    }
    .game-card {
        width: 100%;
    }
    .about-image {
        max-width: 80%;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1, .subhero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    header nav ul {
        gap: 10px;
    }
    header nav ul li a {
        font-size: 0.9rem;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    #games h2, #about h2, #contact h2 {
        font-size: 2rem;
    }
    .about-image {
        max-width: 100%;
    }
    .animated-footer-text {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 425px) {
    header nav ul li a {
        font-family: 'Bungee', cursive;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}