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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #252525;
    background-color: #f5f5f5;
    font-weight: 400;
    font-size: 1rem;
}

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

/* Header and Navigation */
header {
    background-color: #EC3114;
    color: #ffffff;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Hero Section - Full Width with Background Image */
.hero {
    position: relative;
    background-image: url('src/image/bg_ms.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 12rem 0 10rem;
    text-align: center;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 28px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: #EC3114;
    color: white;
    padding: 0.875rem 2.5rem;
    border-radius: 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 49, 20, 0.3);
}

.cta-button:hover {
    background-color: #d12a0f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 49, 20, 0.4);
}

/* About Section */
.about {
    background-color: #ffffff;
    padding: 6rem 0;
}

.about h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 3rem;
    font-weight: 600;
    color: #EC3114;
    letter-spacing: 0;
    line-height: 1.1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-content p {
    font-size: 1rem;
    color: #718096;
    line-height: 1.75;
    font-weight: 400;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature {
    background: #f5f5f5;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #EC3114;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #252525;
    line-height: 1.1;
}

.feature p {
    color: #718096;
    line-height: 1.75;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Games Section - Showcase Layout */
.games {
    background-color: #f5f5f5;
    padding: 6rem 0;
}

.games h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 4rem;
    font-weight: 600;
    color: #EC3114;
    letter-spacing: 0;
    line-height: 1.1;
}

.game-showcase {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.game-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(236, 49, 20, 0.05), transparent);
    transition: left 0.6s ease;
}

.game-showcase:hover::before {
    left: 100%;
}

.game-showcase:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(236, 49, 20, 0.15);
}

.game-phone {
    flex: 0 0 auto;
}

.phone-mockup {
    width: 280px;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.game-showcase:hover .phone-mockup {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 15px 30px rgba(236, 49, 20, 0.2));
}

.game-content {
    flex: 1;
    max-width: 400px;
}

.game-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #EC3114;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.game-showcase:hover .game-content h3 {
    transform: translateX(5px);
    color: #d12a0f;
}

.game-content p {
    font-size: 1.125rem;
    color: #718096;
    line-height: 1.75;
    margin-bottom: 2rem;
    font-weight: 400;
    transition: all 0.3s ease 0.1s;
}

.game-showcase:hover .game-content p {
    transform: translateX(5px);
    color: #252525;
}

.store-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    transition: all 0.3s ease 0.2s;
}

.game-showcase:hover .store-badges {
    transform: translateX(5px);
}

.store-badge {
    height: 52px;
    width: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(0);
}

.store-badge:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(236, 49, 20, 0.3));
}

/* Contact Section */
.contact {
    background-color: #ffffff;
    padding: 6rem 0;
}

.contact h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 3rem;
    font-weight: 600;
    color: #EC3114;
    letter-spacing: 0;
    line-height: 1.1;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-content > p {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.75;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    background: #f5f5f5;
    padding: 0.875rem 1.75rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    font-weight: 400;
}

.contact-item:hover {
    background: #EC3114;
    color: white;
    transform: translateY(-2px);
}

.contact-item:hover a {
    color: white;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: #252525;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #EC3114;
}

/* Footer */
footer {
    background-color: #252525;
    color: #ffffff;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-content p {
    font-weight: 400;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #EC3114;
}

.footer-links span {
    color: #666;
}

/* Legal Pages Styles */
.legal-page {
    background-color: #ffffff;
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.legal-page h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #252525;
    line-height: 1.1;
}

.legal-page h2 {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #252525;
    line-height: 1.1;
}

.legal-page h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #252525;
    line-height: 1.1;
}

.legal-page p {
    margin-bottom: 1.2rem;
    line-height: 1.75;
    color: #718096;
    font-weight: 400;
    font-size: 1rem;
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.8rem;
    color: #718096;
    line-height: 1.75;
    font-weight: 400;
    font-size: 1rem;
}

.legal-page a {
    color: #EC3114;
    text-decoration: none;
    font-weight: 600;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Desktop Styles */
@media (min-width: 1024px) {
    body {
        font-size: 1.125rem;
        font-weight: 300;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .about h2,
    .games h2,
    .contact h2 {
        font-size: 1.875rem;
    }

    .about-content p,
    .contact-content > p {
        font-size: 1.125rem;
        font-weight: 300;
    }

    .feature p {
        font-size: 1.05rem;
        font-weight: 300;
    }

    .game-info p {
        font-size: 1.05rem;
        font-weight: 300;
    }

    .contact-item {
        font-size: 1.05rem;
    }

    .legal-page p,
    .legal-page li {
        font-size: 1.05rem;
        font-weight: 300;
    }

    .nav-links a {
        font-size: 1.125rem;
    }

    .phone-mockup {
        width: 300px;
    }

    .game-content h3 {
        font-size: 2.25rem;
    }

    .game-content p {
        font-size: 1.25rem;
        font-weight: 300;
    }

    .store-badge {
        height: 56px;
    }
}

/* Responsive Design */
@media (max-width: 1023px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero {
        padding: 6rem 0 5rem;
    }

    .about h2,
    .games h2,
    .contact h2 {
        font-size: 1.75rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-showcase {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem;
    }

    .game-showcase:hover .phone-mockup {
        transform: scale(1.05) rotate(0deg);
    }

    .phone-mockup {
        width: 240px;
    }

    .game-content {
        text-align: center;
        max-width: 100%;
    }

    .game-content h3 {
        font-size: 1.75rem;
    }

    .game-content p {
        font-size: 1rem;
    }

    .store-badges {
        justify-content: center;
    }

    .game-showcase:hover .game-content h3,
    .game-showcase:hover .game-content p,
    .game-showcase:hover .store-badges {
        transform: translateX(0);
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .about,
    .games,
    .contact {
        padding: 4rem 0;
    }

    .footer-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .logo-img {
        height: 40px;
    }

    .game-showcase {
        padding: 2rem;
    }

    .phone-mockup {
        width: 220px;
    }

    .game-content h3 {
        font-size: 1.5rem;
    }

    .game-content p {
        font-size: 0.95rem;
    }

    .store-badge {
        height: 50px;
    }

    .about-content p,
    .contact-content > p {
        font-size: 0.95rem;
    }

    .feature {
        padding: 2rem 1.5rem;
    }

    .feature h3 {
        font-size: 1.15rem;
    }

    .feature p {
        font-size: 0.9rem;
    }

    .games-list {
        gap: 2rem;
    }

    .about,
    .games,
    .contact {
        padding: 3.5rem 0;
    }

    .contact-item {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    header {
        padding: 0.875rem 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 4rem 0 3.5rem;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.7rem 1.75rem;
        font-size: 0.9rem;
    }

    .about h2,
    .games h2,
    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .logo-img {
        height: 36px;
    }

    .game-showcase {
        gap: 2rem;
        padding: 1.75rem;
    }

    .phone-mockup {
        width: 200px;
    }

    .game-content h3 {
        font-size: 1.35rem;
    }

    .game-content p {
        font-size: 0.9rem;
    }

    .store-badge {
        height: 45px;
    }

    .contact-content > p,
    .about-content p {
        font-size: 0.9rem;
    }

    .contact-item {
        font-size: 0.85rem;
        padding: 0.7rem 1.25rem;
        gap: 0.5rem;
    }

    .contact-icon {
        font-size: 1.25rem;
    }

    .feature {
        padding: 1.75rem 1.25rem;
    }

    .feature h3 {
        font-size: 1.1rem;
    }

    .feature p,
    .game-info p {
        font-size: 0.85rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .about,
    .games,
    .contact {
        padding: 3rem 0;
    }

    footer {
        padding: 2rem 0;
    }

    .footer-content {
        font-size: 0.85rem;
    }
}
