@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

:root {
    --epic-dark: #121212;
    --epic-dark-gray: #202020;
    --epic-mid-gray: #2a2a2a;
    --epic-light-gray: #cdcdcd;
    --epic-blue: #0074e4;
    --epic-hover-blue: #0060bb;
    --epic-sale-blue: #5656fd;
    --epic-text: #ffffff;
    --epic-section-gray: rgba(81, 81, 81, 0.5);
    --epic-divider: rgba(91, 91, 91, 0.5);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition-speed: 0.2s;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--epic-text);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

body {
    font-family: "Inter", sans-serif;
    background-color: #121217;
    color: #e6e6e6;
    min-height: 100vh;
    overflow-y: auto;
}
.main-header {
    /* background-color: var(--epic-dark-gray); */
    width: 100%;
    /* position: sticky; */
    top: 0;
    /* z-index: 100; */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
/* Header and Navigation */
header {
    display: flex;
    align-items: center;
    position: sticky;
    gap: 2rem;
    padding: 1.5rem 6rem;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    padding: 0 20px 0 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    padding: 0 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--epic-light-gray);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    display: flex;
    align-items: center;
    height: 100%;
    letter-spacing: 0.5px;
}
.nav-item p{
    font-size: 1.2rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--epic-text);
}


.header-right ul {
    display: flex;
    align-items: center;
    height: 100%;
}

.language-selector {
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.language-selector img {
    width: 20px;
    height: 20px;
}

.sign-in {
     padding: 5px 10px;
     margin-right: 15px;
     border-radius: 5px;
    font-size: 0.75rem;
    background-color: #3f3f3f;
    font-weight: 700;
    color: var(--epic-light-gray);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    display: flex;
    align-items: center;
    /* height: 100%; */
    letter-spacing: 0.5px;
}

.sign-in:hover {
    color: var(--epic-text);
}

.download-button {
    background-color: var(--epic-blue);
    color: var(--epic-text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    /* height: 100%; */
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.download-button:hover {
    background-color: var(--epic-hover-blue);
}

/* Store Navigation */
.store-nav {
    display: flex;
    position: sticky;
    top: .001vw;
    margin-bottom: 50px;
    background-color: #121212;
    align-items: center;
    width: 100%;
    padding: 20px 0; 
    
    z-index: 20 ;
    
}
.search-form {
    /* position: relative; */
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 10vw;
    max-width: 20rem;
}

.search-form input {
    width: 100%;
    border-radius: 9999px;
    background-color: #1B1B22;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    color: #e6e6e6;
    border: none;
}

.search-form input::placeholder {
    color: #A3A3A3;
}

.search-form input:focus {
    outline: none;
}

.search-icon {
    margin-left: 10vw;
    position: absolute;
    left: 0.75rem;
    color: #A3A3A3;
}

.main-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: normal;
}

.main-nav a {
    color: #e6e6e6;
    text-decoration: none;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Main content */
main {
    padding: 0 6rem 6rem;
}

section {
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    /* position: relative; */
    display: flex;
    flex-direction: row;  
    align-items: center;
    justify-content: space-between;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(90deg, #00003B 0%, #1B0E4B 100%);
    padding: 2rem;
    min-height: 400px;  
}

.hero-image {
    width: 50%; 
    object-fit: contain;
    max-height: 100%;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
    width: 50%; /* Alokasikan setengah ruang untuk konten */
    justify-content: center; /* Posisikan konten di tengah secara vertikal */
}

.epic-logo {
    margin-bottom: 1rem;
    height: 6rem; /* Perbesar logo */
    width: 6rem;
}

.hero h1 {
    font-size: 2.5rem; /* Perbesar ukuran teks */
    font-weight: 800;
    line-height: 1.2;
    max-width: 30rem; /* Perlebar max-width */
    margin-bottom: 1rem;
}

.cta-button {
    background-color: white;
    color: black;
    font-weight: bold;
    font-size: 1rem; /* Perbesar ukuran font */
    text-transform: uppercase;
    border-radius: 0.375rem;
    padding: 0.75rem 2.5rem; /* Perbesar padding */
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 1rem 0;
}

.cta-button:hover {
    background-color: #e6e6e6;
}

.hero-description {
    font-size: 1rem; /* Perbesar ukuran font */
    max-width: 30rem; /* Perlebar max-width */
    margin-top: 0.5rem;
}

.badge {
    position: absolute;
    top: 2rem;
    right: -1.5rem; /* Sesuaikan posisi */
    padding: 0.5rem 3rem; /* Tambahkan padding untuk badge */
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    transform: rotate(45deg); /* Pertahankan rotasi */
    letter-spacing: 0.1em;
    font-family: Inter, sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 1rem;
    }
    
    .hero-image, .hero-content {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .badge {
        top: 1rem;
        right: -2rem;
        font-size: 0.6rem;
        padding: 0.4rem 2.5rem;
    }
}

/* Features Section */
.features, .additional-features {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    border: 1px solid #2A2A33;
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card img {
    margin-bottom: 2rem;
    height: 6.25rem;
    width: 6.25rem;
}

.feature-card h2 {
    color: white;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.feature-card p {
    color: #B9B9B9;
    font-weight: 600;
    line-height: 1.5;
    max-width: 20rem;
}

/* FAQ Section */
.faq-section {
    max-width: 64rem;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.faq-section h1 {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 4rem;
}

.faq-list {
    border-top: 1px solid #222227;
}

.faq-item {
    border-bottom: 1px solid #222227;
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h2 {
    font-weight: 600;
    font-size: 1rem;
    color: white;
    max-width: 90%;
}

.faq-toggle {
    color: white;
    font-size: 1.25rem;
    user-select: none;
}

.faq-answer {
    margin-top: 1rem;
    color: #a1a1a1;
    font-size: 0.875rem;
    max-width: 90%;
    line-height: 1.6;
    display: none;
}

.faq-open .faq-answer {
    display: block;
}

/* Responsive styles */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
    }
    
    .hero-image {
        width: 50%;
    }
    
    .hero-content {
        align-items: flex-start;
        text-align: left;
        width: 50%;
    }
    
    .features, .additional-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .faq-question h2 {
        font-size: 1.125rem;
    }
    
    .faq-answer {
        font-size: 1rem;
    }
}


/* Footer */
.main-footer {
    background-color: var(--epic-dark-gray);
    padding: 50px 0;
    margin-top: 50px;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--epic-light-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-speed) ease;
    text-decoration: none; /* Menghilangkan garis bawah */
}

.social-link:hover {
    color: #CCCCCC; /* Abu-abu terang saat hover */
}

.social-link i {
    font-size: 1.2rem;
}

.btn-back-to-top {
    background-color: transparent;
    color: var(--epic-light-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.btn-back-to-top:hover {
    color: #CCCCCC; /* Abu-abu terang saat hover */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--epic-text);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: var(--epic-light-gray);
    font-size: 0.85rem;
    transition: color var(--transition-speed) ease;
    text-decoration: none; /* Menghilangkan garis bawah */
}

.footer-section ul li a:hover {
    color: #CCCCCC; /* Abu-abu terang saat hover */
}

.horizontal-divider {
    height: 1px;
    background-color: var(--epic-light-gray);
    opacity: 0.2;
    margin: 20px 0;
}

.copyright {
    margin-bottom: 30px;
}

.copyright p {
    color: var(--epic-light-gray);
    font-size: 0.75rem;
    line-height: 1.6;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--epic-light-gray);
    font-size: 0.85rem;
    transition: color var(--transition-speed) ease;
    text-decoration: none; /* Menghilangkan garis bawah */
}

.footer-links a:hover {
    color: #CCCCCC; /* Abu-abu terang saat hover */
}

.footer-logos {
    display: flex;
    gap: 20px;
}

.footer-logos a {
    text-decoration: none; /* Menghilangkan garis bawah */
}

.footer-logos img {
    height: 30px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content {
        width: 60%;
    }
    
    .free-games-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-lists {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vertical-divider {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        height: auto;
    }
    
    .hero-main {
        width: 100%;
        height: 400px;
    }
    
    .hero-thumbnails {
        width: 100%;
        height: 120px;
        flex-direction: row;
    }
    
    .thumbnail {
        height: 100%;
        width: calc(100% / 6);
    }
    
    .featured-card {
        min-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    
    .main-nav ul {
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .store-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-container {
        width: 100%;
        margin-right: 0;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .store-menu {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .free-games-container {
        grid-template-columns: 1fr;
    }
    
    .featured-cards {
        flex-direction: column;
    }
    
    .featured-card {
        min-width: 100%;
    }
    
    .footer-top, .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}