:root {
    --primary-color: #7600CC;
    --text-color: #333;
    --bg-color: #fff;
    --section-padding: 3rem;
}

[data-theme="dark"] {
    --primary-color: #7600CC;
    --text-color: #fff;
    --bg-color: #1a1a1a;
}

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

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
}

.logo img {
    height: 40px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.1);
}

.dark-logo {
    display: none;
}

[data-theme="dark"] .dark-logo {
    display: block;
}

[data-theme="dark"] .light-logo {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

#darkModeToggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--section-padding);
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 90%;
}

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

.cta-buttons {
    margin-top: 2rem;
}

button {
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.join-btn {
    background-color: var(--primary-color);
    color: white;
}

.learn-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

button:hover {
    transform: translateY(-2px);
}

.about {
    padding: var(--section-padding);
    text-align: center;
    background-color: rgba(118, 0, 204, 0.05);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content > p {
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.about-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card p {
    line-height: 1.5;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 60px;
    overflow: hidden;
    background: var(--primary-color);
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 0.95rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 5%;
}

.team-member {
    padding: 2rem;
    border-radius: 10px;
    background-color: rgba(118, 0, 204, 0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact {
    padding: var(--section-padding);
    text-align: center;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 0.25rem;
    justify-content: center;
    width: 100%;
}

.member-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.x-handle {
    color: var(--primary-color);
    font-size: 0.85rem;
    transition: opacity 0.3s;
    text-decoration: none;
    margin-left: 0.3rem;
}

.x-handle:hover {
    opacity: 0.8;
}

form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(118, 0, 204, 0.05);
    border-radius: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid rgba(118, 0, 204, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #5a009e;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup.show {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: auto;
    max-width: 400px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.popup.show .popup-content {
    transform: translateY(0);
}

.popup h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.5;
}

.popup button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup button:hover {
    background-color: #5a009e;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 1.5rem;
    }

    nav {
        padding: 0.5rem 5%;
    }

    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        max-width: 300px;
        margin: 2rem auto;
    }

    .team-member {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    form {
        padding: 0 1rem;
    }
}
