/* --- Variables & Reset --- */
:root {
    --bg-color: #e9e9e9;
    --text-color: #000000;
    --primary-color: #f05b35;
    /* Orange/Red */
    --secondary-color: #c57966;
    /* Muted Terra-cotta */
    --accent-color: #43ddab;
    /* Teal/Mint */
    --white: #ffffff;
    --radius: 25px;
    --nav-transition: 0.3s ease-in-out;

    /* Game Card Fields */
    --game-card-height: 400px;
    --game-img-size: 100%;
    /* Adjust to shrink only the image (e.g., 80%) */
}

/* Global Image Radius */
img {
    border-radius: var(--radius);
}

.logo-container img {
    border-radius: 0;
    /* Reset for logo */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    /* Increased padding */
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: top var(--nav-transition);
    height: 90px;
    /* Increased height */
}

.navbar.nav-hidden {
    top: -100px;
}

.logo-container img {
    height: 60px;
    /* Increased logo size */
    width: auto;
    display: block;
    border-radius: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.9rem;
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Subpage Hero - smaller height */
.hero-small {
    height: 30vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-small .hero-content {
    padding-top: 60px;
    /* Push title down from navbar */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.hero-welcome {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    color: var(--text-color);
    margin-bottom: 10px;
    display: block;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-brand {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    color: var(--primary-color);
    display: block;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 100px auto;
}

.content-page {
    padding-top: 150px;
    /* Space for fixed navbar if no hero */
    min-height: 80vh;
}

.hero+.content-page {
    padding-top: 20px;
    /* Reduced gap when hero is present */
}

/* --- Swell Interaction --- */
.swell {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swell:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.3s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    pointer-events: auto;
}

.btn:hover {
    transform: scale(1.1);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.secondary-btn {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* --- Games Section --- */
.games-section {
    display: flex;
    justify-content: center;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
    width: 100%;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.game-image {
    flex: 1;
    background-color: var(--secondary-color);
    height: var(--game-card-height);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image img {
    width: var(--game-img-size);
    height: var(--game-img-size);
    object-fit: contain;
    /* Keeps the image from being cut off when shrunk */
    display: block;
    transition: all 0.3s ease;
}

.game-info {
    flex: 1;
    padding: 60px;
}

.game-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* --- Split Section --- */
.split-section {
    display: flex;
    gap: 30px;
    height: 400px;
}

.box {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-box {
    background-color: var(--white);
    position: relative;
}

.mission-box {
    background-color: var(--primary-color);
    color: var(--white);
}

.mission-box h3 {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 20px;
}

.mission-box p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- Review Carousel Styles --- */
.review-text {
    font-size: 1.5rem;
    font-style: italic;
    display: none;
    min-height: 100px;
}

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

.review-dots {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px;
    color: #666;
    background-color: #dedede;
}

.privacy-link {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.privacy-link:hover {
    opacity: 1;
}

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

.social-icon {
    font-size: 1.5rem;
    color: #666;
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 10px 20px;
    }

    .games-section .game-card {
        flex-direction: column;
    }

    .game-image {
        width: 100%;
        height: 250px;
    }

    .game-info {
        padding: 30px;
    }

    .split-section {
        flex-direction: column-reverse;
        height: auto;
    }

    .box {
        min-height: 300px;
    }

    .hero-brand {
        font-size: 3rem;
        /* Adjust for mobile */
    }
}

/* --- Special Layouts --- */

/* About Page: Circle Image */
.about-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.circle-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white);
}

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

/* Contact Page: Right Aligned */
.contact-layout {
    display: flex;
    min-height: 60vh;
}

.contact-spacer {
    flex: 1;
    /* Optional: add a subtle pattern or illustration here */
}

.contact-content {
    flex: 1;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* Games Page: Collage */
.collage-container {
    position: relative;
    height: 600px;
    width: 100%;
    margin-top: 20px;
}

.collage-image {
    position: absolute;
    width: 280px;
    /* Phone width approx */
    height: 550px;
    /* Phone height approx */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    /* Rounded edges */
    overflow: hidden;
    transition: transform 0.4s ease, z-index 0s;
    border: 4px solid #fff;
    /* Slight border for separation */
}

.collage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    /* Inner radius */
}

/* Random angles "thrown on table" look */
.collage-1 {
    left: 10%;
    /* Shifted left */
    top: 20px;
    transform: rotate(-15deg);
    z-index: 1;
}

.collage-2 {
    left: 35%;
    /* Shifted left */
    top: -10px;
    transform: rotate(8deg);
    z-index: 2;
}

.collage-3 {
    left: 60%;
    /* Shifted left */
    top: 50px;
    transform: rotate(-5deg);
    z-index: 3;
}

.collage-image:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 100;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Split Page Layout (About & Contact) */
.split-page-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 180px 0 100px 0;
    /* Increased top padding to clear taller navbar */
    min-height: 80vh;
}

.split-left {
    flex: 1;
}

.split-right {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.split-title {
    font-size: 5rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.split-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

/* About Specifics */
.about-circle-container {
    width: 450px;
    height: 450px;
}

.about-circle-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Specifics */
.contact-form-wrapper {
    width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Privacy: Centered */
.centered-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.centered-container h2,
.centered-container h3 {
    color: var(--primary-color);
}

@media (max-width: 900px) {

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

    .circle-image {
        width: 300px;
        height: 300px;
    }

    .collage-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .collage-image {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 80%;
        height: auto;
        aspect-ratio: 9/16;
    }
}