/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(39, 39, 94, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo-img {
    height: 40px;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover {
    color: var(--color-white);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 140px;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
}

.stat__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Image/Phone */
.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__phone-img {
    width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: slideUp 0.6s ease forwards;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hero__phone-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px rgba(169, 255, 113, 0.4));
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: scale(1.05) rotate(0deg); }
    20% { transform: scale(1.05) rotate(-2deg); }
    40% { transform: scale(1.05) rotate(2deg); }
    60% { transform: scale(1.05) rotate(-1.5deg); }
    80% { transform: scale(1.05) rotate(1deg); }
}

/* Floating Icons */
.hero__floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 52px;
    height: 52px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    z-index: 2;
}

.floating-icon--1 {
    top: 8%;
    left: -30px;
    animation-delay: 0s;
}

.floating-icon--2 {
    top: 10%;
    right: -30px;
    animation-delay: 0.5s;
}

.floating-icon--3 {
    bottom: 20%;
    left: -35px;
    animation-delay: 1s;
}

/* Hero Wave */
.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero__wave svg {
    display: block;
    width: 100%;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--color-primary-dark);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text {
    max-width: 540px;
}

.about__text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    font-size: 16px;
}

.about__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.about__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.about__list span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.about__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about__photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.about__photo--1,
.about__photo--2 {
    aspect-ratio: 4 / 3;
}

.about__photo:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.about__photo:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.about__photo--3 {
    grid-column: span 2;
    aspect-ratio: 16 / 7;
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--color-primary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(169, 255, 113, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.feature-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card__description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== Games Section ===== */
.games {
    padding: 100px 0;
    background: var(--color-primary-dark);
}

.games__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.game-card {
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.game-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card__character {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: auto;
    animation: float 2s ease-in-out infinite;
}

.game-card__items {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.game-card__bin {
    width: 60px;
    height: auto;
}

.game-card__content {
    padding: 24px;
}

.game-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.game-card__description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.game-card__tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(169, 255, 113, 0.1);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* ===== CTA Section ===== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    position: relative;
    overflow: hidden;
}

.cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta__content {
    max-width: 500px;
}

.cta__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta__description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.cta__badges {
    display: flex;
    gap: 16px;
}

.cta__badge {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

.cta__badge:nth-child(2) { animation-delay: 0.3s; }
.cta__badge:nth-child(3) { animation-delay: 0.6s; }

/* ===== Footer ===== */
.footer {
    padding: 60px 0 24px;
    background: var(--color-primary-dark);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    width: 120px;
    margin-bottom: 16px;
}

.footer__description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 24px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.footer__links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        order: 1;
    }

    .hero__image {
        order: 0;
        margin-bottom: 40px;
    }

    .hero__description {
        margin: 0 auto 32px;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .about__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__text {
        max-width: 100%;
    }

    .about__list li {
        justify-content: center;
    }

    .about__photos {
        max-width: 500px;
        margin: 0 auto;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__menu,
    .nav__actions {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        padding: 24px;
        gap: 16px;
    }

    .nav__actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 200px);
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        padding: 24px;
        gap: 12px;
    }

    .hero__phone-img {
        width: 400px;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .games__grid {
        grid-template-columns: 1fr;
    }

    .cta .container {
        flex-direction: column;
        text-align: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .about__photos {
        grid-template-columns: 1fr;
    }

    .about__photo--1,
    .about__photo--2 {
        aspect-ratio: 16 / 9;
    }

    .about__photo--3 {
        grid-column: span 1;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
    }

    .hero__stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero__phone-img {
        width: 300px;
    }
}
