/* Modern Landing Page Hero Styles */
.hero-section {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 1.5rem;
    text-align: center;
}

/* Dynamic glowing background - Removed as per request */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}



.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title .highlight {
    background: linear-gradient(to right, #00ffcc, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-hero.primary {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4), inset 0 0 10px rgba(255,255,255,0.5);
    border: none;
}

.btn-hero.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.6), inset 0 0 10px rgba(255,255,255,0.5);
    background: #1affd1;
}

.btn-hero.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-hero.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Floating Elements around the central text */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.float-card {
    position: absolute;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    transition: transform 0.3s ease, border-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.float-card:hover {
    transform: scale(1.05);
    border-color: rgba(0, 255, 204, 0.3);
}

.float-card-1 {
    top: 15%;
    left: 10%;
    animation: float-slow 8s ease-in-out infinite;
}

.float-card-2 {
    bottom: 20%;
    right: 12%;
    animation: float-slow 7s ease-in-out infinite reverse;
}

.float-card-3 {
    top: 25%;
    right: 8%;
    animation: float-slow 9s ease-in-out infinite -1s;
}

.float-card-4 {
    bottom: 15%;
    left: 8%;
    animation: float-slow 8.5s ease-in-out infinite -2.5s;
}

.float-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-discord { background: rgba(88, 101, 242, 0.15); color: #5865F2; }
.icon-valorant { background: rgba(255, 70, 85, 0.15); color: #ff4655; }
.icon-cs { background: rgba(255, 189, 46, 0.15); color: #ffbd2e; }
.icon-faceit { background: rgba(255, 85, 0, 0.15); color: #ff5500; }
.icon-lol { background: rgba(0, 186, 255, 0.15); color: #00baff; }

.float-text .game {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.float-text .status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 0 0 8px #00ffcc;
}

@keyframes float-slow {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -20px, 0) rotate(2deg); }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .float-card-3, .float-card-4 { display: none; }
    .float-card-1 { top: 10%; left: 5%; }
    .float-card-2 { bottom: 10%; right: 5%; }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 1.5rem 1.2rem 3rem;
        width: 100%;
        justify-content: flex-start;
        position: relative;
        background: transparent;
    }

    /* Dynamic Central Orb for Mobile */
    .hero-section::before {
        content: '';
        position: absolute;
        width: 280px;
        height: 280px;
        background: radial-gradient(circle, rgba(0, 255, 204, 0.35) 0%, rgba(0, 136, 255, 0.15) 60%, transparent 100%);
        top: 45%;
        left: 50%;
        border-radius: 50%;
        filter: blur(30px);
        z-index: 0;
        animation: pulse-center 4s ease-in-out infinite alternate;
        pointer-events: none;
    }

    @keyframes pulse-center {
        0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
        100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    }

    .floating-elements { 
        display: none; 
    }

    .hero-content {
        gap: 1.2rem;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .hero-title { 
        font-size: clamp(2.2rem, 8vw, 2.8rem); 
        line-height: 1.15;
        letter-spacing: -0.02em;
        word-break: break-word;
        text-shadow: 0 10px 20px rgba(0,0,0,0.8);
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        padding: 0 0.5rem;
        text-wrap: balance;
        text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    }

    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
        padding: 0; 
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .btn-hero { 
        justify-content: center; 
        width: 100%; 
        padding: 1.1rem;
        font-size: 1.05rem;
        border-radius: 14px;
        position: relative;
        overflow: hidden;
    }
    
    /* Fancy Button Glow */
    .btn-hero.primary::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transform: rotate(45deg) translateY(0);
        animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
        0% { transform: translateX(-100%) rotate(45deg); }
        100% { transform: translateX(100%) rotate(45deg); }
    }
    
    .marquee-wrapper .lobby-card {
        min-width: 310px !important;
    }
    
    .marquee-wrapper {
        gap: 1.2rem;
    }
    
    .marquee-content {
        gap: 1.2rem;
    }
}

/* Marquee Section below Hero */
.marquee-section {
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* Infinite Marquee Lobbies */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Fading edges using pseudo-elements instead of mask-image for better GPU performance */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 10;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #121212 0%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #121212 0%, transparent 100%);
}

.marquee-row {
    width: 100%;
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    width: fit-content;
    padding: 0.5rem 0;
    will-change: transform;
}

.marquee-left .marquee-content {
    animation: scroll-left 90s linear infinite;
}

.marquee-right .marquee-content {
    animation: scroll-right 90s linear infinite;
}

/* Pause on hover for better UX (Desktop only to prevent touch sticking on mobile) */
@media (hover: hover) and (pointer: fine) {
    .marquee-row:hover .marquee-content {
        animation-play-state: paused;
    }
}

@keyframes scroll-left {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - 1rem), 0, 0); }
}

@keyframes scroll-right {
    from { transform: translate3d(calc(-50% - 1rem), 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

/* Make sure lobby cards inside marquee keep their shape */
.marquee-wrapper .lobby-card {
    cursor: default;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* Disable expensive blur effect on continuously moving elements to save GPU */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(22, 22, 28, 0.95) !important;
}

/* GAMES SHOWCASE SECTION */
.games-showcase-section {
    padding: 6rem 10% 2rem 10%;
    position: relative;
    z-index: 5;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 15, 20, 0.6) 20%, rgba(10, 10, 15, 0.4) 80%, transparent 100%);
}

.showcase-header {
    text-align: center;
    margin-bottom: 4rem;
}

.showcase-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.text-glow {
    background: linear-gradient(135deg, #00ffcc, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
}

.showcase-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.game-showcase-card {
    position: relative;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.g-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.game-showcase-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 15px 40px rgba(0, 0, 0, 0.4);
}

.game-showcase-card:hover .g-card-bg {
    opacity: 0.25;
}

/* Watermark */
.g-card-watermark {
    position: absolute;
    right: -30px;
    bottom: -30px;
    opacity: 0.02;
    z-index: 1;
    transform: rotate(-15deg);
    transition: all 0.5s ease;
    pointer-events: none;
}
.g-card-watermark img, .g-card-watermark i {
    width: 200px;
    height: 200px;
    font-size: 200px;
    color: #ffffff;
}
.game-showcase-card:hover .g-card-watermark {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.06;
}

/* Card Content Layout */
.g-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    min-height: 160px;
}

/* Top Section */
.g-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 2rem;
}
.icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 14px;
    display: inline-flex;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.game-showcase-card:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}
.g-card-icon {
    width: 40px;
    height: 40px;
    font-size: 40px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

/* Arrow */
.join-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.game-showcase-card:hover .join-arrow {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px) rotate(-45deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Bottom Section */
.g-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}
.g-card-bottom h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.g-card-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Specific Game Colors for Glow */
.s-valorant .g-card-bg { background: radial-gradient(circle at center, #ff4655 0%, transparent 70%); }
.s-valorant:hover { box-shadow: 0 15px 35px rgba(255, 70, 85, 0.2); border-color: rgba(255, 70, 85, 0.4); }

.s-cs2 .g-card-bg { background: radial-gradient(circle at center, #ffbd2e 0%, transparent 70%); }
.s-cs2:hover { box-shadow: 0 15px 35px rgba(255, 189, 46, 0.2); border-color: rgba(255, 189, 46, 0.4); }

.s-lol .g-card-bg { background: radial-gradient(circle at center, #00baff 0%, transparent 70%); }
.s-lol:hover { box-shadow: 0 15px 35px rgba(0, 186, 255, 0.2); border-color: rgba(0, 186, 255, 0.4); }

.s-apex .g-card-bg { background: radial-gradient(circle at center, #da292a 0%, transparent 70%); }
.s-apex:hover { box-shadow: 0 15px 35px rgba(218, 41, 42, 0.2); border-color: rgba(218, 41, 42, 0.4); }

.s-gta .g-card-bg { background: radial-gradient(circle at center, #2ecc71 0%, transparent 70%); }
.s-gta:hover { box-shadow: 0 15px 35px rgba(46, 204, 113, 0.2); border-color: rgba(46, 204, 113, 0.4); }

.s-rocket .g-card-bg { background: radial-gradient(circle at center, #0099ff 0%, transparent 70%); }
.s-rocket:hover { box-shadow: 0 15px 35px rgba(0, 153, 255, 0.2); border-color: rgba(0, 153, 255, 0.4); }

.s-minecraft .g-card-bg { background: radial-gradient(circle at center, #57b846 0%, transparent 70%); }
.s-minecraft:hover { box-shadow: 0 15px 35px rgba(87, 184, 70, 0.2); border-color: rgba(87, 184, 70, 0.4); }

.s-pubg .g-card-bg { background: radial-gradient(circle at center, #e67e22 0%, transparent 70%); }
.s-pubg:hover { box-shadow: 0 15px 35px rgba(230, 126, 34, 0.2); border-color: rgba(230, 126, 34, 0.4); }

@media (max-width: 768px) {
    .games-showcase-section {
        padding: 3rem 1.2rem;
    }
    .showcase-header {
        margin-bottom: 2.5rem;
    }
    .showcase-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    .showcase-subtitle {
        font-size: 1.05rem;
        padding: 0 0.5rem;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .game-showcase-card {
        padding: 1rem;
        min-height: auto;
    }
    .g-card-content {
        min-height: auto;
        justify-content: flex-start;
        gap: 1.5rem;
    }
    .g-card-top {
        margin-bottom: 0;
    }
    .icon-wrapper {
        padding: 6px;
    }
    .g-card-icon {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }
    .join-arrow {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    .g-card-bottom {
        gap: 0.5rem;
        width: 100%;
    }
    .g-card-bottom h3 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    .g-card-stats {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        gap: 0.3rem;
    }
}
