/* ==========================================================================
   VIBE CODING PORTFOLIO - MONOCHROME BLACK & WHITE DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #070709;
    --bg-card: rgba(20, 20, 25, 0.65);
    --bg-card-hover: rgba(35, 35, 45, 0.75);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0aa;
    --text-muted: #666675;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --accent-glow-strong: rgba(255, 255, 255, 0.35);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
}

/* App Layout Container */
.app-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    pointer-events: none; /* Let background canvas handle mouse events where empty */
}

.app-container > * {
    pointer-events: auto; /* Re-enable pointer events for interactive components */
}

/* Header & Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 9, 0.6);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    background: #ffffff;
    color: #000000;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.brand-name .highlight {
    color: #888888;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-dash-link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease !important;
}

.nav-dash-link:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.server-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.4; transform: scale(0.9); }
}

/* Hero Section */
.hero-section {
    padding: 100px 0 60px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #dddddd;
    margin-bottom: 28px;
}

.sparkle {
    color: #ffffff;
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 900px;
}

.gradient-text {
    background: linear-gradient(180deg, #ffffff 0%, #777788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 48px;
    font-weight: 400;
}

/* Central Main Dashboard Link Button (주요 강조) */
.main-action-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 640px;
}

.dashboard-btn-main {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.dashboard-btn-main:hover {
    border-color: #ffffff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 12, 16, 0.9);
    padding: 20px 28px;
    border-radius: 14px;
    gap: 16px;
}

.btn-icon {
    font-size: 32px;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.btn-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.btn-sub {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.btn-arrow {
    font-size: 24px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.dashboard-btn-main:hover .btn-arrow {
    transform: translateX(6px);
}

.action-sub-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.secondary-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.secondary-btn:hover {
    color: #ffffff;
}

.domain-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* Hero Stats Bar */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* Content Sections */
.content-section {
    padding: 90px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
    margin-bottom: 48px;
    text-align: left;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Cards */
.feature-card, .project-card, .tech-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.feature-card:hover, .project-card:hover, .tech-box:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3, .project-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.feature-card p, .project-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Project Card Extensions */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 11px;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.card-action {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-link-btn {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

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

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.tech-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.tech-box p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Banner Section */
.banner-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin: 60px 0;
    backdrop-filter: blur(12px);
}

.banner-content h2 {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.banner-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.dashboard-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.dashboard-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    padding: 40px 0 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .grid-3, .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
    }
    .grid-3, .grid-2, .tech-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 32px;
    }
    .btn-content {
        padding: 16px 20px;
    }
    .btn-title {
        font-size: 16px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .stat-divider {
        display: none;
    }
}
