/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050b14;
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bda16c; 
}

body {
    background: radial-gradient(circle at center, #1e3a8a 0%, #0a1528 50%, #050b14 100%);
    min-height: 100vh;
    color: #f8fafc;
    overflow-x: hidden;
    background-attachment: fixed; /* Ensure gradient stays fixed */
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(10, 30, 61, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-card-hover {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card-hover:hover {
    border-color: rgba(189, 161, 108, 0.8);
    border-width: 3px;
    background: rgba(10, 30, 61, 0.7);
    transform: translateY(-14px);
    box-shadow: 0 20px 60px rgba(189, 161, 108, 0.3), 0 0 40px rgba(189, 161, 108, 0.15);
}

/* Text Gradients */
.text-gradient-gold {
    background: linear-gradient(to right, #bda16c, #d4b88a, #bda16c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

.text-gradient-blue {
    background: linear-gradient(to right, #bda16c, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Animation Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Canvas Positioning */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.speaker-photo {
    position: relative;
}
.speaker-photo:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 3px rgba(189, 161, 108);
    border-radius: 9999px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(189, 161, 108, 0.3), transparent);
    margin: 0 auto;
    width: 80%;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: rgba(10, 30, 61, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(189, 161, 108, 0.3);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 20px 12px;
    color: #bda16c;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.75;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    white-space: nowrap;
}

.floating-cta:hover {
    opacity: 1;
    background: rgba(10, 30, 61, 0.9);
    border-color: rgba(189, 161, 108, 0.6);
    padding-right: 14px;
    box-shadow: -4px 0 20px rgba(189, 161, 108, 0.2);
}

.floating-cta:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hide on mobile to avoid blocking content */
@media (max-width: 768px) {
    .floating-cta {
        display: none;
    }
}
/* 外層容器維持 SVG 原始比例 854.5 x 679 */
.scene {
    position: relative;
    width: 90%;
    max-width: 900px;
    padding-top: calc(90% * 679 / 854.5);
}

.water-layer,
.ship-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* 水波：左右平移 */
.water-layer {
    animation: wave-drift 6s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes wave-drift {
    0%   { transform: translateX(0px) scaleX(1); }
    30%  { transform: translateX(6px) scaleX(1.01); }
    70%  { transform: translateX(-5px) scaleX(0.99); }
    100% { transform: translateX(0px) scaleX(1); }
}

/* 船：上下漂浮 + 微微傾斜 */
.ship-layer {
    animation: float 4s ease-in-out infinite;
    transform-origin: center 65%;
}

@keyframes float {
    0%   { transform: translateY(0px)   rotate(0deg); }
    25%  { transform: translateY(-10px) rotate(0.7deg); }
    50%  { transform: translateY(-5px)  rotate(0deg); }
    75%  { transform: translateY(-12px) rotate(-0.7deg); }
    100% { transform: translateY(0px)   rotate(0deg); }
}

@media (max-width: 1023.999px) {
    .scene {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-subtitle-dash {
        display: none;
    }
}
