/* ============================================
   EDGE FOUNDATION - MARKETPLACE
   Next-Gen Game Store with Advanced Animations
   ============================================ */

:root {
    --orange-edge: #FF5F00;
    --orange-light: #FF8C00;
    --orange-glow: #FFB347;
    --black-depth: #000000;
    --white-edge: #FFFFFF;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-light: #242424;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--white-edge);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

html.scroll-smooth {
    scroll-behavior: smooth;
}

/* ============ GLOBAL ANIMATIONS ============ */

@keyframes slideInNotif {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(20px);
    }

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

@keyframes slideOutNotif {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px) translateY(20px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 95, 0, 0.3), inset 0 0 20px rgba(255, 95, 0, 0.05);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 95, 0, 0.6), inset 0 0 30px rgba(255, 95, 0, 0.1);
    }
}

@keyframes floatingAnimation {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============ FONTS & TYPOGRAPHY ============ */

.font-bebas {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.05em;
}

h1,
h2,
h3 {
    font-weight: 700;
}

/* ============ SCROLLBAR ============ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--orange-edge);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff7a1f;
}

/* ============ SCANLINES EFFECT ============ */

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 50;
    mix-blend-mode: multiply;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.02;
    pointer-events: none;
    z-index: 99;
}

/* ============ LOADING SCREEN ============ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-screen.fade-out {
    animation: fadeOutLoading 0.8s ease-out forwards;
}

@keyframes fadeOutLoading {
    from {
        opacity: 1;
        visibility: visible;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom Abstract Loader */
.custom-loader {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--orange-edge);
    animation: spinRing 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(1) {
    width: 100%; height: 100%;
    border-right-color: var(--orange-edge);
    border-bottom-color: rgba(255, 95, 0, 0.2);
    animation-duration: 3s;
}

.loader-ring:nth-child(2) {
    width: 75%; height: 75%;
    border-bottom-color: var(--orange-light);
    border-left-color: rgba(255, 140, 0, 0.2);
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 50%; height: 50%;
    border-left-color: var(--orange-glow);
    border-top-color: rgba(255, 179, 71, 0.2);
    animation-duration: 1.5s;
}

.loader-core {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: var(--white-edge);
    text-shadow: 0 0 20px var(--orange-edge), 0 0 40px var(--orange-edge);
    animation: pulseCore 2s ease-in-out infinite;
    z-index: 10;
}

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

@keyframes pulseCore {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 30px var(--orange-light), 0 0 60px var(--orange-edge); }
}

/* Loading Text */
.loading-text {
    margin-bottom: 2.5rem;
}

.loading-text h1 {
    color: #FF5F00;
    text-shadow: 0 0 20px #FF5F00, 0 0 40px rgba(255, 95, 0, 0.5), 2px 2px 0 rgba(255, 95, 0, 0.2);
    animation: titlePulse 1.5s ease-in-out infinite;
}

.loading-text p {
    color: #a0a0a0;
    animation: subtitleFade 2s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        text-shadow: 0 0 20px #FF5F00, 0 0 40px rgba(255, 95, 0, 0.5);
    }

    50% {
        text-shadow: 0 0 30px #FF5F00, 0 0 60px rgba(255, 95, 0, 0.7), 3px 3px 20px rgba(255, 95, 0, 0.4);
    }
}

@keyframes subtitleFade {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Loading Bar */
.loading-bar-container {
    width: 320px;
    height: 2px;
    background: rgba(255, 95, 0, 0.2);
    margin: 2.5rem auto;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 20px rgba(255, 95, 0, 0.5);
    border-radius: 2px;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF5F00 0%, #FF8C00 50%, #FF5F00 100%);
    width: 0%;
    transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 15px #FF5F00, inset 0 0 5px rgba(255, 140, 0, 0.5);
    position: relative;
}

.loading-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.8) 0%, transparent 100%);
    filter: blur(2px);
}

.loading-percent {
    font-family: 'Bebas Neue', cursive;
    color: #FF5F00;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 95, 0, 0.5);
    animation: percentBlink 1s ease-in-out infinite;
}

@keyframes percentBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Scanning Lines Effect */
.scan-lines-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 95, 0, 0.08) 50%,
            transparent 100%);
    background-size: 100% 20px;
    animation: scanLines 2s linear infinite;
    pointer-events: none;
}

@keyframes scanLines {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 20px;
    }
}

/* Floating particles effect */
.loading-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 95, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.75);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* ============ MEMBERS SECTION ============ */
.members-section {
    padding: 6rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.members-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
}

.members-video-col, .members-deck-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.members-video-wrapper {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3 / 4;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 95, 0, 0.15);
    border: 2px solid var(--orange-edge);
}

.members-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.members-video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 95, 0, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.members-deck {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3 / 4;
    perspective: 1000px;
    touch-action: none;
}


.member-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1;
}

.member-card:hover {
    border-color: var(--orange-edge);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 95, 0, 0.15);
}

.member-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--orange-edge);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.member-card:hover .member-glow {
    opacity: 0.3;
}

/* Card States - Stacked Deck */
.deck-card {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease, z-index 0s 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    z-index: 0;
}

.deck-card.active {
    z-index: 3;
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) rotate(0deg);
    pointer-events: auto;
}

.deck-card.next-1 {
    z-index: 2;
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) rotate(0deg);
}

.deck-card.next-2 {
    z-index: 1;
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) rotate(0deg);
}

.deck-card.prev {
    z-index: 4;
    opacity: 0;
    /* Card flies off to the right, rotating like it's thrown */
    transform: translateX(120%) translateY(0) scale(1) rotate(15deg); 
    pointer-events: none;
}

.members-controls {
    margin-top: 1rem;
    text-align: center;
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: #333;
    border: 3px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.member-card:hover .member-avatar {
    border-color: var(--orange-edge);
    transform: scale(1.05);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    color: var(--white-edge);
}

.member-role {
    color: var(--orange-edge);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.member-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* ============ VISION SECTION ============ */

.vision-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #000 0%, rgba(255, 95, 0, 0.08) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 95, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatBg {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-30px) translateX(-20px);
    }
}

.vision-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.vision-video-col, .vision-cards-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-video {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(255, 95, 0, 0.15);
    border: 2px solid var(--orange-edge);
    object-fit: cover;
    object-position: bottom;
    margin: 0 auto;
}

.vision-controls {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.vision-sphere-container {
    perspective: 1200px;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.vision-sphere {
    position: relative;
    width: 280px;
    height: 360px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotateY(0deg);
}

.vision-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.5rem 2rem;
    border: 2px solid var(--orange-edge);
    background: linear-gradient(135deg, rgba(255, 95, 0, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
    background-color: rgba(10, 10, 10, 0.85);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform: rotateY(calc(var(--i) * 120deg)) translateZ(240px);
    backdrop-filter: blur(5px);
    border-radius: 12px;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 95, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vision-card:hover {
    border-color: #FF8C00;
    background: linear-gradient(135deg, rgba(255, 95, 0, 0.12) 0%, rgba(255, 95, 0, 0.03) 100%);
    transform: rotateY(calc(var(--i) * 120deg)) translateZ(240px) translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 95, 0, 0.15), inset 0 0 20px rgba(255, 95, 0, 0.05);
}

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

.vision-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: iconBounce 3s ease-in-out infinite;
}

.vision-card:hover .vision-icon {
    animation: iconBounceActive 0.6s ease-out;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes iconBounceActive {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.2) translateY(-15px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.vision-number {
    font-family: 'Bebas Neue', cursive;
    color: #FF5F00;
    font-size: 3.5rem;
    line-height: 1;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 20px rgba(255, 95, 0, 0.3);
}

.vision-card h3 {
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
    color: white;
    letter-spacing: 0.05em;
}

.vision-card p {
    color: #a0a0a0;
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.vision-card:hover p {
    color: #c0c0c0;
}

/* ============ HEADER/NAVBAR ============ */

header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--orange-edge);
    border-bottom-opacity: 0.3;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(255, 95, 0, 0.1);
}

.navbar-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--orange-edge) 0%, var(--orange-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(255, 95, 0, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    box-shadow: 0 10px 25px rgba(255, 95, 0, 0.4);
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white-edge);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-edge), var(--orange-light));
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
    color: var(--orange-light);
}

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

.search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 2rem;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 95, 0, 0.05);
    border: 2px solid var(--border-color);
    color: var(--white-edge);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--orange-edge);
    background: rgba(255, 95, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 95, 0, 0.2);
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .search-bar {
        max-width: 200px;
        margin: 0 1rem;
    }
}

/* ============ HERO SECTION ============ */

.hero {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(255, 95, 0, 0.08) 0%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 95, 0, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatingAnimation 6s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: floatingAnimation 8s ease-in-out infinite 1s;
    z-index: 0;
}

.hero-content {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content.centered {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    max-width: 1000px;
    min-height: 50vh;
}

.hero-content.centered .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-abstract-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

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

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: moveShapes 20s infinite alternate ease-in-out;
    mix-blend-mode: screen;
}

.shape-1 {
    width: 45vw; height: 45vw;
    background: var(--orange-edge);
    top: -10%; left: -10%;
    animation-duration: 25s;
}

.shape-2 {
    width: 50vw; height: 50vw;
    background: #ff2a00;
    bottom: -20%; right: -10%;
    animation-duration: 30s;
    animation-direction: alternate-reverse;
}

.shape-3 {
    width: 35vw; height: 35vw;
    background: var(--orange-glow);
    top: 30%; left: 30%;
    animation-duration: 22s;
}

@keyframes moveShapes {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(5vw, 5vh) scale(1.1) rotate(45deg); }
    66% { transform: translate(-5vw, 10vh) scale(0.9) rotate(-45deg); }
    100% { transform: translate(-10vw, -5vh) scale(1.2) rotate(90deg); }
}

.hero-text h1.tagline {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: slideInText 1s ease-out;
    background: linear-gradient(135deg, #ffffff 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    animation: slideInText 1s ease-out 0.2s backwards;
}

@keyframes slideInText {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInImage {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 300px;
    }
}

/* ============ BUTTONS ============ */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-edge) 0%, var(--orange-light) 100%);
    color: black;
    box-shadow: 0 8px 20px rgba(255, 95, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 95, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--white-edge);
    color: var(--white-edge);
}

.btn-secondary:hover {
    background: var(--white-edge);
    color: black;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.visit-game-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--orange-edge) 0%, var(--orange-light) 100%);
    color: black;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 16px rgba(255, 95, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.visit-game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.visit-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 95, 0, 0.4);
}

.visit-game-btn:hover::before {
    left: 100%;
}

/* ============ FILTERS & CONTROLS ============ */

.filters-section {
    max-width: 1600px;
    margin: 3rem auto 0;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--white-edge);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 95, 0, 0.1);
    transition: left 0.4s ease;
    z-index: -1;
}

.chip:hover::before,
.chip.active::before {
    left: 0;
}

.chip:hover,
.chip.active {
    border-color: var(--orange-edge);
    color: var(--orange-light);
    box-shadow: 0 4px 12px rgba(255, 95, 0, 0.2);
    transform: translateY(-2px);
}

/* ============ GAMES GRID ============ */

.games-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    animation: slideInText 1s ease-out;
    background: linear-gradient(135deg, #ffffff 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 95, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.game-card:hover {
    border-color: var(--orange-edge);
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(255, 95, 0, 0.3), inset 0 0 30px rgba(255, 95, 0, 0.05);
}

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

.game-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.game-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 95, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
    pointer-events: none;
}

.game-card:hover .game-image-overlay {
    opacity: 1;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) brightness(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:hover .game-image img {
    filter: grayscale(0%) brightness(1.15);
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, var(--orange-edge) 0%, var(--orange-light) 100%);
    color: black;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 16px rgba(255, 95, 0, 0.3);
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--white-edge);
    transition: color 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(20px);
}

.game-card:hover .game-title {
    color: var(--orange-light);
    transform: translateY(0);
}

.game-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    transition: color 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(20px);
}

.game-card:hover .game-description {
    color: #c0c0c0;
    transform: translateY(0);
}

.game-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(20px);
}

.game-card:hover .game-meta {
    transform: translateY(0);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffc107;
}

.game-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    margin-top: auto;
}

.game-card:hover .game-footer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange-edge);
}

.price.free {
    color: #4ade80;
}

/* ============ LATEST DROP SECTION ============ */

.latest-drop-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 4rem 0;
    border-top: 2px solid var(--orange-edge);
    border-bottom: 2px solid var(--orange-edge);
    box-shadow: 0 0 50px rgba(255, 95, 0, 0.2);
}

.latest-drop-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.7) contrast(1.2);
}

.latest-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(255, 95, 0, 0.2) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.latest-drop-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInSlide 1s ease-out backwards;
    animation-delay: 0.5s;
}

.latest-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange-edge) 0%, var(--orange-light) 100%);
    color: black;
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 95, 0, 0.4);
    animation: glowPulse 2s infinite;
}

.latest-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white-edge);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 95, 0, 0.8);
    background: linear-gradient(to bottom, #ffffff 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.latest-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.latest-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 0 30px rgba(255, 95, 0, 0.5);
}

/* ============ ANIMATIONS ============ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-in {
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .search-bar {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding: 4rem 1rem 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .cart-modal {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 80vh;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}