:root {
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --accent-primary: #00ff88;
    --accent-secondary: #ff3366;
    --accent-tertiary: #6c5ce7;
    --accent-app: #ff9f43;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --border-color: #27272a;
    --gradient-acid: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-pink: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    --gradient-purple: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-orange: linear-gradient(135deg, #ff9f43 0%, #ffbe76 100%);
}

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

body {
    font-family: 'Pretendard Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background effects */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none; z-index: 0;
}

.bg-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    filter: blur(150px); opacity: 0.08; pointer-events: none; z-index: 0;
}

.bg-glow-1 { top: -200px; right: -200px; background: var(--accent-primary); }

/* App container */
.app-container { min-height: 100vh; position: relative; z-index: 1; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 40px; height: 64px;
    display: flex; align-items: center;
    transition: all 0.2s ease;
}

.navbar-scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
    max-width: 1200px; width: 100%; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}

.navbar-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }

.logo-mark {
    width: 36px; height: 36px; background: var(--gradient-acid); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; color: var(--bg-primary);
}

.navbar .logo-text { font-weight: 700; font-size: 18px; color: var(--text-primary); }

.navbar-links { display: flex; gap: 4px; }

.nav-link {
    background: none; border: none; color: var(--text-secondary);
    font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 8px;
    cursor: pointer; transition: all 0.2s ease; font-family: inherit;
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav-link.active { color: var(--accent-primary); background: rgba(0, 255, 136, 0.08); }

/* Main content */
.main-content { max-width: 1200px; margin: 0 auto; padding: 104px 40px 40px; }

/* Hero */
.hero {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; min-height: 60vh; padding: 120px 40px 80px;
}

.hero-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-primary);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
    padding: 6px 16px; border: 1px solid rgba(0, 255, 136, 0.2); border-radius: 20px;
}

.hero-title {
    font-size: 64px; font-weight: 700; letter-spacing: -0.03em;
    margin-bottom: 16px; color: var(--text-primary);
}

.hero-desc {
    font-size: 18px; color: var(--text-secondary); margin-bottom: 48px; line-height: 1.6;
}

.hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; background: transparent;
    border: 1px solid var(--border-color); border-radius: 12px;
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: all 0.2s ease; cursor: pointer;
}

.hero-cta:hover { color: var(--accent-primary); border-color: rgba(0, 255, 136, 0.3); }
.hero-cta-arrow { transition: transform 0.2s ease; }
.hero-cta:hover .hero-cta-arrow { transform: translateY(2px); }

/* Section header */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-size: 28px; font-weight: 700; }
.section-count { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-muted); }

/* Project grid - 2 columns */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card-featured { grid-column: 1 / -1; }
.project-card-featured .project-thumbnail { height: 360px; }

/* Project card */
.project-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); cursor: pointer; transition: all 0.2s ease; animation: fadeInUp 0.5s ease forwards; opacity: 0; position: relative; }
.project-card:hover { transform: translateY(-4px); border-color: #3f3f46; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4); }

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

/* Stagger animation */
.project-card:nth-child(1) { animation-delay: 0.08s; }
.project-card:nth-child(2) { animation-delay: 0.16s; }
.project-card:nth-child(3) { animation-delay: 0.24s; }
.project-card:nth-child(4) { animation-delay: 0.32s; }

/* Project thumbnail */
.project-thumbnail { width: 100%; height: 280px; overflow: hidden; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.project-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-thumbnail img { transform: scale(1.03); }
.project-thumbnail-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 800; color: var(--bg-primary); }

/* Project info */
.project-info { padding: 24px; position: relative; }
.project-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.project-dot { width: 8px; height: 8px; border-radius: 50%; }
.project-dot.tag-app { background: var(--accent-app); }
.project-dot.tag-asset { background: var(--accent-primary); }
.project-dot.tag-game { background: var(--accent-secondary); }
.project-dot.tag-website { background: var(--accent-tertiary); }
.project-category-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.project-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.project-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.project-arrow { position: absolute; bottom: 24px; right: 24px; color: var(--text-muted); font-size: 18px; transition: all 0.2s ease; }
.project-card:hover .project-arrow { color: var(--accent-primary); transform: translateX(4px); }

/* Project Detail - Vertical Full Width */
.project-detail { max-width: 900px; margin: 0 auto; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.project-detail.active { display: block; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: none; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; margin-bottom: 40px; font-family: inherit; }
.back-btn:hover { color: var(--text-primary); border-color: #3f3f46; }
.back-arrow { transition: transform 0.2s ease; display: inline-block; }
.back-btn:hover .back-arrow { transform: translateX(-4px); }
.detail-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-category { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.detail-title { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 32px; }
.detail-image { width: 100%; border-radius: 16px; overflow: hidden; margin-bottom: 40px; aspect-ratio: 16/9; background: var(--bg-card); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 800; color: var(--bg-primary); }
.detail-body { max-width: 680px; margin-bottom: 48px; }
.detail-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.detail-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--gradient-acid); border-radius: 12px; color: var(--bg-primary); text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s ease; }
.detail-cta:hover { opacity: 0.9; transform: translateY(-2px); }
.detail-section { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--border-color); }
.detail-section-header { font-size: 16px; font-weight: 600; margin-bottom: 20px; color: var(--text-primary); }
.detail-languages { font-size: 15px; color: var(--text-secondary); line-height: 2; }

/* Legal links */
.legal-links { display: flex; gap: 12px; flex-wrap: wrap; }
.legal-link { padding: 10px 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; font-family: inherit; }
.legal-link:hover { color: var(--text-primary); border-color: #3f3f46; }

.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; margin: 24px 0;
}

.feature-item {
    background: var(--bg-secondary); padding: 16px; border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--accent-primary); }
.feature-item p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* Legal page */
.legal-page { max-width: 900px; }
.legal-page h1 { font-size: 36px; margin-bottom: 8px; }
.legal-page .last-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.legal-page h2 { font-size: 20px; font-weight: 700; margin-top: 32px; margin-bottom: 16px; color: var(--accent-primary); }
.legal-page h3 { font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 12px; color: var(--text-primary); }
.legal-page p, .legal-page li { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.legal-page ul, .legal-page ol { margin-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }
.legal-page .warning-box { background: rgba(255, 51, 102, 0.1); border: 1px solid rgba(255, 51, 102, 0.3); border-radius: 8px; padding: 16px; margin: 16px 0; }
.legal-page .warning-box p { color: var(--accent-secondary); margin: 0; }
.legal-page .info-box { background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.3); border-radius: 8px; padding: 16px; margin: 16px 0; }
.legal-page .info-box p { color: var(--accent-primary); margin: 0; }

/* Loading */
.loading { display: flex; align-items: center; justify-content: center; height: 200px; color: var(--text-muted); }

/* Footer */
.footer { padding: 40px; border-top: 1px solid var(--border-color); margin-top: 80px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 32px; position: relative; }
.hamburger-line, .hamburger-line::before, .hamburger-line::after { display: block; width: 20px; height: 2px; background: var(--text-primary); position: absolute; left: 6px; transition: all 0.2s ease; }
.hamburger-line { top: 15px; }
.hamburger-line::before { content: ''; top: -6px; }
.hamburger-line::after { content: ''; top: 6px; }
.hamburger-line.open { background: transparent; }
.hamburger-line.open::before { top: 0; transform: rotate(45deg); }
.hamburger-line.open::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(9, 9, 11, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-item { background: none; border: none; color: var(--text-secondary); font-size: 24px; font-weight: 600; padding: 16px 32px; cursor: pointer; transition: all 0.2s ease; font-family: inherit; border-radius: 12px; text-align: center; }
.mobile-menu-item:hover, .mobile-menu-item.active { color: var(--accent-primary); }

/* Desktop/Mobile visibility */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .hero-title { font-size: 36px; }
    .hero-desc { font-size: 16px; }
    .hero { min-height: 50vh; padding: 100px 20px 60px; }
    .main-content { padding: 80px 20px 20px; }
    .navbar { padding: 0 20px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card-featured .project-thumbnail { height: 200px; }
    .project-thumbnail { height: 200px; }
    .detail-title { font-size: 28px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .section-header { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .legal-links { flex-direction: column; }
}
