/* ==========================================================================
   JVibeSchool - Calm & Sophisticated Vibe Coding Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette - Calm Dark Mode (Default) */
    --bg-base: #090d16;
    --bg-surface: rgba(15, 23, 42, 0.72);
    --bg-surface-hover: rgba(30, 41, 59, 0.85);
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --bg-elevated: #1e293b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.16);
    --border-active: rgba(56, 189, 248, 0.4);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    /* Calm Accent Colors */
    --accent-cyan: #38bdf8;
    --accent-cyan-subtle: rgba(56, 189, 248, 0.12);
    --accent-indigo: #818cf8;
    --accent-indigo-subtle: rgba(129, 140, 248, 0.12);
    --accent-purple: #c084fc;
    --accent-purple-subtle: rgba(192, 132, 252, 0.12);
    --accent-emerald: #34d399;
    --accent-emerald-subtle: rgba(52, 211, 153, 0.12);
    --accent-amber: #fbbf24;
    --accent-amber-subtle: rgba(251, 191, 36, 0.12);

    /* Canvas Points & Lines Config */
    --canvas-point-color: rgba(56, 189, 248, 0.75);
    --canvas-line-color: rgba(129, 140, 248, 0.18);
    --canvas-hover-line-color: rgba(56, 189, 248, 0.45);

    /* Glassmorphism & Shadow */
    --glass-blur: blur(16px);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);

    /* Layout & Spacing */
    --nav-height: 72px;
    --container-max: 1240px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transition Speeds */
    --transition-fast: 0.18s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-hover: rgba(241, 245, 249, 0.95);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --bg-elevated: #ffffff;
    --border-subtle: rgba(226, 232, 240, 0.9);
    --border-highlight: rgba(203, 213, 225, 0.95);
    --border-active: rgba(2, 132, 199, 0.4);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #f8fafc;

    --accent-cyan: #0284c7;
    --accent-cyan-subtle: rgba(2, 132, 199, 0.08);
    --accent-indigo: #4f46e5;
    --accent-indigo-subtle: rgba(79, 70, 229, 0.08);
    --accent-purple: #9333ea;
    --accent-purple-subtle: rgba(147, 51, 234, 0.08);
    --accent-emerald: #059669;
    --accent-emerald-subtle: rgba(5, 150, 105, 0.08);
    --accent-amber: #d97706;
    --accent-amber-subtle: rgba(217, 119, 6, 0.08);

    --canvas-point-color: rgba(2, 132, 199, 0.65);
    --canvas-line-color: rgba(79, 70, 229, 0.12);
    --canvas-hover-line-color: rgba(2, 132, 199, 0.35);

    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.08);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* Background Ambient Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    transition: opacity var(--transition-normal);
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: 20%;
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    top: 40%;
    right: -150px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0.3;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-highlight);
}

.nav-container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
}

.brand-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
    transition: transform var(--transition-fast);
}

.nav-brand:hover .brand-icon-wrapper {
    transform: rotate(6deg) scale(1.05);
}

.brand-icon {
    width: 20px;
    height: 20px;
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--accent-cyan-subtle);
    color: var(--accent-cyan);
    border: 1px solid var(--border-active);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--border-subtle);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    background: var(--accent-emerald-subtle);
    border: 1px solid rgba(52, 211, 153, 0.25);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-emerald);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    border-color: var(--border-highlight);
    background: var(--bg-surface-hover);
    transform: scale(1.04);
}

.theme-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

[data-theme="dark"] .light-icon {
    display: block;
}
[data-theme="dark"] .dark-icon {
    display: none;
}

[data-theme="light"] .light-icon {
    display: none;
}
[data-theme="light"] .dark-icon {
    display: block;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   4. Hero Section & Points/Lines Canvas
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 90vh;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* The Canvas for Points and Lines */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    background: var(--accent-indigo-subtle);
    border: 1px solid var(--border-active);
    color: var(--accent-indigo);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.badge-icon {
    width: 15px;
    height: 15px;
}

.hero-title {
    font-family: 'Outfit', 'Pretendard', sans-serif;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2.25rem;
    max-width: 720px;
    word-break: keep-all;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* General Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    user-select: none;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-tertiary:hover {
    background: var(--border-subtle);
    transform: translateY(-2px);
}

/* Hero Stats Strip */
.hero-stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 1.8rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.stat-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-cyan);
}

.stat-val {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-lbl {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -8px);
    }
    60% {
        transform: translate(-50%, -4px);
    }
}

/* --------------------------------------------------------------------------
   5. Section Header & Common Containers
   -------------------------------------------------------------------------- */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--accent-cyan-subtle);
    border: 1px solid var(--border-active);
    margin-bottom: 1rem;
}

.section-tag svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-family: 'Outfit', 'Pretendard', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   6. Server Dashboard Section (4 Core Metric Cards)
   -------------------------------------------------------------------------- */
.dashboard-section {
    background: linear-gradient(180deg, transparent 0%, var(--bg-surface) 100%);
    position: relative;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}

.update-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    animation: pulse-ring 2s infinite;
}

.control-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
    transform: rotate(180deg);
}

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.btn-text-link svg {
    width: 14px;
    height: 14px;
}

.btn-text-link:hover {
    text-decoration: underline;
}

/* 4 Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md);
}

.metric-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.metric-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metric-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon-box svg {
    width: 22px;
    height: 22px;
}

.metric-icon-box.cyan {
    background: var(--accent-cyan-subtle);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.metric-icon-box.indigo {
    background: var(--accent-indigo-subtle);
    color: var(--accent-indigo);
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.metric-icon-box.emerald {
    background: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.metric-icon-box.purple {
    background: var(--accent-purple-subtle);
    color: var(--accent-purple);
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.metric-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metric-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--border-subtle);
    color: var(--text-secondary);
}

.metric-badge.live-badge {
    background: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

/* Metric Body */
.metric-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-main-value {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.num-large {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.uptime-text-val {
    min-height: 2.25rem;
    display: flex;
    align-items: center;
}

.num-medium {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

.unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-subtle);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.cyan {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
}

.progress-bar-fill.indigo {
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
}

.progress-bar-fill.emerald {
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
}

.uptime-meta-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--border-subtle);
    font-size: 0.8rem;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meta-lbl {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
}

.meta-lbl svg {
    width: 14px;
    height: 14px;
}

.meta-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-footer-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
}

.sub-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sub-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sub-stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.highlight-green {
    color: var(--accent-emerald);
}

/* /* --------------------------------------------------------------------------
   7. Portfolio & Feature Launchpad Grid (Large Icon + Feature Title + Vivid Button)
   -------------------------------------------------------------------------- */
.projects-section {
    position: relative;
    z-index: 2;
}

.projects-grid.launchpad-vivid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 992px) {
    .projects-grid.launchpad-vivid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid.launchpad-vivid-grid {
        grid-template-columns: 1fr;
    }
}

.feature-launch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-launch-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
}

.feature-launch-card.live-card {
    border-color: rgba(56, 189, 248, 0.25);
}

.feature-launch-card.add-card {
    border: 2px dashed rgba(16, 185, 129, 0.35);
    background: linear-gradient(145deg, var(--bg-card), rgba(16, 185, 129, 0.04));
}

.project-badge-pill {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
}

.project-badge-pill.live {
    background: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.project-badge-pill.upcoming {
    background: var(--accent-amber-subtle);
    color: var(--accent-amber);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.project-badge-pill.add {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-badge-pill svg {
    width: 12px;
    height: 12px;
}

/* Feature Large Icon Box */
.feature-icon-large {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-launch-card:hover .feature-icon-large {
    transform: scale(1.1) rotate(3deg);
}

.feature-icon-large svg {
    width: 38px;
    height: 38px;
}

.feature-icon-large.icon-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

.feature-icon-large.icon-amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.feature-icon-large.icon-indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1.5px solid rgba(99, 102, 241, 0.5);
    color: #818cf8;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

.feature-icon-large.icon-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border: 1.5px solid rgba(168, 85, 247, 0.5);
    color: #c084fc;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
}

.feature-icon-large.icon-rose {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(249, 115, 22, 0.2));
    border: 1.5px solid rgba(244, 63, 94, 0.5);
    color: #fb7185;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.3);
}

.feature-icon-large.icon-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

/* Feature Title Box */
.feature-title-box {
    margin-bottom: 1.75rem;
    width: 100%;
}

.feature-main-title {
    font-family: 'Outfit', 'Pretendard', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.feature-sub-title {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Feature Action Area & Buttons */
.feature-action-area {
    width: 100%;
    margin-top: auto;
}

.btn-launch-primary {
    width: 100%;
    padding: 0.95rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-launch-primary .icon-right {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.btn-launch-primary:hover .icon-right {
    transform: translate(2px, -2px);
}

.btn-glow-cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
}
.btn-glow-cyan:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.65);
    transform: translateY(-2px);
}

.btn-glow-amber {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}
.btn-glow-amber:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.65);
    transform: translateY(-2px);
}

.btn-glow-indigo {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}
.btn-glow-indigo:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.65);
    transform: translateY(-2px);
}

.btn-launch-secondary {
    width: 100%;
    padding: 0.95rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-launch-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-highlight);
    color: #fff;
    transform: translateY(-2px);
}

.btn-launch-secondary svg {
    width: 18px;
    height: 18px;
}

.btn-launch-emerald {
    width: 100%;
    padding: 0.95rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-launch-emerald:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.btn-launch-emerald svg {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   8. Tech Stack & Architecture Section
   -------------------------------------------------------------------------- */
.tech-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-normal);
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.tech-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-indigo-subtle);
    border: 1px solid rgba(129, 140, 248, 0.2);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.tech-card-icon svg {
    width: 22px;
    height: 22px;
}

.tech-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.tech-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. Modal & Toasts
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 1.5rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 580px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-cyan-subtle);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-box svg {
    width: 20px;
    height: 20px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.modal-body {
    padding: 1.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast svg {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 380px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-col a svg {
    width: 14px;
    height: 14px;
}

.footer-col a:hover {
    color: var(--accent-cyan);
    transform: translateX(3px);
}

.server-meta-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-theme-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-theme-indicator svg {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   11. Keyframe Animations & Utilities
   -------------------------------------------------------------------------- */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats-strip {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-menu.open {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pc-only {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Survey (POLL) Integration Enhancements
   -------------------------------------------------------------------------- */
.nav-poll-highlight {
    color: #a855f7 !important;
    font-weight: 700 !important;
}

.nav-poll-highlight:hover {
    color: #c084fc !important;
    background: rgba(168, 85, 247, 0.15) !important;
}

.btn-poll-hero {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%) !important;
    background-size: 200% 200% !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45) !important;
    animation: pollGradientShift 4s ease infinite alternate;
}

.btn-poll-hero:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6) !important;
}

@keyframes pollGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.highlight-survey-card {
    border-color: rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15) !important;
}

.highlight-survey-card:hover {
    border-color: #a855f7 !important;
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.35) !important;
    transform: translateY(-6px) !important;
}

.btn-glow-purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4) !important;
}

.btn-glow-purple:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6) !important;
}

/* Floating Feedback Widget */
.floating-poll-widget-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
}

.floating-poll-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45), 0 0 20px rgba(168, 85, 247, 0.35);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.floating-poll-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    top: 10px;
    right: 12px;
    box-shadow: 0 0 8px #4ade80;
    animation: floatingDotPulse 1.8s infinite;
}

@keyframes floatingDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.floating-poll-widget:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.65), 0 0 30px rgba(168, 85, 247, 0.5);
    color: #fff;
}

.floating-poll-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {
    .floating-poll-widget-wrap {
        bottom: 20px;
        right: 20px;
    }
    .floating-poll-widget {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}


/* TMDB Movie Portal Glow & Button Styles */
.btn-glow-rose {
    background: linear-gradient(135deg, #e11d48, #e50914);
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.45);
}
.btn-glow-rose:hover {
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.7);
    transform: translateY(-2px);
}
.btn-tmdb-hero:hover {
    border-color: #e50914;
    color: #ff6b6b;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
}
