/* Global Styles */
:root {
    --primary-color: #00f5ff;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --light-text: #f0f0f0;
    --gray-text: #a0a0a0;
    --card-bg: #1e1e1e;
    --accent-red: #ff4d4d;
    --accent-green: #4dff4d;
    --accent-yellow: #ffcc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    text-align: center;
}

.circular-loader {
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

.path {
    stroke: var(--primary-color);
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

.loader p {
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: var(--card-bg);
    color: var(--light-text);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease-in-out;
    border-left: 4px solid var(--primary-color);
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.error { border-left-color: var(--accent-red); }
.toast.success { border-left-color: var(--accent-green); }

/* Header Styles */
header {
    background-color: var(--darker-bg);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a.active::after,
nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    margin-top: 0;
    overflow: hidden;
    background-attachment: fixed;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    background: linear-gradient(90deg, #00f5ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-text);
    max-width: 600px;
}

.btn-request {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.btn-request:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.8);
}

/* Popular Mods Section */
.popular-mods {
    padding: 80px 0;
    background-color: var(--darker-bg);
}

.popular-mods h2,
.request-form h2,
.catalog h2,
.public-requests h2,
.faq h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}

.popular-mods h2::after,
.request-form h2::after,
.catalog h2::after,
.public-requests h2::after,
.faq h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 10px auto;
}

.popular-mods h2 i,
.request-form h2 i,
.catalog h2 i,
.public-requests h2 i,
.faq h2 i {
    margin-right: 10px;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mod-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.mod-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.2);
}

.mod-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.mod-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.mod-card .rating {
    color: var(--accent-yellow);
    margin-bottom: 10px;
    font-weight: 600;
}

.mod-card .download-count {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.mod-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.mod-card .btn-popular {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(0, 245, 255, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.mod-card .btn-popular:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* Announcement Section */
.announcement {
    padding: 30px 0;
    background-color: rgba(0, 245, 255, 0.1);
}

.announcement-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 5px;
}

.announcement-box i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-right: 20px;
}

.announcement-box p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Request Form Section */
.request-form {
    padding: 80px 0;
    background-color: var(--dark-bg);
    position: relative;
}

.request-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080/121212/00f5ff?text=SeputarMod48') no-repeat center center/cover;
    opacity: 0.05;
    z-index: 0;
}

.request-form .container {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #333; /* Mengubah warna teks input dan select menjadi abu-abu gelap */
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.form-group select option {
    color: #333; /* Mengubah warna teks opsi dropdown menjadi abu-abu gelap */
    background-color: var(--dark-bg); /* Sesuaikan dengan latar belakang */
}

.feature-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.feature-btn {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #333; /* Mengubah warna teks menjadi abu-abu gelap saat tidak aktif */
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.feature-btn.active {
    background-color: var(--primary-color);
    color: #333; /* Warna teks tetap abu-abu gelap saat aktif */
    border-color: var(--primary-color);
}

.feature-btn:hover {
    background-color: var(--primary-color);
    color: #333; /* Warna teks tetap abu-abu gelap saat hover */
    border-color: var(--primary-color);
}

.captcha-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 15px;
    padding: 5px 15px;
    background-color: rgba(0, 245, 255, 0.1);
    border-radius: 5px;
}

.btn-refresh {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}

.btn-refresh:hover {
    background-color: rgba(0, 245, 255, 0.1);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #00d5e0;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

/* Catalog Section */
.catalog {
    padding: 80px 0;
    background-color: var(--darker-bg);
}

.filter-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-options select {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #333; /* Mengubah warna teks menjadi abu-abu gelap */
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.filter-options select option {
    color: #333; /* Mengubah warna teks opsi dropdown menjadi abu-abu gelap */
    background-color: var(--dark-bg); /* Sesuaikan dengan latar belakang */
}

.filter-options select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.catalog-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 245, 255, 0.1);
}

.catalog-item:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.2);
}

.catalog-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.catalog-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.catalog-item .features {
    list-style: none;
    margin-bottom: 15px;
}

.catalog-item .features li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--gray-text);
    padding-left: 20px;
    position: relative;
}

.catalog-item .features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.catalog-item .meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.catalog-item .platform {
    color: var(--gray-text);
}

.catalog-item .rating {
    color: var(--accent-yellow);
}

.catalog-item .download-count {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-download {
    display: block;
    text-align: center;
    background-color: var(--accent-green);
    color: #000;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download:hover {
    background-color: #3ce03c;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(77, 255, 77, 0.3);
}

/* Public Requests Section */
.public-requests {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: var(--card-bg);
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background-color: rgba(0, 245, 255, 0.1);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

tr:hover {
    background-color: rgba(0, 245, 255, 0.05);
}

.status-completed { color: var(--accent-green); }
.status-processing { color: var(--accent-yellow); }
.status-pending { color: var(--gray-text); }

.btn-vote {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-vote:hover {
    background-color: #00d5e0;
    transform: translateY(-2px);
}

.btn-vote:disabled {
    background-color: var(--gray-text);
    cursor: not-allowed;
}

.vote-progress {
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 5px;
    margin-top: 5px;
    transition: width 0.5s ease;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--darker-bg);
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.faq-question {
    width: 100%;
    padding: 15px;
    background-color: var(--card-bg);
    border: none;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: rgba(0, 245, 255, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 15px 0;
    color: var(--gray-text);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0, 245, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section .profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.footer-section p {
    color: var(--gray-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.footer-section form {
    display: flex;
    gap: 10px;
}

.footer-section input {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--light-text);
    flex: 1;
}

.footer-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-subscribe {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background-color: #00d5e0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #00d5e0;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h2 { font-size: 2.2rem; }
    .popular-mods h2, .request-form h2, .catalog h2, .public-requests h2, .faq h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--darker-bg);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    nav ul.show { display: flex; }
    nav ul li { margin: 10px 0; }
    .mobile-menu { display: block; }
    .hero-content h2 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .filter-options { flex-direction: column; }
    .filter-options select { width: 100%; }
}

@media (max-width: 576px) {
    .hero { height: 80vh; }
    .hero-content h2 { font-size: 1.6rem; }
    .btn-request { padding: 12px 30px; }
    .popular-mods h2, .request-form h2, .catalog h2, .public-requests h2, .faq h2 { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.9rem; }
    .mod-grid, .catalog-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}