body {
    font-family: 'Cinzel', sans-serif;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1e1e1e;
}

.hero {
    min-height: 100vh; /* Full screen height */
    background: url('../img/wbs_assetpack/posters/poster1_horizontal.png') center/cover no-repeat, #2a2a2a; /* Hero section background */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-blend-mode: overlay; /* Blend image with gray background */
    padding-top: 70px; /* Prevent content from hiding under navbar */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: transparent at top -> semi-opaque dark at bottom to fade image into page color */
    background: linear-gradient(to bottom, rgba(20,20,20,0.0) 0%, rgba(20,20,20,0.15) 50%, rgba(20,20,20,0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Cinzel', sans-serif;
    font-weight: 400; /* Bold for emphasis */
    font-size: 5rem;
    color: #fff59d; /* Slightly lighter yellow */
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5); /* Shadow for better visibility */
}

.custom-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #333; /* Dark text for contrast on light button */
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg, #fff59d, #ffe082, #fff59d); /* Updated to match text color */
    background-size: 300% 300%; /* Larger size for smooth animation */
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: gradient-shift 6s ease infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    margin-top: 20px;
}

.custom-button:hover {
    transform: scale(1.05); /* Slight scale on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, #ffe082, #fff59d, #ffe082); /* Subtle shift on hover */
    color: #222;
}

.custom-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #ffe082, #fffde7, #ffe082); /* Even lighter on active */
    color: #111;
}

/* Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%; /* Start position */
    }
    50% {
        background-position: 100% 50%; /* Shift gradient */
    }
    100% {
        background-position: 0% 50%; /* Return to start */
    }
}

.section-title {
    font-size: 2rem;
    color: #fff59d; /* Slightly lighter yellow */
    margin-bottom: 20px;
}

.description {
    font-size: 1.2rem;
    color: #dcdcdc;
}

.about {
    position: relative;
    min-height: 100vh; /* Full-screen height */
    display: flex;
    align-items: stretch;
    background: url('../img/wbs_assetpack/posters/poster1_vertical.png') center/cover no-repeat, #2a2a2a; /* Background image + base color */
    background-blend-mode: overlay; /* Blend image with base color to match hero */
}

.about::before {
    /* Use gradient fade similar to hero for better image visibility */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20,20,20,0.0) 0%, rgba(20,20,20,0.15) 50%, rgba(20,20,20,0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

.about-overlay {
    /* Make the overlay container transparent so the pseudo-element controls the tint */
    min-height: 100vh;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
}

/* Ensure content inside .about is above the ::before overlay */
.about > * {
    position: relative;
    z-index: 2; /* higher than .about::before which is z-index:1 */
}

.about-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #dcdcdc;
}

.text-section {
    flex: 2; /* Take more space for the text */
}

.button-section {
    flex: 1; /* Take less space for the button */
    text-align: right; /* Align button to the right */
}

.footer {
    text-align: center;
    padding: 20px 0;
    background-color: #0f0f0f; /* match section background for harmony */
}

.footer-text {
    color: #dcdcdc;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        color: #fff59d; /* Slightly lighter yellow */
    }

    .section-title {
        font-size: 2rem;
        color: #fff59d; /* Slightly lighter yellow */
    }

    .description {
        font-size: 1rem;
    }
}

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.navbar.scrolled {
    background: rgba(24, 24, 24, 0.97);
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: lightcyan;
    text-decoration: none;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    text-decoration: none;
    font-size: 1rem;
    color: #dcdcdc;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: #61dafb;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #dcdcdc;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(30, 30, 30, 0.9);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px 0;
        border-radius: 5px;
    }

    .navbar-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

.hamburger.open .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.open .line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.os-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.logo {
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.2);
    cursor: pointer;
}

.alpha {
    font-size: 0.7rem; /* Smaller size */
    color: #fff59d; /* Slightly lighter yellow */
    border: 1px solid #fff59d; /* Slightly lighter yellow */
    padding: 4px 4px; /* Padding for readability */
    line-height: 1; /* Ensure the text height matches the content */
    display: inline-block; /* Ensure proper box alignment */
    vertical-align: super; /* Align as superscript */
    margin-left: 5px; /* Add space from the main title */
    transform: translateY(-10%); /* Slightly adjust position to align visually */
    border-radius: 3px; /* Optional: Add rounded corners */
}

#intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    background: #0f0f0f; /* match .discover-studio background for harmony */
    min-height: 60vh;
    color: #dcdcdc;
    text-align: center;
}

#intro .section-title {
    font-size: 2rem;
    color: #fff59d; /* Slightly lighter yellow */
    margin-bottom: 10px;
}

#intro .description {
    font-size: 1.2rem;
    max-width: 800px; /* Optional: Limit the width of the text for better readability */
}

/* Parent Container */
.box-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Ensures all boxes stretch to the same height */
    gap: 20px;
    flex-wrap: wrap; /* Wrap boxes on smaller screens */
    margin-top: 20px;
}

/* Individual Box - adjusted for 5 boxes */
.box {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-between; /* Space between content and button */
    background-color: #1e1e1e;
    color: #dcdcdc;
    border-radius: 8px;
    overflow: hidden;
    flex: 1; /* Allow boxes to grow and match height */
    max-width: 220px; /* Slightly smaller to fit 5 boxes */
    min-width: 200px; /* Minimum width for readability */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
}

.box img {
    width: 100%;
    height: 150px; /* Set consistent height for all feature images */
    object-fit: cover; /* Maintain aspect ratio while filling the space */
    object-position: center; /* Center the image content */
    border-bottom: 2px solid #2a2a2a;
    margin-bottom: 15px;
}

.box h3 {
    font-size: 1.5rem;
    color: #fff59d; /* Slightly lighter yellow */
    margin-bottom: 10px;
}

.box p {
    font-size: 1rem;
    color: #dcdcdc;
    margin-bottom: 20px;
}

/* Button Stays at the Bottom */
.box .learn-more {
    margin-top: auto; /* Push the button to the bottom */
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background-color: #0e6aa3;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover Effect for Buttons */
.box .learn-more:hover {
    background-color: #61dafb;
    transform: scale(1.05);
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .box-container {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 90%; /* Take full width on smaller screens */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack text and button */
        align-items: center;
        text-align: center;
    }

    .text-section {
        margin-bottom: 15px;
    }

    .button-section {
        text-align: center;
    }
}

.features {
    display: flex;
    flex-direction: column;
    align-items: center;         /* Center containers horizontally */
    background-color: #0f0f0f; /* match discover-studio for harmony */
    padding: 60px 20px;
    box-sizing: border-box;
    gap: 60px;                   /* Space between rows */
}

.features-container {
    display: flex;
    flex-direction: row;         /* Default: text left, image right */
    justify-content: center;     /* Center content horizontally if desired */
    align-items: center;
    width: 90%;
    max-width: 1200px;
    gap: 20px;                   /* Space between text and image */
}

/* Every even .features-container row reverses the order: 
   text will be on the right, image on the left. */
.features-container:nth-child(even) {
    flex-direction: row-reverse;
}

.features-text {
    flex: 1;
    color: #dcdcdc;
}

.features-text .section-title {
    font-size: 2rem;
    color: #fff59d; /* Slightly lighter yellow */
    margin-bottom: 20px;
}

.features-text .description {
    font-size: 1.2rem;
    color: #dcdcdc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.features-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
}

/* Mobile phone aspect ratio for Mythic Archer image */
.features-image img[alt="Mythic Archer Gameplay"] {
    width: 300px;
    height: 500px;
    object-fit: cover; /* Crop sides to maintain aspect ratio without stretching */
    object-position: center; /* Keep image centered */
    position: relative;
}

/* Add dark overlay to Mythic Archer image */
.features-image:has(img[alt="Mythic Archer Gameplay"])::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.3);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
    }
    
    /* When stacked vertically, the order is top (text) and bottom (image) 
       for odd rows, and top (image) then bottom (text) for even rows due 
       to row-reverse. You can override this if needed, or accept the vertical stacking. */
    
    .features-text .section-title {
        font-size: 1.5rem;
        color: #fff59d; /* Slightly lighter yellow */
    }
    
    .features-text .description {
        font-size: 1rem;
    }
}

/* Discover Our Studio Section */
.discover-studio {
    background: #0f0f0f;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.discover-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    gap: 40px;
}

.discover-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discover-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.discover-content {
    flex: 1;
    color: #fff59d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10px;
}

.discover-title {
    font-family: 'Cinzel', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #fff59d;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.discover-description {
    font-size: 1.2rem;
    color: #dcdcdc;
    margin-bottom: 30px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .discover-container {
        flex-direction: column;
        gap: 30px;
    }
    .discover-content {
        align-items: center;
        text-align: center;
        padding: 0;
    }
    .discover-title {
        font-size: 2rem;
    }
    .discover-description {
        font-size: 1rem;
    }
}