/* =============================================
   Design Tokens
   ============================================= */
:root {
    --bg: #ffffff;
    --bg-2: #f8fafc;
    --bg-3: #f1f5f9;
    --border: #e2e8f0;
    --border-2: #cbd5e1;
    --text-1: #1e293b;
    --text-2: #64748b;
    --text-3: #94a3b8;
    /* Primary */
    --accent: #4f46e5;
    --accent-bg: #eef2ff;
    --accent-hover: #4338ca;
    /* AI / Purple */
    --ai: #7c3aed;
    --ai-bg: #f5f3ff;
    /* Cyan */
    --cyan: #0891b2;
    --cyan-bg: #ecfeff;
    /* Emerald */
    --emerald: #059669;
    --emerald-bg: #ecfdf5;
    /* Rose */
    --rose: #e11d48;
    --rose-bg: #fff1f2;
    /* Amber */
    --amber: #d97706;
    --amber-bg: #fffbeb;
    /* Orange */
    --orange: #ea580c;
    --orange-bg: #fff7ed;
    /* Blue */
    --blue: #2563eb;
    --blue-bg: #eff6ff;
    /* Purple */
    --purple: #a21caf;
    --purple-bg: #fdf4ff;
    --radius: 16px;
    --radius-s: 10px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-3);
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--radius-s);
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-bg);
}

.nav-cta {
    padding: 0.45rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-s);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-s);
    transition: background 0.2s;
}

.nav-hamburger:hover {
    background: var(--bg-3);
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1rem;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.mobile-menu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-s);
    transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
    background: var(--accent-bg);
}

.mobile-menu .nav-cta-mobile {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.65rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-s);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

/* =============================================
   Layout
   ============================================= */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3.5rem 0;
}

.section + .section {
    border-top: 1px solid var(--border);
}

.sec-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 1.75rem;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sec-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.25rem;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}


/* =============================================
   Hero
   ============================================= */
.hero-section {
    padding: 5.5rem 0 3rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        radial-gradient(ellipse 60% 50% at 15% 20%, rgba(79, 70, 229, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.hero-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    position: relative;
}

.hero-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-body {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25); }
    50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08); }
}

.hero-name {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-1);
}

.hero-sub {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 0.925rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 540px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.htag {
    padding: 0.25rem 0.65rem;
    background: var(--bg-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s;
}

.htag:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: rgba(79, 70, 229, 0.2);
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-s);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-1);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.contact-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.contact-btn.revealed {
    border-color: #10b981;
    color: #065f46;
    background: #f0fdf4;
    font-weight: 600;
}

.contact-btn i {
    font-size: 0.8rem;
    color: var(--text-3);
}

.contact-btn.revealed i {
    color: #10b981;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.slink {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    color: var(--text-2);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.slink:hover {
    color: var(--accent);
    border-color: rgba(79, 70, 229, 0.25);
    background: var(--accent-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.slink i {
    font-size: 0.82rem;
}

/* =============================================
   Education
   ============================================= */
.edu-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.3s, transform 0.3s;
}

.edu-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.edu-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.edu-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--emerald));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.edu-school {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.edu-degree {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 0.2rem;
}

.edu-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.edu-right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.edu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.6;
}

.edu-item i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    font-size: 0.8rem;
}

/* =============================================
   Competencies
   ============================================= */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.comp-card {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.comp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.comp-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.comp-card:nth-child(1) .comp-icon { background: var(--accent-bg); color: var(--accent); }
.comp-card:nth-child(2) .comp-icon { background: var(--cyan-bg); color: var(--cyan); }
.comp-card:nth-child(3) .comp-icon { background: var(--rose-bg); color: var(--rose); }
.comp-card:nth-child(4) .comp-icon { background: var(--emerald-bg); color: var(--emerald); }

.comp-card:nth-child(1):hover { border-color: rgba(79, 70, 229, 0.3); }
.comp-card:nth-child(2):hover { border-color: rgba(8, 145, 178, 0.3); }
.comp-card:nth-child(3):hover { border-color: rgba(225, 29, 72, 0.3); }
.comp-card:nth-child(4):hover { border-color: rgba(5, 150, 105, 0.3); }

.comp-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.comp-card p {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* Tech Stack */
.tech-wrap {
    padding: 1.5rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tech-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tg-label {
    flex-shrink: 0;
    width: 120px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.35rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tt {
    padding: 0.25rem 0.6rem;
    background: var(--bg);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tt:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: rgba(79, 70, 229, 0.2);
}

.tt.primary {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: rgba(79, 70, 229, 0.2);
    font-weight: 600;
}

.tt.ai {
    background: var(--ai-bg);
    color: var(--ai);
    border-color: rgba(124, 58, 237, 0.2);
    font-weight: 600;
}

/* Tech row label colors */
.tech-row:nth-child(1) .tg-label { color: var(--accent); }
.tech-row:nth-child(2) .tg-label { color: var(--cyan); }
.tech-row:nth-child(3) .tg-label { color: var(--ai); }
.tech-row:nth-child(4) .tg-label { color: var(--emerald); }
.tech-row:nth-child(5) .tg-label { color: var(--rose); }

/* =============================================
   Timeline (Experience)
   ============================================= */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
    border-radius: 1px;
}

.tl-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -2rem;
    top: 1.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2.5px solid white;
    box-shadow: 0 0 0 1px var(--border);
}

/* Per-company colors */
.tl-item:nth-child(1) .tl-dot { background: var(--accent); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2); }
.tl-item:nth-child(2) .tl-dot { background: var(--rose); box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2); }
.tl-item:nth-child(3) .tl-dot { background: var(--emerald); box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2); }

.tl-card {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.3s, transform 0.3s;
}

.tl-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tl-company {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.co-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.co-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 600;
}

.tl-item:nth-child(1) .co-badge { background: var(--accent-bg); color: var(--accent); }
.tl-item:nth-child(2) .co-badge { background: var(--rose-bg); color: var(--rose); }
.tl-item:nth-child(3) .co-badge { background: var(--emerald-bg); color: var(--emerald); }

.tl-period {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.tl-item:nth-child(1) .tl-period { background: var(--accent-bg); color: var(--accent); }
.tl-item:nth-child(2) .tl-period { background: var(--rose-bg); color: var(--rose); }
.tl-item:nth-child(3) .tl-period { background: var(--emerald-bg); color: var(--emerald); }

.tl-role {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

.tl-list {
    list-style: none;
    margin-bottom: 1rem;
}

.tl-list li {
    font-size: 0.85rem;
    color: var(--text-2);
    padding: 0.4rem 0 0.4rem 1.15rem;
    border-bottom: 1px solid var(--bg-3);
    position: relative;
    line-height: 1.65;
}

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

.tl-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.tl-item:nth-child(1) .tl-list li::before { background: var(--accent); }
.tl-item:nth-child(2) .tl-list li::before { background: var(--rose); }
.tl-item:nth-child(3) .tl-list li::before { background: var(--emerald); }

.tl-list li strong {
    color: var(--text-1);
}

.tl-honor {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--amber-bg);
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.tl-honor i {
    color: var(--amber);
}

/* =============================================
   Projects
   ============================================= */
.proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.proj-card {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

.proj-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.proj-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.proj-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.c-ai { background: var(--ai-bg); color: var(--ai); }
.c-red { background: var(--rose-bg); color: var(--rose); }
.c-green { background: var(--emerald-bg); color: var(--emerald); }
.c-orange { background: var(--orange-bg); color: var(--orange); }
.c-blue { background: var(--blue-bg); color: var(--blue); }
.c-purple { background: var(--purple-bg); color: var(--purple); }

.proj-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.proj-co {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.proj-desc {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.proj-pts {
    list-style: none;
    margin-bottom: 1rem;
}

.proj-pts li {
    font-size: 0.82rem;
    color: var(--text-2);
    padding: 0.25rem 0 0.25rem 1rem;
    position: relative;
    line-height: 1.6;
}

.proj-pts li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bg-3);
}

.proj-tags span {
    padding: 0.2rem 0.5rem;
    background: var(--bg-2);
    color: var(--text-3);
    border-radius: 5px;
    font-size: 0.73rem;
    font-weight: 500;
}

/* =============================================
   Self Evaluation
   ============================================= */
.eval-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.eval-card {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.eval-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.eval-card:nth-child(1):hover { border-color: rgba(79, 70, 229, 0.3); }
.eval-card:nth-child(2):hover { border-color: rgba(8, 145, 178, 0.3); }
.eval-card:nth-child(3):hover { border-color: rgba(124, 58, 237, 0.3); }

.eval-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.eval-card:nth-child(1) .eval-icon { background: var(--accent-bg); color: var(--accent); }
.eval-card:nth-child(2) .eval-icon { background: var(--cyan-bg); color: var(--cyan); }
.eval-card:nth-child(3) .eval-icon { background: var(--ai-bg); color: var(--ai); }

.eval-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.eval-card p {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    padding: 2.5rem 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

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

.footer-inner a {
    color: var(--accent);
    text-decoration: none;
}

.footer-inner a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.78rem !important;
    color: var(--text-3) !important;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 50;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* =============================================
   Animations
   ============================================= */
.reveal-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.proj-card, .comp-card, .eval-card, .tl-card, .edu-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.proj-card.visible, .comp-card.visible, .eval-card.visible, .tl-card.visible, .edu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance */
.hero-section .hero-badge,
.hero-section .hero-name,
.hero-section .hero-sub,
.hero-section .hero-desc,
.hero-section .hero-tags,
.hero-section .contact-row,
.hero-section .social-row {
    opacity: 0;
    transform: translateY(12px);
    animation: heroFadeIn 0.6s ease forwards;
}

.hero-section .hero-badge { animation-delay: 0.1s; }
.hero-section .hero-name { animation-delay: 0.2s; }
.hero-section .hero-sub { animation-delay: 0.3s; }
.hero-section .hero-desc { animation-delay: 0.4s; }
.hero-section .hero-tags { animation-delay: 0.5s; }
.hero-section .contact-row { animation-delay: 0.6s; }
.hero-section .social-row { animation-delay: 0.7s; }

.hero-avatar {
    opacity: 0;
    transform: scale(0.95);
    animation: heroAvatarIn 0.5s ease 0.15s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroAvatarIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================
   Responsive — Tablet
   ============================================= */
@media (max-width: 900px) {
    .proj-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Responsive — Mobile
   ============================================= */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }

    /* Nav */
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Hero */
    .hero-section {
        padding: 4.5rem 0 2rem;
    }

    .hero-layout {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
        text-align: center;
    }

    .hero-avatar {
        width: 100px;
        height: 120px;
        margin-top: 0;
    }

    .hero-body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-desc {
        text-align: center;
    }

    .hero-tags {
        justify-content: center;
    }

    .contact-row {
        justify-content: center;
    }

    .social-row {
        justify-content: center;
    }

    /* Section */
    .section {
        padding: 2.5rem 0;
    }

    .sec-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    /* Education */
    .edu-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Competencies */
    .comp-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .timeline {
        padding-left: 1.5rem;
    }

    .tl-dot {
        left: -1.5rem;
    }

    .tl-card {
        padding: 1.25rem;
    }

    .tl-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    /* Projects */
    .proj-grid {
        grid-template-columns: 1fr;
    }

    .proj-card {
        padding: 1.25rem;
    }

    /* Evaluation */
    .eval-grid {
        grid-template-columns: 1fr;
    }

    /* Back to top */
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 38px;
        height: 38px;
    }
}

/* =============================================
   Responsive — Small Mobile
   ============================================= */
@media (max-width: 400px) {
    html {
        font-size: 14px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}
