:root {
    --bg: #0a0f1a;
    --surface: #111827;
    --surface-hover: #1a2332;
    --border: #1e2a3d;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.4);
    --blue-soft: rgba(59, 130, 246, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    padding: 24px;
}

::selection {
    background: var(--blue);
    color: white;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--text);
}

/* Main Grid */
.bento {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Card Base */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* Hero Card */
.hero {
    grid-column: span 8;
    padding: 48px;
    background: linear-gradient(135deg, var(--surface) 0%, #0d1424 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.hero-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--blue);
    line-height: 1;
}

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

/* Current Role */
.current {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1a2744 0%, var(--surface) 100%);
    border-color: var(--blue);
}

.current::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-soft) 0%, transparent 50%);
    pointer-events: none;
}

.current-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.current-company {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.current-company a {
    color: var(--text);
    transition: color 0.2s;
}

.current-company a:hover {
    color: var(--blue);
}

.current-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Experience */
.experience {
    grid-column: span 6;
}

.card-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

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

.exp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.exp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-item:hover {
    padding-left: 8px;
}

.exp-company {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-company a {
    color: var(--text);
}

.exp-company a:hover {
    color: var(--blue);
}

.exp-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 4px;
    font-weight: 600;
}

.exp-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Side Project */
.project {
    grid-column: span 6;
    background: linear-gradient(145deg, #0f1a2e 0%, var(--surface) 100%);
    display: flex;
    flex-direction: column;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue) 0%, #60a5fa 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project-title a {
    color: var(--text);
}

.project-title a:hover {
    color: var(--blue);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.project-link {
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover {
    gap: 10px;
}

/* Education */
.education {
    grid-column: span 7;
}

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

.edu-item {
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.edu-item:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.edu-item.featured {
    grid-column: span 2;
    border-color: var(--blue);
    background: var(--blue-soft);
}

.edu-title {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.edu-title a {
    color: var(--text);
}

.edu-title a:hover {
    color: var(--blue);
}

.edu-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Links */
.links-card {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
    transform: translateX(4px);
}

.social-link span {
    opacity: 0;
    transition: opacity 0.2s;
}

.social-link:hover span {
    opacity: 1;
}

/* Footer */
.footer {
    grid-column: span 12;
    text-align: center;
    padding: 24px;
    background: transparent;
    border: none;
}

.footer:hover {
    transform: none;
    border-color: transparent;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-dot {
    color: var(--blue);
}

/* Responsive */
@media (max-width: 900px) {
    .hero, .current, .experience, .project, .education, .links-card {
        grid-column: span 12;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

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

    .edu-item.featured {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    .hero {
        padding: 32px 24px;
    }

    .card {
        padding: 24px;
    }

    .exp-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
