:root {
    /* Color Palette - Premium Navy & Azure */
    --primary: #0F172A;
    --primary-light: #334155;
    --accent: #0369A1;
    --accent-glow: rgba(3, 105, 161, 0.1);
    --background: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #020617;
    --text-muted: #475569;
    --border: #E2E8F0;

    /* Semantic Colors */
    --gold: #B45309;
    --gold-bg: #FEF3C7;
    --acfun-red: #FD4C5D;

    /* Layout Tokens */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.resume-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 32px;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 20px 40px -10px var(--accent-glow);
}

.header-info .name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
    opacity: 0.9;
}

.contact-bar {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 24px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
}

/* Card Placements */
.bio-card {
    grid-column: span 7;
}

.education-card {
    grid-column: span 5;
}

.skills-card {
    grid-column: span 4;
    grid-row: span 2;
}

.experience-card {
    grid-column: span 8;
}

.project-card {
    grid-column: span 8;
}

.hobbies-card {
    grid-column: span 4;
}

/* Card Elements */
.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-text {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Skills */
.skill-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-group h3 {
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--background);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Experience & Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-item {
    display: flex;
    gap: 24px;
}

.time {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 80px;
}

.experience-info h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--primary);
}

.role {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 8px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--gold-bg);
    color: var(--gold);
    font-weight: 700;
}

/* Projects */
.project-item {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 24px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-tech {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-highlights {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-highlights li {
    margin-bottom: 8px;
}

/* Hobbies & Socials */
.hobby-content .desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.social-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--background);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateX(4px);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Footer */
.resume-footer {
    margin-top: 80px;
    text-align: center;
    padding-bottom: 60px;
}

.resume-footer p {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .bio-card,
    .experience-card,
    .project-card {
        grid-column: span 2 !important;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bio-card,
    .experience-card,
    .project-card {
        grid-column: span 1 !important;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}