/* ========================================
   RESET & TOKENS
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --card: #0d0d0d;
    --card-border: rgba(255,255,255,0.08);
    --card-border-hover: rgba(255,255,255,0.18);
    --white: #FFFFFF;
    --t1: rgba(255,255,255,0.95);
    --t2: rgba(255,255,255,0.70);
    --t3: rgba(255,255,255,0.45);
    --t4: rgba(255,255,255,0.25);
    --accent: #FFFFFF;
    --radius: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--t1);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: rgba(255,255,255,0.12); color: var(--white); }

.grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 56px;
}

/* ========================================
   HEADER
   ======================================== */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--card-border);
}

nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 56px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-name {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.nav-tabs { display: flex; gap: 6px; align-items: center; }

.tab {
    font-size: 13px;
    font-weight: 400;
    color: var(--t3);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    cursor: pointer;
}

.tab:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-color: var(--card-border);
}

.tab.active {
    color: var(--white);
    background: rgba(255,255,255,0.07);
    border-color: var(--card-border-hover);
}

.tab-cta {
    color: var(--bg) !important;
    background: var(--white) !important;
    border-color: var(--white) !important;
    font-weight: 500;
}

.tab-cta:hover { opacity: 0.88; }

.mobile-menu {
    display: none;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 6px;
}

.mobile-menu span {
    display: block; width: 22px; height: 1.5px;
    background: var(--white); transition: all 0.3s var(--ease);
}

/* ========================================
   HERO — balanced 2-column
   ======================================== */
.hero {
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--card-border);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -150px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.025) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 300;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 17px;
    font-weight: 400;
    color: var(--t3);
    letter-spacing: 0.02em;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-body {
    font-size: 16px;
    font-weight: 300;
    color: var(--t2);
    line-height: 1.75;
}

.hero-actions { display: flex; gap: 12px; align-items: center; }

.btn-primary {
    display: inline-flex; align-items: center;
    font-size: 14px; font-weight: 500;
    color: var(--bg); background: var(--white);
    padding: 12px 28px; border-radius: 10px;
    text-decoration: none; cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-primary:hover {
    opacity: 0.88; transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(255,255,255,0.08);
}

.btn-ghost {
    display: inline-flex; align-items: center;
    font-size: 14px; font-weight: 400;
    color: var(--t2);
    padding: 12px 24px;
    border: 1px solid var(--card-border-hover);
    border-radius: 10px; text-decoration: none; cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255,255,255,0.04);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--card-border);
}

.section-header {
    display: flex; align-items: baseline;
    gap: 16px; margin-bottom: 48px;
}

.section-number {
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 400;
    color: var(--t4); letter-spacing: 0.04em;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px; font-weight: 300;
    color: var(--white); letter-spacing: -0.02em;
}

/* ========================================
   METRICS — 2x2
   ======================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.metric-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    display: flex; flex-direction: column; gap: 14px;
    transition: all 0.4s var(--ease);
    cursor: default; position: relative; overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0; transition: opacity 0.4s var(--ease);
}

.metric-card:hover {
    background: #111;
    border-color: var(--card-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

.metric-card:hover::before { opacity: 1; }

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 46px; font-weight: 600;
    color: var(--white); letter-spacing: -0.03em; line-height: 1;
}

.metric-desc {
    font-size: 14px; font-weight: 300;
    color: var(--t2); line-height: 1.55;
}

/* ========================================
   EXPERIENCE
   ======================================== */
.exp-card {
    display: flex; gap: 0;
    margin-bottom: 14px;
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.35s var(--ease);
    background: var(--card);
    border: 1px solid var(--card-border);
}

.exp-card:hover {
    background: #111;
    border-color: var(--card-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.exp-accent {
    width: 3px; flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 100%);
}

.exp-body { padding: 28px 32px; flex: 1; }

.exp-top {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 16px; margin-bottom: 16px;
}

.exp-top h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px; font-weight: 500;
    color: var(--white); letter-spacing: -0.01em;
}

.exp-meta {
    display: block; font-size: 14px;
    font-weight: 300; color: var(--t3); margin-top: 4px;
}

.exp-date {
    font-size: 13px; color: var(--t4);
    white-space: nowrap; flex-shrink: 0; margin-top: 4px;
}

.exp-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 8px;
}

.exp-list li {
    font-size: 15px; font-weight: 300;
    color: var(--t2); padding-left: 14px;
    position: relative; line-height: 1.6;
}

.exp-list li::before {
    content: '';
    position: absolute; left: 0; top: 10px;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--t4);
}

.exp-list li strong { color: var(--t1); font-weight: 500; }

/* ========================================
   EDUCATION
   ======================================== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.edu-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex; gap: 20px; align-items: flex-start;
    transition: all 0.35s var(--ease);
    cursor: default;
}

.edu-card:hover {
    background: #111;
    border-color: var(--card-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.edu-icon {
    flex-shrink: 0; margin-top: 2px;
    color: var(--t3);
}

.edu-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px; font-weight: 500;
    color: var(--white); margin-bottom: 6px;
}

.edu-degree {
    font-size: 15px; color: var(--t2);
    font-weight: 300; margin-bottom: 8px;
}

.edu-date { font-size: 13px; color: var(--t4); }

/* ========================================
   SKILLS
   ======================================== */
.skill-tags {
    display: flex; flex-wrap: wrap; gap: 10px;
}

.tag {
    font-size: 14px; font-weight: 400;
    color: var(--t1); padding: 10px 22px;
    border: 1px solid var(--card-border-hover);
    border-radius: 100px;
    transition: all 0.3s var(--ease); cursor: default;
}

.tag:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.35);
    color: var(--white); transform: translateY(-2px);
}

.sub-section { margin-top: 56px; }

.sub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px; font-weight: 300;
    color: var(--t2); margin-bottom: 24px;
}

/* 6-card grid: 3x2 */
.stack-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stack-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    display: flex; flex-direction: column; gap: 8px;
    transition: all 0.3s var(--ease);
    cursor: default;
}

.stack-card:hover {
    border-color: var(--card-border-hover);
    background: #111;
}

.stack-label {
    font-size: 11px; font-weight: 500;
    color: var(--t4); text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stack-tools {
    font-size: 14px; font-weight: 300;
    color: var(--t1); line-height: 1.5;
}

.lang-row {
    display: flex; gap: 32px; flex-wrap: wrap;
}

.lang {
    font-size: 16px; font-weight: 400; color: var(--t1);
}

.lang em {
    font-style: normal; color: var(--t4); font-weight: 300;
}

/* ========================================
   CONTACT — icon grid with copy
   ======================================== */
.contact { border-bottom: none; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    background: #111;
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.contact-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    color: var(--t2);
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
}

.contact-item:hover .contact-icon {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.contact-text {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1; min-width: 0;
}

.contact-label {
    font-size: 11px; font-weight: 500;
    color: var(--t4); text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-val {
    font-size: 15px; font-weight: 400;
    color: var(--t1);
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-hint {
    font-size: 12px; color: var(--t4);
    white-space: nowrap; flex-shrink: 0;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.25s var(--ease);
}

.contact-item:hover .copy-hint {
    opacity: 1;
    transform: translateX(0);
}

.contact-location { cursor: default; }

/* Copy toast */
.copy-toast {
    position: fixed;
    bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    color: var(--bg);
    font-size: 14px; font-weight: 500;
    padding: 12px 24px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    z-index: 10000;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    max-width: 1080px; margin: 0 auto;
    padding: 32px 56px;
    border-top: 1px solid var(--card-border);
    font-size: 13px; color: var(--t4);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1; transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    main { padding: 0 20px; }
    nav { padding: 0 20px; }
    .nav-tabs { display: none; }
    .mobile-menu { display: flex; }

    .hero { padding: 48px 0; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-left h1 { font-size: 34px; }
    .hero-sub { font-size: 15px; }
    .hero-body { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }

    .section { padding: 48px 0; }
    .section-header h2 { font-size: 28px; }

    .metrics-grid { grid-template-columns: 1fr; }
    .metric-value { font-size: 34px; }
    .metric-card { padding: 24px 20px; }

    .exp-card { flex-direction: column; }
    .exp-accent { width: 100%; height: 3px; }
    .exp-top { flex-direction: column; gap: 4px; }
    .exp-date { margin-left: 0; }

    .edu-grid { grid-template-columns: 1fr; }

    .stack-grid-5 { grid-template-columns: 1fr 1fr; }

    .contact-grid { grid-template-columns: 1fr; }

    footer { padding: 24px 20px; }
}
