

:root {
    --bg: #0a0e17;
    --card: #111827;
    --card-light: #1a2332;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #2dd4bf;        /* Soft teal – professional & calming */
    --border: #334155;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --transition: all 0.35s ease;
}

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

.community-section {
    text-align: center;
    padding: 140px 20px 100px;
    background: linear-gradient(to bottom, #0a0e17, #0f172a),
                url('../images/community-hero.jpg') center/cover no-repeat;
    position: relative;
}

.community-section h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: white;
    letter-spacing: -1.5px;
    margin: 0;
    font-family: "Lucida Sans", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
}

/* Cards Grid */
.options-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.option-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 36px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.option-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background: var(--card-light);
}

.option-card h3 {
    font-size: clamp(1.7rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.option-card p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.option-card button {
    background: var(--accent);
    color: #0f172a;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

.option-card button:hover {
    background: white;
    transform: translateY(-3px);
}

/* Modal – Clean & Minimal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    height: 100vh;
    padding: 44px 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.modal h2 {
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 28px;
    color: white;
    font-weight: 700;
}

/* Login Message */
.login-message {
    text-align: center;
    font-size: 1.3rem;
    color: #fca5a5;
    margin: 20px 0;
}

.login-btn {
    display: block;
    margin: 24px auto 0;
    padding: 14px 40px;
    background: var(--accent);
    color: #0f172a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    width: fit-content;
}

/* Form Styling – Clean & Professional */
.modal-form input {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin: 14px 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: #0f172a;
}

.modal-form input::placeholder {
    color: #64748b;
}

.modal-form label[for] {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin: 14px 0;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: var(--accent);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s;
}

.submit-btn:hover {
    background: white;
}

/* Scroll to Top – Subtle */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px; height: 56px;
    background: var(--accent);
    color: #0f172a;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.4s;
    z-index: 999;
}

#scrollToTopBtn:hover {
    background: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .community-section { padding: 120px 20px 80px; }
    .options-section { padding: 0 20px 80px; gap: 24px; }
    .option-card { padding: 36px 28px; }
    .modal-content { padding: 36px 24px; }
}

@media (max-width: 480px) {
    .community-section h1 { font-size: 3.2rem; }
    .option-card button { width: 100%; }
}