/* CSS Variables - Easy to customize */
:root {
    --color-primary: #e16e38;
    --color-primary-dark: #c85a28;
    --color-secondary: #ED64A6;
    --color-accent: #38B2AC;
    --color-text: #2D3748;
    --color-text-light: #718096;
    --color-background: #FFFFFF;
    --color-background-alt: #F7FAFC;
    --color-border: #E2E8F0;

    /* Rainbow gradient for pride elements */
    --gradient-rainbow: linear-gradient(90deg,
        #E53E3E 0%,
        #ED8936 16%,
        #ECC94B 32%,
        #48BB78 48%,
        #4299E1 64%,
        #6B46C1 80%,
        #ED64A6 100%
    );

    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-chinese: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Language Toggle - Show/Hide */
body[data-lang="zh"] .en,
body:not([data-lang="zh"]) .zh {
    display: none;
}

body[data-lang="zh"] .zh,
body:not([data-lang="zh"]) .en {
    display: inline;
}

/* Chinese text styling */
.zh {
    font-family: var(--font-chinese);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo img {
    height: 50px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-rainbow);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-primary {
    background: var(--color-primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link-primary:hover {
    background: var(--color-primary-dark);
}

.nav-link-primary::after {
    display: none;
}

.lang-toggle {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--color-primary);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu-link {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

body.mobile-menu-open .mobile-menu {
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    background: linear-gradient(135deg, #FAFBFF 0%, #F0F4FF 100%);
    overflow: hidden;
}

/* Animated Abstract Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blob-float 20s ease-in-out infinite;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(237, 100, 166, 0.4) 0%, rgba(107, 70, 193, 0.3) 100%);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.hero-blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.35) 0%, rgba(56, 178, 172, 0.3) 100%);
    top: 50%;
    right: -15%;
    animation-delay: -5s;
    animation-duration: 22s;
}

.hero-blob-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(236, 201, 75, 0.3) 0%, rgba(237, 137, 54, 0.25) 100%);
    bottom: -10%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 28s;
}

.hero-blob-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.3) 0%, rgba(56, 178, 172, 0.25) 100%);
    top: 20%;
    right: 25%;
    animation-delay: -15s;
    animation-duration: 24s;
}

.hero-blob-5 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.25) 0%, rgba(237, 100, 166, 0.2) 100%);
    bottom: 20%;
    right: 10%;
    animation-delay: -8s;
    animation-duration: 26s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(30px, -50px) scale(1.05) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95) rotate(-5deg);
    }
    75% {
        transform: translate(50px, 30px) scale(1.02) rotate(3deg);
    }
}

/* Subtle noise overlay for texture */
.hero-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 250px;
    height: auto;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .zh {
    display: block;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .en {
    display: block;
    color: var(--color-text);
    font-size: 0.7em;
}

body[data-lang="zh"] .hero-title .en {
    display: block !important;
    font-size: 0.6em;
    color: var(--color-text-light);
}

body[data-lang="zh"] .hero-title .zh {
    display: block !important;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-rainbow);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--color-background);
}

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

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.8;
}

.about-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--color-background-alt);
    border-radius: 16px;
    min-width: 140px;
}

.badge-icon {
    font-size: 2rem;
}

.badge span:not(.badge-icon) {
    font-weight: 500;
    color: var(--color-text);
}

/* Gallery Section */
.gallery {
    background: var(--color-background-alt);
}

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

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.placeholder {
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--color-background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    background: var(--color-background-alt);
    padding: 1rem;
    border-radius: 12px;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Join Section */
.join {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-align: center;
}

.join .section-title {
    color: white;
}

.join .section-title::after {
    background: rgba(255, 255, 255, 0.5);
}

.join-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.join-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

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

.join .btn-primary:hover {
    background: #F7FAFC;
}

.join .btn-secondary {
    border-color: white;
    color: white;
}

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

.join-note {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    margin-top: 0.5rem;
    opacity: 0.8;
}

.footer-social h4 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link.rednote {
    width: auto;
    padding: 0 1rem;
    border-radius: 22px;
    gap: 0.5rem;
}

.social-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

.pride-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-logo {
        width: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-badges {
        gap: 1rem;
    }

    .badge {
        min-width: 120px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .join-buttons {
        flex-direction: column;
        align-items: center;
    }
}
