@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Kantumruy+Pro:wght@400;500;600;700&display=swap");

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
    /* Core colors */
    --clr-bg: #020617;
    --clr-bg-soft: #02091a;
    --clr-bg-deep: #0f172a;
    --clr-bg-card: #0f1115;
    --clr-bg-card-soft: #06121f;
    --clr-text: #e5e5e5;
    --clr-text-strong: #f9fafb;
    --clr-text-muted: #d1d5db;
    --clr-text-subtle: #9ca3af;

    /* Brand / accent */
    --clr-accent: #22c55e;
    --clr-accent-strong: #16a34a;
    --clr-accent-alt: #2ecc71;
    --clr-accent-alt-hover: #27b863;
    --clr-accent-deep: #022c22;
    --clr-accent-line: #064e3b;

    /* Borders / surfaces */
    --clr-border: #111827;
    --clr-border-soft: #1f2937;
    --clr-border-card: #1b1f24;
    --clr-white: #ffffff;

    /* Overlay / alpha */
    --alpha-white-05: rgba(255, 255, 255, 0.05);
    --alpha-white-08: rgba(255, 255, 255, 0.08);
    --alpha-white-10: rgba(255, 255, 255, 0.1);
    --alpha-accent-12: rgba(34, 197, 94, 0.12);
    --alpha-accent-16: rgba(34, 197, 94, 0.16);
    --alpha-accent-18: rgba(34, 197, 94, 0.18);
    --alpha-accent-22: rgba(34, 197, 94, 0.22);
    --alpha-accent-25: rgba(34, 197, 94, 0.25);
    --alpha-accent-28: rgba(34, 197, 94, 0.28);
    --alpha-accent-35: rgba(34, 197, 94, 0.35);
    --alpha-accent-40: rgba(34, 197, 94, 0.4);
    --alpha-accent-45: rgba(34, 197, 94, 0.45);
    --alpha-accent-50: rgba(34, 197, 94, 0.5);
    --alpha-accent-55: rgba(34, 197, 94, 0.55);
    --alpha-accent-60: rgba(34, 197, 94, 0.6);
    --alpha-accent-70: rgba(34, 197, 94, 0.7);
    --alpha-accent-80: rgba(34, 197, 94, 0.8);

    /* Spacing */
    --space-1: 4px;
    --space-2: 6px;
    --space-3: 8px;
    --space-4: 10px;
    --space-5: 12px;
    --space-6: 14px;
    --space-7: 16px;
    --space-8: 18px;
    --space-9: 20px;
    --space-10: 22px;
    --space-11: 24px;
    --space-12: 28px;
    --space-13: 32px;
    --space-14: 40px;

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 20px;
    --radius-3xl: 22px;
    --radius-4xl: 24px;
    --radius-pill: 999px;

    /* Layout */
    --sidebar-width: 260px;
    --max-content: 1100px;
    --max-wide: 1120px;

    /* Motion / elevation */
    --motion-standard: 0.3s ease;
    --shadow-soft: 0 10px 26px rgba(2, 6, 23, 0.42);
    --shadow-card: 0 14px 28px rgba(2, 6, 23, 0.48);
    --shadow-card-hover: 0 20px 36px rgba(2, 6, 23, 0.56);
}

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

body {
    background: var(--clr-bg);
    color: var(--clr-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

/* =========================================================
   Links & Interactive Text
   ========================================================= */
a {
    transition: color var(--motion-standard), text-decoration-color var(--motion-standard), opacity var(--motion-standard);
}

a:link,
a:visited {
    color: inherit;
    text-decoration: none;
    text-decoration-color: transparent;
}

a:hover,
a:active {
    color: inherit;
    text-decoration-color: currentColor;
}

a:focus-visible {
    outline: 2px solid var(--alpha-accent-70);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

html[lang="en"] body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="km"] body {
    font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS System", sans-serif;
    line-height: 1.72;
    letter-spacing: 0.005em;
    text-rendering: optimizeLegibility;
}

html[lang="km"] .hero-title,
html[lang="km"] .title,
html[lang="km"] .section-heading,
html[lang="km"] .project-detail-title {
    line-height: 1.3;
    letter-spacing: 0;
}

html[lang="km"] .hero-text,
html[lang="km"] .about-paragraph,
html[lang="km"] .project-text,
html[lang="km"] .contact-value,
html[lang="km"] .exp-desc,
html[lang="km"] .edu-text {
    line-height: 1.85;
}

body,
.sidebar,
.main,
.page-container,
.nav-link,
.btn,
.lang-btn,
.stat-card,
.specialty-card,
.skill-card,
.soft-card,
.project-card,
.cert-card,
.edu-summary-card,
.semester-card,
.exp-card,
.contact-card,
.contact-form-card {
    transition: background-color var(--motion-standard), color var(--motion-standard), border-color var(--motion-standard), box-shadow var(--motion-standard), transform var(--motion-standard);
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* =========================================================
   App Layout
   ========================================================= */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    padding: var(--space-12) var(--space-10);
    background: var(--clr-bg);
    border-right: 1px solid var(--alpha-white-08);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    padding: 0 var(--space-14) var(--space-14);
    background: radial-gradient(circle at 80% 20%, #064e3b 0, #020617 55%);
    position: relative;
    z-index: 1;
}

.page-container {
    max-width: var(--max-content);
    margin: 0 auto 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   Shared Components
   ========================================================= */
.logo-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.logo-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--clr-accent);
    color: var(--clr-accent-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.logo-text {
    line-height: 1.3;
}

.logo-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-text-strong);
}

.role {
    font-size: 13px;
    color: var(--clr-text-subtle);
}

.nav {
    margin-top: var(--space-12);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background var(--motion-standard), color var(--motion-standard), transform var(--motion-standard), box-shadow var(--motion-standard);
}

.nav-link i {
    width: 18px;
    height: 18px;
    stroke: var(--clr-text-subtle);
    flex-shrink: 0;
}

.nav-link:hover {
    background: rgba(15, 23, 42, 0.72);
    color: var(--clr-text-strong);
    transform: translateX(2px);
}

.nav-link:hover i {
    stroke: var(--clr-accent);
}

.nav-link.active {
    background: rgba(34, 197, 94, 0.16);
    color: var(--clr-text-strong);
    box-shadow: inset 0 0 0 1px var(--alpha-accent-45), inset 3px 0 0 0 var(--clr-accent);
}

.nav-link.active i {
    stroke: var(--clr-text-strong);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid var(--alpha-white-08);
    font-size: 12px;
    color: #6b7280;
}

.lang-switcher {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: 8px;
    border: 1px solid var(--alpha-white-08);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.45);
}

.lang-switcher-label {
    font-size: 12px;
    color: var(--clr-text-subtle);
    letter-spacing: 0.02em;
}

.lang-switcher-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.lang-btn {
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border-soft);
    background: rgba(15, 23, 42, 0.9);
    color: var(--clr-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background var(--motion-standard), border-color var(--motion-standard), color var(--motion-standard), transform var(--motion-standard);
}

.lang-btn:hover {
    border-color: var(--alpha-accent-60);
    color: var(--clr-text-strong);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--alpha-accent-12);
    border-color: var(--alpha-accent-60);
    color: #bbf7d0;
}

.sidebar-copy {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.page-header {
    margin-bottom: 25px;
}

.title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.page-header .title::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: var(--space-3);
    border-radius: var(--radius-pill);
    background: var(--clr-accent);
}

.btn {
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.25);
    transition: background var(--motion-standard), border-color var(--motion-standard), color var(--motion-standard), transform var(--motion-standard), box-shadow var(--motion-standard);
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn.primary {
    background: var(--clr-accent-alt);
    color: var(--clr-accent-deep);
}

.btn.primary:hover {
    background: var(--clr-accent-alt-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn.outline {
    background: transparent;
    border-color: var(--clr-accent);
    color: #e5e7eb;
}

.btn.outline:hover {
    background: var(--alpha-accent-12);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn.ghost {
    background: transparent;
    border: 1px solid #2e3137;
    padding: 0.55rem 0.9rem;
}

.btn.ghost:hover {
    border-color: var(--clr-accent-alt);
    color: var(--clr-accent-alt);
    transform: translateY(-1px);
}

.btn.small {
    font-size: 0.9rem;
}

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

.tag {
    background: #0c7a2b;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 50px;
    border: 1px solid #0e8e33;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity var(--motion-standard), transform var(--motion-standard);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* =========================================================
   Home Page
   ========================================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    padding-top: 88px;
    padding-bottom: 56px;
}

.hero-left {
    flex: 1;
    max-width: 620px;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.highlight {
    color: var(--clr-accent);
}

.hero-role {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--alpha-white-10);
    background: rgba(15, 23, 42, 0.5);
    font-size: 16px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 16px;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-buttons .btn {
    min-height: 44px;
    padding: 12px 20px;
}

.hero-buttons .btn.primary {
    background: var(--clr-accent);
    color: #052e16;
    border-color: transparent;
}

.hero-buttons .btn.primary:hover {
    background: var(--clr-accent-strong);
    transform: translateY(-1px);
}

.hero-buttons .btn.outline {
    border-color: var(--alpha-white-10);
    color: #e2e8f0;
    background: transparent;
}

.hero-buttons .btn.outline:hover {
    background: rgba(15, 23, 42, 0.72);
    border-color: var(--alpha-accent-50);
    color: var(--clr-text-strong);
    transform: translateY(-1px);
}

.avatar-ring {
    width: 320px;
    height: 320px;
    border-radius: var(--radius-pill);
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 30px rgba(2, 6, 23, 0.4);
}

.avatar-inner {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-pill);
    border: 3px solid rgba(148, 163, 184, 0.38);
    overflow: hidden;
    background: var(--clr-bg);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    flex: 1 1 220px;
    max-width: 244px;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: var(--clr-bg);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.38);
    transition: transform var(--motion-standard), box-shadow var(--motion-standard), border-color var(--motion-standard), background var(--motion-standard);
}

.stat-card:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.4);
    background: #0b1322;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.44);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    width: 24px;
    height: 24px;
    stroke: var(--clr-accent);
    stroke-width: 2;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--clr-text-strong);
}

.stat-plus {
    margin-left: 2px;
    font-size: 22px;
    font-weight: 700;
    color: #94a3b8;
}

.stat-label {
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: #94a3b8;
}

.site-footer {
    margin-top: 80px;
    padding-top: var(--space-11);
    border-top: 1px solid var(--clr-border);
    text-align: center;
    font-size: 13px;
    color: var(--clr-text-subtle);
    line-height: 1.6;
}

/* =========================================================
   About Page
   ========================================================= */
.about-layout {
    display: grid;
    grid-template-columns: 2fr 1.6fr;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.about-info {
    max-width: 650px;
}

.about-paragraph {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.beliefs {
    margin-top: 30px;
}

.belief-title {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: var(--space-4);
}

.belief-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: #dfffe8;
    background: var(--alpha-accent-16);
    border: 1px solid var(--alpha-accent-80);
    transition: 0.25s;
}

.badge-pill:hover {
    background: var(--alpha-accent-28);
    transform: translateY(-2px);
}

.about-specialties {
    display: flex;
    flex-direction: column;
    gap: var(--space-9);
}

.specialty-card {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: 16px 24px;
    border-radius: var(--radius-xl);
    background: #050f08;
    border: 1px solid #14532d;
    transition: transform var(--motion-standard), box-shadow var(--motion-standard), border-color var(--motion-standard), background var(--motion-standard);
}

.specialty-card:hover {
    border-color: var(--alpha-accent-60);
    background: #06150d;
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.specialty-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: var(--clr-accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.specialty-icon i {
    width: 22px;
    height: 22px;
    stroke: #022c16;
    stroke-width: 2;
}

.specialty-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: #f5f5f5;
}

.specialty-content p {
    font-size: 13px;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* =========================================================
   Skills Page
   ========================================================= */
.skills-page {
    padding-top: 70px;
    padding-bottom: 60px;
}

.section-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 25px 0 18px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.skills-grid .skill-card {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    background: var(--clr-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-bg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: opacity var(--motion-standard), transform var(--motion-standard), box-shadow var(--motion-standard), border-color var(--motion-standard), background var(--motion-standard);
}

.reveal.active .skill-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skills-grid .skill-card:nth-child(1)  { transition-delay: 0.05s; }
.skills-grid .skill-card:nth-child(2)  { transition-delay: 0.10s; }
.skills-grid .skill-card:nth-child(3)  { transition-delay: 0.15s; }
.skills-grid .skill-card:nth-child(4)  { transition-delay: 0.20s; }
.skills-grid .skill-card:nth-child(5)  { transition-delay: 0.25s; }
.skills-grid .skill-card:nth-child(6)  { transition-delay: 0.30s; }
.skills-grid .skill-card:nth-child(7)  { transition-delay: 0.35s; }
.skills-grid .skill-card:nth-child(8)  { transition-delay: 0.40s; }
.skills-grid .skill-card:nth-child(9)  { transition-delay: 0.45s; }
.skills-grid .skill-card:nth-child(10) { transition-delay: 0.50s; }

.skill-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--alpha-accent-60);
    transform: translateY(-2px);
    background: radial-gradient(circle at top left, var(--alpha-accent-22), #020617 55%);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
}

.skill-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-accent);
}

.skill-bar {
    position: relative;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--clr-bg);
    overflow: hidden;
}

.skill-fill {
    --level: 0%;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-fill.html      { --level: 80%; background: #f97316; }
.skill-fill.css       { --level: 75%; background: #3b82f6; }
.skill-fill.js        { --level: 65%; background: #eab308; }
.skill-fill.bootstrap { --level: 70%; background: #a855f7; }
.skill-fill.tailwind  { --level: 70%; background: #22d3ee; }
.skill-fill.mysql     { --level: 60%; background: #6366f1; }
.skill-fill.git       { --level: 70%; background: #fb923c; }
.skill-fill.figma     { --level: 65%; background: #ec4899; }
.skill-fill.ai        { --level: 75%; background: #22c55e; }
.skill-fill.canva     { --level: 70%; background: #14b8a6; }

.reveal.active .skill-fill {
    width: var(--level);
}

.skill-desc {
    font-size: 13px;
    color: var(--clr-text-subtle);
    line-height: 1.6;
}

.soft-skills {
    margin-top: 45px;
}

.soft-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.soft-card {
    background: var(--clr-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--alpha-white-05);
    padding: 16px 24px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: background var(--motion-standard), transform var(--motion-standard), border-color var(--motion-standard), box-shadow var(--motion-standard);
}

.soft-card:hover {
    transform: translateY(-2px);
    background: var(--clr-bg-card-soft);
    border-color: var(--alpha-accent-35);
    box-shadow: var(--shadow-card-hover);
}

.soft-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: var(--space-2);
}

.soft-card p {
    font-size: 13px;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* =========================================================
   Projects Page
   ========================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.project-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--motion-standard), border-color var(--motion-standard), box-shadow var(--motion-standard);
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--alpha-accent-60);
    box-shadow: var(--shadow-card-hover);
}

.project-thumb {
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-bottom: 1px solid var(--clr-border-card);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.4s ease;
}

.project-card:hover .project-thumb img {
    scale: 1.08;
}

.project-body {
    padding: 24px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.project-description {
    font-size: 0.95rem;
    color: #b8b8b8;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.project-go {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--clr-accent-alt);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background var(--motion-standard), transform var(--motion-standard), box-shadow var(--motion-standard);
}

.project-go i {
    width: 18px;
    height: 18px;
    color: #0a0a0a;
}

.project-go:hover {
    background: var(--clr-accent-alt-hover);
    transform: translateX(2px);
    box-shadow: var(--shadow-soft);
}

/* =========================================================
   Project Detail Page
   ========================================================= */
.project-detail-page {
    max-width: var(--max-wide);
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--clr-text-subtle);
    text-decoration: none;
    margin-top: var(--space-13);
    margin-bottom: var(--space-8);
}

.breadcrumb-link i {
    width: 16px;
    height: 16px;
}

.breadcrumb-link:hover {
    color: var(--clr-text-strong);
}

.project-detail-header {
    margin-bottom: 20px;
}

.project-detail-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.project-detail-subtitle {
    font-size: 15px;
    color: var(--clr-text-subtle);
    max-width: 720px;
    margin-bottom: var(--space-7);
}

.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--clr-text-subtle);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.meta-item i {
    width: 16px;
    height: 16px;
}

.project-hero {
    margin-top: var(--space-11);
    margin-bottom: var(--space-13);
    display: flex;
    justify-content: center;
}

.project-hero-image {
    width: 100%;
    max-width: 1050px;
    border-radius: var(--radius-4xl);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    background: var(--clr-bg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.project-hero-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.project-detail-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: var(--space-14);
}

.project-detail-main {
    flex: 3;
}

.project-detail-sidebar {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.project-section {
    margin-bottom: 28px;
}

.section-title,
.section-title-sm {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    color: var(--clr-white);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
}

.section-title-sm {
    font-size: 18px;
    font-weight: 600;
}

.section-title-icon {
    width: 24px;
    height: 24px;
    stroke: var(--clr-accent);
}

.project-text {
    font-size: 14px;
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: var(--space-2);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 10px 12px;
    border-radius: var(--radius-pill);
    background: var(--clr-bg);
    border: 1px solid #14532d;
    font-size: 13px;
    color: #e5e7eb;
    transition: 0.2s ease;
}

.feature-item:hover {
    border-color: var(--clr-accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

.feature-icon {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-pill);
    background: var(--clr-accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    width: 16px;
    height: 16px;
    stroke: #022c16;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid var(--alpha-accent-60);
    font-size: 13px;
    color: #e5fbea;
}

.achievement-badge {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: var(--clr-accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #022c16;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--clr-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-border);
    padding: 16px 18px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-5);
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sidebar-card .tag {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    background: var(--alpha-accent-12);
    color: #bbf7d0;
    border: 1px solid var(--alpha-accent-50);
}

.other-projects {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: 13px;
    color: var(--clr-text-muted);
}

.other-projects li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.other-projects .dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--clr-accent);
}

/* =========================================================
   Certificates Page
   ========================================================= */
.cert-page {
    max-width: var(--max-wide);
    margin: 0 auto;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.cert-card {
    display: flex;
    gap: var(--space-8);
    padding: 16px;
    background: var(--clr-bg);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(17, 24, 39, 0.7);
    box-shadow: var(--shadow-card);
    transition: transform var(--motion-standard), box-shadow var(--motion-standard), border-color var(--motion-standard);
}

.cert-card:hover {
    transform: translateY(-2px);
    border-color: var(--alpha-accent-60);
    box-shadow: var(--shadow-card-hover);
}

.cert-thumb {
    width: 180px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: var(--clr-bg-deep);
    border: 1px solid #1e293b;
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-thumb img {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    display: block;
}

.cert-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cert-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--clr-text-subtle);
}

.cert-badge {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    border: 1px solid var(--alpha-accent-50);
    background: rgba(22, 163, 74, 0.12);
    color: #bbf7d0;
    font-weight: 500;
}

.cert-date {
    opacity: 0.85;
}

.cert-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--clr-text-strong);
}

.cert-meta {
    font-size: 14px;
    color: var(--clr-text-muted);
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-1);
}

.cert-tags .tag {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    background: rgba(15, 23, 42, 0.9);
    color: #a5b4fc;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.cert-actions {
    margin-top: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.cert-actions .btn.small {
    padding: 7px 14px;
    font-size: 13px;
}

.cert-actions .btn.small i {
    width: 16px;
    height: 16px;
}

.cert-grid-small .cert-card {
    padding: 14px;
}

.cert-grid-small .cert-thumb {
    width: 150px;
    padding: var(--space-3);
}

.cert-grid-small .cert-thumb img {
    max-height: 120px;
}

.cert-card-link {
    color: inherit;
    text-decoration: none;
}

.cert-card-link.cert-card {
    display: flex;
    cursor: pointer;
}

/* =========================================================
   Education Page
   ========================================================= */
.edu-page {
    max-width: var(--max-wide);
}

.edu-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: var(--space-13);
}

.edu-summary-card {
    background: radial-gradient(circle at top left, #022c22 0, #020617 40%, #020617 100%);
    border-radius: var(--radius-3xl);
    border: 1px solid var(--clr-accent-line);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-card);
}

.edu-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: 13px;
}

.edu-pill {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid var(--alpha-accent-60);
    color: #bbf7d0;
    font-weight: 500;
}

.edu-year {
    color: var(--clr-text-subtle);
}

.edu-main-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--clr-text-strong);
    margin-bottom: var(--space-1);
}

.edu-school {
    font-size: 14px;
    color: #a5b4fc;
    margin-bottom: var(--space-4);
}

.edu-text {
    font-size: 14px;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

.edu-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.edu-stat {
    min-width: 110px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(30, 64, 175, 0.6);
}

.edu-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clr-text-subtle);
    margin-bottom: 2px;
}

.edu-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-text-strong);
}

.edu-actions {
    margin-top: var(--space-6);
}

.edu-timeline {
    background: var(--clr-bg);
    border-radius: var(--radius-3xl);
    border: 1px solid var(--clr-border);
    padding: 16px 18px 18px;
    box-shadow: var(--shadow-card);
}

.timeline-list {
    list-style: none;
    margin-top: var(--space-3);
    padding-left: var(--space-4);
    position: relative;
}

.timeline-list::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: var(--radius-pill);
    background: linear-gradient(to bottom, #22c55e, #4ade80);
    opacity: 0.6;
}

.timeline-item {
    position: relative;
    padding-left: 18px;
    margin-bottom: var(--space-6);
}

.timeline-dot {
    position: absolute;
    left: 1px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--clr-accent);
    box-shadow: 0 0 0 4px var(--alpha-accent-25);
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-text-strong);
}

.timeline-meta {
    font-size: 12px;
    color: var(--clr-text-subtle);
}

.edu-year-section {
    margin-top: var(--space-4);
}

.edu-year-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
}

.edu-year-gpa {
    font-size: 14px;
    color: #e5e7eb;
}

.edu-year-gpa span {
    font-weight: 700;
    color: #4ade80;
}

.semester-card {
    margin-top: var(--space-6);
    margin-bottom: var(--space-8);
    border-radius: var(--radius-3xl);
    border: 1px solid var(--clr-border);
    background: var(--clr-bg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity var(--motion-standard), transform var(--motion-standard), box-shadow var(--motion-standard), border-color var(--motion-standard);
}

.semester-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.semester-header {
    padding: 10px 16px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: var(--clr-text-strong);
    font-size: 15px;
    font-weight: 600;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.edu-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 13px;
}

.edu-table thead {
    background: var(--clr-bg);
}

.edu-table th,
.edu-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}

.edu-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 600;
    color: #e5e7eb;
    background: var(--clr-bg);
}

.edu-table tbody tr:nth-child(odd) {
    background: var(--clr-bg);
}

.edu-table tbody tr:nth-child(even) {
    background: #020617f5;
}

.edu-table tbody tr:hover {
    background: rgba(22, 163, 74, 0.08);
}

.edu-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.edu-reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.sem-link.active {
    color: #4ade80 !important;
    font-weight: 700;
}

/* =========================================================
   Experience Page
   ========================================================= */
.experience-page {
    max-width: var(--max-wide);
}

.exp-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: var(--space-7);
}

.exp-main {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    position: relative;
    padding-left: var(--space-8);
}

.exp-main::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: var(--radius-pill);
    background: linear-gradient(to bottom, #22c55e, transparent);
    opacity: 0.6;
}

.exp-card {
    position: relative;
    padding: 16px 18px 16px 24px;
    background: var(--clr-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: transform var(--motion-standard), box-shadow var(--motion-standard), border-color var(--motion-standard), background var(--motion-standard);
}

.exp-card::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--clr-accent);
    background: var(--clr-bg);
    box-shadow: 0 0 0 4px var(--alpha-accent-18);
}

.exp-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 2px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.exp-card:hover {
    transform: translateY(-1px);
    border-color: var(--alpha-accent-60);
    background: radial-gradient(circle at top left, var(--alpha-accent-12), #020617);
    box-shadow: var(--shadow-card-hover);
}

.exp-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
}

.exp-role {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--clr-text-strong);
}

.exp-company {
    font-size: 13px;
    line-height: 1.5;
    color: var(--clr-text-muted);
}

.exp-period {
    font-size: 12px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: 12px;
    line-height: 1.45;
    color: var(--clr-text-subtle);
}

.exp-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.exp-meta i {
    width: 16px;
    height: 16px;
}

.exp-desc {
    font-size: 14px;
    color: var(--clr-text-muted);
    line-height: 1.72;
}

.exp-bullets {
    margin: var(--space-2) 0 var(--space-1);
    padding-left: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 13px;
    line-height: 1.65;
    color: var(--clr-text-muted);
}

.exp-bullets li::marker,
.exp-side-list li::marker {
    color: var(--clr-accent);
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-1);
}

.exp-tags .tag {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    background: rgba(15, 23, 42, 0.9);
    color: #bbf7d0;
    border: 1px solid var(--alpha-accent-55);
}

.exp-sidebar {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

.exp-side-card {
    background: var(--clr-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--clr-border);
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.exp-side-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.exp-side-title i {
    width: 18px;
    height: 18px;
    color: var(--clr-accent);
}

.exp-side-text {
    font-size: 13px;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

.exp-side-list {
    font-size: 13px;
    line-height: 1.65;
    color: var(--clr-text-muted);
    padding-left: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.exp-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.chip {
    font-size: 12px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

/* =========================================================
   Contact Page
   ========================================================= */
.contact-page {
    max-width: var(--max-wide);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: 16px 24px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(4px);
    transition: transform var(--motion-standard), border-color var(--motion-standard), box-shadow var(--motion-standard), background var(--motion-standard);
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: var(--alpha-accent-60);
    box-shadow: var(--shadow-card-hover);
}

.contact-card i {
    width: 22px;
    height: 22px;
    stroke: var(--clr-accent);
}

.contact-label {
    font-size: 13px;
    color: var(--clr-text-subtle);
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--clr-text-strong);
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-1);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--clr-border-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.25s ease;
}

.social-btn i {
    width: 20px;
    height: 20px;
    stroke: var(--clr-text-subtle);
}

.social-btn:hover {
    border-color: var(--clr-accent);
    background: rgba(22, 163, 74, 0.18);
}

.social-btn:hover i {
    stroke: var(--clr-accent);
}

.contact-form-card {
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-4xl);
    padding: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(6px);
    transition: border-color var(--motion-standard), box-shadow var(--motion-standard), background var(--motion-standard);
}

.contact-form-card:hover {
    border-color: var(--alpha-accent-60);
    box-shadow: var(--shadow-card-hover);
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--clr-text-strong);
    margin-bottom: var(--space-8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-1);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: var(--clr-bg-deep);
    border: 1px solid #1e293b;
    color: var(--clr-text-strong);
    font-size: 14px;
    outline: none;
    transition: 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--alpha-accent-25);
}

.btn.primary.full i {
    margin-right: var(--space-2);
}

.pending-msg {
    background: #fff3cd;
    color: #856404;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    margin: 10px 0 15px;
    font-size: 14px;
}

/* =========================================================
   Mobile Menu
   ========================================================= */
.menu-btn {
    display: none;
    z-index: 9999;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .project-detail-layout,
    .exp-layout {
        flex-direction: column;
    }

    .project-detail-sidebar {
        width: 100%;
    }

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

    .exp-main {
        padding-left: 0;
    }

    .exp-main::before {
        display: none;
    }

    .exp-card::before {
        left: 14px;
    }
}

@media (max-width: 960px) {
    .edu-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .main {
        margin-left: 0;
        width: 100%;
        padding: 24px 16px 32px;
    }

    .page-container {
        max-width: 100%;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-right {
        width: 100%;
        justify-content: center;
    }

    .about-layout,
    .skills-grid,
    .soft-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 1.2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-role {
        font-size: 1rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .avatar-ring {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-card {
        width: 100%;
    }

    .menu-btn {
        display: flex;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 6000;
        background: #0f2e2a;
        border-radius: var(--radius-sm);
        padding: 0.6rem;
        border: 1px solid var(--alpha-white-10);
        cursor: pointer;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: var(--sidebar-width);
        height: 100vh;
        background: var(--clr-bg);
        transition: left 0.3s ease;
        z-index: 5000;
    }

    .sidebar.active {
        left: 0;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .semester-header {
        font-size: 14px;
    }

    .edu-table {
        font-size: 12px;
    }
}

@media (max-width: 700px) {
    .stats {
        flex-direction: column;
        gap: var(--space-7);
    }

    .stat-card {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }

    .exp-card {
        padding: 14px 14px 14px 20px;
    }
}

@media (max-width: 550px) {
    .cert-thumb {
        width: 150px;
        padding: var(--space-3);
    }

    .cert-thumb img {
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Experience Page — Mobile overlap fixes (<=768px only)
   ========================================================= */
@media (max-width: 768px) {
    /* 1) Reserve a safe top zone so the fixed menu button never blocks page title */
    .experience-page .page-header {
        margin-top: calc(56px + env(safe-area-inset-top));
    }

    /* 2) Keep layout clean and avoid horizontal overflow from long role/meta text */
    .experience-page,
    .experience-page .exp-layout,
    .experience-page .exp-main,
    .experience-page .exp-card {
        min-width: 0;
    }

    .experience-page .exp-role,
    .experience-page .exp-company,
    .experience-page .exp-meta,
    .experience-page .exp-desc,
    .experience-page .exp-bullets li {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* 3) Simplify timeline rail and keep dots aligned without covering text */
    .experience-page .exp-main {
        padding-left: 0;
        gap: 14px;
    }

    .experience-page .exp-main::before {
        display: none;
    }

    .experience-page .exp-card {
        padding: 14px 14px 14px 26px;
    }

    .experience-page .exp-card::before {
        left: 10px;
        top: 20px;
        width: 9px;
        height: 9px;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
    }

    /* 4) Improve hierarchy and spacing for compact mobile reading */
    .experience-page .exp-header {
        gap: 6px;
    }

    .experience-page .exp-role {
        line-height: 1.35;
    }

    .experience-page .exp-meta {
        gap: 8px;
        line-height: 1.5;
    }
}

/* =========================================================
   Mobile Hardening Overrides (additive only)
   ========================================================= */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .main,
    .page-container {
        min-width: 0;
    }

    .page-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-left {
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
    }

    .hero-subtitle,
    .hero-title,
    .hero-role,
    .hero-text {
        margin-inline: auto;
    }

    .avatar-ring {
        width: clamp(180px, 56vw, 220px);
        height: clamp(180px, 56vw, 220px);
    }

    .avatar-inner {
        width: clamp(145px, 43vw, 185px);
        height: clamp(145px, 43vw, 185px);
    }

    .hero-buttons {
        width: 100%;
        align-items: stretch;
        justify-content: center;
    }

    .hero-buttons .btn {
        min-height: 44px;
        padding: 12px 18px;
        justify-content: center;
    }

    .sidebar {
        width: min(var(--sidebar-width), 82vw);
        left: calc(-1 * min(var(--sidebar-width), 82vw));
        height: 100dvh;
        padding-top: calc(var(--space-12) + 56px + env(safe-area-inset-top));
        padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom));
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .sidebar.active {
        left: 0;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .menu-btn {
        width: 44px;
        height: 44px;
        top: max(0.75rem, env(safe-area-inset-top));
        left: 0.75rem;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 6100;
    }
}
/* =========================================================
   Experience Company Link
   ========================================================= */
.company-link,
.company-link:link,
.company-link:visited {
    color: var(--clr-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: var(--alpha-accent-45);
}

.company-link:hover,
.company-link:active {
    color: var(--clr-accent-alt);
    text-decoration-color: var(--alpha-accent-80);
}