/* --- Global Styles --- */
body {
    background-color: #121212; /* A dark, modern background */
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* --- Navigation & Header --- */
.navigation-group {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.navigation-group a {
    color: #b9bbbe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navigation-group a:hover {
    color: white;
}

.title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.title-group h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5865F2; /* Discord's blurple */
    margin: 0;
}

.subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #b9bbbe;
    margin-bottom: 2rem;
}

/* --- Search Section --- */
.search-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    background-color: #202225;
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: white;
    padding: 1rem;
    outline: none;
    font-size: 1em;
}

.search-input::placeholder {
    color: #72767d;
}

.search-button {
    background-color: #5865F2;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #4a54e1;
}

/* --- Section Dividers --- */
.section-divider {
    border: 0;
    height: 1px;
    background-color: #36393f;
    margin: 3rem auto;
    width: 80%;
}

/* --- Features Section --- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.feature-card {
    background-color: #202225;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-title {
    color: #5865F2;
}

.command-code {
    display: inline-block;
    background-color: #2f3136;
    color: #a4a4a4;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    margin-top: 1rem;
}

/* --- Buttons --- */
.add-bot-button {
    background-color: #5865F2;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.add-bot-button:hover {
    background-color: #4a54e1;
    transform: translateY(-2px);
}

.donate-button {
    background-color: #2ecc71;
    color: white;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.donate-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #36393f;
    font-size: 0.9rem;
    color: #72767d;
}

.footer-link {
    color: #b9bbbe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* --- Scroll-to-Top Button --- */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: #5865F2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* --- Fade-in on Scroll Animation --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(20px);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
