/* ========================================
   VTuber Project - Light Theme with Anime.js
   ======================================== */

:root {
    /* Color Palette - Light Elegant Theme */
    --primary-color: #a855f7;
    --primary-light: #c084fc;
    --primary-glow: rgba(168, 85, 247, 0.3);
    --secondary-color: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.2);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.2);

    --bg-light: #fefefe;
    --bg-subtle: #f8f5ff;

    --text-primary: #1e1b2e;
    --text-secondary: #4a4565;
    --text-muted: #8b85a0;

    --border-color: rgba(168, 85, 247, 0.2);
    --border-subtle: rgba(168, 85, 247, 0.08);

    --shadow-soft: 0 4px 30px rgba(168, 85, 247, 0.1);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Noto Serif TC', 'Cormorant Garamond', serif;
    background: var(--bg-light);
    color: var(--text-primary);
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    perspective: 1000px;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.geo-wrapper {
    transform-style: preserve-3d;
}

.geo-shape {
    transform-style: preserve-3d;
}

.cube-face {
    backface-visibility: visible;
}

.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    transform: perspective(800px);
}

.orbit-ring {
    transform-style: preserve-3d;
}

.orbit-particle {
    will-change: transform;
}

.constellation-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    opacity: 0.5;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ========================================
   STATUS BAR
   ======================================== */

.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    z-index: 20;
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    position: relative;
    width: 10px;
    height: 10px;
}

.pulse-core {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 1px;
    left: 1px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.pulse-ring {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.status-text,
.status-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.status-divider {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    transform: rotate(45deg);
    opacity: 0.5;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.logo-container {
    position: relative;
    padding: 60px 100px;
}

/* Animated Frame */
.animated-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.frame-svg {
    width: 100%;
    height: 100%;
}

.frame-rect {
    stroke: var(--border-color);
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
}

.frame-accent {
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
}

/* Title Design */
.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.title-line {
    display: flex;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.3em;
}

.title-vtuber {
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 700;
}

.title-vtuber .char {
    display: inline-block;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 50%,
            var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
}

.title-project {
    font-size: clamp(24px, 4vw, 45px);
    font-weight: 400;
}

.title-project .char {
    display: inline-block;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
}

/* Title Ornament */
.title-ornament {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.ornament-line {
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.ornament-line.right {
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.ornament-diamond {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    transform: rotate(45deg) scale(0);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Tagline */
.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
}

.tagline-text {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
}

.tagline-divider {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
    opacity: 0.6;
}

.tagline-divider svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   SERVICE CARDS
   ======================================== */

.services-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 750px;
}

.service-card {
    position: relative;
    width: 100px;
    height: 120px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
}

.card-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--border-color), transparent 50%, var(--border-color));
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card:hover .card-content {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.service-label {
    font-family: 'Noto Serif TC', serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.service-card:hover .service-label {
    color: var(--primary-color);
}

.card-shine {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: rotate(25deg);
    transition: all 0.6s ease;
}

.service-card:hover .card-shine {
    left: 150%;
}

/* ========================================
   CORNER DECORATIONS
   ======================================== */

.corner-decoration {
    position: fixed;
    width: 60px;
    height: 60px;
    color: var(--border-color);
    z-index: 15;
    opacity: 0;
}

.corner-decoration.top-left {
    top: 80px;
    left: 40px;
}

.corner-decoration.top-right {
    top: 80px;
    right: 40px;
}

.corner-decoration.bottom-left {
    bottom: 80px;
    left: 40px;
}

.corner-decoration.bottom-right {
    bottom: 80px;
    right: 40px;
}

.corner-decoration svg {
    width: 100%;
    height: 100%;
}

.dot-animate {
    opacity: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.footer-info {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 15;
    opacity: 0;
}

.footer-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color));
}

.footer-line.right {
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.contact {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    transition: all 0.4s ease;
    text-decoration: none;
}

.contact:hover {
    color: var(--primary-color);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .status-bar {
        padding: 20px 25px;
    }

    .logo-container {
        padding: 40px 50px;
    }

    .services-container {
        gap: 12px;
    }

    .service-card {
        width: 85px;
        height: 100px;
    }

    .service-icon {
        width: 26px;
        height: 26px;
    }

    .service-label {
        font-size: 9px;
    }

    .corner-decoration {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
}