/* Google Fonts: Noto Sans TC & Playfair Display */

:root {
    --primary-color: #2c3e50;
    --primary-light: #5d6d7e;
    --accent-color: #d4af37;
    /* Gold accent */
    --accent-hover: #b5952f;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Noto Sans TC', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--accent-color);
    font-style: italic;
    font-size: 1.1rem;
}

.left-align {
    text-align: left;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-white {
    color: var(--bg-white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-links a {
    color: var(--text-main);
}

#navbar.scrolled .logo {
    color: var(--primary-color);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Turn black logo to white by default */
    transition: var(--transition);
}

#navbar.scrolled .logo img {
    filter: none;
    /* Show original black logo on white scrolled background */
}

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

.nav-links a {
    color: var(--bg-white);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

#navbar.scrolled .hamburger {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/hero.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    color: var(--bg-white);
}

#hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

#hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn i {
    margin-left: 8px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Theme Section */
.theme-card {
    background: var(--bg-white);
    padding: 4rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--accent-color);
}

.theme-year {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.1);
    position: absolute;
    top: -20px;
    right: 20px;
    pointer-events: none;
}

.theme-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.theme-scripture {
    font-size: 1.2rem;
    color: var(--primary-light);
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* News & Links */
.news-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

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

.news-list a {
    display: block;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
}

.news-list a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.link-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    transform: translateY(-3px);
}

.link-card i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-right: 1.5rem;
}

/* Footer & Contact */
.footer-heading {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    color: var(--accent-color);
    width: 20px;
}

.contact-info a {
    color: var(--bg-white);
}

.contact-info a:hover {
    color: var(--accent-color);
}

.staff-card {
    margin-bottom: 1.5rem;
}

.staff-role {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.staff-name {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.staff-email {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.staff-email:hover {
    color: var(--bg-white);
}

footer {
    background-color: #111111;
    color: #888888;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.admin-link {
    color: #555555;
    font-size: 0.8rem;
}

.admin-link:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: var(--bg-dark);
        padding: 100px 40px;
        z-index: 999;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        color: var(--bg-white) !important;
    }

    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
    }

    #navbar.scrolled .hamburger {
        color: var(--primary-color);
    }

    .hamburger.active {
        color: var(--bg-white) !important;
    }

    #hero-title {
        font-size: 2.5rem;
    }

    #hero-subtitle {
        font-size: 1rem;
    }

    .theme-title {
        font-size: 1.8rem;
    }
}