/* Global Styles & Variables */
:root {
    /* Traditional Chinese Colors */
    --primary-red: #8B2323;
    --accent-gold: #DAA520;
    --dark-brown: #4A2C2A;
    --cream: #FFF8DC;
    --light-cream: #FFFAF0;
    --text-dark: #2C1810;
    --text-light: #666;
    --border-gold: #B8860B;
    
    /* Additional Colors */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Fonts */
    --font-chinese: 'Noto Serif TC', 'Noto Sans TC', serif;
    --font-english: 'Playfair Display', 'Open Sans', serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px var(--shadow-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    text-align: center;
}

.logo-chinese {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    font-family: var(--font-chinese);
}

.logo-english {
    font-size: 12px;
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-family: var(--font-english);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-gold);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle span {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.lang-toggle span.active {
    color: var(--primary-red);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-red);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-brown) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 215, 0, 0.03) 35px, rgba(255, 215, 0, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 215, 0, 0.03) 35px, rgba(255, 215, 0, 0.03) 70px);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-chinese);
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: var(--accent-gold);
    margin: 20px auto;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--dark-brown);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-red);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 24px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 25px;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--light-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-gold);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px var(--shadow-dark);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--white);
}

.card-title {
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.card-badge {
    text-align: center;
    background: var(--cream);
    color: var(--dark-brown);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin: 0 auto 20px;
    display: block;
    width: fit-content;
}

.card-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.card-highlights {
    list-style: none;
    margin: 20px 0;
}

.card-highlights li {
    padding: 10px 0;
    border-bottom: 1px solid var(--cream);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-highlights li:last-child {
    border-bottom: none;
}

.card-highlights i {
    color: var(--accent-gold);
}

.card-leader {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--cream);
    text-align: center;
    font-size: 16px;
}

/* Philosophy Section */
.philosophy {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-red) 100%);
    color: var(--white);
    text-align: center;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-icon {
    font-size: 60px;
    margin-bottom: 30px;
    animation: rotate 20s linear infinite;
}

.philosophy-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.philosophy-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.philosophy-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.philosophy-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.philosophy-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

/* Timeline Section */
.timeline {
    padding: var(--section-padding);
    background: var(--white);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--accent-gold);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 1;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    padding: 20px;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px var(--cream);
}

.timeline-item:nth-child(odd) .timeline-year::after {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-year::after {
    left: -60px;
}

.timeline-content {
    flex: 1;
    background: var(--cream);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px var(--shadow-dark);
}

.timeline-content h3 {
    color: var(--primary-red);
    margin-bottom: 10px;
    font-size: 20px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Activities Section */
.activities {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.activities-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 40px;
    background: var(--white);
    border: 2px solid var(--accent-gold);
    color: var(--dark-brown);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--cream);
    transform: translateY(-3px);
}

.tab-btn.active {
    background: var(--accent-gold);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-gold);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px var(--shadow-dark);
}

.activity-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.activity-card h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 20px;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Resources Section */
.resources {
    padding: var(--section-padding);
    background: var(--cream);
}

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

.resource-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px var(--shadow-dark);
    border-color: var(--accent-gold);
}

.resource-card.featured {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.resource-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--white);
}

.resource-card h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 20px;
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-resource {
    background: var(--accent-gold);
    color: var(--white);
    padding: 12px 30px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-resource:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

/* Vision Section */
.vision {
    padding: var(--section-padding);
    background: var(--white);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.vision-card {
    background: var(--light-cream);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-gold);
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-dark);
    border-left-width: 10px;
}

.vision-period {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-gold);
}

.vision-list {
    list-style: none;
}

.vision-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.6;
}

.vision-list li:last-child {
    border-bottom: none;
}

.vision-list i {
    color: var(--accent-gold);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 22px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.info-item i {
    color: var(--accent-gold);
    font-size: 20px;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

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

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--dark-brown);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--cream);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: var(--accent-gold);
    color: var(--white);
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
}

.btn-submit:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-brown);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p,
.footer-col ul {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 20px 0;
        gap: 15px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
        width: 60px;
        text-align: center;
        padding: 10px;
    }
    
    .timeline-year::after {
        left: 20px !important;
        right: auto !important;
    }
    
    .timeline-content {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-tagline {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .philosophy-title {
        font-size: 28px;
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}