/* --- CSS Variables & Global Styles --- */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #3b30a9;
    --background-color: #0b1220;
    --card-background: #1f2937;
    --text-color: #e5e7eb;
    --muted-text: #9ca3af;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-hover-color: rgba(79, 70, 229, 0.2);
    --success-color: #34d399;
    --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* General Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* NEW: Canvas background style */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts it behind all content */
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER (Consistent with Home Page) --- */
header {
    background-color: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand .logo img {
    width: 40px;
    height: 40px;
}
.site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}
.tagline {
    font-size: 0.75rem;
    color: var(--muted-text);
}
nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}
nav a:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}
nav a.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- MAIN CONTENT & LAYOUT --- */
main {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
    position: relative;
    z-index: 1;
}
.title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 60px;
    position: relative;
}
.title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* --- SUPPORT CARD STYLES --- */
.support-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}
.support-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-hover-color);
    border-color: var(--primary-color);
}
.support-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.4rem;
}
.support-card p {
    color: var(--muted-text);
    margin-bottom: 0;
    font-size: 1rem;
}

/* --- CONTACT FORM STYLES --- */
.contact-form-container {
    background: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-top: 50px;
}
.contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.cta-primary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #fff;
    width: 100%;
}
.cta-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}
#status {
    margin-top: 15px;
    font-weight: 500;
    font-size: 1rem;
}

/* --- FOOTER (Consistent with Home Page) --- */
footer {
    background-color: var(--card-background);
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
    position: relative; /* Ensure footer content is above canvas */
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-about p {
    color: var(--muted-text);
    max-width: 400px;
    margin-top: 15px;
}
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.social-links svg {
    width: 24px;
    height: 24px;
    color: var(--muted-text);
    transition: color 0.3s, transform 0.3s;
}
.social-links a:hover svg {
    color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    text-decoration: none;
    color: var(--muted-text);
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-contact p {
    color: var(--muted-text);
    margin-bottom: 10px;
}
.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
}


/* --- Media Queries --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    nav {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .title {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-contact {
        align-items: center;
    }
}