/* ========================================
   VTuber Project - Elegant Futuristic Design
   ======================================== */

:root {
    /* Color Palette - Elegant Purple/Gold Theme */
    --primary-color: #b794f6;
    --primary-glow: rgba(183, 148, 246, 0.4);
    --secondary-color: #e879f9;
    --secondary-glow: rgba(232, 121, 249, 0.3);
    --accent-gold: #fbbf24;
    --accent-gold-glow: rgba(251, 191, 36, 0.3);
    --accent-cyan: #22d3ee;
    --accent-cyan-glow: rgba(34, 211, 238, 0.3);

    --bg-dark: #0a0612;
    --bg-overlay: rgba(10, 6, 18, 0.6);

    --text-primary: #f8f4ff;
    --text-secondary: rgba(248, 244, 255, 0.7);
    --text-muted: rgba(248, 244, 255, 0.4);

    --border-glow: rgba(183, 148, 246, 0.25);
    --border-subtle: rgba(183, 148, 246, 0.12);
}

* {
    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-dark);
    color: var(--text-primary);
}

/* ========================================
   THREE.JS CANVAS
   ======================================== */

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ========================================
   OVERLAY EFFECTS
   ======================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.vignette {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(10, 6, 18, 0.7) 100%);
}

.noise {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-glow) 20%,
            var(--primary-color) 50%,
            var(--primary-glow) 80%,
            transparent 100%);
    animation: scanMove 10s linear infinite;
    opacity: 0.3;
}

@keyframes scanMove {
    0% {
        top: -2px;
    }

    100% {
        top: 100%;
    }
}

/* ========================================
   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(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold), 0 0 20px var(--accent-gold-glow);
}

.pulse-ring {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent-gold);
    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 {
    color: var(--primary-color);
    opacity: 0.5;
    font-size: 6px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.logo-container {
    position: relative;
    padding: 60px 100px;
}

/* Frame Design */
.logo-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.frame-corner::before,
.frame-corner::after {
    content: '';
    position: absolute;
    background: var(--primary-color);
}

.frame-corner.top-left {
    top: 0;
    left: 0;
}

.frame-corner.top-right {
    top: 0;
    right: 0;
}

.frame-corner.bottom-left {
    bottom: 0;
    left: 0;
}

.frame-corner.bottom-right {
    bottom: 0;
    right: 0;
}

.frame-corner.top-left::before,
.frame-corner.bottom-left::before {
    width: 1px;
    height: 20px;
    left: 0;
}

.frame-corner.top-left::after,
.frame-corner.top-right::after {
    height: 1px;
    width: 20px;
    top: 0;
}

.frame-corner.top-right::before,
.frame-corner.bottom-right::before {
    width: 1px;
    height: 20px;
    right: 0;
}

.frame-corner.bottom-left::after,
.frame-corner.bottom-right::after {
    height: 1px;
    width: 20px;
    bottom: 0;
}

.frame-corner.top-left::before,
.frame-corner.top-left::after {
    top: 0;
    left: 0;
}

.frame-corner.top-right::after {
    right: 0;
}

.frame-corner.bottom-left::before {
    bottom: 0;
}

.frame-corner.bottom-left::after {
    left: 0;
}

.frame-corner.bottom-right::before {
    bottom: 0;
}

.frame-corner.bottom-right::after {
    right: 0;
}

.frame-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.frame-line.horizontal {
    height: 1px;
    left: 30px;
    right: 30px;
}

.frame-line.horizontal.top {
    top: 0;
}

.frame-line.horizontal.bottom {
    bottom: 0;
}

.frame-line.vertical {
    width: 1px;
    top: 30px;
    bottom: 30px;
    background: linear-gradient(180deg, transparent, var(--border-subtle), transparent);
}

.frame-line.vertical.left {
    left: 0;
}

.frame-line.vertical.right {
    right: 0;
}

/* Title Design */
.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.title-line {
    display: block;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.3em;
    position: relative;
}

.title-vtuber {
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 700;
    background: linear-gradient(180deg,
            #ffffff 0%,
            var(--primary-color) 50%,
            var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px var(--primary-glow));
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 40px var(--primary-glow));
    }

    50% {
        filter: drop-shadow(0 0 60px var(--primary-glow)) drop-shadow(0 0 100px var(--secondary-glow));
    }
}

.title-project {
    font-size: clamp(24px, 4vw, 45px);
    font-weight: 400;
    color: var(--text-secondary);
    text-shadow: 0 0 30px var(--primary-glow);
}

/* Title Ornament */
.title-ornament {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.ornament-line {
    height: 1px;
    width: 80px;
    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);
    box-shadow: 0 0 15px var(--primary-glow);
    animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {

    0%,
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 0.8;
    }
}

/* Tagline */
.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
    width: 100%;
}

.tagline-char {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px var(--primary-glow);
}

.tagline-divider {
    color: var(--primary-color);
    opacity: 0.8;
    margin: 0 20px;
    font-weight: 300;
}

/* ========================================
   SERVICES HEXAGONS
   ======================================== */

.services-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 700px;
}

.service-hex {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-hex:hover {
    transform: translateY(-8px) scale(1.05);
}

.hex-border {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--border-glow), transparent, var(--border-glow));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.4s ease;
}

.service-hex:hover .hex-border {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 40px var(--primary-glow);
}

.hex-content {
    position: absolute;
    inset: 1px;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s ease;
}

.service-hex:hover .hex-content {
    background: rgba(183, 148, 246, 0.1);
}

.service-icon {
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

.service-hex:hover .service-icon {
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.service-label {
    font-family: 'Noto Serif TC', serif;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.service-hex:hover .service-label {
    color: var(--primary-color);
}

/* ========================================
   CORNER ORNAMENTS
   ======================================== */

.corner-ornament {
    position: fixed;
    width: 80px;
    height: 80px;
    color: var(--border-subtle);
    pointer-events: none;
    z-index: 15;
}

.corner-ornament.top-left {
    top: 60px;
    left: 30px;
}

.corner-ornament.top-right {
    top: 60px;
    right: 30px;
    transform: scaleX(-1);
}

.corner-ornament.bottom-left {
    bottom: 60px;
    left: 30px;
    transform: scaleY(-1);
}

.corner-ornament.bottom-right {
    bottom: 60px;
    right: 30px;
    transform: scale(-1);
}

.corner-ornament svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   FOOTER
   ======================================== */

.footer-info {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 15;
}

.footer-ornament {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle));
}

.footer-ornament.right {
    background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.contact {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.4s ease;
    text-decoration: none;
}

.contact:hover {
    color: var(--primary-color);
    opacity: 1;
    text-shadow: 0 0 15px var(--primary-glow);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .status-bar {
        padding: 20px 25px;
    }

    .logo-container {
        padding: 40px 50px;
    }

    .services-container {
        gap: 15px;
    }

    .service-hex {
        width: 70px;
        height: 70px;
    }

    .service-icon {
        width: 22px;
        height: 22px;
    }

    .service-label {
        font-size: 8px;
    }

    .corner-ornament {
        width: 50px;
        height: 50px;
    }

    .corner-ornament.top-left,
    .corner-ornament.top-right {
        top: 70px;
    }

    .corner-ornament.bottom-left,
    .corner-ornament.bottom-right {
        bottom: 70px;
    }
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
    background: rgba(183, 148, 246, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(183, 148, 246, 0.3);
    color: var(--text-primary);
}