* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        linear-gradient(135deg, rgba(10, 14, 39, 0.92) 0%, rgba(26, 26, 46, 0.92) 50%, rgba(22, 33, 62, 0.92) 100%),
        url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=1920&q=80') center/cover no-repeat fixed;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Mobile background fix */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Fixed backgrounds can cause issues on mobile */
        background-size: cover;
        background-position: center center;
    }
    
    /* Alternative: Add a pseudo-element for better mobile performance */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            linear-gradient(135deg, rgba(10, 14, 39, 0.92) 0%, rgba(26, 26, 46, 0.92) 50%, rgba(22, 33, 62, 0.92) 100%),
            url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=1920&q=80') center/cover no-repeat;
        z-index: -2;
        pointer-events: none;
    }
}

/* Ensure grid overlay is visible on mobile */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 0, 255, 0.03) 2px, rgba(255, 0, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px);
    z-index: 0;
    pointer-events: none;
}

/* Hero section - ensure proper stacking */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 8rem 2rem 2rem;
    z-index: 1; /* Ensure content is above background */
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 100, 0.3) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Navigation */
nav {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 4px 30px rgba(145, 70, 255, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo in navbar (appears on scroll - desktop only) */
.nav-logo-scroll {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    flex-shrink: 0;
}

nav.scrolled .nav-logo-scroll {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 0, 255, 0.5),
                     0 0 20px rgba(255, 0, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5),
                     0 0 40px rgba(0, 255, 255, 0.3);
    }
}

/* Stream Status in navbar (appears on scroll - desktop only) */
.nav-status-scroll {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    flex-shrink: 0;
}

nav.scrolled .nav-status-scroll {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.stream-status-mini {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(139, 0, 0, 0.2));
    border: 2px solid rgba(255, 0, 0, 0.5);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.stream-status-mini i {
    font-size: 0.6rem;
    animation: pulse 2s ease-in-out infinite;
}

.stream-status-mini.live {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(220, 20, 60, 0.3));
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.6);
}

.stream-status-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
}

/* Desktop Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    align-items: center;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover::before {
    width: 80%;
}

nav ul li a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Hamburger Menu - HIDDEN ON DESKTOP */
.hamburger {
    display: none; /* Hidden by default on desktop */
}

/* ========================================
   MOBILE & TABLET NAVIGATION
   ======================================== */

@media (max-width: 1024px) {
    /* Hide desktop elements */
    .nav-logo-scroll,
    .nav-status-scroll {
        display: none !important;
    }
    
    /* Show hamburger button */
    .hamburger {
        display: flex !important;
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        z-index: 1003;
        width: 50px;
        height: 50px;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 0, 255, 0.4);
        border-radius: 12px;
        cursor: pointer;
        font-size: 1.8rem;
        color: #fff;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    
    .hamburger:hover {
        background: rgba(255, 0, 255, 0.2);
        border-color: #ff00ff;
        transform: scale(1.05);
    }
    
    .hamburger:active {
        transform: scale(0.95);
    }
    
    .hamburger i {
        pointer-events: none;
        display: block;
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
    }
    
    .hamburger.active {
        background: rgba(0, 255, 255, 0.25);
        border-color: #00ffff;
        box-shadow: 0 8px 30px rgba(0, 255, 255, 0.5);
    }
    
    /* Hide desktop menu, show mobile menu */
    nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(10, 14, 39, 0.97) 0%, rgba(26, 26, 46, 0.97) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        width: 85%;
        max-width: 350px;
        height: 100vh;
        text-align: left;
        transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 5px 0 40px rgba(0, 0, 0, 0.7);
        padding: 7rem 0 2rem;
        gap: 0;
        justify-content: flex-start;
        overflow-y: auto;
        z-index: 1002;
        border-right: 2px solid rgba(255, 0, 255, 0.2);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transform: translateX(-50px);
        display: block;
        width: 100%;
    }

    nav ul.active li {
        animation: slideInMenu 0.5s forwards;
    }

    nav ul.active li:nth-child(1) { animation-delay: 0.1s; }
    nav ul.active li:nth-child(2) { animation-delay: 0.15s; }
    nav ul.active li:nth-child(3) { animation-delay: 0.2s; }
    nav ul.active li:nth-child(4) { animation-delay: 0.25s; }
    nav ul.active li:nth-child(5) { animation-delay: 0.3s; }
    nav ul.active li:nth-child(6) { animation-delay: 0.35s; }

    @keyframes slideInMenu {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    nav ul li a {
        display: flex;
        align-items: center;
        padding: 1.5rem 2rem;
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }

    /* Remove desktop hover effects */
    nav ul li a::before {
        display: none !important;
    }

    nav ul li a:hover,
    nav ul li a:active {
        background: linear-gradient(90deg, rgba(255, 0, 255, 0.15) 0%, transparent 100%);
        padding-left: 2.8rem;
        color: #ff00ff;
        border-left: 4px solid #ff00ff;
        transform: none;
        box-shadow: none;
        text-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    }
    
    /* Overlay backdrop */
    nav ul.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: -1;
        animation: fadeInOverlay 0.4s ease;
    }

    @keyframes fadeInOverlay {
        from {
            opacity: 0;
            backdrop-filter: blur(0px);
        }
        to {
            opacity: 1;
            backdrop-filter: blur(10px);
        }
    }
    
    /* Add logo to mobile menu */
    nav ul::after {
        content: 'ILA247TV';
        position: absolute;
        top: 2rem;
        left: 2rem;
        font-size: 1.5rem;
        font-weight: 900;
        background: linear-gradient(45deg, #ff00ff, #00ffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 2px;
        opacity: 0;
    }
    
    nav ul.active::after {
        animation: logoFadeIn 0.5s forwards;
        animation-delay: 0.3s;
    }
    
    @keyframes logoFadeIn {
        to {
            opacity: 1;
        }
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hamburger {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }
    
    nav ul {
        width: 90%;
        max-width: 320px;
        padding-top: 6rem;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        padding: 1.3rem 1.8rem;
    }
    
    nav ul::after {
        font-size: 1.3rem;
        top: 1.5rem;
        left: 1.5rem;
    }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 1024px) {
    nav ul {
        width: 400px;
        max-width: 50vw;
    }
    
    nav ul li a {
        font-size: 1.4rem;
        padding: 1.8rem 2.5rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 8rem 2rem 2rem;
    z-index: 1; /* Ensure content is above background */
}

.hero h1 {
    font-size: 5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 5px;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px #ff00ff); }
    50% { filter: drop-shadow(0 0 40px #00ffff); }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cta-button {
    padding: 1rem 3rem;
    background: linear-gradient(45deg, #ff00ff, #ff0080);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.8);
}

/* Twitch Embed */
.twitch-embed {
    max-width: 1400px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.twitch-embed iframe {
    width: 100% !important;
    height: 720px !important;
    min-height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(145, 70, 255, 0.4);
    border: 3px solid rgba(145, 70, 255, 0.4);
}

/* Responsive Twitch Embed */
@media (max-width: 1400px) {
    .twitch-embed iframe {
        height: 650px !important;
    }
}

@media (max-width: 1024px) {
    .twitch-embed iframe {
        height: 550px !important;
    }
}

@media (max-width: 768px) {
    .twitch-embed {
        padding: 0 0.5rem;
    }
    
    .twitch-embed iframe {
        height: 450px !important;
        min-height: 350px;
        border-radius: 12px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .twitch-embed iframe {
        height: 350px !important;
        min-height: 280px;
        border-radius: 10px;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .twitch-embed iframe {
        height: 90vh !important;
    }
}

.load-stream-btn {
    padding: 1.5rem 3rem !important;
    font-size: 1.2rem !important;
    background: linear-gradient(45deg, #9146FF, #772CE8) !important;
    border: none !important;
    border-radius: 10px !important;
    color: white !important;
    cursor: pointer !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block;
    margin: 0 auto;
}

.load-stream-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.load-stream-btn:hover::before {
    left: 100%;
}

.load-stream-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.6) !important;
}

.load-stream-btn:active {
    transform: translateY(-1px) !important;
}

.load-stream-btn:disabled {
    cursor: not-allowed !important;
}

.load-stream-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sections */
section {
    padding: 5rem 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.profile-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    padding: 5px;
    display: inline-block;
}

.profile-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a2e;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #ccc;
}

/* Schedule Section */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.schedule-card {
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid #ff00ff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.schedule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.5);
    background: rgba(255, 0, 255, 0.2);
}

.schedule-card h3 {
    color: #00ffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.schedule-card p {
    color: #fff;
    font-size: 1.1rem;
}

/* Social Section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-link {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff00ff, #ff0080);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 2rem;
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.social-link:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.8);
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    position: relative;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid #00ffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.game-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.8) 70%, transparent 100%);
    padding: 1.5rem;
    text-align: center;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.game-card:hover .game-info {
    background: linear-gradient(to top, rgba(0, 255, 255, 0.9) 0%, rgba(255, 0, 255, 0.7) 70%, transparent 100%);
}

.game-card h3 {
    color: #00ffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.game-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.game-card p {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.9;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: #ff00ff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.6), 0 0 30px rgba(255, 0, 255, 0.4);
}

.game-score {
    color: #fcee09;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Currently Playing Section - Enhanced */
.currently-playing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem auto;
    padding: 2.5rem;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

.currently-playing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.now-playing-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #ff00ff, #9146FF);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.5);
    z-index: 1;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.current-game-cover {
    width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 0, 255, 0.5);
    transition: transform 0.3s ease;
    z-index: 1;
}

.current-game-cover:hover {
    transform: scale(1.05) rotateY(5deg);
}

.current-game-info {
    text-align: center;
    z-index: 1;
}

.game-title-glow {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.playing-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ======================================== */

/* Tablet (Portrait & Landscape) - iPad, Surface, etc. */
@media (max-width: 1024px) {
    /* Navigation */
    nav {
        padding: 1rem 3%;
    }
    
    nav ul li {
        margin: 0 0.8rem;
    }
    
    /* Hero */
    .hero {
        padding: 7rem 1.5rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    /* Currently Playing */
    .currently-playing {
        max-width: 500px;
        padding: 2rem;
        margin: 1.5rem auto;
    }
    
    .current-game-cover {
        width: 220px;
        height: 310px;
    }
    
    .game-title-glow {
        font-size: 2.2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Games Grid */
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Schedule */
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (Large) - iPhone Pro Max, Galaxy S23+, etc. */
@media (max-width: 768px) {
    /* Navigation */
    nav ul li {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 1rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    /* Stream Status */
    .stream-status {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Currently Playing - OPTIMIZED FOR MOBILE */
    .currently-playing {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
        max-width: 100%;
        gap: 1.2rem;
        border-radius: 15px;
    }
    
    .now-playing-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        letter-spacing: 1.5px;
    }
    
    .pulse-dot {
        width: 8px;
        height: 8px;
    }
    
    .current-game-cover {
        width: 200px;
        height: 280px;
        border-radius: 12px;
        border-width: 2px;
    }
    
    .current-game-cover:hover {
        transform: scale(1.02); /* Less dramatic on mobile */
    }
    
    .game-title-glow {
        font-size: 1.8rem;
    }
    
    .playing-subtitle {
        font-size: 0.95rem;
    }
    
    /* Twitch Embed */
    .load-stream-btn {
        font-size: 1rem !important;
        padding: 1rem 2rem !important;
    }
    
    /* Sections */
    section {
        padding: 3rem 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    /* Games Grid */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .game-card h3 {
        font-size: 0.9rem;
    }
    
    .game-card p {
        font-size: 0.8rem;
    }
    
    /* Schedule */
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .schedule-card {
        padding: 1.5rem;
    }
    
    /* Social Links */
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Mobile (Small) - iPhone SE, iPhone 12 mini, etc. */
@media (max-width: 480px) {
    /* Hero */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    /* Currently Playing - EXTRA COMPACT */
    .currently-playing {
        padding: 1.2rem 0.8rem;
        margin: 0.8rem auto;
        gap: 1rem;
    }
    
    .now-playing-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.8rem;
        letter-spacing: 1px;
    }
    
    .current-game-cover {
        width: 170px;
        height: 238px;
        border-radius: 10px;
    }
    
    .game-title-glow {
        font-size: 1.5rem;
    }
    
    .playing-subtitle {
        font-size: 0.85rem;
    }
    
    /* Navigation */
    nav ul li {
        margin: 0 0.3rem;
        font-size: 0.8rem;
    }
    
    /* Stream Status */
    .stream-status {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0.8rem;
    }
    
    section h2 {
        font-size: 1.7rem;
    }
    
    /* About */
    .about-image {
        max-width: 250px;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    /* Games Grid */
    .games-grid {
        gap: 0.8rem;
    }
    
    .game-card img {
        height: 220px;
    }
    
    /* Social Links */
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Load Stream Button */
    .load-stream-btn {
        font-size: 0.9rem !important;
        padding: 0.8rem 1.5rem !important;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 5rem 1rem 1rem;
    }
    
    .currently-playing {
        flex-direction: row;
        max-width: 90%;
        gap: 1.5rem;
    }
    
    .current-game-cover {
        width: 160px;
        height: 224px;
    }
    
    .current-game-info {
        text-align: left;
    }
    
    .game-title-glow {
        font-size: 1.8rem;
    }
}

/* Very Small Screens - iPhone SE 1st gen, etc. */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .current-game-cover {
        width: 150px;
        height: 210px;
    }
    
    .game-title-glow {
        font-size: 1.3rem;
    }
    
    .now-playing-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 14, 39, 0.95);
    color: #888;
    border-top: 2px solid #ff00ff;
}

/* Stream Status */
.stream-status {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #ff0000;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    animation: blink 2s infinite;
    margin-top: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    position: relative;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.stream-status.offline {
    background: #666;
    animation: none;
    box-shadow: 0 0 20px rgba(102, 102, 102, 0.5);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.5);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(255, 0, 255, 0.8);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   SCROLL ANIMATIONS - ENHANCED
   ======================================== */

/* Base animation classes */
.fade-in-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Slide animations */
.slide-from-left {
    transform: translateX(-100px) !important;
    opacity: 0;
}

.slide-from-left.fade-in-visible {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.slide-from-right {
    transform: translateX(100px) !important;
    opacity: 0;
}

.slide-from-right.fade-in-visible {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

/* Scale animation */
.scale-in {
    transform: scale(0.7) !important;
    opacity: 0;
}

.scale-in.fade-in-visible {
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* Stagger animation for children */
.animate-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-child.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero parallax effect */
.hero {
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
}

/* Game cards 3D hover enhancement */
.game-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    transform-style: preserve-3d;
}

.game-card:hover {
    z-index: 10;
}

/* Schedule cards animation */
.schedule-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    transform-style: preserve-3d;
}

/* Social links enhanced animation */
.social-link {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    will-change: transform;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.social-link:hover::before {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0.4;
}

.social-link:hover {
    transform: scale(1.2) rotate(360deg);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images - more dramatic */
.game-card img,
.about-image img {
    opacity: 0;
    animation: imageLoad 0.8s ease-in forwards;
    animation-delay: 0.2s;
}

@keyframes imageLoad {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Text reveal animation - more visible */
section h2 {
    overflow: visible;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.3), transparent);
    transform: translateX(-100%);
    pointer-events: none;
}

section h2.fade-in-visible::after {
    animation: textReveal 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes textReveal {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Currently Playing animation enhancement */
.currently-playing {
    animation: slideDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
               glowPulse 3s ease-in-out infinite 1s;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(255, 0, 255, 0.3);
    }
    50% {
        box-shadow: 0 20px 80px rgba(255, 0, 255, 0.7);
    }
}

/* Stream status pulse - more dramatic */
.stream-status {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 40px rgba(255, 0, 0, 1);
    }
}

/* Back to top button enhanced */
.back-to-top {
    transform: translateY(100px) scale(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.3s ease;
}

.back-to-top.show {
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1) rotate(360deg);
}

/* Section entrance animations */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transition: width 1s ease-out;
}

section.fade-in-visible::before {
    width: 100%;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in-element,
    .animate-child {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Performance optimizations */
.game-card,
.schedule-card,
.social-link {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .fade-in-element {
        transform: translateY(30px);
    }
    
    .slide-from-left {
        transform: translateX(-50px) !important;
    }
    
    .slide-from-right {
        transform: translateX(50px) !important;
    }
    
    .game-card:hover {
        transform: perspective(1000px) rotateX(0) rotateY(0) translateY(-5px) scale(1.02);
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .game-card:hover {
        transform: translateY(-8px) scale(1.03);
    }
}

/* ========================================
   CLIPS GALLERY
   ======================================== */

#clips {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.05), rgba(255, 0, 255, 0.05));
    padding: 4rem 2rem;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.loading-clips {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.clip-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(40, 40, 70, 0.9));
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.clip-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 0, 255, 0.8);
    box-shadow: 0 20px 50px rgba(255, 0, 255, 0.4);
}

.clip-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.clip-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.clip-card:hover .clip-thumbnail img {
    transform: scale(1.1);
}

.clip-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.clip-card:hover .clip-play-overlay {
    background: rgba(0, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.2);
}

.clip-play-overlay i {
    font-size: 2rem;
    color: #fff;
    margin-left: 5px;
}

.clip-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}

.clip-info {
    padding: 1.5rem;
}

.clip-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.clip-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.clip-meta i {
    margin-right: 0.3rem;
}

.clip-date {
    color: rgba(0, 255, 255, 0.8);
}

/* Clip Modal/Lightbox */
.clip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
}

.clip-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.clip-modal-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
}

.clip-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 0, 255, 0.8);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clip-modal-close:hover {
    background: rgba(255, 0, 255, 1);
    transform: rotate(90deg);
}

.clip-modal iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(255, 0, 255, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1400px) {
    .clips-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on smaller laptops */
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .clips-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .clips-grid {
        grid-template-columns: repeat(2, 1fr); /* Still 2 columns on mobile landscape */
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .clips-grid {
        grid-template-columns: 1fr; /* 1 column on small mobile */
        gap: 1.5rem;
    }
    
    .clip-play-overlay {
        width: 60px;
        height: 60px;
    }
    
    .clip-play-overlay i {
        font-size: 1.5rem;
    }
    
    .clip-modal iframe {
        height: 40vh;
    }
}

