/* Side Nav */
.rise-theme-side-nav {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    display: none;
}

.rise-theme-side-nav.visible {
    display: block;
}

.rise-theme-side-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rise-theme-side-nav-item {
    position: relative;
    margin: 20px 0;
}

.rise-theme-side-nav-link {
    color: #B3B3B3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.rise-theme-side-nav-link::before {
    content: '';
    width: 0;
    height: 1px;
    background-color: #54847A;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

/* Hover 效果 */
.rise-theme-side-nav-link:hover {
    color: #54847A;
}

.rise-theme-side-nav-link:hover::before {
    width: 20px;
}

/* Active 狀態效果 */
.rise-theme-side-nav-item.active .rise-theme-side-nav-link {
    color: #54847A;
}

.rise-theme-side-nav-item.active .rise-theme-side-nav-link::before {
    width: 20px;
}

/* 響應式處理 */
@media (max-width: 768px) {
    .rise-theme-side-nav {
        display: none !important;
    }
}
/* Side Nav End */

/* Homepage Hero Section */
.homepage-hero {
    min-height: 100vh;
    padding: 0 0 80px 0;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-columns {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Left Column */
.hero-left {
    flex: 1;
    max-width: 600px;
}

.animated-blob svg {
    width: 110%;
    height: 100%;
    left: 0;
}

#blob-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#blob-image.fade-in {
    opacity: 1;
}

/* Right Column */
.hero-right {
    flex: 1;
    padding-right: 40px;
}

/* SEO用固定H1標題 */
.hero-main-title {
    color: #3F776F;
    font-size: 46px;
    font-weight: 700;
    font-family: 'Noto Sans TC', sans-serif;
    margin-bottom: 15px;
    letter-spacing: 2px;
    opacity: 1;
}

.hero-title {
    color: #3F776F;
    font-size: 36px;
    font-weight: 900;
    font-family: Noto Sans TC, sans-serif;
    letter-spacing: 5px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-description {
    color: #5C5C5C;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-text-content {
    position: relative;
}

.hero-background-text {
    position: absolute;
    top: -80px;
    left: 0;
    font-size: 100px;
    color: #F4F4F4;
    white-space: nowrap;
    font-weight: 700;
    line-height: 1;
    z-index: -1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* CTA 按鈕基本樣式 */
.hero-cta {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #3F776F;
    position: relative;
}
.cta-link:hover {
    color: #3F776F; /* 保持原本顏色 */
}

/* 圓形按鈕樣式 */
.click-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.click-circle svg {
    position: absolute;
    top: 0;
    left: 0;
}

.click-text {
    position: relative;
    z-index: 2;
    font-size: 16px;
}

/* 主要文字樣式 */
.cta-text {
    margin-left: 15px;
    position: relative;
    font-size: 16px;
}

.cta-text-en {
    font-size: 14px;
    opacity: 0.8;
}

/* 底線動畫效果 */
.cta-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #3F776F;
    transition: width 0.3s ease;
}

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

/* 在小螢幕上的調整 */
@media (max-width: 768px) {
    .click-text {
        font-size: 14px;
    }
    
    .cta-text {
        font-size: 14px;
    }
    
    .cta-text-en {
        font-size: 12px;
    }
}

/* 調整現有的動畫類 */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 響應式調整 */
@media (max-width: 1200px) {
    .hero-background-text {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .hero-background-text {
        font-size: 60px;
        top: -50px;
    }
}

@media (max-width: 768px) {
    .hero-background-text {
        font-size: 40px;
        top: -30px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-main-title {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }
}

/* 修正手機版布局 */
@media (max-width: 1024px) {
    .homepage-hero {
        padding: 0 0 40px 0; /* 移除上方padding，減少整體間距 */
    }

    .hero-columns {
        flex-direction: column;
        gap: 40px; /* 增加欄位間距 */
        align-items: flex-start; /* 讓內容對齊左側 */
    }

    .hero-left {
        margin-top: -20px; /* 讓 blob 往上移 */
        width: 100%;
        max-width: none;
        padding-bottom: 50%;
        position: relative;
    }

    .hero-right {
        margin-top: 200px; /* 調整文字區塊位置 */
        width: 100%;
        padding: 0;
    }

    .animated-blob {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .animated-blob svg {
        width: 100%;
        height: 200%;
    }

    .hero-text-content {
        padding: 0 20px; /* 確保文字有適當的邊距 */
    }
}

@media (max-width: 768px) {
    .hero-left {
        margin-top: -40px; /* 在小螢幕上進一步調整位置 */
    }
}

/* Scroll Down箭頭 */
.rise-theme-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.rise-theme-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.rise-theme-scroll-text {
    color: #3F776F;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.rise-theme-scroll-arrow {
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    border-left: 2px solid #DADADA;
    border-bottom: 2px solid #DADADA;
    transform: translateX(-50%) rotate(-45deg);
    animation: scrollArrow 3s infinite; /* 改為3秒 */
}

.rise-theme-scroll-arrow:nth-child(2) {
    animation-delay: 0.6s;
    opacity: 0.5;
}

.rise-theme-scroll-arrow:nth-child(3) {
    animation-delay: 1.2s;
    opacity: 0.25;
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) rotate(-45deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .rise-theme-scroll-indicator {
        bottom: 20px;
    }
}

/* 第二段 */
.rise-theme-about {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.rise-theme-about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.rise-theme-about-logo {
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(1.5);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rise-theme-about-logo.visible {
    opacity: 0.5;
    transform: scale(1);
}

.rise-theme-about-logo img {
    max-width: 300px;
    height: auto;
}

/* About 標題 */
.rise-theme-about-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 40px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rise-theme-about-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.rise-theme-about-content {
    line-height: 1.8;
    font-size: 18px;
    color: #333;
}

.rise-theme-about-content p {
    margin-bottom: 0.8em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rise-theme-about-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 新增裝飾文字樣式 */
.rise-theme-about-decoration {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 200px;
    color: #F4F4F4;
    font-weight: 700;
    line-height: 1;
    z-index: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    bottom: 12vh;
}

.rise-theme-about-decoration.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 確保內容在裝飾文字上層 */
.rise-theme-about-container {
    position: relative;
    z-index: 1;
}

.keyword-highlight {
    position: relative;
    color: #54847A;
    font-weight: 600;
}

.keyword-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #54847A;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.keyword-highlight.visible::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .rise-theme-about {
        padding: 80px 0;
    }

    .rise-theme-about-content {
        font-size: 16px;
    }

    .rise-theme-about-logo img {
        max-width: 240px;
    }
}

@media (max-width: 1024px) {
    .rise-theme-about-decoration {
        font-size: 80px;
        position: relative;
        bottom: 5vh;
    }
}