:root {
    --font: "Montserrat", sans-serif;
    --text-color: #222;
    --top-bar-height: 80px;

    --primary-color: #f2ae49; /* Vibrant */
    --secondary-color: #33CCFF; /* Bright Blue */
    --accent-color: #FFCC00; /* Yellow */
    --background-color: #f4f4f4;

    --banner-color: white;
    --banner-background-color: var(--primary-color);
    --banner-filter: brightness(0) invert(1);

    --nav-logo-filter: brightness(0) invert(1);
    --nav-text-color: white;
}

html {
    min-height: 100%;
}

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none; /* Hide OS cursor */
}

/* Ensure banner images are white on legal pages where class might be missing */
div.banner img {
    filter: brightness(0) invert(1);
}

* {
    font-family: var(--font), serif;
    box-sizing: border-box;
}

/* ---------------------- NAV ---------------------- */
nav.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    background-color: transparent;
    color: var(--nav-text-color);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

nav.nav.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

@keyframes pop-up-spring {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-logo {
    height: 50px;
    width: auto;
    filter: var(--nav-logo-filter);
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: rotate(-10deg) scale(1.1);
}

.nav-title {
    margin: 0;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: center;
}

.nav-button {
    height: auto;
    border: 2px solid transparent;
    padding: 8px 20px;
    color: var(--nav-text-color);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none; /* Added to remove underline from links */
}

.nav-button:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--nav-text-color);
    width: 30px;
    height: 4px;
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before { bottom: 10px; }
.hamburger::after { top: 10px; }

.nav-toggle.active .hamburger {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::before {
    opacity: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(90deg) translate(-10px, 0);
}

/* ---------------------- BANNER ---------------------- */
div.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--banner-background-color);
    width: 100%;
    height: 80vh; /* Taller banner */
    position: relative;
    opacity: 0;
    transition: opacity 1s ease;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); /* Angled bottom */
}

div.banner.scroll-on-active {
    opacity: 1;
}

div.banner img.main-logo {
    height: 30vh;
    width: auto;
    filter: var(--banner-filter);
    opacity: 0;
    transform: translateX(-150px) rotate(360deg);
    transition: 1s ease;
}

div.banner img.main-logo.scroll-on-active {
    transform: translateX(0px) rotate(0deg);
    opacity: 1;
}

div.banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    opacity: 0;
    transform: translateX(150px);
    transition: transform 1s ease, opacity 1s ease;
    margin-left: 40px;
}

div.banner-text h1 {
    margin: -2px 0;
    font-weight: 900;
    font-size: 6rem;
    color: var(--banner-color);
    line-height: 0.9;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

div.banner-text.scroll-on-active {
    transform: translateX(0);
    opacity: 1;
}

/* ---------------------- CONTENT ---------------------- */
.content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #555;
    font-weight: 500;
}

.about-section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-section.scroll-on-active {
    opacity: 1;
    transform: translateY(0);
}

.studio-description {
    font-size: 5.8rem;
    margin-top: 1rem;
    color: #333;
    font-weight: 700;
}

.studio-description-sub {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #666;
    font-style: italic;
}

.studio-desc-content {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
}

.scribble {
    text-decoration: none;
    color: #888;
    position: relative;
}

.scribble::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0) translateY(-50%);
    transform-origin: left;
    transition: transform 1s ease 0.5s;
}

.scroll-on-active .scribble::after {
    transform: scaleX(1) translateY(-50%);
}

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

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.game-card.scroll-on-active {
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.game-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #ddd;
}

.game-card h3 {
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem;
    font-weight: 800;
}

.game-card p {
    font-size: 1rem;
    color: #777;
    margin-bottom: 1.5rem;
}

/* ---------------------- PROJECT SHOWCASE (Bento Style) ---------------------- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.showcase-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #1a1a1a;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    text-decoration: none;
}

.showcase-item.scroll-on-active {
    opacity: 1;
    transform: translateY(0);
}

.showcase-item.large { grid-column: span 8; }
.showcase-item.small { grid-column: span 4; }
.showcase-item.wide { grid-column: span 12; }

.showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 0;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.4) 50%, 
        transparent 100%);
    z-index: 1;
}

.showcase-content {
    position: relative;
    z-index: 2;
}

.showcase-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.showcase-item h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.showcase-item p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin: 0.5rem 0 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: var(--primary-color);
    color: white;
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.showcase-item:hover .showcase-bg {
    transform: scale(1.08);
}

.showcase-item:hover .showcase-logo {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

@media (max-width: 992px) {
    .showcase-item.large, .showcase-item.small {
        grid-column: span 12;
    }
    .showcase-grid {
        grid-auto-rows: minmax(300px, auto);
    }
}

/* ---------------------- SECTION DIVIDER ---------------------- */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    margin: 4rem auto;
    width: 80%;
    max-width: 1000px;
}

/* ---------------------- CAREERS NOTICE ---------------------- */
.careers-notice {
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.careers-notice.scroll-on-active {
    opacity: 1;
    transform: translateY(0);
}

.careers-banner {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.careers-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.careers-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(242, 174, 73, 0.4);
}

.careers-banner-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.careers-banner-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.careers-link {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

.careers-banner:hover .careers-link {
    transform: scale(1.05);
}

/* ---------------------- TEAM SECTION ---------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 1s ease, box-shadow 1s ease, opacity 1s ease;
    opacity: 0;
    transform: translateY(50px) rotateY(50deg);
    cursor: pointer; /* Indicate clickable */
}

.team-card.scroll-on-active {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.team-image-placeholder {
    width: 100%;
    height: 250px;
    background-color: #ddd;
}

.team-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.2rem;
    font-weight: 800;
}

.team-card p {
    font-size: 1rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.team-socials {
    margin-bottom: 1.5rem;
}

.team-socials a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.team-socials a:hover {
    color: var(--accent-color);
}

/* Character Card Specifics */
.character-card {
    position: relative;
    overflow: visible; /* Allow image to pop out */
    margin-top: 50px; /* Space for pop out */
}

.character-img {
    width: 100%; /* Make it larger than container */
    height: auto;
    position: absolute;
    bottom: 104px; /* Adjust based on card content height */
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through to card */
}

.character-card:hover .character-img {
    transform: translateX(-50%) scale(1.1) translateY(-10px);
}

.character-card .team-image-placeholder {
    opacity: 1; /* Keep placeholder visible for background color */
}

.card-description {
    display: none;
}

.card-description {
    display: none;
}

.card-buttons {
    display: none;
}

/* ---------------------- MODAL ---------------------- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: transparent; /* Handled by JS for animation */
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Allow clicks to pass through when hidden/animating initially */
}

.modal.active {
    pointer-events: auto;
    background-color: rgba(0,0,0,0.8);
    transition: background-color 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 95%; /* Wider modal */
    max-width: 1000px; /* Increased max-width */
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative;
    transform-origin: center center;
    /* Animation handled by JS */
    display: flex; /* Use flexbox for layout */
    flex-direction: row; /* Side by side layout */
    overflow: hidden; /* Ensure content stays inside rounded corners */
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 2rem;
    text-align: left; /* Align text to left */
    opacity: 0; /* Hidden initially for animation */
    transition: opacity 0.3s ease 0.1s;
    width: 60%; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal.active .modal-body {
    opacity: 1;
}

.modal-image-placeholder {
    width: 40%; /* Image takes up 40% */
    height: auto; /* Auto height to fill container */
    min-height: 500px; /* Minimum height */
    background-color: #ddd;
    border-radius: 0; /* Remove border radius as it's flush with container */
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
}

#modal-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

#modal-role {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto; /* Push to bottom if needed */
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; /* For anchor tags */
    display: inline-block; /* For anchor tags */
    text-align: center;
}

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

.modal-btn.secondary {
    background-color: #ddd;
    color: #333;
}

.modal-btn.youtube {
    background-color: #FF0000;
    color: white;
}

.modal-btn.twitter {
    background-color: #1DA1F2;
    color: white;
}

.modal-btn.website {
    background-color: #333;
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ---------------------- FOOTER IMPROVEMENTS ---------------------- */
.footer {
    background-color: #111;
    color: white;
    padding: 4rem 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-left {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-center {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 4rem;
    min-width: 300px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-group a {
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
    font-size: 1.1rem;
}

.footer-links-group a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    min-width: 200px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.cloudflare-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.cloudflare-badge:hover {
    opacity: 1;
}

.cloudflare-badge span {
    color: #888;
    font-size: 0.75rem;
}

.cloudflare-badge img {
    height: 20px;
    filter: invert(1);
}

/* ---------------------- FOOTER LEGAL DROPDOWN ---------------------- */
.footer-legal-dropdown {
    position: relative;
    display: inline-block;
}

.footer-legal-trigger {
    background: none;
    border: none;
    color: #aaa;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-legal-trigger:hover {
    color: var(--primary-color);
}

.footer-legal-trigger .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-legal-dropdown.active .footer-legal-trigger .arrow {
    transform: rotate(180deg);
}

.footer-legal-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background-color: #222;
    border-radius: 12px;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    z-index: 10;
    border: 1px solid #333;
}

.footer-legal-dropdown.active .footer-legal-menu {
    display: flex;
    animation: slideUpFade 0.3s ease forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-legal-menu a {
    padding: 10px 20px;
    color: #ccc;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.footer-legal-menu a:hover {
    background-color: #333;
    color: var(--primary-color);
    transform: none; /* Reset individual link hover transform */
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-center {
        gap: 2rem;
    }
    
    .footer-right {
        align-items: center;
    }

    .footer-legal-menu {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-legal-dropdown.active .footer-legal-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* ---------------------- CAREERS/JOBS ---------------------- */
.job-listings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
}

.job-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.job-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.job-card .job-location {
    font-weight: 700;
    color: #777;
    margin-bottom: 1rem;
    width: 100%;
}

.job-card .job-description {
    flex-basis: 100%;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.job-card .modal-btn {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 1024px) {
    div.banner-text h1 {
        font-size: 4rem;
    }

    .character-img {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    #modal-name {
        font-size: 2rem;
    }

    .nav-buttons {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .studio-description {
        font-size: 2.8rem;
    }

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

    .nav-buttons.active {
        right: 0;
    }

    .nav-button {
        font-size: 2rem;
        color: white;
        border: none;
    }

    .nav-button:hover {
        background-color: transparent;
        color: var(--accent-color);
        transform: scale(1.1);
    }

    div.banner {
        height: 60vh;
        flex-direction: column;
        text-align: center;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    div.banner img {
        height: 15vh;
        margin-bottom: 20px;
        transform: translateY(-50px) rotate(360deg);
    }

    div.banner img.scroll-on-active {
        transform: translateY(0) rotate(0deg);
    }

    div.banner-text {
        margin-left: 0;
        align-items: center;
        transform: translateY(50px);
    }

    div.banner-text.scroll-on-active {
        transform: translateY(0);
    }

    div.banner-text h1 {
        font-size: 3rem;
    }

    .nav-title {
        display: none;
    }

    /* Modal Responsive */
    .modal-content {
        flex-direction: column;
        width: 90%;
        max-width: 500px;
    }

    .modal-image-placeholder {
        width: 100%;
        height: 250px;
        min-height: auto;
    }

    .modal-body {
        width: 100%;
        text-align: center;
    }

    .modal-buttons {
        justify-content: center;
    }

    .team-card {
        text-align: center;
        overflow: hidden;
    }

    .character-card {
        overflow: hidden;
    }

    .character-img {
        width: 100%;
        bottom: 120px;
    }

    .studio-description {
        font-size: 2rem;
        text-align: center;
    }

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

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

    body.modal-open {
    overflow: hidden;
}

body.modal-open .character-img {
    display: none;
}
}

@keyframes float-text {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.memory-text {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    animation: float-text 3s ease-in-out infinite;
}

/* ---------------------- DYNAMICITY EFFECTS ---------------------- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

.custom-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #000000; /* Black stroke/outline */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #000000; /* Black stroke/outline */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.dot-hover {
    background-color: #ffffff;
}

/* Violent shake animation */
@keyframes violent-shake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    90% { transform: translate(-2px, -2px); }
    100% { transform: translate(0, 0); }
}

.insane-text {
    display: inline-block;
    transition: color 0.5s ease, text-decoration 0.5s ease;
}

.scroll-on-active .insane-text {
    color: #ff3333;
    text-decoration: underline;
    animation: violent-shake 0.1s linear infinite;
}

/* Force hide cursor on interactive elements */
a, button, [role="button"], input, select, textarea, .team-card, .showcase-item {
    cursor: none !important;
}

@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
}

/* Staggered items inside scroll-on containers */
.scroll-on[data-stagger="true"] > * {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-on[data-stagger="true"] > .scroll-on-active {
    opacity: 1;
    transform: translateY(0);
}

@view-transition {
    navigation: auto; /* For MPA support in Chrome */
}

