/* GENERAL STYLING */
:root {
    --primary-color: #9f55ff;
    --secondary-color: #431f79;
    --background-color: #0d0c1d;
    --text-color: #e0e0e0;
    --dark-grey: #1a1a2e;
    --glow-effect: 0 0 5px var(--primary-color), 0 0 15px var(--primary-color), 0 0 30px var(--secondary-color);
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.content-section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.section-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
}

/* HEADER & NAV */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(13, 12, 29, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 90%;
    margin: auto;
}

.logo {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 2rem;
    text-decoration: none;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}


/* HERO SECTION */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-content {
    z-index: 10;
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.cta-button:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations for hero elements */
.animate-hero {
    animation: fadeInDown 1s ease-out forwards;
    opacity: 0;
}

.animate-hero:nth-child(1) {
    animation-delay: 0.5s;
}

.animate-hero:nth-child(2) {
    animation-delay: 0.8s;
}

.animate-hero:nth-child(3) {
    animation-delay: 1.1s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ABOUT SECTION */
.about-section {
    background: var(--dark-grey);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #aaa;
}


/* GAMES SECTION */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--dark-grey);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-primary);
    color: #fff;
    margin-bottom: 0.5rem;
}

.genre-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 1rem;
}

/* WHY CHOOSE US SECTION */
.why-choose-us {
    background: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--dark-grey);
    border-radius: 10px;
    transition: all .3s ease;
    border-bottom: 3px solid transparent;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-family: var(--font-primary);
    color: #fff;
    margin-bottom: .5rem;
}


/* REVIEWS SECTION */
.reviews-section {
    background: var(--dark-grey);
}

.review-carousel {
    position: relative;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.review-item {
    display: none;
}

.review-item.active {
    display: block;
    animation: fadeIn 0.5s;
}

.review-item p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.review-item h4 {
    color: var(--primary-color);
}

.carousel-nav {
    text-align: center;
    margin-top: 2rem;
}

.carousel-nav button {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    transition: all .3s ease;
}

.carousel-nav button:hover {
    background: var(--primary-color);
    color: #fff;
}


/* INTERACTIVE SECTION */
.guess-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.game-image-wrapper {
    width: 400px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

#guessImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px);
    transition: filter 0.5s ease;
}

#guessImage.revealed {
    filter: blur(0);
}

.game-options {
    display: flex;
    gap: 1rem;
}

.option-btn {
    background: var(--dark-grey);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all .3s ease;
}

.option-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

#gameResult {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    height: 20px;
}


/* WALKTHROUGHS SECTION */
.walkthroughs-section {
    background: var(--dark-grey);
}

.accordion {
    max-width: 800px;
    margin: auto;
}

.accordion-item {
    background: var(--background-color);
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
}

.accordion-header h3 {
    margin: 0;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}


/* COMMUNITY SECTION */
.community-section {
    background: var(--background-color);
}

.live-feed {
    background: #000;
    color: #33ff33;
    font-family: 'Courier New', Courier, monospace;
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid #33ff33;
    max-width: 800px;
    margin: auto;
}

.live-feed p {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* NEWSLETTER */
.newsletter-section {
    background-image: linear-gradient(rgba(13, 12, 29, 0.9), rgba(13, 12, 29, 0.9)), url('/image/banner3.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.newsletter-section h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: .5rem;
    color: #fff;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.newsletter-form input {
    width: 400px;
    padding: 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* CONTACT & REGISTER SECTION */
.contact-section {
    background: var(--dark-grey);
}

.contact-wrapper {
    display: flex;
    background: var(--background-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-info {
    flex: 1;
    padding: 3rem;
    background: var(--secondary-color);
    color: #fff;
}

.contact-info h3 {
    font-family: var(--font-primary);
}

.contact-info ul {
    list-style: none;
    margin-top: 2rem;
}

.contact-info li {
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 1rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color .3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1.5;
    padding: 3rem;
}

/* FORM STYLING */
#registerForm .form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

#registerForm input,
#registerForm textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    outline: none;
    transition: border-color .3s ease;
}

#registerForm label {

    margin-bottom: 2rem;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all .3s ease;
}

#registerForm input:focus,
#registerForm textarea:focus {
    border-bottom-color: var(--primary-color);
}

#registerForm input:focus+label,
#registerForm input:valid+label,
#registerForm textarea:focus+label,
#registerForm textarea:valid+label {
    top: -20px;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group.error input,
.form-group.error textarea {
    border-bottom-color: #ff4757;
}

.form-group.error .error-message {
    display: block;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
}

.form-group-checkbox input[type="checkbox"] {
    display: none;
}

.form-group-checkbox label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    color: #999;
}

.form-group-checkbox label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-group-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 3px;
    transition: all .3s ease;
}

.form-group-checkbox input[type="checkbox"]:checked+label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-group-checkbox input[type="checkbox"]:checked+label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 3px;
    top: 3px;
    color: #fff;
    font-size: 12px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all .3s ease;
}

.submit-btn:hover {
    box-shadow: var(--glow-effect);
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#registerForm .form-checkbox input {
    width: 20px;
    height: 15px;

    margin-right: 10px;
}

a {
    color: inherit;
    text-decoration: none;
}





.form-group-checkbox input[type="checkbox"]:checked+label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 3px;
    top: 3px;
    color: #fff;
    font-size: 12px;
}

/* FOOTER */
footer {
    background: #000;
    text-align: center;
    padding: 2rem 0;
}

footer {
    background: #222;
    color: #aaa;
    padding: 2rem 0;
    text-align: center;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-copy {
    font-size: 0.85rem;
    color: #777;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        background: var(--dark-grey);
        height: 100vh;
        width: 60%;
        flex-direction: column;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        margin: 30px 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-wrapper {
        flex-direction: column;
    }

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

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
        max-width: 400px;
        border-radius: 5px;
        margin-bottom: 1rem;
    }

    .newsletter-form button {
        width: 100%;
        max-width: 400px;
        border-radius: 5px;
    }

    .footer-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .game-image-wrapper {
        width: 330px;
    }

    .game-options {
        display: flex;
        flex-direction: column;
    }

    .game-options button {
        width: 100%;
    }

    .walkthroughs-section .section-title {
        font-size: 1rem;
    }
}




@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}