/* ============================================================
   GITHUB-THEMED PORTFOLIO — STYLE.CSS
   ============================================================ */

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
    /* Dark theme (default) */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-canvas: #010409;
    --border-default: #30363d;
    --border-muted: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-link: #58a6ff;
    --accent-green: #238636;
    --accent-green-emphasis: #2ea043;
    --accent-blue: #58a6ff;
    --accent-purple: #bc8cff;
    --accent-orange: #f0883e;
    --accent-red: #f85149;
    --accent-yellow: #e3b341;
    --contribution-0: #161b22;
    --contribution-1: #0e4429;
    --contribution-2: #006d32;
    --contribution-3: #26a641;
    --contribution-4: #39d353;
    --shadow-sm: 0 1px 0 rgba(27, 31, 36, 0.04);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px rgba(88, 166, 255, 0.08);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-height: 64px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eaeef2;
    --bg-canvas: #f0f3f6;
    --border-default: #d0d7de;
    --border-muted: #d8dee4;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --text-muted: #8c959f;
    --text-link: #0969da;
    --accent-green: #1a7f37;
    --accent-green-emphasis: #2da44e;
    --accent-blue: #0969da;
    --accent-purple: #8250df;
    --accent-orange: #bf5700;
    --accent-red: #d1242f;
    --accent-yellow: #9a6700;
    --contribution-0: #ebedf0;
    --contribution-1: #9be9a8;
    --contribution-2: #40c463;
    --contribution-3: #30a14e;
    --contribution-4: #216e39;
    --shadow-sm: 0 1px 0 rgba(31, 35, 40, 0.04);
    --shadow-md: 0 3px 6px rgba(140, 149, 159, 0.15);
    --shadow-lg: 0 8px 24px rgba(140, 149, 159, 0.2);
    --shadow-glow: 0 0 30px rgba(9, 105, 218, 0.06);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ HEADER / NAV ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-height);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav__logo:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav__logo-icon {
    transition: transform 0.3s ease;
}

.nav__logo:hover .nav__logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.nav__link:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    text-decoration: none;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--border-default);
}

[data-theme="dark"] .icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============ HERO / PROFILE ============ */
.hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 60px;
}

.hero__container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.hero__profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: slideInLeft 0.8s ease both;
}

.hero__avatar-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
}

.hero__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--border-default);
    object-fit: cover;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__avatar:hover {
    border-color: var(--accent-blue);
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(88, 166, 255, 0.15);
}

.hero__status {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

.hero__info {
    text-align: center;
}

.hero__name {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hero__username {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.hero__bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 1.5em;
}

.hero__bio .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--accent-blue);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

.hero__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.hero__meta-item svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.hero__meta-item a {
    color: var(--text-link);
}

.hero__social {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.hero__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.hero__social-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
    text-decoration: none;
}

.hero__resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-top: 12px;
    background-color: var(--accent-green);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.hero__resume-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
    text-decoration: none;
}

/* README Card */
.hero__readme {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: slideInRight 0.8s ease both;
    animation-delay: 0.2s;
}

.hero__readme-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-default);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero__readme-body {
    padding: 24px 32px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.hero__readme-body h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-default);
}

.hero__readme-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero__readme-body p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero__readme-body strong {
    color: var(--text-primary);
}

.hero__readme-body ul {
    padding-left: 24px;
    list-style: disc;
}

.hero__readme-body ul li {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* ============ SECTION COMMON ============ */
.section-header {
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.section-title svg {
    color: var(--text-muted);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 30px;
}

/* ============ CONTRIBUTION GRAPH ============ */
.contributions {
    padding: 48px 0;
}

.contribution-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    overflow-x: auto;
}

.contribution-card__header {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contribution-card__header span {
    color: var(--text-primary);
    font-weight: 600;
}

.contribution-graph {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: 4px;
    margin-bottom: 12px;
}

.contribution-months {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding-left: 2px;
    margin-bottom: 4px;
    overflow: hidden;
}

.contribution-months span {
    min-width: calc((10px + 2px) * 4);
    text-align: left;
}

.contribution-days {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.6rem;
    color: var(--text-muted);
    padding-right: 6px;
    padding-top: 0;
}

.contribution-days span {
    height: 10px;
    display: flex;
    align-items: center;
}

.contribution-grid {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-rows: repeat(7, 10px);
    grid-auto-flow: column;
    grid-auto-columns: 10px;
    gap: 2px;
}

.contribution-square {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: var(--contribution-0);
    transition: background-color 0.15s ease;
    cursor: pointer;
    position: relative;
}

.contribution-square[data-level="1"] {
    background-color: var(--contribution-1);
}

.contribution-square[data-level="2"] {
    background-color: var(--contribution-2);
}

.contribution-square[data-level="3"] {
    background-color: var(--contribution-3);
}

.contribution-square[data-level="4"] {
    background-color: var(--contribution-4);
}

.contribution-square:hover {
    outline: 2px solid var(--accent-blue);
    outline-offset: -1px;
    z-index: 20;
}

.contribution-square::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: #e6edf3;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.contribution-square:hover::after {
    opacity: 1;
}

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.contribution-legend__squares {
    display: flex;
    gap: 3px;
}

.contribution-legend__squares .contribution-square {
    cursor: default;
    width: 11px;
    height: 11px;
}

.contribution-legend__squares .contribution-square:hover {
    outline: none;
}

.contribution-legend__squares .contribution-square::after {
    display: none;
}

/* ============ PROJECTS / REPO CARDS ============ */
.projects {
    padding: 48px 0;
}

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

.repo-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.repo-card:hover {
    border-color: var(--text-muted);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    text-decoration: none;
}

.repo-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.repo-card__icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.repo-card__name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-link);
}

.repo-card__visibility {
    font-size: 0.65rem;
    color: var(--text-muted);
    border: 1px solid var(--border-default);
    padding: 1px 8px;
    border-radius: 12px;
    margin-left: auto;
    font-weight: 500;
}

.repo-card__description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-card__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.repo-card__lang {
    display: flex;
    align-items: center;
    gap: 4px;
}

.repo-card__lang-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.repo-card__stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Language colors */
.lang-javascript {
    background-color: #f1e05a;
}

.lang-typescript {
    background-color: #3178c6;
}

.lang-python {
    background-color: #3572A5;
}

.lang-dart {
    background-color: #00B4AB;
}

.lang-java {
    background-color: #b07219;
}

.lang-html {
    background-color: #e34c26;
}

.lang-css {
    background-color: #563d7c;
}

.lang-shell {
    background-color: #89e051;
}

.lang-kotlin {
    background-color: #A97BFF;
}

.lang-swift {
    background-color: #F05138;
}

.lang-c {
    background-color: #555555;
}

.lang-cpp {
    background-color: #f34b7d;
}

.lang-go {
    background-color: #00ADD8;
}

.lang-rust {
    background-color: #dea584;
}

.lang-ruby {
    background-color: #701516;
}

.lang-php {
    background-color: #4F5D95;
}

.lang-vue {
    background-color: #41b883;
}

/* ============ SKILLS ============ */
.skills {
    padding: 48px 0;
}

.skills__categories {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.skill-category__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.skill-category__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-muted);
    transition: all 0.2s ease;
}

.skill-badge:hover {
    border-color: var(--accent-blue);
    background-color: var(--bg-tertiary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.skill-badge img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.skill-badge span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.skill-badge__emoji {
    font-size: 1.5rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ CERTIFICATIONS ============ */
.certifications {
    padding: 48px 0;
}

.certifications__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cert-card__badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.15), rgba(163, 113, 247, 0.15));
    border-radius: 50%;
    color: var(--accent-blue);
}

.cert-card__content {
    flex: 1;
    min-width: 0;
}

.cert-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.cert-card__issuer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.cert-card__date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.cert-card__verify {
    font-size: 0.75rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    margin-left: 8px;
    transition: opacity 0.2s ease;
}

.cert-card__verify:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ============ CONTACT ============ */
.contact {
    padding: 64px 0;
}

.contact__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact__card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact__card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.contact__card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    color: white;
}

.contact__card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.contact__card p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.contact__link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-link);
    word-break: break-all;
}

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--border-default);
    padding: 24px 0;
    background-color: var(--bg-secondary);
}

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

.footer__left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer__left svg {
    color: var(--text-muted);
    opacity: 0.6;
}

.footer__right {
    display: flex;
    gap: 20px;
}

.footer__right a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer__right a:hover {
    color: var(--text-link);
    text-decoration: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero__profile {
        max-width: 300px;
    }

    .hero__avatar-wrapper {
        width: 200px;
        height: 200px;
    }

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

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

@media (max-width: 768px) {
    .nav {
        padding: 0 12px;
        gap: 8px;
    }

    .nav__logo {
        gap: 6px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .nav__logo-icon {
        width: 26px;
        height: 26px;
    }

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-default);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 8px 16px;
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        z-index: 999;
        align-items: stretch;
    }

    .nav__menu.active {
        transform: translateY(0);
    }

    .nav__link {
        display: block;
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
    }

    .nav__link:hover {
        background-color: var(--bg-tertiary);
    }

    .nav__actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
    }

    .nav__hamburger {
        display: flex;
        width: 34px;
        height: 34px;
        align-items: center;
    }

    .hero {
        padding-top: calc(var(--header-height) + 32px);
    }

    .hero__avatar-wrapper {
        width: 160px;
        height: 160px;
    }

    .hero__name {
        font-size: 1.3rem;
    }

    .hero__readme-body {
        padding: 16px 20px;
    }

    .skill-category__grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .footer__container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer__left {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__avatar-wrapper {
        width: 130px;
        height: 130px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .contribution-card {
        padding: 14px 12px;
    }

    .contribution-grid {
        transform: scale(0.85);
        transform-origin: top left;
    }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--bg-canvas);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-default);
}

/* ============ SELECTION ============ */
::selection {
    background-color: var(--accent-blue);
    color: white;
}