:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --panel: rgba(15, 23, 42, 0.78);
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --text: #e2e8f0;
    --muted: #cbd5e1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #0f172a;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    color: var(--text);
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url("new image.jpg") center/cover fixed;
    background-color: #0f172a;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(8px);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(56, 189, 248, 0.4);
}

.brand-title {
    margin: 0;
    font-weight: 700;
}

.brand-subtitle {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.main-nav a:hover {
    color: white;
}

/* ── Hamburger Button (mobile only) ── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(56, 189, 248, 0.22);
}

.ham-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #38bdf8;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    transform-origin: center;
}

.hamburger-btn.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Overlay ── */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

.mob-overlay.show { display: block; }

/* ── Mobile Drawer ── */
.mob-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(280px, 80vw);
    height: 100vh;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    border-left: 1px solid rgba(56, 189, 248, 0.2);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 32px rgba(0,0,0,0.5);
}

.mob-drawer.open { transform: translateX(0); }

.mob-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.3rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.mob-drawer-title {
    font-weight: 700;
    font-size: 1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mob-drawer-title i { color: #38bdf8; }

.mob-drawer-close {
    width: 36px; height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.mob-drawer-close:hover { background: rgba(239, 68, 68, 0.2); color: #fff; }

.mob-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.mob-nav-link::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #38bdf8;
    transform: scaleY(0);
    transition: transform 0.25s;
    border-radius: 0 3px 3px 0;
}

.mob-nav-link:hover {
    background: rgba(56, 189, 248, 0.08);
    color: #fff;
    padding-left: 1.8rem;
}

.mob-nav-link:hover::before { transform: scaleY(1); }

.mob-nav-link i {
    width: 22px; text-align: center;
    color: #38bdf8;
    font-size: 1rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-meta p {
    margin: 0;
    line-height: 1.2;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
}

.user-id {
    font-size: 0.72rem;
    color: #94a3b8;
}

.user-action-btn {
    margin-top: 0.2rem;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.14);
    color: #bae6fd;
    border-radius: 999px;
    padding: 0.12rem 0.6rem;
    font-size: 0.68rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.user-action-btn:hover {
    background: rgba(56, 189, 248, 0.24);
}

.hero {
    padding: 2rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2rem;
    margin: 0 3rem;
}

.badge {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    font-size: 0.88rem;
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 999px;
    padding: 0.38rem 0.85rem;
}

h1,
h2,
h3 {
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 1rem 0;
}

.hero-text,
.section-subtitle,
.card p,
.feature-item p,
.contact p {
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #06243a;
}

.btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text);
}

.hero-media {
    min-height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.resources,
.features,
.contact,
.ai-chat {
    padding: 3rem 0;
}

.chat-shell {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(8, 47, 73, 0.35);
    animation: shellGlow 3.2s ease-in-out infinite alternate;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.chat-bubble {
    width: fit-content;
    max-width: min(100%, 690px);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    line-height: 1.5;
    animation: bubblePop 0.35s ease;
}

.chat-bubble p {
    margin: 0;
}

.chat-bubble ul,
.chat-bubble ol {
    margin: 0.45rem 0 0;
    padding-left: 1rem;
}

.chat-bubble.bot {
    background: linear-gradient(130deg, rgba(99, 102, 241, 0.24), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(167, 139, 250, 0.45);
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(130deg, rgba(16, 185, 129, 0.26), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(45, 212, 191, 0.55);
}

.chat-form {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.75rem;
}

.chat-form input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 0.8rem 0.85rem;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    font-family: inherit;
}

.chat-form input:focus {
    outline: 2px solid rgba(56, 189, 248, 0.35);
    outline-offset: 1px;
}


@keyframes bubblePop {
    from {
        transform: translateY(8px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes shellGlow {
    from {
        box-shadow: 0 10px 30px rgba(8, 47, 73, 0.28);
    }
    to {
        box-shadow: 0 14px 34px rgba(14, 116, 144, 0.38);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cards,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 14px;
    padding: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.card a {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
}

.feature-item,
.contact-box {
    background: var(--panel);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 1.2rem;
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

.contact-box {
    text-align: center;
}

.join-community-section {
    padding: 4rem 0;
    background: rgba(15, 23, 42, 0.5);
}

.join-community-section .container {
    display: flex;
    justify-content: center;
}

.join-community-centered {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(8, 47, 73, 0.35);
    animation: shellGlow 3.2s ease-in-out infinite alternate;
    max-width: 690px;
    width: 100%;
    text-align: center;
}

.join-header {
    margin-bottom: 3rem;
}

.join-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #06243a;
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.join-header h2 {
    margin: 0 0 1rem 0;
    color: var(--text);
    font-size: 2.2rem;
    font-weight: 700;
}

.join-description {
    color: var(--muted);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto;
}

.join-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-highlight {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

.feature-highlight i {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-highlight h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-highlight p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.join-action {
    margin-top: 3rem;
}

.join-btn-large {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.join-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(56, 189, 248, 0.4);
}

.join-note {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
}

.login-section {
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.5);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-box-centered {
    background: var(--panel);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(8, 47, 73, 0.4);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #06243a;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.login-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
}

.login-subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted);
    font-size: 1rem;
    z-index: 1;
}

.input-group input {
    padding-left: 3rem;
    padding-right: 3rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(148, 163, 184, 0.35);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #06243a;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #7dd3fc;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.login-footer p {
    color: var(--muted);
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.join-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.join-link:hover {
    background: var(--primary);
    color: #06243a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login p {
    color: var(--muted);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(148, 163, 184, 0.15);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.google-btn:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.facebook-btn:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.join-community {
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.5);
}

.join-community .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-creation-centered {
    background: var(--panel);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(8, 47, 73, 0.35);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gender-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.gender-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    min-width: 100px;
}

.gender-option:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.15);
}

.gender-option input[type="radio"]:checked + .gender-icon {
    transform: scale(1.2);
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.gender-option span {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.photo-upload {
    position: relative;
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 2px dashed rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-preview:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.15);
}

.photo-preview i {
    font-size: 2rem;
    color: var(--primary);
}

.photo-preview span {
    color: var(--muted);
    font-size: 0.85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 0.8rem 0.85rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: 2px solid rgba(56, 189, 248, 0.35);
    outline-offset: 1px;
}

.community-benefits {
    background: var(--panel);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 2rem;
}

.benefits-header {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #06243a;
    font-size: 2rem;
}

.benefits-header h3 {
    margin: 0 0 1rem 0;
    color: var(--text);
}

.benefits-header p {
    color: var(--muted);
    line-height: 1.6;
}

.benefits-list {
    display: grid;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

.benefit-item i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1rem;
}

.benefit-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

.login-profile {
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.5);
}

.login-profile .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.login-box {
    background: var(--panel);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 0.8rem 0.85rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: 2px solid rgba(56, 189, 248, 0.35);
    outline-offset: 1px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.login-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #7dd3fc;
}

.profile-preview {
    background: var(--panel);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #06243a;
    font-size: 2rem;
}

.profile-preview h3 {
    margin: 0 0 1rem 0;
    color: var(--text);
}

.profile-preview p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.profile-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-features .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 1rem;
    text-align: left;
}

.profile-features .feature-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.profile-features .feature-item span {
    color: var(--text);
    font-weight: 500;
}

.site-footer {
    background: linear-gradient(135deg, #0b1324, #10233d);
    border-top: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.15);
    color: #dbeafe;
    padding: 1rem 0;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-impact {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(14, 116, 144, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 6px 16px rgba(8, 47, 73, 0.35);
}

.footer-impact-title {
    margin: 0 0 0.4rem;
    color: #bae6fd;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
}

.footer-impact-grid p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-impact-grid p i {
    width: 18px;
    text-align: center;
    color: #7dd3fc;
}

.footer-impact-grid p:nth-child(2) i {
    color: #34d399;
}

.footer-impact-grid p:nth-child(3) i {
    color: #c084fc;
}

.footer-impact-grid p:nth-child(4) i {
    color: #fb923c;
}

.community-page {
    padding: 2.5rem 0 3rem;
}

.community-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.community-layout .community-page {
    flex: 1;
}

.community-page-header {
    text-align: center;
    margin-bottom: 1.4rem;
}

.community-page-header h1 {
    margin: 0 0 0.5rem;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.community-card {
    background: var(--panel);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.community-card:hover,
.community-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.7);
    box-shadow: 0 14px 28px rgba(8, 47, 73, 0.35);
    outline: none;
}

.community-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.community-card p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.community-card .tap-hint {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: #7dd3fc;
}

.community-badge {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: #0c4a6e;
    background: #7dd3fc;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-weight: 600;
}

.community-empty {
    text-align: center;
    padding: 1.2rem;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    color: var(--muted);
}

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(4px);
}

.profile-modal-card {
    position: relative;
    width: min(420px, 92vw);
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(125, 211, 252, 0.5);
    border-radius: 18px;
    padding: 1.3rem 1.1rem 1rem;
    text-align: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
}

.profile-modal-close {
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(125, 211, 252, 0.4);
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    border-radius: 50%;
    cursor: pointer;
}

.profile-modal-avatar {
    width: 90px;
    height: 90px;
    margin: 0.8rem auto 0.9rem;
    border-radius: 50%;
    border: 2px solid rgba(125, 211, 252, 0.6);
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-modal-details p {
    margin: 0.35rem 0;
    color: #cbd5e1;
}

/* ── Our Developer Section (Slider) ── */
.developer-section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.dev-slider-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.dev-arrow {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-arrow:hover {
    background: rgba(56, 189, 248, 0.2);
    color: white;
}

.left-arrow { left: -60px; }
.right-arrow { right: -60px; }

.dev-slider-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    /* Optional shadow so arrow overlap looks good */
}

.dev-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.dev-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.developer-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
    text-align: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(8, 47, 73, 0.4);
    border-color: rgba(56, 189, 248, 0.4);
}

.dev-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1.8rem;
    color: #e2e8f0;
    position: relative;
    display: inline-block;
}

.dev-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    border-radius: 2px;
}

.dev-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.dev-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.dev-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    opacity: 0.6;
    animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 0.2; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.dev-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0f172a;
    z-index: 2;
    transition: transform 0.4s ease;
}

.developer-card:hover .dev-avatar {
    transform: scale(1.05) rotate(3deg);
}

.dev-info h3 {
    font-size: 1.5rem;
    margin: 0 0 0.3rem;
    color: #fff;
    font-weight: 700;
}

.dev-role {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-linkedin {
    background: #0a66c2;
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1.4rem;
}

.btn-linkedin:hover {
    background: #004182;
    color: white;
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 860px) {
    .nav-wrap {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Brand (logo + text) stays together on left */
    .brand {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
        width: auto;
    }

    /* Hamburger goes to right corner */
    .hamburger-btn {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }

    /* Hide desktop nav */
    .main-nav { display: none; }

    /* Profile card wraps to second full row */
    .header-user {
        width: 100%;
        max-width: 340px;
        margin-top: 0.2rem;
    }

    .hero-grid,
    .cards,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-image {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(1100px, 94%);
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .main-nav {
        gap: 0.7rem;
    }

    .main-nav a {
        font-size: 0.92rem;
    }

    .header-user {
        max-width: 100%;
    }

    .hero {
        padding: 1.5rem 0 2rem;
    }

    .hero-actions,
    .chat-form {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .chat-form input {
        font-size: 16px;
    }

    .resources,
    .features,
    .contact,
    .ai-chat {
        padding: 2.2rem 0;
    }

    .join-community-section {
        padding: 2rem 0;
    }

    .join-community-centered {
        padding: 1.5rem;
        margin: 0 auto;
    }

    .join-header {
        margin-bottom: 2rem;
    }

    .join-logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .join-header h2 {
        font-size: 1.8rem;
    }

    .join-description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .join-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .feature-highlight {
        padding: 1.2rem;
    }

    .feature-highlight i {
        font-size: 1.5rem;
    }

    .feature-highlight h4 {
        font-size: 1rem;
    }

    .feature-highlight p {
        font-size: 0.85rem;
    }

    .join-action {
        margin-top: 2rem;
    }

    .join-btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .join-note {
        font-size: 0.8rem;
    }

    .footer-impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Bring arrows inside for mobile so they don't overflow */
    .left-arrow { left: 10px; }
    .right-arrow { right: 10px; }
    
    /* Optional: Make arrows slightly smaller on small devices */
    .dev-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        background: rgba(15, 23, 42, 0.85); /* a bit darker for better contrast */
    }
}
