@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --secondary: #10b981;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --accent: #f59e0b;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.section-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.image-placeholder {
    background: linear-gradient(45deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
    border: 1px dashed #475569;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pulse {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.nav-item {
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transition: width 0.3s ease;
}

.nav-item:hover:after {
    width: 100%;
}

.nav-item.active:after {
    width: 100%;
}

.section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-grid {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

.highlight-box {
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(139, 92, 246, 0.1),
        rgba(16, 185, 129, 0.1),
        rgba(139, 92, 246, 0.1)
    );
    transform: rotate(45deg);
    z-index: -1;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(45deg) translateY(-100%); }
    100% { transform: rotate(45deg) translateY(100%); }
}