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

:root {
    --purple-primary: #8a3dfd;
    --purple-light: #a600f8;
    --bg-light: #F5F3FF;
    --bg-gradient: linear-gradient(180deg, #E8E4FF 0%, #F5F3FF 50%, #FFFFFF 100%);
    --text-dark: #00204b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #E8E4FF;
    overflow-x: hidden;
}

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

/* Header */
.header {
    padding: 20px 0;
    background: none;
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: none;
}

.header .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
    background: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 22px;
    color: var(--text-dark);
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.06);
    margin-left: 40px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(139, 61, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin-right: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-primary);
    transition: width 0.3s;
}

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

/* Hero Section */
.hero-new {
    padding: 0 0 100px;
    background: linear-gradient(180deg, #E8E4FF 0%, #F5F3FF 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content-new {
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.hero-title-new {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -1px;
}

.highlight-purple {
    background: var(--purple-light);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(139, 61, 255, 0.4);
}

.hero-subtitle-new {
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 400;
}

/* Floating Game Cards */
.floating-card {
    position: absolute;
    background: white;
    min-width: 250px;
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: 0 20px 24px rgba(82, 57, 82, 0.2), 0 16px 48px rgba(34, 33, 33, 0.16);
    display: flex;
    align-items: center;
    gap: 22px;
    animation: float 6s ease-in-out infinite;
    z-index: 5;
    will-change: transform;
    backface-visibility: hidden;
}

.floating-card img {
    width: 75px;
    height: 75px;
    border-radius: 26px;
    border: 5px solid rgb(232, 240, 253);
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-info strong {
    font-size: 15px;
    color: var(--text-dark);
}

.card-info span {
    font-size: 13px;
    color: var(--text-dark);
}

.card-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: 12%;
    animation-delay: 2s;
}

.card-3 {
    top: 20%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-25px) translateX(5px);
    }
}

/* 3D Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FF6B9D 0%, #C239B3 100%);
    top: 15%;
    right: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    bottom: 30%;
    left: 8%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
    bottom: 20%;
    right: 20%;
    animation-delay: 4s;
    border-radius: 20px;
    transform: rotate(45deg);
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-3d {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--text-dark) 100%);
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(139, 61, 255, 0.3);
    position: relative;
    transform: perspective(1000px) rotateY(-15deg);
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: perspective(1000px) rotateY(-15deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateY(-15deg) translateY(-20px);
    }
}

.phone-screen {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
}

.phone-screen::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--purple-primary);
    border-radius: 50%;
}

/* Explore Section */
.explore-section {
    padding: 60px 0 40px;
    text-align: center;
}

.section-header-new h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight-purple-sm {
    background: var(--purple-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 30px;
    display: inline-block;
}

.section-header-new p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
}

/* Game Showcase - Full Width */
.game-showcase-full {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 80px 80px;
    padding: 0;
    border-bottom: none;
    border-radius: 30px;
}

.showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.showcase-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.container-showcase {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

/* Anchor card to left on normal showcases */
.game-showcase-full .container-showcase {
    justify-content: flex-start;
}

/* Anchor card to right on reverse showcases */
.game-showcase-reverse .container-showcase {
    justify-content: flex-end;
}

/* Showcase Card - Combined card with game info and phone */
.showcase-card {
    background: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 468px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: center;
}

/* Game Info Content - Always on the left */
.game-info-content {
    display: flex;
    flex-direction: column;
    order: 1;
}

/* Phone Mockup - Always on the right */
.phone-mockup {
    order: 2;
}

/* Remove duplicate - already defined above */

/* Game Header - Icon + Title + Type in one row */
.game-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.game-icon-large {
    flex-shrink: 0;
}

.game-icon-large img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.game-title-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.showcase-card h3 {
    font-size: 20px;
    margin: 0;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

.game-type {
    color: var(--text-dark);
    margin: 0;
    font-size: 14px;
}

.game-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 13px;
}

.store-buttons-inline {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.store-btn-small {
    height: 32px;
    width: auto;
    min-width: 100px;
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
}

.store-btn-small img {
    height: 100%;
    width: auto;
    display: block;
}

.store-btn-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Phone Mockup Inside Card - Always on right */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup img {
    max-width: 145px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 5px solid #1a1a1a;
}

/* Keep phone always on right in card, but card itself moves */
.game-showcase-reverse .showcase-card {
    grid-template-columns: 1.2fr 1fr;
}

.game-showcase-reverse .game-info-content {
    order: 1;
}

.game-showcase-reverse .phone-mockup {
    order: 2;
}

/* First and last showcase spacing */
.game-showcase-full:first-of-type {
    margin-top: 0;
}

.game-showcase-full:last-of-type {
    margin-bottom: 40px;
}

/* Careers Purple Section */
.careers-purple {
    background: linear-gradient(135deg, #8B3DFF 0%, #6B2FD5 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.careers-purple::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.careers-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.careers-left {
    color: white;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.careers-left h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.btn-outline-white {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.careers-illustration {
    margin-top: 60px;
}

.character-laptop {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    animation: float 4s ease-in-out infinite;
}

/* Contact Form White */
.contact-form-white {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-form-white h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-form-white > p {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 14px;
}

.form-row-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group-new {
    display: flex;
    flex-direction: column;
}

.form-group-new label {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group-new input,
.form-group-new textarea {
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group-new input:focus,
.form-group-new textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.btn-dark {
    width: 100%;
    padding: 14px;
    background: #1F2937;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-dark:hover {
    background: #111827;
}

/* Footer */
.footer-new {
    background: var(--bg-light);
    padding: 60px 0 40px;
    border-top: 1px solid #E5E7EB;
    margin-top: 0;
}

footer.footer-new > .container{
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 64px);
    padding-right: clamp(16px, 4vw, 64px);
}

/* Footer Header - Logo + Tagline */
.footer-header {
    text-align: left;
    padding-bottom: 40px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.06);
    width: fit-content;
}

.footer-tagline {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 400;
}

/* Footer Main Grid - 4 columns */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 40px;
}

.footer-main h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Contact Column */
.footer-contact p {
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Subscribe Column */
.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 15px;
    background: white;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--purple-primary);
}

.btn-purple {
    padding: 12px 28px;
    background: var(--purple-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-purple:hover {
    background: var(--text-dark);
}

/* Menu Column */
.footer-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
}

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

/* Social Column */
.footer-social ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
}

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

/* Footer Bottom - Store Badges + Copyright */
.footer-bottom-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.store-badges a {
    display: block;
    transition: transform 0.3s;
}

.store-badges a:hover {
    transform: translateY(-2px);
}

.store-badges img {
    height: 40px;
    width: auto;
    display: block;
}

.copyright {
    color: var(--text-dark);
    font-size: 13px;
}

.copyright a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.copyright a:hover {
    color: var(--purple-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .container-showcase {
        max-width: 100%;
        padding: 35px 40px;
    }

    .showcase-card {
        max-width: 432px;
        padding: 25px;
        gap: 25px;
    }

    .game-showcase-full {
        min-height: 385px;
        margin: 80px 80px;
    }
}

@media (max-width: 992px) {
    .hero-title-new {
        font-size: 48px;
    }

    .careers-grid-new {
        grid-template-columns: 1fr;
    }

    .container-showcase {
        padding: 35px 30px;
        justify-content: center;
    }

    .game-showcase-reverse .container-showcase {
        justify-content: center;
    }

    .showcase-card {
        max-width: 378px;
        grid-template-columns: 1fr;
        padding: 25px 22px;
        gap: 18px;
    }

    .game-showcase-full {
        min-height: 350px;
        margin: 60px 40px;
    }

    .game-header {
        gap: 12px;
    }

    .game-info-content {
        order: 1;
    }

    .phone-mockup {
        order: 2;
        justify-content: center;
    }

    .phone-mockup img {
        max-width: 220px;
    }

    .careers-purple {
        padding: 60px 0;
        margin-top: 40px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .floating-card {
        display: none;
    }

    .shape {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }

    .hero-title-new {
        font-size: 36px;
    }

    .hero-new {
        padding: 140px 0 80px;
        min-height: 70vh;
    }

    .explore-section {
        padding: 60px 0 40px;
    }

    .game-showcase-full {
        min-height: 315px;
        margin: 40px 0;
    }

    .container-showcase {
        padding: 30px 20px;
        justify-content: center;
    }

    .game-showcase-reverse .container-showcase {
        justify-content: center;
    }

    .showcase-card {
        max-width: 342px;
        grid-template-columns: 1fr;
        padding: 22px 18px;
        gap: 16px;
    }

    .showcase-card h3 {
        font-size: 18px;
    }

    .game-header {
        gap: 10px;
    }

    .game-icon-large img {
        width: 48px;
        height: 48px;
    }

    .phone-mockup img {
        max-width: 145px;
    }

    .game-showcase-full {
        margin: 40px 20px;
    }

    .careers-purple {
        padding: 50px 0;
    }

    .form-row-new {
        grid-template-columns: 1fr;
    }

    .footer-new {
        padding: 50px 0 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-new {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .store-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title-new {
        font-size: 32px;
    }

    .highlight-purple {
        padding: 6px 16px;
        font-size: 28px;
    }

    .hero-new {
        padding: 120px 0 60px;
    }

    .explore-section {
        padding: 50px 0 30px;
    }

    .game-showcase-full {
        min-height: 280px;
        margin: 30px 0;
    }

    .container-showcase {
        padding: 25px 20px;
        justify-content: center;
    }

    .game-showcase-reverse .container-showcase {
        justify-content: center;
    }

    .showcase-card {
        max-width: 306px;
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 14px;
    }

    .showcase-card h3 {
        font-size: 16px;
    }

    .game-type {
        font-size: 11px;
    }

    .game-description {
        font-size: 10px;
    }

    .game-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .game-icon-large img {
        width: 45px;
        height: 45px;
    }

    .phone-mockup img {
        max-width: 130px;
        border: 4px solid #1a1a1a;
    }

    .store-buttons-inline {
        gap: 8px;
    }

    .store-btn-small {
        height: 36px;
        min-width: 110px;
    }

    .game-showcase-full {
        margin: 30px 15px;
    }

    .careers-purple {
        padding: 40px 0;
    }

    .footer-new {
        padding: 40px 0 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .container-showcase {
        max-width: 1600px;
        padding: 50px 100px;
    }

    .showcase-card {
        max-width: 522px;
        padding: 32px;
        gap: 32px;
    }

    .phone-mockup img {
        max-width: 165px;
    }

    .game-showcase-full {
        margin: 80px 80px;
    }

    /* Ensure cards stay anchored on ultra-wide */
    .game-showcase-full .container-showcase {
        justify-content: flex-start;
    }

    .game-showcase-reverse .container-showcase {
        justify-content: flex-end;
    }

    footer.footer-new > .container{
        padding-left: clamp(24px, 6vw, 120px);
        padding-right: clamp(24px, 6vw, 120px);
    }
}

/* Extra large screens */
@media (min-width: 2560px) {
    .container-showcase {
        max-width: 2000px;
        padding: 50px 150px;
    }

    .showcase-card {
        max-width: 550px;
        padding: 35px;
        gap: 35px;
    }

    .game-showcase-full {
        margin: 80px 120px;
    }

    /* Keep anchoring on very wide screens */
    .game-showcase-full .container-showcase {
        justify-content: flex-start;
    }

    .game-showcase-reverse .container-showcase {
        justify-content: flex-end;
    }

    .game-showcase-full {
        margin: clamp(20px, 5vw, 80px) clamp(20px, 5vw, 80px);
    }
}
