/* --- Global Styles --- */
:root {
    --dark-bg: #262626;
    --dark-bg-secondary: #191919;
    --text-light: #ffffff;
    --text-grey: #ffffff;
    --border-grey: #444;
    --brand-yellow: #f4b400;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg); 
    color: var(--text-light); 
    font-family: "Lexend", sans-serif;
    margin: 0;
    padding: 0;
    text-align: center; 
}

.content-wrapper {
    width: 100%;
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 200;
    margin: 0 0 10px 0;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-grey);
    font-weight: 100;
    margin: 0 0 40px 0;
}

/* --- 1. Header & Navigation --- */
.main-header {
    padding: 25px 0;
    display: flex;
    justify-content: center;
    position: absolute; 

    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.main-nav {
    background-color: var(--dark-bg-secondary);
    border-radius: 50px; 
    padding: 8px;
    border: none;
}

.main-nav ul {
    list-style: none;
    margin: 0 20px;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin: 0 8px;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #bebebe;
}

.main-nav a.active {
    color: var(--brand-yellow);
}

.logo-item {
    margin: 0 15px;
    display: flex;       
    align-items: center; 
}

.logo-image {
    width: 60px;
    height: auto;
    display: block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
.main-header {
    padding: 25px 0;
}

.main-nav {
    padding: 8px;
    border-radius: 30px;
}

.main-nav li {
    margin: 0 5px;
}

.main-nav a {
    font-size: 14px;
    padding: 6px 6px;
}

.logo-item {
    margin: 0 5px;
}

.logo-image {
    width: 60px;
}
}

/* --- 2. Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 0px; 
    box-sizing: border-box;
    position: relative; 
}

.hero-image {
    width: 50%;
    max-width: 650px; 
    height: auto;      
    margin: auto;
    margin-top: 200px;
    border-radius: 0px;
    object-fit: cover;
    background-color: transparent;
}

.tagline {
    color: var(--text-grey);
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 0.5px;
    margin-top: 120px;
}

.scroll-down-link {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-40%);
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-down-arrow {
    width: 20px;
    height: auto;
    display: block;
}
/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
.hero-image {
    width: 80%;
    margin-top: 100px;
}
}

/* --- Down Arrow Animation --- */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    transform: translateY(-7px) translateX(-50%);
  }
}

/* --- 3. Game Carousel Section --- */
.game-carousel-section {
    position: relative;
}

#second-section
    {
        margin-top: -70px;
    }

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 40px;
    box-sizing: border-box;
}

.carousel-wrapper {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    scrollbar-width: none;
}
.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.game-card {
    flex-shrink: 0; 
    width: 300px;
    height: 300px;
    margin: 0 15px;
    border-radius: 12px;
    background-color: var(--dark-bg-secondary);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.game-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
    z-index: 20;
}

.carousel-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--brand-yellow);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.carousel-nav-arrow:hover {
    color: var(--text-light);
}

.carousel-nav-arrow.prev {
    left: -20px;
    animation: moveleft 2s infinite;
}

.carousel-nav-arrow.next {
    right: 0px;
    animation: moveright 2s infinite;
}

body:has(.carousel-nav-arrow:hover) .carousel-nav-arrow {
    animation-play-state: paused;
    color:var(--brand-yellow);
}
/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
.game-card {
    flex-shrink: 0; 
    width: 280px;
    height: 280px;
}
}

/* --- Left Arrow Animation --- */
@keyframes moveleft {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(-50%) translateX(0px);
  }
  40% {
    transform: translateY(-50%) translateX(-10px);
  }
  60% {
    transform: translateY(-50%) translateX(-5px);
  }
}
/* --- Right Arrow Animation --- */
@keyframes moveright {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(-50%) translateX(0px);
  }
  40% {
    transform: translateY(-50%) translateX(10px);
  }
  60% {
    transform: translateY(-50%) translateX(5px);
  }
}

/* --- 4. CTA Section --- */
.cta-section {
    padding-top: 20px;
    margin-bottom: -50px;
}

.cta-button {
    display: inline-block;
    background-color: var(--dark-bg-secondary);
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 300;
    padding: 20px 40px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-bg-secondary);
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    border-color: var(--brand-yellow);
}

/* --- 5. Social Section --- */
.social-section {
    padding-bottom: 40px;
}

.social-title {
    font-size: 2rem;
    font-weight: 200;
    color: var(--text-light);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: -20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-bg-secondary);
    border: 1px solid var(--dark-bg-secondary);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--text-light);
    border-color: var(--brand-yellow);
}
.social-icon i {
    font-size: 1.5rem;
}

/* --- 6. Footer --- */
.main-footer {
    padding: 40px 20px;
    border-top: 1px solid var(--brand-yellow);
    margin: auto;
    margin-top: 60px;
    max-width: 1000px;
    align-self: center;
}

.copyright-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 100;
    margin: 0;
}

/* --- Games Showcase Page Styles --- */

.showcase-section {
    padding-top: 180px; /* Space for the absolute header */
    padding-bottom: 80px;
}

.showcase-header {
    margin-bottom: 80px;
}

/* The Dark Card Container */
.showcase-card {
    background-color: var(--dark-bg-secondary);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center; /* Vertically center content */
    gap: 40px; /* Space between image and text */
    text-align: left; /* Reset alignment for text */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-5px);
}

/* === THE ZIG-ZAG LOGIC === */
.showcase-card:nth-of-type(even) {
    flex-direction: row-reverse;
}

/* Image styling */
.card-image-wrapper {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Content styling */
.card-content {
    flex: 1;
}

.game-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-light);
}

.game-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: justify;
}

/* Platform Icons Area */
.platform-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

.platform-icons {
    display: flex;
    gap: 10px;
}

.platform-icons i {
    font-size: 1.4rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* Divider Lines */
.showcase-divider {
    height: 3px;
    width: 60%;
    background-color: var(--brand-yellow);
    margin: 50px auto;
    border-radius: 2px;
    opacity: 1;
}

/* Games Page Social Section */
#games-page-social {
    margin-top: -120px;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {
    .showcase-card, 
    .showcase-card:nth-of-type(even) {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .card-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        flex: none;
    }
}

/* --- About Page Styles --- */

.about-intro-section {
    padding-top: 180px;
    padding-bottom: 200px;
    height: 100vh;
}

/* Flex layout for Image + Text */
.about-content-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 40px;
    text-align: left;
}

/* Image Styles */
.about-image-wrapper {
    flex: 0 0 40%;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: contain;
    margin-top: 60px;
}

/* Text Styles */

.about-full-text {
    width: 100%;
    margin-top: -20px;
}

.about-full-text p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 300;
    text-align: justify;
}

.about-text-content {
    flex: 1;
}

.about-text-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 300;
    text-align: justify;
}

/* --- Bottom Contact Section --- */
.about-contact-section {
    padding-top: 20px;
    padding-bottom: 100px;
    margin-top: -250px;
}

.contact-options-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 200;
}

.email-button {
    background-color: var(--dark-bg-secondary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 300;
    border: 1px solid var(--dark-bg-secondary);
    transition: all 0.3s ease;
    text-align: center;
}

.email-button:hover {
    border-color: var(--brand-yellow);
    transform: translateY(-2px);
}

.contact-or {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 300;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 900px) {
    .about-content-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image-wrapper {
        width: 100%;
    }

    .contact-options-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .contact-or {
        margin: -10px 0;
    }
}

/* --- Contact Page Styles --- */

.contact-page-section {
    padding-top: 180px;
    padding-bottom: 80px;
}

/* Grid Layout (Left Info, Right Form) */
.contact-content-grid {
    display: flex;
    gap: 50px; /* Space between text and form */
    margin-top: 60px;
    align-items: flex-start;
}

/* --- Left Column: Info --- */
.contact-info-wrapper {
    flex: 1;
    text-align: left;
    padding-top: 20px; /* Aligns visually with the form inputs */
}

.info-title {
    font-size: 2rem;
    font-weight: 200;
    margin: 0 0 10px 0;
    color: var(--text-light);
}

.info-subtitle {
    font-size: 1rem;
    font-weight: 100;
    color: var(--text-grey);
    margin-bottom: 40px;
    line-height: 1.5;
}

.info-block {
    margin-bottom: 30px;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: var(--brand-yellow);
    margin-bottom: 8px;
}

.info-text {
    font-size: 1.1rem;
    font-weight: 100;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Social Icons */
.contact-social-icons {
    display: flex;
    gap: 15px;
    margin-top: -10px;
    justify-content: flex-start;
}

/* --- Right Column: Form --- */
.contact-form-wrapper {
    flex: 2;
    background-color: var(--dark-bg-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

/* Input Fields Styling */
.form-input {
    width: 100%;
    background-color: var(--dark-bg);
    border: 1px solid var(--dark-bg);
    border-radius: 6px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 200;
    color: #fff;
    font-family: "Lexend", sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--brand-yellow);
}

.form-input::placeholder {
    color: #666;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Button override */
.form-submit-btn {
    width: 100%;
    margin-top: 20px;
    border-radius: 15px;
    background-color: var(--dark-bg);
    border: 1px solid var(--dark-bg);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 100;
}

.form-submit-btn:hover{
    border-color: var(--brand-yellow);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .contact-content-grid {
        flex-direction: column; /* Stack them */
        gap: 50px;
    }

    .contact-form-wrapper {
        width: 100%;
        padding: 25px;
    }

    /* Make inputs stack vertically on small phones */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}


/* =======================================================
   MOBILE ADAPTIVE LAYOUT (Tablets & Phones)
   Added to make the site responsive without altering
   the existing desktop / laptop presentation.
   ======================================================= */

/* --- Tablets & Large Phones (≤768px) --- */
@media (max-width: 768px) {

    /* Global section spacing & typography */
    section {
        padding: 50px 0;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
        margin: 0 0 30px 0;
    }

    /* Header / Navigation */
    .main-header {
        padding: 15px 0;
        top: 25px;
    }

    .main-nav {
        padding: 6px;
    }

    .main-nav li {
        margin: 0 1px;
    }

    .main-nav a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .logo-item {
        margin: 0 6px;
    }

    .logo-image {
        width: 50px;
    }

    /* Hero */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }

    .hero-image {
        width: 85%;
        margin-top: 40px;
    }

    .tagline {
        font-size: 1.15rem;
        margin-top: 60px;
    }

    .scroll-down-link {
        bottom: 25px;
    }

    /* Game Carousels — break out of content-wrapper padding so the card
       fills the full viewport width. Only the nav arrows take up space. */
    .game-carousel-section .content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .game-carousel-section .section-title,
    .game-carousel-section .section-subtitle {
        padding-left: 20px;
        padding-right: 20px;
    }

    .carousel-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
    }

    .carousel-wrapper {
        width: 70%;
        flex: none;
        margin: 0;
        gap: 20px;
    }

    .game-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0;
        box-sizing: border-box;
    }

    .carousel-nav-arrow {
        display: flex;
        position: relative;
        top: auto;
        transform: none;
        width: 25px;
        height: 25px;
        font-size: 25px;
        flex-shrink: 0;
        border-radius: 0;
        background: none;
        margin: 0 20px;
    }

    .carousel-nav-arrow.prev {
        left: auto;
        animation: none;
    }

    .carousel-nav-arrow.next {
        right: auto;
        animation: none;
    }

    #second-section {
        margin-top: -40px;
    }

    /* CTA */
    .cta-section {
        padding-top: 10px;
        margin-bottom: -30px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 16px 28px;
    }

    /* Social */
    .social-title {
        font-size: 1.6rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon i {
        font-size: 1.25rem;
    }

    /* Footer */
    .main-footer {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .copyright-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* Games Showcase Page */
    .showcase-section {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .showcase-header {
        margin-bottom: 50px;
    }

    .showcase-card {
        padding: 22px;
        gap: 18px;
    }

    .card-image-wrapper {
        max-width: 100%;
    }

    .game-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .game-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .platform-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .platform-label {
        font-size: 0.85rem;
    }

    .platform-icons i {
        font-size: 1.25rem;
    }

    .showcase-divider {
        width: 80%;
        margin: 35px auto;
    }

    #games-page-social {
        margin-top: -80px;
    }

    /* About Page */
    .about-intro-section {
        height: auto;
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .about-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .about-img {
        margin-top: 20px;
    }

    .about-text-content p,
    .about-full-text p {
        font-size: 0.95rem;
    }

    .about-contact-section {
        margin-top: 0;
        padding-top: 20px;
        padding-bottom: 60px;
    }

    .about-intro-section .scroll-down-link {
        display: none; /* Hide floating arrow to avoid overlap on stacked layout */
    }

    /* Contact Page */
    .contact-page-section {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .contact-info-wrapper {
        padding-top: 0;
        text-align: center;
    }

    .contact-social-icons {
        justify-content: center;
    }

    .info-title {
        font-size: 1.6rem;
    }

    .info-subtitle {
        margin-bottom: 30px;
    }

    .info-text {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 22px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Prevent 100%-width inputs from overflowing their padded wrapper */
    .form-input {
        box-sizing: border-box;
        max-width: 100%;
    }

    .main-contact-form {
        width: 100%;
    }
}

/* --- Small Phones (≤480px) --- */
@media (max-width: 480px) {

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

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Header / Navigation fits narrow screens */
    .main-header {
        padding: 12px 0;
        top: 25px;
    }

    .main-nav {
        padding: 5px;
    }

    .main-nav li {
        margin: 0 1px;
    }

    .main-nav a {
        font-size: 11px;
        padding: 6px 7px;
    }

    .logo-item {
        margin: 0 3px;
    }

    .logo-image {
        width: 42px;
    }

    /* Hero */
    .hero-section {
        padding: 90px 0 50px;
    }

    .hero-image {
        width: 90%;
        margin-top: 30px;
    }

    .tagline {
        font-size: 1rem;
        margin-top: 45px;
    }

    /* Carousel — card dimensions inherited from the ≤768px rules. */

    /* CTA */
    .cta-button {
        font-size: 0.95rem;
        padding: 14px 22px;
    }

    /* Social */
    .social-title {
        font-size: 1.4rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .social-icon i {
        font-size: 1.1rem;
    }

    /* Footer */
    .main-footer {
        padding: 25px 15px;
        margin-top: 30px;
    }

    .copyright-text {
        font-size: 0.75rem;
    }

    /* Games Showcase */
    .showcase-section {
        padding-top: 120px;
    }

    .showcase-card {
        padding: 18px;
        border-radius: 15px;
    }

    .game-title {
        font-size: 1.25rem;
    }

    .game-description {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .showcase-divider {
        width: 85%;
        margin: 28px auto;
    }

    /* About */
    .about-intro-section {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .about-image-wrapper {
        max-width: 260px;
    }

    .about-text-content p,
    .about-full-text p {
        font-size: 0.9rem;
    }

    .email-button {
        font-size: 1.05rem;
        padding: 13px 22px;
    }

    /* Contact */
    .contact-page-section {
        padding-top: 120px;
    }

    .info-title {
        font-size: 1.4rem;
    }

    .contact-form-wrapper {
        padding: 18px;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-input {
        padding: 12px;
        font-size: 0.95rem;
        box-sizing: border-box;
        max-width: 100%;
    }

    .form-textarea {
        min-height: 120px;
    }

    .form-submit-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

/* --- Extra Small Phones (≤360px) --- */
@media (max-width: 360px) {

    .main-nav a {
        font-size: 10px;
        padding: 5px 5px;
    }

    .main-nav li {
        margin: 0px;
    }

    .logo-image {
        width: 36px;
    }

    .tagline {
        font-size: 0.95rem;
    }
}