:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;
    --success-color: #2ECC71;
    --text-color: #333;
    --light-bg: #ECF0F1;
    --dark-bg: #2C3E50;
    --gradient: linear-gradient(135deg, #3498db, #2C3E50);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1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E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.gradient-text {
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 4rem;
    font-weight: 700;
}

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

.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

.secondary-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.about-section {
    padding: 6rem 0;
    background: white;
}

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

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

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

.social-links a {
    color: white;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.scroll-top.visible {
    display: flex;
}

/* Community Section Styling */
.community-section {
    padding: 6rem 0;
    background: var(--light-bg);
    position: relative;
}

/* Section Title */
.community-section h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 3rem;
}

/* Community Cards Container */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Individual Community Card */
.community-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
}

/* Icon Styling */
.community-card i {
    font-size: 2.5rem;
    color: #3498DB;
    margin-bottom: 1.5rem;
}

/* Card Title */
.community-card h3 {
    color: #2C3E50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Card Description */
.community-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Action Button */
.action-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #3498DB, #2C3E50);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-card {
        padding: 1.5rem;
    }
}

/* CSS for the language switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.language-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    gap: 6px;
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
}

.lang-option:not(.active):hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-icon {
    font-size: 1.2em;
    line-height: 1;
}

.lang-text {
    font-size: 0.9em;
    font-weight: 500;
}

/* RTL Support */
[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 20px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .language-toggle {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .lang-option:not(.active) {
        color: rgba(255, 255, 255, 0.8);
    }

    .lang-option:not(.active):hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .language-switcher {
        margin: 10px 0;
    }
    
    .language-toggle {
        width: fit-content;
        margin: 0 auto;
    }
}

/* Page Transitions */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-transitioning {
    opacity: 0;
}

/* Language Switcher Animation */
.lang-option {
    transition: all 0.3s ease;
}

.lang-option.active {
    transform: scale(1.05);
}