/* Import Futura Font */
@font-face {
    font-family: 'Futura';
    src: url('https://twinatlas.com/font/Futura Black Font.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Futura';
    src: url('https://twinatlas.com/font/Futura Heavy Font.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Futura';
    src: url('https://twinatlas.com/font/Futura Medium BT.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Futura';
    src: url('https://twinatlas.com/font/Futura Light BT.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Futura';
    src: url('https://twinatlas.com/font/Futura Light Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

:root {
    --gradient-start: #FF00FF;  /* Bright magenta */
    --gradient-middle: #6C00FF;  /* Deep purple */
    --gradient-end: #00FFFF;    /* Cyan */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --background: #ffffff;
    --card-background: #f7fafc;
    --nav-button-bg: rgba(255, 255, 255, 0.2);
    --nav-button-active: #FFFFFF;
    --nav-text-active: #6C00FF;
    --text-white: #FFFFFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: rgb(30, 0, 60);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Common button style */
.button, .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    background: var(--nav-button-bg);
    position: relative;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: calc(100% - 2rem);
    padding: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background: linear-gradient(135deg, #FF00FF, #6C00FF);
    border: none;
    cursor: pointer;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* Outer stroke effect */
.cta-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1));
    z-index: -2;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: opacity 0.3s ease;
}

/* Inner stroke effect */
.cta-button::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgb(30, 0, 60);
    z-index: -1;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 0;
}

.cta-button:hover::after {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1));
    opacity: 1;
}

.cta-button:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Play Now button specific styling */
.featured-games .cta-button {
    background: linear-gradient(135deg, 
        rgba(255, 0, 255, 0.4),
        rgba(108, 0, 255, 0.3));
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.2),
        0 0 40px rgba(255, 0, 255, 0.1);
    animation: playNowPulse 2s infinite;
}

.featured-games .cta-button:hover {
    background: linear-gradient(135deg, 
        rgba(255, 0, 255, 0.6),
        rgba(108, 0, 255, 0.5));
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(255, 0, 255, 0.2);
}

/* Business CTA specific styling */
.cta-card.bizdev {
    background: var(--gradient-middle);
    padding: 4rem 2rem;
}

.cta-card.bizdev .cta-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 
        "title button"
        "description button"
        "brands brands";
    gap: 1.5rem;
    width: 100%;
    max-width: 1275px;;
    margin: 0 auto;
}

.cta-card.bizdev h2 {
    grid-area: title;
    font-family: "Futura", Sans-serif;
    font-size: clamp(48px, 8vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-align: left;
    letter-spacing: -0.02em;
}

.cta-card.bizdev p {
    grid-area: description;
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.cta-card.bizdev .brands-slider {
    grid-area: brands;
    margin-top: 1rem;
}

.cta-card.bizdev .cta-button {
    grid-area: button;
    width: 200px;
    justify-self: end;
    align-self: start;
}

.cta-card.bizdev .cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.brands-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.brands-container {
    display: flex;
    gap: 2rem;
    position: relative;
    animation: scrollBrands 30s linear infinite;
    padding: 0 2rem;
}

.brand-frame {
    flex: 0 0 auto;
    width: 156px;
    aspect-ratio: 1.833;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 1rem;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    height:100px;
}

.brand-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.brand-frame:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.brand-frame:hover img {
    opacity: 1;
}

.brand-frame:nth-child(n) { animation-delay: calc(n * 0.1s); }

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-156px * 6 - 2rem * 6)); }
}

/* Shop Now button specific styling */
.cta-card.merch {
    background: #FF00FF;
    padding: 4rem 2rem;
}

.cta-card.merch .cta-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1275px;;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
}

.merch-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.cta-button {
    height: 60px;
    width: 200px;
}

.hero-cta-container>.cta-button {
    width: 300px;
}


.cta-card.merch .cta-button {
    position: absolute;
    top: 0;
    right: 0;
}

.merch-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -4rem;
    overflow: hidden;
    position: relative;
    padding: 5rem 0 1rem;
}

.merch-items {
    display: flex;
    gap: 1.5rem;
    animation: scrollMerch 30s linear infinite;
    padding: 0 2rem;
}

@keyframes scrollMerch {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 7 - 1.5rem * 6)); }
}

.merch-item {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    overflow: visible;
}

.merch-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.merch-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(89, 0, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    white-space: normal;
    width: max-content;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    box-shadow: 
        0 8px 32px rgba(89, 0, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.merch-item:hover .merch-tooltip {
    opacity: 1;
    display: block;
}

.merch-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(89, 0, 255, 0.4) transparent transparent transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .cta-card.bizdev .cta-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .cta-card.bizdev h2,
    .cta-card.bizdev p {
        text-align: center;
    }

    .brands-slider {
        order: 2;
        margin-bottom: 1rem;
    }

    .cta-card.bizdev .cta-button {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .cta-card.merch .cta-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .merch-content {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .merch-slider {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        order: 2;
    }

    .cta-card.merch .cta-button {
        position: static;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }

    .merch-content {
        order: 1;
    }

    .cta-card.bizdev h2 {
        font-size: clamp(32px, 8vw, 40px);
        text-align: center;
    }
}

/* Header and Navigation */
header {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-middle));
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://twinatlas.com/icon/header_pattern.png') repeat;
    background-size: 100px 100px;
    opacity: 0.1;
    z-index: -1;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

.main-nav {
    max-width: 1275px;;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.3));
}

.logo-text {
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.2));
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: var(--nav-button-bg);
    position: relative;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-middle));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    background: var(--nav-button-active);
    color: var(--nav-text-active);
    font-weight: 600;
}

.nav-links a.active::after {
    transform: scaleX(1);
    background: var(--nav-text-active);
}

/* Main Content */
main {
    margin-top: 72px; /* Adjust based on header height */
    padding: 2rem;
    background: rgb(30, 0, 60);
    min-height: calc(100vh - 72px);
    color: white;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    height: 60vh;
    background: 
        linear-gradient(135deg, 
            rgba(30, 0, 60, 0.8) 0%,
            rgba(50, 0, 100, 0.6) 50%,
            rgba(255, 0, 255, 0.4) 100%),
        url('https://twinatlas.com/icon/main_thumb.jpg?v=1.2') no-repeat center center;
    background-size: cover;
    color: white;
    margin: -2rem -2rem -4rem -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1275px;;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
}

.hero h1 {
    font-family: "Futura", Sans-serif;
    font-size: clamp(64px, 12vw, 80px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 
        -3px -1px 1px #FE0065,
        0 0 20px rgba(254, 0, 101, 0.5);
    color: var(--text-white);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    margin-top: clamp(1rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 1s ease forwards;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    max-width: min(700px, 90%);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 1s ease forwards 0.3s;
    padding: 0 1rem;
}

.hero-cta-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.cta-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.cta-section {
    display: flex;
    flex-direction: column;
    margin: 0 -2rem;
    gap: 2rem;
}

.cta-card {
    padding: 3rem 2rem;
    color: white;
    width: 100%;
    clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
    position: relative;
}

.cta-content {
    width: 100%;
   max-width: 1275px;    ;
   margin: 0 auto;
}

.cta-card h2 {
    font-family: "Futura", Sans-serif;
    font-size: clamp(48px, 8vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 0.5rem 0;
    color: white;
    letter-spacing: -0.02em;
}

.cta-card p {
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Stats Section */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 2rem;
    /* max-width: 1275px;; */
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    text-align: center;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 255, 0.1);
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
    width: 380px;
    height: 209px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 0, 255, 0.1),
        rgba(108, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 4.5rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #FF00FF, #00FFFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    padding: 0 1rem;
}

.stat-card p {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease forwards;
    white-space: nowrap;
}

/* Featured Games */
.featured-games {
    margin-bottom: 3rem;
}

.games-slider-container {
    position: relative;
    max-width: 1275px;;
    margin: 0 auto;
    overflow: hidden;
}

.slider-control {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 80px;
    height: 80px;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(5px);
    top: 50%;
    transform: translateY(-50%);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.slider-control.prev {
    left: 1rem;
}

.slider-control.next {
    right: 1rem;
}

.slider-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.games-slider {
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem 80px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.games-slider:active {
    cursor: grabbing;
}

.games-slider::-webkit-scrollbar {
    display: none;
}

.games-slider .game-card {
    flex: 0 0 auto;
    width: 270px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.games-slider .game-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0;
}

.games-slider .game-card h3 {
    white-space: normal;
    margin: 0.75rem 1rem;
    font-size: 1.1rem;
    color: white;
}

.games-slider .game-card .game-stats {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}
.games-slider .game-card .cta-button {
    margin: 0.75rem auto 1rem;
    width: calc(100% - 2rem);
}

/* Portfolio Section */
.portfolio {
    padding: 2rem;
    position: relative;
    max-width: 1275px;;
    margin: 0 auto;
}

.portfolio-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 1275px;;
    margin: 0 auto 2rem;
    padding: 0 80px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 600px;
}

.section-subtitle {
    background: #FF00FF;
    color: white;
    padding: 0.6rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    clip-path: polygon(0 0, 97% 3%, 100% 100%, 3% 100%);
    transition: transform 0.3s ease;
    width: 450px;
    margin-bottom: 2rem;
}

.view-all-container {
    text-align: center;
    display: flex;
    justify-content: center;
    max-width: 1275px;
    margin: 2rem 0;
}

.view-all-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background: linear-gradient(135deg, #FF00FF, #6C00FF);
    border: none;
    cursor: pointer;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.view-all-button:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .view-all-button {
        display: block;
        width: 100%;
    }

    .portfolio {
        padding: 1.5rem 0.5rem;
    }

    .portfolio-header {
        padding: 0 1rem;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .portfolio .section-title {
        font-size: 2.25rem;
    }

    .portfolio .section-subtitle {
        font-size: 0.8rem;
        padding: 0.5rem 2rem;
    }

    .section-subtitle {
        width: 100%;
        max-width: 100%;
    }
}

/* Contact Form */
body.contact-form-active {
    overflow: hidden;
}

.contact-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    z-index: 1000;
}

.contact-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-popup-exit {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - min(600px, 100vw));
    height: 100%;
}

.contact-popup-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(600px, 100vw);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    height: 100%;
    background: #1e003c;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.popup-active,
.popup-closing {
    visibility: visible;
}

.popup-active .contact-popup-overlay {
    opacity: 1;
}

.popup-active .contact-popup-content {
    transform: none;
}

.contact-popup-header {
    position: absolute;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.contact-popup-content .close-button {
    color: white;
    float: right;
    font-size: 32px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-popup-content .close-button:hover,
.content-popup-content .close-button:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

.contact-popup-content iframe {
    width: 100%;
    height: 100%;
    padding-top: 20px;
    border: none;
}

@media screen and (max-width: 500px) {
    .contact-popup-content .close-button {
        color: black;
    }

    .contact-popup-content .close-button:hover,
    .contact-popup-content .close-button:focus {
        color: #444;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #FE0065, #D10C80, #8720AF, #0C42FC);
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1275px;;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section > :first-child {
    margin-bottom: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-nav {
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: flex !important;
        order: 3;
    }

    .current-page {
        display: none !important;
    }

    .section-subtitle {
        width: 100%;
        max-width: 100%;
    }

    .nav-links {
        display: none;
        order: 4;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle));
        padding: 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        pointer-events: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        transform: translateY(0);
        opacity: 1;
        padding: 1rem;
        gap: 1rem;
        pointer-events: all;
    }

    .nav-links a {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }

    .games-slider {
        padding: 1rem 80px;
    }

    .games-slider-container {
        margin: 0 -2rem;
        max-width: none;
        width: auto;
    }

    .logo {
        order: 1;
    }

    .hero {
        min-height: 50vh;
        height: auto;
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: clamp(36px, 10vw, 50pt);
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        max-width: min(600px, 95%);
    }

    .stat-card {
        width: 100%;
        max-width: 380px;
        height: 180px;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-card p {
        font-size: 1.5rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-card {
        padding: 4rem 1.5rem;
    }

    .cta-card h2 {
        font-size: clamp(32px, 8vw, 40px);
        text-align: center;
    }

    .cta-card p {
        font-size: 1.5rem;
    }

    .cta-section {
        grid-template-columns: 1fr;
    }

    .cta-card.merch .cta-content {
        gap: 1.5rem;
    }

    .merch-content {
        align-items: center;
        text-align: center;
    }

    .merch-content .cta-button {
        width: 100%;
    }

    .cta-card.support {
        padding: 3rem 1rem;
    }

    .cta-card.support .cta-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .cta-card.support .text-content {
        text-align: center;
    }

    .cta-card.support .cta-button {
        width: 100%;
    }

    .cta-card.bizdev .cta-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "title"
            "description"
            "button"
            "brands";
        text-align: center;
    }

    .cta-card.bizdev h2,
    .cta-card.bizdev p {
        text-align: center;
    }

    .cta-card.bizdev .cta-button {
        width: 100%;
        justify-self: center;
    }

    .merch-tooltip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn, .current-page {
        display: none !important;
    }

    .nav-links {
        display: flex;
        transform: none;
        opacity: 1;
        pointer-events: all;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn .hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-btn .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.current-page {
    display: none;
    color: white;
    font-weight: 500;
}

/* Add fade-in animation for elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-frame, .merch-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.brand-frame:nth-child(n) { animation-delay: calc(n * 0.1s); }
.merch-item:nth-child(n) { animation-delay: calc(n * 0.1s); }

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Games Grid Page Styles */
.games-grid-section {
    padding: 4rem 2rem;
    min-height: 100vh;
    background: rgb(30, 0, 60);
    max-width: 1275px;
    margin: 0 auto;
}

.games-grid-section .section-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: white;
    margin: 4rem 0 2rem;  /* Increased top margin for more spacing */
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.5rem;
    margin: 0 auto 4rem;  /* Added bottom margin for more spacing */
    justify-content: center;
}

.games-grid .game-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    text-decoration: none;
}

.games-grid .game-card:hover {
    transform: scale(1.1);
    box-shadow: 
        0 10px 20px rgba(255, 0, 255, 0.1),
        0 6px 6px rgba(108, 0, 255, 0.1);
}

.games-grid .game-card img {
    width: 100%;
    max-height: 280px;
    aspect-ratio: 1;
    object-fit: cover;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.games-grid .game-card h3 {
    color: white;
    padding: 1rem 1rem;
    margin: 0;
    font-family: "Futura", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    flex-grow: 1;
}

.games-grid .cta-button {
    margin: 0 1rem 1.5rem;
}

@media (max-width: 768px) {
    .games-grid-section {
        padding: 0;
    }

    .games-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        gap: 1.5rem;
    }

    .games-grid .game-card {
        max-width: 300px;
        width: 100%;
    }

    .games-grid .game-card img {
        max-height: 170px;
    }

    .games-grid .games-grid .game-card h3 {
        font-size: 1.1rem;
    }

    .hero-cta-container {
        padding: 0 1rem;
    }

    .hero-cta-container .cta-button {
        width: 100%;
    }
}

@media (max-width: 336px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* 404 Error Page Styles */
.error-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: rgb(30, 0, 60);
}

.error-section .section-title {
    font-size: 8rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease;
}

.error-section .section-subtitle {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease 0.2s forwards;
    opacity: 0;
}

.error-section .error-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

.error-section .cta-button {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .error-section .section-title {
        font-size: 5rem;
    }

    .error-section .section-subtitle {
        font-size: 2rem;
    }

    .error-section .error-message {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Games Hero Section */
.games-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(90deg, #FF1493, #9932CC, #4B0082);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    overflow: hidden;
    margin: -2rem -2rem 0;
}

.games-hero-content {
    max-width: 1275px;
    text-align: center;
    color: white;
    z-index: 2;
}

.games-hero h1 {
    font-family: "Futura", sans-serif;
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 900;
    margin: 0 0 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.games-hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

.games-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: rgb(30, 0, 60);
    clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}

.games-hero-character {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 400px;
    height: 500px;
    background: url('https://twinatlas.com/icon/game-character.png') no-repeat center bottom;
    background-size: contain;
    z-index: 1;
}

@media (max-width: 1024px) {
    .games-hero-character {
        width: 300px;
        height: 400px;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .games-hero {
        padding: 6rem 1rem 4rem;
    }

    .games-hero-character {
        display: none;
    }

    .games-hero-description {
        padding: 0 1rem;
    }
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.positions-grid {
    width: 100%;
    /*max-width: 800px;*/
    margin: 0 auto;
    padding: 2rem;
}

.positions-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.position-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.position-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.position-info {
    flex: 1;
    padding-right: 2rem;
}

.position-title {
    font-family: "Futura", Sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.location-tag {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.position-card .apply-button {
    width: auto;
    margin: 0 0 0 2rem;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.loading, .error, .no-positions {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .position-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }

    .position-info {
        padding-right: 0;
        width: 100%;
    }

    .position-card .cta-button {
        width: 100%;
        margin-top: 1rem;
    }
}

.cta-card.support {
    background: #9933FF;
    padding: 4rem 2rem;
}

.cta-card.support .cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1275px;;
    margin: 0 auto;
}

.cta-card.support .text-content {
    text-align: left;
}

.cta-card.support .cta-button {
    width: 200px;
    text-align: center;
    margin: 0;
}

.cta-card.merch .cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 1275px;;
    margin: 0 auto;
    gap: 2rem;
}

.merch-content {
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
}

.merch-content .cta-button {
    width: 200px;
}

@media (max-width: 768px) {
    .cta-card.support .cta-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .cta-card.support .text-content {
        text-align: center;
    }

    .cta-card.support .cta-button {
        width: 100%;
    }

    .cta-card.merch .cta-content {
        align-items: center;
    }

    .merch-content {
        text-align: center;
    }

    .merch-content .cta-button {
        width: 100%;
    }

    main {
        padding: 1rem !important;
    }
}