/* Dark Mode Discord-like Theme with Background Image */
:root {
    /* Colors */
    --bg-darker: rgba(35, 39, 42, 0.95); /* Dark gray with slight transparency for readability */
    --accent: #7289da;       /* Discord Blurple */
    --text-main: #ffffff;
    --text-muted: #b9bbbe;
}

body {
    /* --- New Background Settings --- */
    background-image: url('background.png'); /* Uses the image you uploaded */
    background-size: cover;                  /* Scales image to cover entire screen */
    background-position: center top;         /* Centers image and aligns to top */
    background-attachment: fixed;            /* Background stays still while scrolling */
    background-repeat: no-repeat;            /* Prevents repeating */
    /* ------------------------------- */
    
    color: var(--text-main);
    font-family: 'gg sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh; /* Ensures body is at least full screen height */
}

/* Navigation */
nav {
    background-color: var(--bg-darker); /* Semi-transparent background */
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    backdrop-filter: blur(5px); /* Adds a slight blur behind nav for cool effect */
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* Main Layout */
section {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--bg-darker); /* Semi-transparent background */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Stronger shadow to pop out from bg */
    backdrop-filter: blur(5px); /* Slight blur behind content */
}

/* Hero Section (Welcome) */
.hero {
    text-align: center;
    border-top: 4px solid var(--accent);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Typography & Content */
h2, h3, h4 {
    color: var(--accent);
    margin-top: 1.5em;
}

h3 {
    border-bottom: 2px solid #2c2f33;
    padding-bottom: 10px;
    font-size: 1.8rem;
    margin-top: 0;
}

h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    color: #dcddde;
    margin-bottom: 1rem;
}

ul {
    margin-left: 20px;
    color: #dcddde;
}

li {
    margin-bottom: 8px;
}

strong {
    color: white;
}

/* Code Snippets */
code {
    background-color: rgba(32, 34, 37, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.9em;
}

/* Links inside text */
section a {
    color: var(--accent);
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--bg-darker); /* Semi-transparent background */
    margin-top: 50px;
    backdrop-filter: blur(5px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- Hero Styles (Logo & Buttons) --- */

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 20px 0;
    border: 3px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    color: white !important;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.invite-btn { background-color: var(--accent); }
.support-btn { background-color: #4f545c; }

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    section {
        margin: 20px;
        padding: 20px;
    }
}

/* --- Feature Boxes Styling --- */

/* Container for the 3 boxes */
.features-container {
    max-width: 1000px; /* Wider than the hero section to fit 3 boxes */
    margin: 20px auto;
    padding: 0;
    background-color: transparent; /* No background for the container itself */
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-wrap: wrap; /* Allows boxes to stack on mobile */
    gap: 20px;
    justify-content: center;
}

/* Individual Box Style */
.feature-box {
    flex: 1 1 300px; /* Grow to fill space, but at least 300px wide */
    background-color: var(--bg-darker);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border-top: 3px solid var(--accent); /* Adds a color strip to top of each card */
    text-align: left;
    transition: transform 0.2s;
}

.feature-box:hover {
    transform: translateY(-5px); /* Moves up slightly when hovered */
}

.feature-box h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.feature-box p {
    font-size: 0.95rem;
    color: #dcddde;
    margin-bottom: 0;
}

/* --- New Footer Styling --- */

footer {
    background-color: #1a1c1e; /* Very dark, almost black background */
    color: white;
    padding: 60px 20px 20px;   /* Top padding for spacing */
    margin-top: 80px;          /* Pushes footer away from content */
    border-top: 1px solid #2f3136;
    backdrop-filter: none;     /* Solid color, no blur */
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Pushes Logo to left, Links to right */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* Left Side: Brand & Socials */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s, fill 0.2s;
}

.footer-socials a:hover svg {
    transform: translateY(-3px); /* Little hop effect */
    opacity: 0.8;
}

/* Right Side: Columns */
.footer-right {
    display: flex;
    gap: 60px; /* Space between the two link columns */
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    border: none; /* Removes the underline from h4 global style */
}

.footer-column a {
    color: #99aab5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Bottom Copyright Bar */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #2f3136;
    font-size: 0.8rem;
    color: #5865f2; /* Use a slight color for copyright or keep grey */
    opacity: 0.7;
}

/* Mobile Footer adjustments */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
