/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    overflow-x: hidden;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.5, 0, 0, 1), 
                transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-children.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero parallax effect */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-image {
    transition: transform 0.1s ease-out;
    animation: heroEntrance 1.2s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Page load animation */
body {
    opacity: 0;
    animation: pageLoad 0.6s ease-out 0.1s forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

/* Header transition */
.header {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Button hover animations */
.btn-play {
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(240, 165, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-play:hover::before {
    width: 300px;
    height: 300px;
}

/* Store button hover effect */
.store-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store-btn:hover {
    transform: translateY(-5px);
}

/* Phone mockup subtle animation */
.phone-frame, .phone-frame-large {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.phone-frame:hover, .phone-frame-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

h2 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 40px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f0a500;
}

.btn-play {
    background: #ffffff;
    color: #1a1a2e;
    padding: 10px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: #f0a500;
    color: #1a1a2e;
}

/* Hero Section */
.hero {
    width: 100%;
    margin-top: 60px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Build Fight Dominate */
.section-build {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0 0;
    position: relative;
}

.build-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding-bottom: 80px;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 360px;
    height: auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #333;
    background: #000;
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.build-text {
    max-width: 400px;
}

.build-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffffff;
}

.build-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #b8b8b8;
    margin-bottom: 30px;
}

.store-buttons {
    display: flex;
    gap: 15px;
}

.store-btn img {
    height: 45px;
    transition: transform 0.3s ease;
}

.store-btn:hover img {
    transform: scale(1.05);
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-top: 20px;
}

/* Section All Favorites */
.section-favorites {
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
    padding: 80px 0 0;
    position: relative;
}

.favorites-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding-bottom: 80px;
}

.favorites-text {
    max-width: 400px;
}

.favorites-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffffff;
}

.favorites-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #b8b8b8;
}

.phone-slider {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-mockup-large {
    position: relative;
}

.phone-frame-large {
    width: 400px;
    height: auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #333;
    background: #000;
}

.phone-frame-large img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-arrows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.arrow-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 165, 0, 0.8);
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    background: #f0a500;
    transform: scale(1.1);
}

/* Section Be Part of the Legend */
.section-legend {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 100%);
    padding: 80px 0;
    position: relative;
}

.legend-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.character-image {
    position: relative;
    width: 350px;
}

.character-image > img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.floating-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.discord-float {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.youtube-float {
    top: 5%;
    right: 10%;
    animation-delay: 0.5s;
}

.instagram-float {
    bottom: 15%;
    right: -5%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.legend-text {
    max-width: 400px;
}

.legend-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffffff;
}

.legend-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #b8b8b8;
    margin-bottom: 30px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.social-btn img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.social-btn:hover {
    transform: scale(1.15);
}

/* Footer */
.footer {
    background: #0f0f23;
    padding: 40px 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 30px;
    gap: 30px;
}

.footer-store-buttons {
    display: flex;
    gap: 10px;
}

.store-btn-small img {
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.store-btn-small:hover img {
    opacity: 1;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-logo {
    height: 60px;
}

.footer-right {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.footer-right a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trademark-text {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.copyright {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .build-content,
    .favorites-content,
    .legend-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .favorites-content {
        flex-direction: column-reverse;
    }

    .build-text,
    .favorites-text,
    .legend-text {
        max-width: 100%;
    }

    .store-buttons,
    .social-buttons {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-center {
        order: -1;
    }

    .footer-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-store-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .header {
        padding: 10px 20px;
    }

    .build-text h2,
    .favorites-text h2,
    .legend-text h2 {
        font-size: 32px;
    }

    .phone-frame {
        width: 250px;
    }

    .phone-frame-large {
        width: 280px;
    }

    .footer {
        padding: 30px 20px 20px;
    }
}

