/* Basic Reset & Modern Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;
    /* Vibrant red-orange */
    --secondary-color: #f4a261;
    /* Warm orange */
    --dark-color: #2b2d42;
    /* Deep navy */
    --light-color: #fefae0;
    /* Soft cream */
    --accent-color: #52b788;
    /* Forest green */
    --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: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url(../img/banner.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-buttons {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
}

.hero-image {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: 450px;
    height: 450px;
    animation: chicken-run 4s infinite linear;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* About Section */
.about-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-image {
    flex: 1;
    transform: rotate(-5deg) scale(1.1);
    animation: float 4s infinite ease-in-out;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Gameplay Section */
.gameplay-section {
    background-color: var(--light-color);
}

.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gameplay-item {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    animation: slideInUp 0.8s ease-out backwards;
}

.gameplay-item:nth-child(1) {
    animation-delay: 0.2s;
}

.gameplay-item:nth-child(2) {
    animation-delay: 0.4s;
}

.gameplay-item:nth-child(3) {
    animation-delay: 0.6s;
}

.gameplay-item:nth-child(4) {
    animation-delay: 0.8s;
}

.gameplay-item:hover {
    transform: translateY(-12px) scale(1.05);
}

.gameplay-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

/* Visuals Section */
.visuals-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.visuals-image {
    flex: 1;
    transform: rotate(5deg) scale(1.1);
    animation: float 4s infinite ease-in-out reverse;
}

.visuals-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.visuals-text {
    flex: 1;
    text-align: left;
}

/* Features Section */
.features-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.features-list li {
    font-size: 1.3rem;
    padding: 1.2rem;
    border-bottom: 1px dashed var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 1s ease-out backwards;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    animation: wobble 2s infinite;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Customization Section */
.customize-section {
    background-color: var(--secondary-color);
    padding: 7rem 1.5rem;
}

.customize-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3.5rem;
    color: var(--dark-color);
}

.customize-gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.customize-item {
    max-width: 300px;
    text-align: center;
    transform: rotate(0) scale(1);
    transition: transform 0.5s ease;
    animation: jiggle 3s infinite ease-in-out;
}

.customize-item:hover {
    transform: scale(1.2) rotate(5deg);
}

.customize-item img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(6px 6px 10px rgba(0, 0, 0, 0.25));
}

.customize-item p {
    margin-top: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
}

/* Video Section */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    animation: fadeIn 1s ease-out;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Reviews Section */
.reviews-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 2.5rem;
    padding: 2.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: left;
    min-height: 200px;
    position: relative;
    border: 2px solid var(--accent-color);
    animation: popIn 0.8s ease-out backwards;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1.2rem;
}

.review-card span {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.cta-section .section-title {
    color: var(--light-color);
}

.cta-title,
.cta-subtitle {
    color: var(--light-color);
    text-shadow: 3px 3px var(--dark-color);
}

.cta-buttons {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.app-store-btn {
    background-color: var(--dark-color);
    color: #fff;
}

.play-store-btn {
    background-color: var(--accent-color);
    color: #fff;
}

.web-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* 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 float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-18px) rotate(-8deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes jiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(4deg);
    }

    50% {
        transform: rotate(-4deg);
    }

    75% {
        transform: rotate(4deg);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-18px);
    }

    60% {
        transform: translateY(-8px);
    }
}

/* Burger Menu for Mobile */
@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);
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    h3 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
    }

    .hero {
        flex-direction: column;
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-image {
        position: static;
        width: 280px;
        height: auto;
        margin-top: 2.5rem;
        animation: none;
    }

    .about-grid,
    .visuals-grid {
        flex-direction: column;
    }

    .about-image,
    .visuals-image {
        transform: none;
    }

    .about-text,
    .visuals-text {
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.2rem;
    }
}