/* 欣聯算力 - 首頁專用樣式 */

/* Hero 區塊樣式 */
#hero {
    position: relative;
    background: linear-gradient(135deg, #0a192f 0%, #1a2332 50%, #0a192f 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 128, 255, 0.1) 0%, transparent 50%),
        url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 25, 47, 0.9) 0%,
        rgba(26, 35, 50, 0.8) 50%,
        rgba(10, 25, 47, 0.9) 100%
    );
    z-index: 1;
}

#hero .container {
    z-index: 2;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Hero 按鈕特效 */
.hero-buttons .btn {
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

/* 服務方案區塊樣式 */
#services {
    background: var(--dark-gradient);
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(0, 191, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 128, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 191, 255, 0.1);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon i {
    color: #00bfff;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

/* 核心優勢區塊樣式 */
#advantages {
    position: relative;
}

#advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(0, 191, 255, 0.03) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(0, 128, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.advantage-item {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    border-radius: 1rem;
    position: relative;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.advantage-icon {
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.15);
}

.advantage-item:hover .advantage-icon i {
    color: #00bfff;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

/* 技術架構區塊樣式 */
#technology {
    background: var(--dark-gradient);
    position: relative;
}

#technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at top, rgba(0, 191, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse at bottom, rgba(0, 128, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.tech-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.tech-tabs .nav-link {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem 0.5rem 0 0;
    margin: 0 0.25rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-tabs .nav-link:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.3);
    color: #ffffff;
}

.tech-tabs .nav-link.active {
    background: rgba(0, 191, 255, 0.15);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.tech-tabs .nav-link.active::before {
    transform: scaleX(1);
}

.tech-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 1rem 1rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.architecture-layer,
.booster-feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border-left: 4px solid var(--bs-primary);
    transition: all 0.3s ease;
}

.architecture-layer:hover,
.booster-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

/* 關於我們區塊樣式 */
#about {
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(135deg, rgba(0, 191, 255, 0.03) 0%, transparent 50%),
        linear-gradient(-135deg, rgba(0, 128, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.team-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-3px);
}

.team-item i {
    transition: all 0.3s ease;
}

.team-item:hover i {
    color: #00bfff;
    transform: scale(1.1);
}

/* 聯絡我們區塊樣式 */
#contact {
    background: var(--dark-gradient);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 191, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 128, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-item-large {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-item-large:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-item-large:hover .contact-icon i {
    color: #00bfff;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.contact-item-large a:hover {
    color: var(--bs-primary) !important;
    text-decoration: underline !important;
}

.contact-info {
    padding: 3rem 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    color: #00bfff;
    transform: scale(1.1);
}

.map-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 頁尾樣式 */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000000 !important;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .tech-content {
        padding: 2rem;
    }
    
    .contact-info-card {
        padding: 3rem 2rem;
    }
    
    .contact-item-large {
        padding: 1.5rem 1rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .tech-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .advantage-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .tech-content {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-item-large {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .tech-tabs {
        flex-direction: column;
    }
    
    .tech-tabs .nav-link {
        margin: 0.25rem 0;
        border-radius: 0.5rem;
    }
    
    .architecture-layer,
    .booster-feature {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .team-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    .advantage-item {
        padding: 1rem;
    }
    
    .tech-content {
        padding: 1rem;
    }
    
    .contact-info-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-item-large {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
}

/* 動畫效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 191, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 191, 255, 0);
    }
}

.service-icon i:hover {
    animation: pulse 2s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.advantage-icon:hover {
    animation: float 2s ease-in-out infinite;
}

/* 載入狀態 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 191, 255, 0.3);
    border-top: 3px solid #00bfff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
