/* Global Styles */
:root {
    --primary-color: #9d4edd;
    /* Purple */
    --primary-dark: #7b2cbf;
    --secondary-color: #1e1e1e;
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a3a3a3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(245, 158, 11, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-main: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    gap: 10px;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.pulse-anim {
    animation: pulse 2s infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    /* RTL */
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.store-btn {
    background: rgba(245, 158, 11, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary-color) !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.store-btn:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.store-btn::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-connect-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.nav-connect-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

.nav-connect-btn i {
    font-size: 0.8rem;
}

.ip-copy-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a0a0a;
    border: 1px solid rgba(157, 78, 221, 0.4);
    padding: 12px 18px;
    border-radius: 12px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ip-copy-container:hover {
    border-color: var(--primary-color);
    background: #111;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
}

.ip-copy-container code {
    font-family: 'Consolas', monospace;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ip-copy-container i {
    color: #666;
    font-size: 1rem;
    transition: color 0.3s;
}

.ip-copy-container:hover i {
    color: var(--primary-color);
}

.copy-success-tip {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s;
}

.ip-copy-container.copied .copy-success-tip {
    opacity: 1;
}

.ip-copy-container.copied code,
.ip-copy-container.copied i {
    opacity: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(20, 20, 20, 0) 0%, var(--bg-color) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeUp 1s ease-out;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 50px rgba(245, 158, 11, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--glass-bg);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.status-text {
    font-weight: 700;
    color: #10b981;
}

.player-count {
    color: var(--text-muted);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 15px;
    margin-right: 5px;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -50px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #641477;
    /* Deep Purple accent */
    bottom: 50px;
    left: -50px;
    animation-delay: 2s;
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Streamers Marquee */
.streamers-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.streamers-track {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: scrollTrack 25s linear infinite;
}

.streamers-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-230px * 4 - 30px * 4));
        /* Width of 4 cards + gaps */
    }
}

/* Adjust for RTL site - if we want it right to left, and we use translateX negative, it moves left. */
[dir="rtl"] .streamers-track {
    animation: scrollTrackRTL 25s linear infinite;
}

@keyframes scrollTrackRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(230px * 4 + 30px * 4));
    }
}

.streamer-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 230px;
    /* Fixed width for calculation */
    flex-shrink: 0;
}

.streamer-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: var(--card-hover);
}

.streamer-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
    border: 3px solid transparent;
    transition: var(--transition);
}

.streamer-card:hover .streamer-avatar {
    border-color: var(--primary-color);
}

.streamer-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.live-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Stats Section */
.stats-section {
    background: #0a0a0a;
    padding: 60px 0;
    margin: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.glass-card-display {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.glass-card-display i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #000;
    padding: 80px 0 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #666;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
    /* RTL shift */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Language Button */
.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
}

.lang-btn::before {
    content: '\f0ac';
    /* Globe icon from FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    /* Show at top for better visibility */
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(10, 10, 10, 0.9);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    /* Modern rounded corners */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    /* Theme colored border */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Bouncy effect */
    z-index: 10000;
    backdrop-filter: blur(10px);
    min-width: 300px;
    justify-content: center;
}

.toast.show {
    transform: translateX(-50%) translateY(20px);
    /* Slide down */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.toast i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive */
/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        width: 92%;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* Navbar Mobile Styles */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 1.3rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Default hidden position */
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        border-left: 1px solid rgba(157, 78, 221, 0.2);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* When menu is active (via JS class) */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.3rem;
        display: block;
        padding: 10px;
    }

    .nav-connect-btn {
        margin-top: 20px;
        width: 80%;
        justify-content: center;
    }

    /* Grids */
    .about-grid,
    .streamers-grid,
    .store-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .stats-container {
        flex-direction: column;
        gap: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px;
    }

    .btn {
        width: 100%;
    }

    /* Hide cursor on mobile */
    .cursor,
    .cursor2 {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

/* Cursor Styles */
.cursor,
.cursor2 {
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

/* Inner dot */
.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.2s, height 0.2s;
}

/* Outer ring */
.cursor2 {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    background-color: rgba(157, 78, 221, 0.1);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Text hover effect */
p:hover,
h1:hover,
h2:hover,
h3:hover,
a:hover,
button:hover,
span:hover {
    cursor: none;
}

/* Global hover state for cursor (when hovering links/buttons) */
body.hovered .cursor {
    width: 15px;
    height: 15px;
    opacity: 0.8;
}

body.hovered .cursor2 {
    width: 60px;
    height: 60px;
    background-color: rgba(157, 78, 221, 0.2);
    border-color: var(--primary-color);
}

/* Video Background */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -10;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.6;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(5, 5, 5, 0.95) 100%);
    z-index: -5;
}

.hero-content {
    z-index: 10;
}

body {
    cursor: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Custom Modal */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.custom-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--primary-color);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.9);
}

.custom-modal.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    display: block;
}

.modal-desc {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 1rem;
    display: block;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    min-width: 100px;
}

.modal-btn.confirm {
    background: var(--primary-color);
    color: #fff;
}

.modal-btn.confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #aaa;
}

.modal-btn.cancel:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Cursor Styles */
.cursor,
.cursor2 {
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100000;
}

.cursor {
    width: 20px;
    height: 20px;
    background-color: #fff;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

.cursor2 {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

body {
    cursor: none;
}

/* Global hover state for cursor */
body.hovered .cursor {
    width: 50px;
    height: 50px;
}

body.hovered .cursor2 {
    opacity: 0;
}

/* Hover effects for cursor */
a:hover~.cursor2,
button:hover~.cursor2,
.streamer-card:hover~.cursor2 {
    width: 60px;
    height: 60px;
    background-color: rgba(157, 78, 221, 0.2);
    border-color: var(--primary-color);
}

/* Community Section Styles */
.community-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.4);
}

.community-header {
    max-width: 900px;
    margin: 0 auto 60px;
}

.community-header h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.community-header p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.community-card {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.1);
    padding: 50px 30px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.community-card:hover {
    transform: translateY(-15px);
    background: rgba(157, 78, 221, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.community-card p {
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.6;
}

.card-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.card-link:hover {
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Premium Animated Background (Glows & Shapes) */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
    background: #050505;
}

/* Atmospheric Purple Glows */
.bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.12) 0%, rgba(157, 78, 221, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -3;
    animation: moveGlow 25s infinite alternate ease-in-out;
}

@keyframes moveGlow {
    0% {
        transform: translate(-20%, -20%) scale(1);
    }

    100% {
        transform: translate(40%, 30%) scale(1.3);
    }
}

.floating-icon {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.15;
    animation: floatUp 15s infinite linear;
    text-shadow: 0 0 10px var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

.category-title {
    font-size: 2rem;
    color: #fff;
    margin: 60px 0 30px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 4px solid var(--primary-color);
    padding-right: 20px;
}

/* Mobile responsive for community grid */
@media (max-width: 992px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .community-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }
}