/* 專案頁面共用樣式 */


/* 區塊標題 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 專案容器 */
.project-container {
    padding: 0 0 100px;
    background-color: var(--dark-bg);
}

/* 服務特點 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--dark-bg-2);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.1;
    transform: translateY(30px);
    animation: fadeInCards 1s forwards;
    animation-delay: calc(var(--card-index, 0) * 100ms);
}

.service-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 15px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 卡片淡入動畫 */
@keyframes fadeInCards {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 專案展示 */
.project-showcase {
    padding: 100px 0;
    background-color: var(--dark-bg-2);
}

/* 分類過濾器 */
.project-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--dark-bg);
    border-color: var(--primary);
}

/* 專案卡片網格 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--dark-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-link {
    color: var(--dark-bg);
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: white;
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
    color: white;
}

.project-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 8px;
}

.project-category {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: rgba(255, 255, 255, 0.7);
}

/* 技術與工具 */
.tech-section {
    padding: 100px 0;
    background-color: var(--dark-bg-2);
}

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

.tech-item {
    background: var(--dark-bg-2);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.1;
    transform: translateY(30px);
    animation: fadeInTech 1s forwards;
    animation-delay: calc(var(--tech-index, 0) * 100ms + 300ms);
}

.tech-item.animated {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

@keyframes fadeInTech {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.tech-item h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
}

.tech-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* 專案流程 */
.process-section {
    padding: 100px 0;
    background-color: var(--dark-bg-2);
}

.process-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.process-step {
    width: calc(16.66% - 20px);
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0.1;
    transform: translateY(30px);
    transition: all 0.5s ease;
    animation: fadeInProcess 1s forwards;
    animation-delay: calc(var(--step-index, 0) * 150ms + 500ms);
}

.process-step.animated {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

@keyframes fadeInProcess {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--dark-bg);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 行動召喚 */
.cta-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
    text-align: center;
}

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

.cta-content h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--primary);
    color: var(--dark-bg);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-button.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 245, 212, 0.3);
}

.cta-button.secondary:hover {
    transform: translateY(-5px);
    background: rgba(0, 245, 212, 0.1);
}



/* 響應式調整 */
@media (max-width: 992px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tech-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .process-step {
        width: calc(33.33% - 20px);
        margin-bottom: 40px;
    }
    
    .process-timeline:before {
        display: none;
    }
}

@media (max-width: 768px) {
    .project-banner {
        height: 300px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    .process-step {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .project-banner {
        height: 250px;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .process-step {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
} 