/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Default font-size, mudah diatur responsif */
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1d;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden; /* Menghindari horizontal scrolling */
}

img {
    max-width: 100%;
    height: auto;
}

/* Navbar */
header {
    background: #242424;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-in-out; /* Animation for header */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff9800;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #ff9800;
    animation: pulse 0.5s; /* Pulse effect on hover */
}

.cta-btn .btn {
    padding: 0.75rem 1.5rem;
    background-color: #ff9800;
    color: #fff;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease-in-out;
}

.cta-btn .btn:hover {
    background-color: #e68900;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: url('https://your-image-url.com');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    animation: fadeIn 1s; /* Fade-in effect for hero section */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideIn 0.5s ease-out; /* Slide-in effect for heading */
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-btn {
    padding: 1rem 2rem;
    background-color: #ff9800;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    transition: background 0.3s ease-in-out;
}

.hero-btn:hover {
    background-color: #e68900;
}

/* Sections */
section {
    padding: 5rem 0;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.about-section, .servers-section, .join-section {
    background-color: #1a1a1d;
    color: #fff;
    text-align: center;
}

.about-section h2, .servers-section h2, .join-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s; /* Fade-in effect for section headings */
}

.servers-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.server-item {
    flex: 1;
    padding: 1.5rem;
    background-color: #242424;
    border-radius: 10px;
    margin: 1rem;
    min-width: 280px;
    transition: transform 0.3s ease;
    animation: bounceIn 0.5s; /* Bounce-in effect for server items */
}

.server-item:hover {
    transform: translateY(-10px);
}

.server-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.join-btn {
    padding: 0.75rem 1.5rem;
    background-color: #ff9800;
    color: #fff;
    border-radius: 25px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.join-btn:hover {
    background-color: #e68900;
}

/* Footer */
footer {
    background-color: #242424;
    text-align: center;
    padding: 2rem 0;
    color: #fff;
}

footer p {
    margin-bottom: 1rem;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    text-decoration: none;
    color: #ff9800;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
}

.social-links a:hover {
    color: #e68900;
}

/* Keyframe Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .servers-list {
        flex-direction: column;
        align-items: center;
    }

    .server-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .navbar {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .hero-btn {
        padding: 0.75rem 1.5rem;
    }

    .about-section h2, .servers-section h2, .join-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .cta-btn .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .server-item h3 {
        font-size: 1.5rem;
    }
}
