/* ==== Global Styles ==== */
body {
    background-color: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==== Floating Animated Icons Background ==== */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* allows clicks through icons */
    overflow: hidden;
    z-index: 100;
}

.floating-icons i {
    position: absolute;
    font-size: 24px;
    color: #ff3366;
    /* bright pink */
    animation: floatIcons linear infinite;
    opacity: 0.7;
}

/* Random positions and durations */
.floating-icons i:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
    top: 30%;
    left: 25%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.floating-icons i:nth-child(3) {
    top: 50%;
    left: 50%;
    animation-duration: 22s;
    animation-delay: 4s;
}

.floating-icons i:nth-child(4) {
    top: 70%;
    left: 75%;
    animation-duration: 20s;
    animation-delay: 6s;
}

.floating-icons i:nth-child(5) {
    top: 20%;
    left: 90%;
    animation-duration: 28s;
    animation-delay: 8s;
}

/* Floating animation */
@keyframes floatIcons {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0.5;
    }
}

/* ==== Hero Section ==== */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('/default_images/bg.jpg') no-repeat center center/cover;
    padding: 120px 20px;
    text-align: center;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 51, 102, 0.1), transparent 70%);
    z-index: 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #ff3366;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.btn-main {
    background-color: #ff3366;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    transition: 0.3s;
    display: inline-block;
}

.btn-main:hover {
    background-color: #ff5577;
}

/* ==== Features Section ==== */
.container {
    text-align: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.container h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.col {
    flex: 1;
    min-width: 260px;
    max-width: 350px;
    background: #1c1c1c;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.col:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.features i {
    font-size: 2rem;
    color: #ff3366;
    margin-bottom: 15px;
}

/* ==== Articles Section ==== */
.articles {
    background-color: #1a1a1a;
    padding: 60px 20px;
    border-top: 2px solid #222;
    position: relative;
    z-index: 1;
}

.articles h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #ff3366;
}

.article-list {
    max-width: 800px;
    margin: auto;
    text-align: left;
}

.article-item {
    padding: 12px 15px;
    background: #222;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.article-item:hover {
    background: #333;
}

.article-item i {
    color: #ff3366;
    margin-right: 10px;
}

.article-item a {
    font-weight: bold;
    color: #fff;
    transition: color 0.3s;
}

.article-item a:hover {
    color: #ff5577;
}

/* ==== Article Page Styles ==== */
.article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.7;
    font-size: 1rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.article-page h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ff3366;
    text-align: center;
}

.article-page h2 {
    font-size: 2rem;
    margin: 25px 0 15px;
    color: #ff5577;
}

.article-page h3 {
    font-size: 1.6rem;
    margin: 20px 0 10px;
    color: #ff7799;
}

.article-page p {
    margin-bottom: 20px;
}

.article-page ul,
.article-page ol {
    margin: 10px 0 20px 25px;
}

.article-page blockquote {
    border-left: 4px solid #ff3366;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #f0f0f0;
    background: rgba(255, 51, 102, 0.05);
    border-radius: 6px;
}

.article-page img {
    max-width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
}

.article-page a {
    color: #ff3366;
    text-decoration: underline;
    transition: color 0.3s;
}

.article-page a:hover {
    color: #ff7799;
}

/* ==== Call to Action ==== */
.cta {
    text-align: center;
    padding: 60px 20px;
    background-color: #222;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ff3366;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* ==== Footer ==== */
.footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    color: #aaa;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.footer nav a {
    color: #888;
    margin: 0 8px;
    font-size: 0.9rem;
}

.footer nav a:hover {
    color: #ff3366;
}

/* ==== Chatroom Scroller ==== */
.chat-scroller {
    margin: 40px auto;
    padding: 20px;
    background: #111;
    color: #fff;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.chat-scroller h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
    color: #ff3366;
}

.scroller {
    display: flex;
    gap: 20px;
    animation: scroll-left 25s linear infinite;
    white-space: nowrap;
}

.scroll-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #ff3366;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #ff3366;
    text-decoration: none;
    transition: all 0.3s ease, transform 0.2s ease;
    animation: pulse 2.5s infinite;
}

.scroll-item i {
    font-size: 1.2rem;
    color: inherit;
}

.scroll-item:hover {
    background: #ff3366;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.6);
}

/* Pulse Glow Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255, 51, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0);
    }
}

/* Auto-scroll animation */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .row {
        flex-direction: column;
        gap: 15px;
    }
}