* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #ff0000;
    --secondary-color: #121212;
    --accent-color: #ffcc00;
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
    --card-hover: rgba(50, 50, 50, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.5);
    animation: float 20s linear infinite;
    transform-origin: center;
}

.particle:nth-child(odd) {
    background: var(--accent-color);
    box-shadow: 0 0 20px 5px rgba(255, 204, 0, 0.5);
    animation: floatReverse 25s linear infinite;
}

.particle:nth-child(1) { width: 40px; height: 40px; top: 10%; left: 5%; animation-duration: 30s; animation-delay: 0s; }
.particle:nth-child(2) { width: 25px; height: 25px; top: 20%; left: 80%; animation-duration: 25s; animation-delay: 1s; }
.particle:nth-child(3) { width: 35px; height: 35px; top: 30%; left: 15%; animation-duration: 35s; animation-delay: 2s; }
.particle:nth-child(4) { width: 20px; height: 20px; top: 70%; left: 90%; animation-duration: 40s; animation-delay: 3s; }
.particle:nth-child(5) { width: 45px; height: 45px; top: 90%; left: 25%; animation-duration: 45s; animation-delay: 4s; }
.particle:nth-child(6) { width: 15px; height: 15px; top: 50%; left: 60%; animation-duration: 20s; animation-delay: 5s; }
.particle:nth-child(7) { width: 30px; height: 30px; top: 40%; left: 35%; animation-duration: 32s; animation-delay: 6s; }
.particle:nth-child(8) { width: 22px; height: 22px; top: 15%; left: 75%; animation-duration: 38s; animation-delay: 7s; }
.particle:nth-child(9) { width: 38px; height: 38px; top: 65%; left: 10%; animation-duration: 28s; animation-delay: 8s; }
.particle:nth-child(10) { width: 18px; height: 18px; top: 85%; left: 50%; animation-duration: 42s; animation-delay: 9s; }

@keyframes float {
    0% {
        transform: translateY(0) rotate(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-50px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) rotate(180deg) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-50px) rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes floatReverse {
    0% {
        transform: translateY(0) rotate(360deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-50px) rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) rotate(180deg) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-50px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) rotate(0) scale(1);
        opacity: 0.3;
    }
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-container a{
    text-decoration: none;
}

.logo {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px rgba(255, 0, 0, 0.7); }
    50% { text-shadow: 0 0 20px rgba(255, 0, 0, 0.9); }
    100% { text-shadow: 0 0 10px rgba(255, 0, 0, 0.7); }
}

.subscribe-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

.search-container {
    display: flex;
    margin-bottom: 1rem;
}

#searchInput {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 25px 0 0 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

#searchBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchBtn:hover {
    background-color: #cc0000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    justify-content: center;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 600;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(255, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-info h3 {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-count-wrapper {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.counter {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
}

.stat-info .fa-plus {
    color: var(--primary-color);
    font-size: 1rem;
    animation: plusBounce 1s infinite;
    margin-left: 4px;
}

@keyframes plusBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Scrolling Banner */
.scrolling-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #ff0000, #ff6b00, #ff0066);
    padding: 12px 0;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(255, 0, 0, 0.3);
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-text {
    white-space: nowrap;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    animation: scrollText 30s linear infinite;
    padding: 0 20px;
}

.banner-text:hover {
    animation-play-state: paused;
}

/* Styled Game IDs */
.game-id {
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 10px #00ffff;
    animation: glowPulse 1.5s infinite alternate;
    padding: 0 2px;
}

/* Guild Name Style */
.guild-name {
    color: #00ff8c;
    font-weight: 800;
    text-shadow: 0 0 15px #00ff8c,
                 0 0 25px #00ff8c;
    animation: neonPulse 2s infinite;
    padding: 0 2px;
    letter-spacing: 1px;
}

/* Guild ID Style */
.guild-id {
    color: #ffd700;
    font-weight: 800;
    text-shadow: 0 0 10px #ffd700,
                 0 0 20px #ffd700,
                 0 0 30px #ff6b00;
    animation: goldPulse 2s infinite;
    padding: 0 2px;
    letter-spacing: 0.5px;
}

@keyframes goldPulse {
    0% {
        color: #ffd700;
        text-shadow: 0 0 10px #ffd700,
                     0 0 20px #ffd700;
    }
    50% {
        color: #fff000;
        text-shadow: 0 0 15px #ffd700,
                     0 0 25px #ffd700,
                     0 0 35px #ff6b00;
    }
    100% {
        color: #ffd700;
        text-shadow: 0 0 10px #ffd700,
                     0 0 20px #ffd700;
    }
}

@keyframes neonPulse {
    0% {
        color: #00ff8c;
        text-shadow: 0 0 15px #00ff8c,
                     0 0 25px #00ff8c;
    }
    50% {
        color: #00ffd5;
        text-shadow: 0 0 20px #00ffd5,
                     0 0 35px #00ffd5,
                     0 0 45px #00ffd5;
    }
    100% {
        color: #00ff8c;
        text-shadow: 0 0 15px #00ff8c,
                     0 0 25px #00ff8c;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowPulse {
    from {
        text-shadow: 0 0 10px currentColor;
        transform: scale(1);
    }
    to {
        text-shadow: 0 0 20px currentColor,
                     0 0 30px currentColor;
        transform: scale(1.05);
    }
}

@keyframes rainbowText {
    0% { color: #ff0000; text-shadow: 0 0 15px #ff0000; }
    25% { color: #ffff00; text-shadow: 0 0 15px #ffff00; }
    50% { color: #00ff00; text-shadow: 0 0 15px #00ff00; }
    75% { color: #00ffff; text-shadow: 0 0 15px #00ffff; }
    100% { color: #ff0000; text-shadow: 0 0 15px #ff0000; }
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Add responsive styles for the banner */
@media (max-width: 768px) {
    .banner-text {
        font-size: 0.9rem;
        animation-duration: 25s;
    }
    
    .scrolling-banner {
        padding: 10px 0;
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--accent-color);
}

.content-section {
    margin-bottom: 3rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--card-bg);
    border-radius: 10px;
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: visible !important;
    transition: transform 0.3s ease;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: transparent;
    border-radius: 12px;
    z-index: -1;
}

.video-card .path-container {
    position: absolute;
    inset: -4px;
    pointer-events: none;
    z-index: -1;
    border-radius: 12px;
    overflow: hidden;
}

.moving-light {
    position: absolute;
    width: 30px;
    height: 4px;
    background: linear-gradient(90deg, rgba(9, 224, 45, 0) 0%, #a3ff05 50%, rgba(14, 206, 110, 0) 100%);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 
        0 0 5px rgb(221, 255, 0),
        0 0 10px rgba(255, 0, 0, 0.9),
        0 0 15px rgba(255, 0, 0, 0.8),
        0 0 25px rgba(255, 0, 0, 0.6);
    opacity: 0.95;
}

.video-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, 
        #ff0000 0%, 
        #ff6b6b 25%,
        #ff0000 50%, 
        #ff6b6b 75%, 
        #ff0000 100%);
    border-radius: 12px;
    z-index: -1;
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card:hover::before {
    filter: brightness(1.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Reels Styling */
.reels-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

.reels-container::-webkit-scrollbar {
    height: 6px;
}

.reels-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.reels-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.reel-card {
    min-width: 200px;
    width: 200px;
    background-color: var(--card-bg);
    border-radius: 10px;
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: visible !important;
    transition: transform 0.3s ease;
}

.reel-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: transparent;
    border-radius: 12px;
    z-index: -1;
}

.reel-card .path-container {
    position: absolute;
    inset: -4px;
    pointer-events: none;
    z-index: -1;
    border-radius: 12px;
    overflow: hidden;
}

.reel-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, 
        #ff6b6b 0%, 
        #ff0000 25%,
        #ff6b6b 50%, 
        #ff0000 75%, 
        #ff6b6b 100%);
    border-radius: 12px;
    z-index: -1;
    background-size: 200% 100%;
    animation: gradientMoveReverse 3s linear infinite;
}

@keyframes gradientMoveReverse {
    0% {
        background-position: 200% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.reel-card:hover {
    transform: translateY(-5px);
}

.reel-card:hover::before {
    filter: brightness(1.2);
}

.reel-thumbnail {
    position: relative;
    width: 100%;
    height: 355px;
    overflow: hidden;
}

.reel-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-info {
    padding: 0.8rem;
}

.reel-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Subscribe Banner */
.subscribe-banner {
    background: linear-gradient(135deg, #ff0000 0%, #990000 100%);
    margin-top: 2rem;
    padding: 3rem 1rem;
    text-align: center;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.subscribe-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 3rem 1rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .stats-section {
        gap: 1rem;
    }
    
    .stat-card {
        width: 100%;
        max-width: 300px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .logo-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .subscribe-button {
        width: 100%;
        justify-content: center;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section {
    animation: fadeIn 0.6s ease forwards;
}

#popularVideos { animation-delay: 0.1s; }
#allVideos { animation-delay: 0.2s; }
#popularReels { animation-delay: 0.3s; }
#allReels { animation-delay: 0.4s; }

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 0, 0, 0.3);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No results found */
.no-results {
    text-align: center;
    padding: 3rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    margin: 2rem 0;
}

.no-results i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: rgba(255, 255, 255, 0.7);
}

/* Popup Banner */
.popup-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    animation: popupAppear 0.5s ease forwards;
}

.banner-title {
    color: #ff0000;
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: glowText 2s ease-in-out infinite;
}

.banner-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.banner-image-container:hover .banner-image {
    transform: scale(1.05);
}

.animated-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 12px;
    animation: borderRotate 4s linear infinite;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 14px;
    animation: borderRotate 4s linear infinite reverse;
}

.popup-banner.zoomed .popup-content {
    transform: scale(5);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1100;
}

.popup-banner.zoomed {
    background: rgba(0, 0, 0, 0.98);
    cursor: zoom-out;
}

.popup-banner.zoomed .close-button {
    transform: scale(0.2);
    opacity: 0.8;
}

.popup-banner.zoomed .banner-title {
    transform: scale(0.2);
    opacity: 0.8;
}

/* Add smooth panning effect when zoomed */
.popup-banner.zoomed .popup-content {
    cursor: move;
    transition: transform 0.5s ease, margin 0.3s ease;
}

@keyframes glowText {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.8),
                     0 0 30px rgba(255, 0, 0, 0.6);
    }
}

@keyframes borderRotate {
    0% {
        border-image: linear-gradient(0deg, #ff0000, #ff6b6b, transparent) 1;
    }
    25% {
        border-image: linear-gradient(90deg, #ff0000, #ff6b6b, transparent) 1;
    }
    50% {
        border-image: linear-gradient(180deg, #ff0000, #ff6b6b, transparent) 1;
    }
    75% {
        border-image: linear-gradient(270deg, #ff0000, #ff6b6b, transparent) 1;
    }
    100% {
        border-image: linear-gradient(360deg, #ff0000, #ff6b6b, transparent) 1;
    }
}

.popup-banner.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.close-button {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button:hover {
    transform: scale(1.1);
    background: #cc0000;
}

.close-button .countdown {
    position: absolute;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.close-button i {
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.close-button:hover i {
    opacity: 1;
}

.close-button:hover .countdown {
    opacity: 0;
}

@keyframes popupAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive Popup Banner */
@media (max-width: 768px) {
    .popup-banner {
        width: 90%;
        padding: 15px;
    }
    
    .close-button {
        width: 30px;
        height: 30px;
    }
    
    .close-button .countdown,
    .close-button i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-banner {
        width: 95%;
        padding: 10px;
    }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #cc0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.chatbot-button i {
    color: white;
    font-size: 24px;
}

.chatbot-message {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--primary-color);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    width: max-content;
    max-width: 250px;
    animation: messagePopup 0.5s ease-out;
    display: none;
    color: white;
    font-weight: 500;
    opacity: 0.95;
}

.chatbot-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary-color);
}

.chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #cc0000);
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.chat-close {
    cursor: pointer;
    font-size: 20px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #1a1a1a;
}

.bot-message {
    margin: 10px 0;
}

.bot-message div {
    background: #333333;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    display: inline-block;
    max-width: 80%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-input {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    background: #1a1a1a;
}

.chat-input input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    outline: none;
    background: #333333;
    color: white;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #cc0000;
}

@keyframes messagePopup {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}