* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: #bbb;
    --google-blue: #4285f4;
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;
    --card-bg: rgba(66, 133, 244, 0.05);
    --card-border: rgba(66, 133, 244, 0.2);
}

body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --card-bg: rgba(66, 133, 244, 0.08);
    --card-border: rgba(66, 133, 244, 0.3);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    font-family: 'Google Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
}

canvas#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    padding: 12px 30px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-lang-toggle {
    display: none;
}

.desktop-theme-toggle {
    display: flex;
}

@media (max-width: 767px) {
    .desktop-lang-toggle {
        display: none !important;
    }
    
    .desktop-theme-toggle {
        display: none !important;
    }
}

.theme-toggle, .lang-toggle {
    background: transparent;
    border: 1px solid var(--card-border);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 600;
}

.theme-toggle:hover, .lang-toggle:hover {
    border-color: var(--google-blue);
    transform: translateY(-2px);
}

.theme-toggle img {
    width: 18px;
    height: 18px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    background: linear-gradient(90deg, 
        var(--google-blue) 0%, 
        var(--google-blue) 25%, 
        var(--google-red) 25%, 
        var(--google-red) 50%, 
        var(--google-yellow) 50%, 
        var(--google-yellow) 75%, 
        var(--google-green) 75%, 
        var(--google-green) 100%
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: google-wave 4s ease-in-out infinite;
}

@keyframes google-wave {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.nav-links {
    display: none;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--google-blue);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--card-border);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
    display: block;
}

.mobile-lang-toggle, .mobile-theme-toggle {
    width: 100%;
    margin-top: 15px;
    padding: 15px 20px;
    background: transparent;
    border: 2px solid var(--card-border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-lang-toggle:hover, .mobile-theme-toggle:hover {
    border-color: var(--google-blue);
    background: var(--card-bg);
    transform: translateY(-2px);
}

.mobile-lang-toggle:active, .mobile-theme-toggle:active {
    transform: translateY(0);
}

.mobile-theme-toggle img {
    width: 20px;
    height: 20px;
}

.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;  /* Changed from var(--bg-primary) */
    padding: 100px 20px 50px;
    margin: 0;
    max-width: 100vw;
    z-index: 1;  /* Added */
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    position: relative;
}

.floating-shape {
    position: fixed;  /* Changed from absolute */
    filter: blur(60px);
    animation: float 20s infinite ease-in-out;
    opacity: 0.4;
    border-radius: 50%;
    will-change: transform;
    z-index: 0;  /* Added */
    pointer-events: none;  /* Added */
}

.shape1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
    top: 10%;  /* Changed from -10% */
    left: -5%;  /* Changed from -10% */
}

.shape2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--google-red), var(--google-yellow));
    bottom: 10%;  /* Changed from -15% */
    right: -5%;  /* Changed from -10% */
}

.shape3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--google-blue), var(--google-red));
    top: 50%;
    right: 10%;  /* Changed from 5% */
}

body.light-mode .floating-shape {
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-30px, 30px); }
}

.hero h1 {
    font-size: clamp(32px, 8vw, 72px);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-red) 50%, var(--google-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 1s ease-out;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(16px, 4vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 30px;
    animation: slideUp 1s ease-out 0.2s backwards;
    line-height: 1.5;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--google-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: clamp(14px, 3vw, 18px);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideUp 1s ease-out 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(66, 133, 244, 0.6);
}

section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;  /* Added */
    z-index: 1;  /* Added */
}

.section-title {
    font-size: clamp(32px, 6vw, 48px);
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(90deg, 
        var(--google-blue), 
        var(--google-red), 
        var(--google-yellow), 
        var(--google-green)
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
    animation: google-wave 15s ease-in-out infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--google-blue), 
        var(--google-red), 
        var(--google-yellow), 
        var(--google-green)
    );
    border-radius: 2px;
    animation: google-wave 4s ease-in-out infinite;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text h3 {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 15px;
    color: var(--google-blue);
}

.about-text p {
    font-size: clamp(14px, 3vw, 18px);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 1) 100%);
    padding: 30px 15px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

body.light-mode .stat-card {
    background: linear-gradient(135deg, transparent 0%, rgb(255, 255, 255) 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(66, 133, 244, 0.3);
}

.stat-number {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: bold;
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--text-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
    justify-items: center;
}

.event-card {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 1) 100%);
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.light-mode .event-card {
    background: linear-gradient(135deg, transparent 0%, rgb(255, 255, 255) 100%);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.3);
}

.event-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 25px;
}

.event-date {
    color: var(--google-blue);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.event-title {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 10px;
    color: var(--text-primary);
}

.event-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: clamp(14px, 3vw, 16px);
}

.event-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--google-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.event-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.join-card {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 1) 100%);
    padding: 50px 35px;
    border-radius: 25px;
    border: 2px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.light-mode .join-card {
    background: linear-gradient(135deg, transparent 0%, rgb(255, 250, 250) 100%);
}

.join-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(176, 170, 170, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.join-card:hover::before {
    opacity: 1;
}

.join-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(66, 133, 244, 0.25);
}

.join-card[data-color="blue"]:hover {
    border-color: var(--google-blue);
}

.join-card[data-color="red"]:hover {
    border-color: var(--google-red);
}

.join-card[data-color="green"]:hover {
    border-color: var(--google-green);
}

.join-icon-wrapper {
    margin-bottom: 25px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-icon svg {
    width: 80px;
    height: 80px;
}

.join-card h3 {
    font-size: clamp(20px, 4vw, 28px);
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.join-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: clamp(14px, 3vw, 16px);
}

.join-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--google-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.join-card[data-color="blue"] .join-button {
    background: var(--google-blue);
}

.join-card[data-color="red"] .join-button {
    background: var(--google-red);
}

.join-card[data-color="green"] .join-button {
    background: var(--google-green);
}

#jb-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
}

#jb-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 99, 66, 0.4);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--card-border);
    transition: transform 0.5s, box-shadow 0.3s;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member:hover .member-photo {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
}

.member-name {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 5px;
    color: var(--text-primary);
}

.member-role {
    color: var(--google-blue);
    font-size: clamp(12px, 2.5vw, 14px);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 1) 100%);
    margin-bottom: 15px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

body.light-mode .faq-item {
    background: linear-gradient(135deg, transparent 0%, rgb(255, 255, 255) 100%);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-size: clamp(16px, 3.5vw, 20px);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: clamp(14px, 3vw, 16px);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-icon {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 1) 100%);
    padding: 80px 30px;
    border-radius: 40px;
    margin: 30px 20px;
    border: 2px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

body.light-mode .cta-section {
    background: linear-gradient(135deg, transparent 0%, rgb(255, 253, 253) 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

body.light-mode .cta-section::before {
    background: radial-gradient(circle, rgba(66, 133, 244, 0.05) 0%, transparent 70%);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section h2 {
    font-size: clamp(32px, 6vw, 56px);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-red) 25%, var(--google-yellow) 50%, var(--google-green) 75%, var(--google-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: clamp(16px, 3.5vw, 22px);
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-section .cta-button {
    background: var(--google-blue);
    color: #fff;
    padding: 18px 45px;
    font-size: clamp(16px, 3vw, 20px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.cta-section .cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.5);
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
}

footer {
    background: #0a0a0a;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;  /* Added */
    z-index: 1;  /* Added */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-links svg {
    transition: all 0.3s;
}

.social-links svg:hover {
    transform: scale(1.2);
}

footer p {
    font-size: clamp(12px, 2.5vw, 14px);
    color: #666;
    margin: 10px 0;
}

@media (min-width: 768px) {
    .navbar {
        padding: 20px 50px;
    }

    .navbar.scrolled {
        padding: 15px 50px;
    }

    .logo {
        font-size: 28px;
    }

    .logo img {
        width: 80px;
        height: 53px;
    }

    .nav-links {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .desktop-lang-toggle {
        display: flex;
    }
    
    .desktop-theme-toggle {
        display: flex;
    }

    .nav-right {
        gap: 30px;
    }

    .hero {
        padding: 120px 50px 80px;
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    section {
        padding: 100px 50px;
    }

    .stats-grid {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
