/* 基本樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #D8D8D8;
    background-color: #0B0F2B;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A3FDF, #7A5FFF);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(122, 95, 255, 0.4), 0 0 15px rgba(122, 95, 255, 0.2);
    letter-spacing: 1.2px;
}

.btn-secondary {
    background-color: transparent;
    color: #D8D8D8;
    border: 2px solid #7A5FFF;
}

.btn-secondary:hover {
    background-color: #7A5FFF;
    color: #0B0F2B;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(122, 95, 255, 0.3), 0 0 15px rgba(122, 95, 255, 0.2);
    letter-spacing: 1.2px;
}

.btn-line {
    background-color: #06C755;
    color: white;
    border: none;
}

.btn-line:hover {
    background-color: #05a648;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(6, 199, 85, 0.4), 0 0 15px rgba(6, 199, 85, 0.2);
    letter-spacing: 1.2px;
}

/* 頁首樣式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 15, 43, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #D8D8D8;
    text-shadow: 0 0 10px rgba(122, 95, 255, 0.5);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    color: #D8D8D8;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #D8D8D8;
    transition: all 0.3s ease;
}

/* 英雄區塊樣式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(11, 15, 43, 0.7), rgba(11, 15, 43, 0.9)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 15px;
    background-color: rgba(11, 15, 43, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(122, 95, 255, 0.2);
    animation: heroGlow 3s infinite alternate;
    position: relative;
}

@keyframes heroGlow {
    0% {
        box-shadow: 0 0 10px rgba(122, 95, 255, 0.4), 0 0 20px rgba(122, 95, 255, 0.2);
        border: 1px solid rgba(122, 95, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(122, 95, 255, 0.6), 0 0 40px rgba(122, 95, 255, 0.3);
        border: 1px solid rgba(122, 95, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 30px rgba(90, 63, 223, 0.8), 0 0 50px rgba(90, 63, 223, 0.4);
        border: 1px solid rgba(90, 63, 223, 0.7);
    }
}

.hero-content h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #FFFFFF;
    text-shadow: 0 0 25px rgba(122, 95, 255, 0.7);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 25px;
    color: #FFFFFF;
    letter-spacing: 1px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    position: relative;
    padding: 10px;
    z-index: 1;
}

.hero-buttons::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 35px;
    background: linear-gradient(135deg, rgba(122, 95, 255, 0.1), rgba(90, 63, 223, 0.1));
    z-index: -1;
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.98);
    }
}

/* 服務區塊樣式 */
.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: #FFFFFF;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(122, 95, 255, 0.5);
}

.services {
    padding: 120px 0;
    background-color: #0B0F2B;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.service-card {
    background-color: rgba(122, 95, 255, 0.1);
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(122, 95, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(122, 95, 255, 0.1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 25px rgba(122, 95, 255, 0.5);
    border-color: rgba(122, 95, 255, 0.7);
    background-color: rgba(122, 95, 255, 0.18);
}

.service-card:nth-child(1):hover {
    transform: translateY(-20px) scale(1.05) rotate(2deg);
}

.service-card:nth-child(2):hover {
    transform: translateY(-20px) scale(1.05);
}

.service-card:nth-child(3):hover {
    transform: translateY(-20px) scale(1.05) rotate(-2deg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.service-card:hover::before {
    transform: scale(1.5);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 40px;
    box-shadow: 0 15px 30px rgba(122, 95, 255, 0.4), 0 0 15px rgba(122, 95, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 5s ease-in-out infinite;
}

.service-card:hover .service-icon {
    transform: scale(1.15) translateY(-10px);
    box-shadow: 0 20px 40px rgba(122, 95, 255, 0.6), 0 0 30px rgba(122, 95, 255, 0.4);
    animation: none;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 22px;
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(122, 95, 255, 0.5);
    transition: all 0.3s ease;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    border-radius: 3px;
    transition: all 0.5s ease;
    box-shadow: 0 0 10px rgba(122, 95, 255, 0.5);
}

.service-card:hover h3::after {
    width: 80px;
    box-shadow: 0 0 15px rgba(122, 95, 255, 0.8);
}

.service-card:hover h3 {
    text-shadow: 0 0 20px rgba(122, 95, 255, 0.8);
    transform: translateY(-3px);
}

.service-card p {
    color: #E8E8E8;
    font-size: 18px;
    line-height: 1.8;
    transition: all 0.3s ease;
    padding: 0 10px;
    margin-top: 15px;
}

.service-card:hover p {
    color: #FFFFFF;
}

/* 應徵區塊樣式 */
.apply {
    padding: 120px 0;
    background-color: #080B20;
    position: relative;
    overflow: hidden;
}

.apply::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.apply-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.apply-info h3 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.apply-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    border-radius: 2px;
}

.apply-info h4 {
    font-size: 26px;
    margin: 35px 0 22px;
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.apply-info p {
    margin-bottom: 22px;
    color: #D8D8D8;
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.apply-info ul {
    margin-bottom: 35px;
    padding-left: 5px;
}

.apply-info ul li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.apply-info ul li:hover {
    background-color: rgba(122, 95, 255, 0.1);
    transform: translateX(5px);
}

.apply-info ul li i {
    color: #7A5FFF;
    margin-right: 12px;
    margin-top: 5px;
    font-size: 16px;
}

.apply-buttons {
    margin-top: 40px;
}

.apply-image {
    position: relative;
}

.apply-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.apply-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.apply-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(122, 95, 255, 0.4);
    transition: all 0.5s ease;
}

.apply-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(122, 95, 255, 0.6);
}

/* 關於我們區塊樣式 */
.about {
    padding: 120px 0;
    background-color: #0B0F2B;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, rgba(122, 95, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(122, 95, 255, 0.4);
    transition: all 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(122, 95, 255, 0.6);
}

.about-text h3 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 22px;
    color: #D8D8D8;
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.about-text p:last-child {
    padding: 15px;
    background-color: rgba(122, 95, 255, 0.1);
    border-radius: 10px;
    border-left: 3px solid #7A5FFF;
}

/* 頁尾樣式 */
footer {
    background-color: #080B20;
    padding: 90px 0 30px;
    color: #D8D8D8;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(122, 95, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(122, 95, 255, 0.5);
    letter-spacing: 1px;
}

.footer-logo p {
    color: #D8D8D8;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.footer-contact h3,
.footer-links h3 {
    font-size: 22px;
    margin-bottom: 22px;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-contact h3::after,
.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    border-radius: 2px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-contact p:hover {
    transform: translateX(5px);
}

.footer-contact p i {
    margin-right: 12px;
    color: #7A5FFF;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-contact p:hover i {
    transform: scale(1.2);
}

.footer-links ul li {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-links ul li a {
    padding: 5px 0;
    display: inline-block;
    position: relative;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(135deg, #7A5FFF, #5A3FDF);
    transition: width 0.3s ease;
}

.footer-links ul li a:hover {
    color: #7A5FFF;
}

.footer-links ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(122, 95, 255, 0.2);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(122, 95, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #7A5FFF;
    transform: translateY(-3px);
}

/* 快速導航 */
.quick-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background-color: rgba(11, 15, 43, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
    font-size: 12px;
}

.quick-nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
    color: #7A5FFF;
}

/* 響應式樣式 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 40px;
    }
    
    .apply-content,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .apply-image,
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(11, 15, 43, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease;
    }
    
    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .main-nav li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .quick-nav {
        width: 90%;
        justify-content: center;
        position: relative;
    }
    
    .quick-nav-item {
        margin: 0 5px;
    }
    
    .quick-nav-item span {
        display: none;
    }
    
    .quick-nav-item i {
        font-size: 24px;
        margin-bottom: 0;
    }
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 滾動顯示動畫 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 閃光邊框效果 */
.glow-border {
    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, transparent, #7A5FFF, transparent);
    z-index: -1;
    animation: border-glow 2s linear infinite;
}

@keyframes border-glow {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 200%;
    }
}

/* 漸變背景效果 */
.gradient-bg {
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(122, 95, 255, 0.1), rgba(90, 63, 223, 0.1));
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    z-index: -1;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 添加視差滾動效果 */
.parallax-scroll {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.parallax-scroll-slow {
    transform: translateY(var(--parallax-offset, 0));
    transition-duration: 0.8s;
}

.parallax-scroll-medium {
    transform: translateY(calc(var(--parallax-offset, 0) * 1.5));
    transition-duration: 0.6s;
}

.parallax-scroll-fast {
    transform: translateY(calc(var(--parallax-offset, 0) * 2));
    transition-duration: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-70px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(70px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(122, 95, 255, 0.5);
    }
    50% {
        transform: scale(1.08);
        text-shadow: 0 0 20px rgba(122, 95, 255, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(122, 95, 255, 0.5);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px rgba(122, 95, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(122, 95, 255, 0.8), 0 0 30px rgba(122, 95, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(122, 95, 255, 0.5);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-15deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* 為各區塊添加不同的動畫效果 */
.logo h1 {
    animation: pulse 2s infinite;
    letter-spacing: 2px;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7A5FFF, transparent);
    animation: glowing 2s infinite;
}

.main-nav li {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.main-nav li:nth-child(1) { animation-delay: 0.1s; }
.main-nav li:nth-child(2) { animation-delay: 0.2s; }
.main-nav li:nth-child(3) { animation-delay: 0.3s; }
.main-nav li:nth-child(4) { animation-delay: 0.4s; }

.main-nav li:hover {
    transform: translateY(-3px);
}

.hero {
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(122, 95, 255, 0.1), transparent 70%);
    animation: pulse 8s infinite alternate;
    pointer-events: none;
}

.hero-content {
    animation: zoomIn 1.2s ease-out forwards;
    border: 1px solid rgba(122, 95, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(122, 95, 255, 0.1), transparent 70%);
    animation: pulse 10s infinite alternate;
    pointer-events: none;
    z-index: -1;
}

.hero-content h2 {
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    position: relative;
    display: inline-block;
}

.hero-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #7A5FFF, transparent);
    animation: glowing 3s infinite;
}

.hero-content p {
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(122, 95, 255, 0.7);
}

.hero-buttons {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.9s;
}

.hero-buttons .btn {
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transition: all 0.5s ease;
}

.hero-buttons .btn:hover::before {
    top: -50%;
    left: -50%;
}

.hero-buttons .btn-primary {
    animation: glowing 3s infinite;
}

.hero-buttons .btn-secondary:hover {
    animation: border-glow 2s linear infinite;
}

.section-title {
    animation: zoomIn 0.8s ease-out forwards;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 95, 255, 0.3), transparent 70%);
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    animation: float 5s ease-in-out infinite;
}

.service-card {
    opacity: 0;
    animation: rotateIn 0.8s ease-out forwards;
    transform-origin: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services-grid .service-card:nth-child(1) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(122, 95, 255, 0.5);
}

.service-icon {
    animation: float 5s ease-in-out infinite;
}

.apply-info {
    animation: slideInLeft 1s ease-out forwards;
    position: relative;
}

.apply-info::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 95, 255, 0.2), transparent 70%);
    top: -30px;
    left: -30px;
    z-index: -1;
    animation: pulse 5s infinite alternate;
}

.apply-info ul li {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.apply-info ul li:hover {
    transform: translateX(10px);
    background-color: rgba(122, 95, 255, 0.15);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 10px rgba(122, 95, 255, 0.2);
}

.apply-image {
    animation: slideInRight 1s ease-out forwards;
    position: relative;
}

.apply-image img {
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.apply-image:hover img {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(122, 95, 255, 0.5);
}

.about-image {
    animation: slideInLeft 1s ease-out forwards;
    position: relative;
}

.about-image img {
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-image:hover img {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(122, 95, 255, 0.5);
}

.about-text {
    animation: slideInRight 1s ease-out forwards;
    position: relative;
}

.about-text::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 95, 255, 0.2), transparent 70%);
    bottom: -20px;
    right: -20px;
    z-index: -1;
    animation: pulse 5s infinite alternate;
}

.footer-content > div {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    transition: all 0.3s ease;
}

.footer-content > div:hover {
    transform: translateY(-5px);
    background-color: rgba(122, 95, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 10px rgba(122, 95, 255, 0.1);
}

.footer-content > div:nth-child(1) { animation-delay: 0.1s; }
.footer-content > div:nth-child(2) { animation-delay: 0.3s; }
.footer-content > div:nth-child(3) { animation-delay: 0.5s; }

.quick-nav {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(122, 95, 255, 0.5);
    border: 1px solid rgba(122, 95, 255, 0.3);
}

.quick-nav:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(122, 95, 255, 0.7);
}


.quick-nav-item:hover i {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(122, 95, 255, 0.8);
}

/* 滾動時的頁首樣式 */
header.scrolled {
    background-color: rgba(11, 15, 43, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

header.hidden {
    transform: translateY(-100%);
}