﻿/* ===== Domain 簡報專用樣式 - 完全自然滾動版本 ===== */

/* 簡報主包裝器 */
#domain-presentation-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 簡報容器 - 移除所有可能造成滾動問題的屬性 */
#presentation-container {
    position: relative;
    background: #050709;
    width: 100%;
}

/* 確保 body 可以正常滾動 */
body {
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* ===== 深空背景層 ===== */
.deep-space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #050709 0%, #0A0D14 50%, #050709 100%);
    z-index: 0;
    pointer-events: none;
}

/* ===== 星雲效果層 ===== */
.nebula-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(ellipse at 20% 30%, rgba(30, 63, 175, 0.08) 0%, transparent 40%), radial-gradient(ellipse at 80% 20%, rgba(107, 42, 217, 0.06) 0%, transparent 40%), radial-gradient(ellipse at 50% 80%, rgba(18, 179, 172, 0.05) 0%, transparent 40%), radial-gradient(ellipse at 10% 70%, rgba(242, 183, 5, 0.04) 0%, transparent 40%);
    animation: nebula-drift 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes nebula-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
        opacity: 0.8;
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.7;
    }
}

/* ===== 星空背景 ===== */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===== 流星效果 ===== */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 80px;
    /* 改為從上到下：頭部透明(細) → 尾部白色(粗) */
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
    animation: shooting 3s linear infinite;
    opacity: 0;
}

@keyframes shooting {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(45deg);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-300px, 300px) rotate(45deg);
    }
}

/* ===== 投影片容器 ===== */
#slides-container {
    position: relative;
    z-index: 10;
}

.slide {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    padding: 3rem 0;
    /* 確保不會干擾滾動 */
    pointer-events: auto;
}

    /* 第一張投影片加上 header 高度的間距 */
    .slide[data-slide="1"] {
        padding-top: 120px; /* header 高度 + 額外空間 */
    }

    .slide.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* 移除任何可能造成滾動停止的屬性 */
    .slide > * {
        pointer-events: auto;
    }

@media (max-width: 768px) {
    .slide {
        padding: 2rem 0;
        min-height: auto;
        /* 手機版加快動畫速度 */
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        transform: translateY(15px); /* 減少移動距離 */
    }

        /* 第一張投影片手機版間距 */
        .slide[data-slide="1"] {
            padding-top: 100px;
        }
}

/* ===== 進度指示器 ===== */
.progress-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .progress-dot:hover {
        background: rgba(30, 63, 175, 0.6);
        transform: scale(1.3);
    }

    .progress-dot.active {
        background: #1E3FAF;
        width: 12px;
        height: 12px;
        box-shadow: 0 0 15px rgba(30, 63, 175, 0.8), 0 0 30px rgba(30, 63, 175, 0.4);
        animation: dot-pulse 2s ease-in-out infinite;
    }

@keyframes dot-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(30, 63, 175, 0.8), 0 0 30px rgba(30, 63, 175, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(30, 63, 175, 1), 0 0 40px rgba(30, 63, 175, 0.6);
    }
}

/* ===== 文字漸層 ===== */
#presentation-container .text-gradient {
    background: linear-gradient(135deg, #1E3FAF 0%, #6B2AD9 50%, #12B3AC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 顏色類別 ===== */
#presentation-container .text-cyan {
    color: #12B3AC !important;
}

#presentation-container .text-gold {
    color: #F2B705 !important;
}

#presentation-container .text-purple {
    color: #6B2AD9 !important;
}

#presentation-container .text-light {
    color: #C7CCD6 !important;
}

/* ===== 宇宙卡片 ===== */
#presentation-container .cosmic-card {
    background: rgba(10, 13, 20, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

    #presentation-container .cosmic-card:hover {
        border-color: rgba(30, 63, 175, 0.3);
        box-shadow: 0 12px 48px rgba(30, 63, 175, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: translateY(-4px);
    }

/* ===== 標籤徽章 ===== */
#presentation-container .badge-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    #presentation-container .badge-tag:hover {
        transform: translateY(-2px);
    }

#presentation-container .badge-primary {
    background: linear-gradient(135deg, rgba(30, 63, 175, 0.3), rgba(107, 42, 217, 0.3));
    border: 1px solid rgba(30, 63, 175, 0.5);
    color: #C7CCD6;
    box-shadow: 0 0 20px rgba(30, 63, 175, 0.3);
}

#presentation-container .badge-success {
    background: linear-gradient(135deg, rgba(18, 179, 172, 0.3), rgba(18, 179, 172, 0.2));
    border: 1px solid rgba(18, 179, 172, 0.5);
    color: #12B3AC;
    box-shadow: 0 0 20px rgba(18, 179, 172, 0.3);
}

#presentation-container .badge-warning {
    background: linear-gradient(135deg, rgba(242, 183, 5, 0.3), rgba(242, 183, 5, 0.2));
    border: 1px solid rgba(242, 183, 5, 0.5);
    color: #F2B705;
    box-shadow: 0 0 20px rgba(242, 183, 5, 0.3);
}

/* ===== 比較卡片 ===== */
#presentation-container .comparison-card {
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

#presentation-container .comparison-good {
    background: linear-gradient(135deg, rgba(18, 179, 172, 0.08) 0%, rgba(18, 179, 172, 0.03) 100%);
    border: 1px solid rgba(18, 179, 172, 0.2);
}

    #presentation-container .comparison-good:hover {
        border-color: rgba(18, 179, 172, 0.4);
        box-shadow: 0 0 40px rgba(18, 179, 172, 0.15);
    }

#presentation-container .comparison-bad {
    background: linear-gradient(135deg, rgba(107, 42, 217, 0.08) 0%, rgba(107, 42, 217, 0.03) 100%);
    border: 1px solid rgba(107, 42, 217, 0.2);
}

    #presentation-container .comparison-bad:hover {
        border-color: rgba(107, 42, 217, 0.4);
        box-shadow: 0 0 40px rgba(107, 42, 217, 0.15);
    }

/* ===== 網域範例卡片 ===== */
#presentation-container .domain-example {
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

    #presentation-container .domain-example:hover {
        transform: scale(1.05);
    }

#presentation-container .border-blue {
    border-color: rgba(30, 63, 175, 0.3) !important;
}

    #presentation-container .border-blue:hover {
        border-color: rgba(30, 63, 175, 0.6) !important;
    }

#presentation-container .border-purple {
    border-color: rgba(107, 42, 217, 0.3) !important;
}

    #presentation-container .border-purple:hover {
        border-color: rgba(107, 42, 217, 0.6) !important;
    }

#presentation-container .border-cyan {
    border-color: rgba(18, 179, 172, 0.3) !important;
}

    #presentation-container .border-cyan:hover {
        border-color: rgba(18, 179, 172, 0.6) !important;
    }

#presentation-container .border-cyan-strong {
    border: 2px solid rgba(18, 179, 172, 0.5) !important;
}

/* ===== 平台卡片 ===== */
#presentation-container .platform-card {
    background: rgba(10, 13, 20, 0.5);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

/* ===== 後綴卡片 ===== */
#presentation-container .suffix-card {
    background: rgba(10, 13, 20, 0.5);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
}

    #presentation-container .suffix-card:hover {
        transform: translateY(-8px);
    }

/* ===== 步驟編號 ===== */
#presentation-container .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3FAF, #6B2AD9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 20px rgba(30, 63, 175, 0.4);
    position: relative;
}

    #presentation-container .step-number::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1E3FAF, #6B2AD9);
        opacity: 0.3;
        z-index: -1;
        animation: step-pulse 2s ease-in-out infinite;
    }

/* 小型步驟編號 */
#presentation-container .step-number-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3FAF, #6B2AD9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 10px rgba(30, 63, 175, 0.4);
}

@keyframes step-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* ===== GoDaddy 連結樣式 ===== */
#presentation-container .godaddy-link {
    text-decoration: none;
    transition: transform 0.3s ease;
}

    #presentation-container .godaddy-link:hover {
        transform: translateY(-4px);
    }

    #presentation-container .godaddy-link .cosmic-card {
        border-color: rgba(40, 167, 69, 0.5) !important;
    }

    #presentation-container .godaddy-link:hover .cosmic-card {
        border-color: rgba(40, 167, 69, 0.8) !important;
        box-shadow: 0 12px 48px rgba(40, 167, 69, 0.3) !important;
    }

#presentation-container .hover-scale {
    transition: all 0.3s ease;
}

    #presentation-container .hover-scale:hover {
        transform: scale(1.02);
    }

/* ===== 圖示包裝器 ===== */
#presentation-container .domain-icon-wrapper {
    width: 128px;
    height: 128px;
}

#presentation-container .icon-glow {
    background: linear-gradient(135deg, #1E3FAF, #6B2AD9);
    animation: pulse-glow 3s ease-in-out infinite;
}

#presentation-container .icon-ring {
    background: linear-gradient(135deg, #1E3FAF, #6B2AD9);
    animation: pulse-ring 3s ease-in-out infinite;
}

#presentation-container .icon-core {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #050709;
    border: 1px solid rgba(30, 63, 175, 0.3);
}

#presentation-container .final-icon-wrapper {
    width: 144px;
    height: 144px;
}

#presentation-container .icon-core-large {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #050709;
    border: 1px solid rgba(18, 179, 172, 0.3);
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.3);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

/* ===== 浮動動畫 ===== */
#presentation-container .float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ===== 滾動提示 ===== */
#presentation-container .scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.6;
    color: #12B3AC;
}

    #presentation-container .scroll-hint:hover {
        opacity: 1;
    }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== 自訂列表 ===== */
#presentation-container .custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #presentation-container .custom-list li {
        position: relative;
        padding-left: 2rem;
    }

        #presentation-container .custom-list li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: #12B3AC;
            font-weight: bold;
            font-size: 1.2rem;
            animation: arrow-glow 2s ease-in-out infinite;
        }

@keyframes arrow-glow {
    0%, 100% {
        opacity: 0.6;
        text-shadow: 0 0 10px rgba(18, 179, 172, 0.5);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(18, 179, 172, 0.8);
    }
}

/* ===== 最終訊息卡片 ===== */
#presentation-container .final-message {
    background: linear-gradient(135deg, rgba(30, 63, 175, 0.05), rgba(107, 42, 217, 0.05), rgba(18, 179, 172, 0.05));
    border: 2px solid rgba(18, 179, 172, 0.3);
}

/* ===== 程式碼區塊 ===== */
#presentation-container code {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .progress-indicator {
        display: none;
    }

    .slide {
        padding: 2rem 0;
    }

    #presentation-container .domain-icon-wrapper {
        width: 96px;
        height: 96px;
    }

    #presentation-container .final-icon-wrapper {
        width: 112px;
        height: 112px;
    }

    #presentation-container .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .slide {
        padding: 1.5rem 0;
    }

    #presentation-container .display-1 {
        font-size: 2.5rem;
    }

    #presentation-container .display-2 {
        font-size: 2rem;
    }

    #presentation-container .display-3 {
        font-size: 1.75rem;
    }
}

/* ===== 確保不影響外部滾動 ===== */
#domain-presentation-wrapper {
    scroll-behavior: smooth;
}

/* ===== 選取文字樣式 ===== */
#presentation-container ::selection {
    background: rgba(30, 63, 175, 0.3);
    color: #fff;
}

#presentation-container ::-moz-selection {
    background: rgba(30, 63, 175, 0.3);
    color: #fff;
}

/* ===== 覆蓋 Header 樣式 - 保持背景透明 ===== */
/* 針對你的 sticky header 進行樣式覆蓋 */
body:has(#presentation-container) #topnav {
    background: transparent !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    body:has(#presentation-container) #topnav.nav-sticky {
        background: rgba(10, 13, 20, 0.8) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Header 內文字顏色調整 */
    body:has(#presentation-container) #topnav .logo-font,
    body:has(#presentation-container) #topnav .navigation-menu .sub-menu-item {
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* 手機版選單按鈕 */
    body:has(#presentation-container) #topnav .navbar-toggle .lines span {
        background: #fff !important;
    }

/* 確保導航連結可見 */
body:has(#presentation-container) #navigation {
    background: transparent !important;
}

    body:has(#presentation-container) #navigation .navigation-menu {
        background: transparent !important;
    }

/* 手機版選單展開時的背景 */
@media (max-width: 991px) {
    body:has(#presentation-container) #navigation.open {
        background: rgba(10, 13, 20, 0.95) !important;
        backdrop-filter: blur(20px);
    }
}
