/* ==========================================================================
   Reset & Variables
   ========================================================================== */

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

:root {
    --brand-indigo: #6366f1;
    --brand-indigo-dark: #4f46e5;
    --brand-cyan: #06b6d4;
    --brand-amber: #f59e0b;
    --brand-pink: #ec4899;

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

    --bg-page: #0f172a;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;

    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0b1120;
    background-image:
        radial-gradient(at 20% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(6, 182, 212, 0.14) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(236, 72, 153, 0.10) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 20px;
}

a { color: inherit; }

/* ==========================================================================
   Profile Header
   ========================================================================== */

.profile-header {
    text-align: center;
    margin-bottom: 28px;
    background: var(--bg-primary);
    padding: 56px 32px 44px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fde047, #fbbf24, #f59e0b, #ea580c, #b91c1c);
}

.brand-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.brand-dots .dot {
    width: 9px;
    height: 9px;
    transform: rotate(45deg);
}

.brand-dots .dot.indigo { background: var(--brand-indigo); }
.brand-dots .dot.cyan   { background: var(--brand-cyan); }
.brand-dots .dot.amber  { background: var(--brand-amber); }
.brand-dots .dot.pink   { background: var(--brand-pink); }

.logo-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 12px;
    line-height: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo-mark {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 14px rgba(217, 119, 6, 0.35));
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}

.logo-mark:hover {
    transform: rotate(-6deg) scale(1.06);
}

.wordmark-svg {
    height: 64px;
    width: auto;
    flex-shrink: 0;
    overflow: visible;
}

.wordmark-svg .wm-text {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 84px;
    letter-spacing: -1.5px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.typing-text {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: inline-block;
    min-width: 320px;
    text-align: left;
    margin-bottom: 24px;
}

.typing-text .prompt {
    color: var(--brand-indigo);
    font-weight: 600;
}

.typing-text .cursor {
    display: inline-block;
    color: var(--brand-cyan);
    animation: blink 1s steps(1) infinite;
    font-weight: 700;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.15rem;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    color: white;
    background: var(--brand-indigo);
    border-color: var(--brand-indigo);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   Section (Card)
   ========================================================================== */

.section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.section-title i {
    font-size: 1rem;
    color: var(--brand-indigo);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
}

.section-title.cyan i   { color: var(--brand-cyan);   background: rgba(6, 182, 212, 0.1); }
.section-title.amber i  { color: var(--brand-amber);  background: rgba(245, 158, 11, 0.12); }
.section-title.pink i   { color: var(--brand-pink);   background: rgba(236, 72, 153, 0.1); }
.section-title.indigo i { color: var(--brand-indigo); background: rgba(99, 102, 241, 0.1); }

/* ==========================================================================
   About
   ========================================================================== */

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ==========================================================================
   Services
   ========================================================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    background: var(--bg-primary);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    color: white;
    font-size: 1.05rem;
}

.service-icon.indigo { background: var(--brand-indigo); }
.service-icon.cyan   { background: var(--brand-cyan); }
.service-icon.amber  { background: var(--brand-amber); }
.service-icon.pink   { background: var(--brand-pink); }

.service-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ==========================================================================
   Skills
   ========================================================================== */

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}

.skill-badge:hover {
    background: var(--brand-indigo);
    color: white;
    border-color: var(--brand-indigo);
    transform: translateY(-1px);
}

/* ==========================================================================
   Capabilities
   ========================================================================== */

.capability-list {
    list-style: none;
    display: grid;
    gap: 4px;
}

.capability-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.capability-list li:last-child {
    border-bottom: none;
}

.capability-list > li > i {
    color: var(--brand-indigo);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-sm);
}

.capability-list strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.98rem;
}

.capability-list p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-list {
    list-style: none;
}

.contact-list li {
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list i {
    color: var(--brand-indigo);
    width: 22px;
    text-align: center;
}

.contact-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-list a:hover {
    color: var(--brand-indigo);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    text-align: center;
    padding: 36px 20px 16px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

footer .brand-dots {
    margin-bottom: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .container { padding: 28px 16px; }

    .profile-header { padding: 40px 22px 32px; }
    .logo-lockup { gap: 12px; }
    .logo-mark { width: 52px; height: 52px; }
    .wordmark-svg { height: 44px; }
    .tagline { font-size: 0.9rem; }
    .typing-text { min-width: 0; width: 100%; font-size: 0.85rem; }

    .section { padding: 22px; }
    .section-title { font-size: 1.1rem; }

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