@import "font.css";


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


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fafafa;
    font-size: 16px;
    overflow-x: hidden;
}

::selection {
    background-color: #009fe0;
    color: #fafafa;
}

::-moz-selection {
    background-color: #009fe0;
    color: #fafafa;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.scroll-logo {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 95;
    transition: transform 0.3s ease;
}

.scroll-logo img {
    width: 8%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-logo img:hover {
    transform: scale(1.1);
}



.hamburger {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1001;
    
    /* 改為始終顯示 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 100%;
    height: 3.5px;
    background: linear-gradient(90deg, #009fe0 0%, #46B036 100%);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hamburger span:nth-child(1) {
    transform-origin: left center;
}

.hamburger span:nth-child(2) {
    width: 85%;
    margin-left: auto;
}

.hamburger span:nth-child(3) {
    transform-origin: left center;
}


.hamburger:hover span:nth-child(2) {
    width: 100%;
}

/* 漢堡選單展開時的樣式 */
.hamburger.active span {
    background: linear-gradient(135deg, #ffa6d2 0%, #009fe0 100%);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(1px, 0);
    width: 100%;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(1px, 0);
    width: 100%;
}

/* 手機選單 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-size: 24px;
    font-weight: 300;
    transition: opacity 0.3s ease;
}

.mobile-menu a:hover {
    opacity: 0.5;
    color:#009fe0;
}

.mobile-social {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.mobile-social a {
    font-size: 32px;
    color: #333;
}



/* Footer */
.footer {
    text-align: center;
    background: #ffffff11;
    color: #3333338b;
    padding: 40px 20px;
    
}

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

.footer-title {
    font-size: 32px;
    font-weight: 100;
}

.footer-text {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.7;
}

/* To Top Button */
.to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top-btn:hover {
    background: #009fe0;
    border-color: #009fe0;
    transform: translateY(-3px);
}

.to-top-btn svg {
    color: white;
}

/* ===== 通用滾動浮現效果 ===== */
/* 從下方浮現 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 從左側浮現 */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 從右側浮現 */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 從上方浮現 */
.fade-in-up {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 縮放浮現 */
.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 延遲效果 */
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }
.fade-delay-5 { transition-delay: 0.5s; }

/* 顯示狀態 */
.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-up.visible,
.fade-in-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

