/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform: scale(1.1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61,64,91,0.3) 0%, rgba(61,64,91,0.6) 100%);
}
.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    max-width: 800px;
}
.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 25px;
    position: relative;
}
.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(15px); }
    60% { transform: translateX(-50%) translateY(10px); }
}

/* ===== About Section ===== */
.about-section {
    padding: 8rem 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}
.about-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,163,115,0.08) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
}
.about-photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}
.about-photo-wrapper::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: var(--warm);
    border-radius: 50%;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-42%, -42%);
    z-index: 0;
}
.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 20px 60px rgba(212,163,115,0.3);
    position: relative;
    z-index: 2;
}
.photo-ring {
    position: absolute;
    width: 330px;
    height: 330px;
    border: 3px dashed var(--warm);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 20s linear infinite;
    z-index: 1;
}
@keyframes ringRotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 1.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--warm), var(--coral));
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #4a4a4a;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    transition: all 0.3s;
}
.timeline-item:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(212,163,115,0.1);
    transform: translateX(3px);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--warm);
    z-index: 1;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(212,163,115,0.15);
}
.timeline-item.active {
    background: #fff;
    box-shadow: 0 4px 20px rgba(212,163,115,0.15);
}
.timeline-item.active::before {
    background: var(--warm);
    border-color: var(--warm);
    box-shadow: 0 0 0 4px rgba(212,163,115,0.2), 0 2px 8px rgba(212,163,115,0.3);
}
.timeline-year {
    font-weight: 700;
    color: var(--warm);
    min-width: 2.5rem;
}
.timeline-text {
    color: #4a4a4a;
}
.timeline-item.active .timeline-year { color: var(--coral); }
.timeline-item.active .timeline-text { font-weight: 600; color: var(--dark); }

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 8rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.gallery-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250,237,205,0.5) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    pointer-events: none;
}

.gallery-grid {
    columns: 4;
    column-gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: box-shadow 0.4s;
}
.gallery-item:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption .gallery-title { font-size: 1rem; margin-bottom: 0.2rem; font-family: 'Noto Serif TC', serif; }
.gallery-caption p { font-size: 0.85rem; opacity: 0.85; margin: 0; }

.gallery-swiper .swiper-slide { border-radius: 12px; overflow: hidden; position: relative; }
.gallery-swiper .swiper-slide img { width: 100%; height: 280px; object-fit: cover; display: block; }
.gallery-swiper .gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; }
.gallery-swiper .gallery-caption .gallery-title { font-size: 0.95rem; margin: 0; }

@media (max-width: 991.98px) {
    .gallery-grid { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .gallery-grid { columns: 3; }
}
@media (min-width: 992px) {
    .gallery-swiper { display: none !important; }
}

/* ===== Quote Section ===== */
.quote-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
}
.quote-parallax {
    position: absolute;
    inset: -50px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.quote-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,163,115,0.85), rgba(224,122,95,0.85));
}
.quote-overlay::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 10%;
    left: 8%;
}
.quote-overlay::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    bottom: 15%;
    right: 10%;
}
.quote-content {
    text-align: center;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.quote-mark {
    font-family: 'Noto Serif TC', serif;
    font-size: 6rem;
    line-height: 1;
    opacity: 0.3;
    display: block;
    margin-bottom: -2rem;
}
.quote-content blockquote {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.quote-content cite {
    font-style: normal;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Blog Preview ===== */
.blog-preview-section {
    padding: 8rem 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}
.blog-preview-section::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,163,115,0.06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

/* ===== Community Section ===== */
.community-section {
    padding: 8rem 0;
    background: #fff;
}
.community-photo-stack {
    position: relative;
    padding: 15px 15px 25px 0;
}
.community-photo-stack::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 25px;
    right: -10px;
    bottom: 0;
    background: var(--warm);
    border-radius: 20px;
    opacity: 0.15;
}
.community-photo-stack::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 12px;
    right: -2px;
    bottom: 12px;
    border: 3px solid var(--warm);
    border-radius: 20px;
    opacity: 0.35;
}
.community-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.community-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.community-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    background: var(--light-bg);
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(212,163,115,0.15);
    transition: all 0.3s;
}
.stat-item::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(212,163,115,0.1), transparent);
    z-index: -1;
}
.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212,163,115,0.15);
}
.stat-number {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warm);
    display: block;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .about-section, .gallery-section, .blog-preview-section, .community-section { padding: 4rem 0; }
    .about-photo { width: 200px; height: 200px; }
    .photo-ring { width: 230px; height: 230px; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.95rem; }
    .quote-section { padding: 5rem 0; }
    .quote-parallax { background-attachment: scroll; }
    .quote-mark { font-size: 4rem; }
    .community-stats { gap: 0.6rem; justify-content: center; }
    .stat-item { padding: 0.8rem 0.5rem; flex: 1; min-width: 0; }
    .stat-number { font-size: 1.8rem; }
    .hero-section { height: 85vh; }
    .hero-content { padding: 0 1.2rem; }
    .hero-subtitle { margin-bottom: 1.5rem; }
    .btn-cta { padding: 0.75rem 2rem; font-size: 1rem; }
    .about-text { font-size: 1rem; line-height: 1.9; }
    .community-text { font-size: 1rem; line-height: 1.9; }
    .timeline { padding-left: 2rem; }
    .timeline::before { left: 5px; }
    .timeline-item { font-size: 0.88rem; padding: 0.5rem 0.8rem; margin-bottom: 0.3rem; }
    .timeline-item::before { left: -2rem; width: 12px; height: 12px; border-width: 2px; }
    .about-section::before { width: 200px; height: 200px; }
}
@media (max-width: 575.98px) {
    .about-section, .gallery-section, .blog-preview-section, .community-section { padding: 3rem 0; }
    .hero-section { height: 80vh; }
    .section-title { font-size: 1.4rem; }
    .quote-section { padding: 4rem 0; }
    .community-photo-stack { margin-bottom: 1rem; }
}
