﻿/* =========================================
   域創數位工作室 LOCALSOFT Digital Studio - Design System Pro Max
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #030305;
    --bg-panel: rgba(10, 10, 15, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --primary: #00f0ff;
    --primary-dim: rgba(0, 240, 255, 0.1);
    --secondary: #7000ff;
    --secondary-dim: rgba(112, 0, 255, 0.1);
    --accent: #ff0055;

    --text-main: #ffffff;
    --text-muted: #8b9bb4;

    /* Gradients */
    --grad-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-glow: radial-gradient(circle at center, var(--primary-dim), transparent 70%);

    /* Spacing & Layout */
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;

    /* Effects */
    --blur-glass: 20px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px var(--primary-dim);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background Animation Layer */
.bg-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% -20%, #1a1a2e, #000);
    pointer-events: none;
}

#three-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Layout Container */
.main-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--gap-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    margin-bottom: var(--gap-lg);
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: left;
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
}

.hero-logo {
    width: clamp(80px, 15vw, 160px);
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
    animation: float 3s ease-in-out infinite, fadeIn 1s ease-out backwards;
    transition: var(--transition);
}

.hero-logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.6));
    transform: scale(1.05);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5.5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: none;
    width: 100px;
    height: 4px;
    background: var(--grad-main);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

/* Cards Grid */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-md);
    width: 100%;
    perspective: 2000px;
    padding: var(--gap-sm);
}

/* Glass Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 350px;
    max-width: 400px;
}


.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 240, 255, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Card Content */
.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover .card-icon {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: auto;
    width: 100%;
    justify-content: flex-end;
}

.arrow-icon {
    transition: var(--transition);
}

.glass-card:hover .arrow-icon {
    transform: translateX(5px);
}

/* Footer */
.footer {
    margin-top: var(--gap-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper {
        padding: var(--gap-sm);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-logo {
        width: clamp(100px, 25vw, 150px);
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 2rem;
    }
}

/* Quick Tools Section */
.tools-section {
    width: 100%;
    margin-top: var(--gap-md);
    margin-bottom: var(--gap-md);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--gap-sm);
    padding-left: 0.5rem;
    border-left: 3px solid var(--accent);
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Tool Card (Compact) */
.tool-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    flex: 1 1 250px;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tool-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.1);
}

.tool-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.tool-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tool-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--accent);
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .tool-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
