:root {
    --bg: #0b0d11;
    --surface: rgba(18, 21, 28, 0.75);
    --surface-hover: rgba(24, 28, 38, 0.85);
    --surface-solid: #12151c;
    --surface-subtle: #171b24;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-light: rgba(255, 255, 255, 0.12);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent: #f8fafc;
    --accent-green: #10b981;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
    
    --maxw: 860px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
}

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

html {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding: 48px 20px 96px;
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(255, 255, 255, 0.03), transparent);
    background-attachment: fixed;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-muted); }

/* Header & Navigation */
header {
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}
.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid var(--border-light);
}
.nav-items {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}
.nav-items a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.nav-items a:hover {
    color: #ffffff;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px 6px;
    gap: 2px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
}
.lang-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.intro-header {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 20px;
}
.intro-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.intro-avatar {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: block;
}
.status-badge-floating {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #0b0d11;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.intro-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.intro-subtitle-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 6px;
}

.bio {
    color: var(--text-secondary);
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.bio b {
    color: var(--text-primary);
    font-weight: 600;
}

/* Competency Badges in Hero */
.hero-competencies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}
.hero-tag {
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 4px 12px;
}

/* Hero Action Buttons (CTAs) */
.cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.btn-primary {
    background: #ffffff;
    color: #0b0d11 !important;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
    transition: all 0.15s ease;
}
.btn-primary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}
.btn-secondary {
    background: var(--surface-solid);
    color: var(--text-primary) !important;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
}
.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--surface-subtle);
    transform: translateY(-1px);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

/* Section layout */
section {
    margin-bottom: 64px;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    margin-bottom: 10px;
}
.section-title-group {
    margin-bottom: 24px;
}
.section-heading {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.section-subheading {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Modern Product & System Cards */
.featured-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.featured-card:hover {
    border-color: var(--border-hover);
}
.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.featured-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.featured-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.tag-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: #e2e8f0;
}
.featured-role {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.featured-pitch {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 20px;
}
.featured-pitch b {
    color: var(--text-primary);
}

/* 3-Column Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.solution-col {
    background: rgba(11, 13, 17, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}
.solution-col-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.solution-col p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.solution-col p b {
    color: #ffffff;
}

/* Metrics Showcase */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.metrics-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.metric-block {
    display: flex;
    flex-direction: column;
}
.metric-value {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.35;
}

/* Technology Pills */
.tech-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}
.tech-pill {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
}

/* Skills & Technical Competencies Matrix */
.skills-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease;
}
.skill-card:hover {
    border-color: var(--border-hover);
}
.skill-header {
    margin-bottom: 14px;
}
.skill-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.skill-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.skill-tags-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.skill-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.skill-row-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.skill-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.skill-tag-pill {
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
}
.skill-tag-pill.featured {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-light);
    font-weight: 600;
}

/* Client & Production Projects Grid (2x2) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.project-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.project-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92);
    transition: transform 0.35s ease, filter 0.35s ease;
}
.project-card:hover .project-img {
    transform: scale(1.04);
    filter: brightness(1);
}
.project-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.project-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}
.project-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}
.project-period {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.project-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.project-desc b {
    color: var(--text-primary);
}
.project-tech {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease;
}
.service-card:hover {
    border-color: var(--border-hover);
}
.service-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
}
.service-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.service-tags {
    font-size: 11.5px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 500;
}

/* Career Timeline */
.career-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.career-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    transition: border-color 0.2s ease;
}
.career-item:hover {
    border-color: var(--border-hover);
}
.career-date {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}
.career-company {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 2px;
}
.career-content h3 {
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}
.career-content p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 8px;
}
.career-tags {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Contact Box */
.contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
}
.contact-box h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}
.contact-box p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}
.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
    align-items: center;
}
.contact-btn-main {
    background: #ffffff;
    color: #0b0d11 !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.contact-btn-main:hover {
    background: #e2e8f0;
}
.contact-copy-btn {
    background: var(--surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.contact-copy-btn:hover {
    border-color: #ffffff;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* Toast feedback */
#copyToast {
    font-size: 12px;
    color: var(--accent-green);
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
#copyToast.visible {
    opacity: 1;
}

@media (max-width: 760px) {
    body { padding: 24px 16px 64px; }
    .header-top { flex-direction: column; align-items: flex-start; gap: 16px; }
    .intro-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .solution-grid { grid-template-columns: 1fr; }
    .skills-matrix-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .career-item { grid-template-columns: 1fr; gap: 6px; }
    .metrics-grid, .metrics-grid.cols-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
    footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
