/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --navy: #0d1f3d;
    --lime: #9ab402;
    --lime2: #b8d400;
    --accent-blue: #4a7cf7;
    --dark: #1a1d2e;
    --text: #374151;
    --text2: #6b7280;
    --text3: #9ca3af;
    --bg: #f4f7fa;
    --bg2: #eef0f7;
    --white: #ffffff;
    --border: rgba(13, 31, 61, 0.08);
    --border2: rgba(13, 31, 61, 0.14);
    --shadow-sm: 0 2px 8px rgba(13, 31, 61, 0.06);
    --shadow: 0 8px 32px rgba(13, 31, 61, 0.10);
    --shadow-lg: 0 20px 60px rgba(13, 31, 61, 0.12);
    --grad: linear-gradient(135deg, var(--navy), var(--lime));
    --grad-h: linear-gradient(135deg, #0a1830, #b8d400);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(13, 31, 61, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 31, 61, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

::-webkit-scrollbar {
    width: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 99px;
}

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

section {
    padding: 80px 0;
}

/* =========================================
   2. SECTION TITLE
   ========================================= */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--grad);
    border-radius: 99px;
}

/* =========================================
   2b. KPI COUNTERS SECTION
   ========================================= */
.kpi-section {
    padding: 30px 0 50px;
    background: transparent;
}

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

.kpi-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.kpi-icon {
    font-size: 24px;
    color: var(--lime);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kpi-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    line-height: 1.1;
}

.kpi-label {
    font-size: 12.5px;
    color: var(--text2);
    font-weight: 500;
}

@media (max-width: 900px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =========================================
   3. BUTTONS
   ========================================= */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--grad);
    color: white;
    border-radius: 99px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(154, 180, 2, 0.35);
    font-family: inherit;
}

.cta-button:hover {
    background: var(--grad-h);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(154, 180, 2, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: 1.5px solid var(--border2);
    border-radius: 99px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: var(--navy);
    background: var(--bg2);
    transform: translateY(-1px);
}

/* =========================================
   4. NAVBAR
   ========================================= */
.data-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--lime);
}

.data-navbar nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.data-navbar nav ul li a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text2);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color 0.2s, background 0.2s;
}

.data-navbar nav ul li a:hover,
.data-navbar nav ul li a.active {
    color: var(--dark);
    background: var(--bg2);
}

.data-navbar nav ul li a.active {
    font-weight: 600;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
}

.mobile-menu span {
    height: 2px;
    width: 100%;
    background: var(--dark);
    border-radius: 99px;
    transition: all 0.3s;
}

/* =========================================
   5. HERO
   ========================================= */
.hero {
    display: flex;
    min-height: 100vh;
    padding: 8rem 5% 5rem;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.eyebrow-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lime);
    background: rgba(154, 180, 2, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 18px;
    border: 1px solid rgba(154, 180, 2, 0.25);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 16px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.data-highlight {
    background: linear-gradient(90deg, var(--navy), var(--lime));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.story-highlight {
    background: linear-gradient(90deg, var(--lime), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-visualization {
    flex: 1;
    min-height: 430px;
    display: flex;
    justify-content: center;
}

/* Viz Card */
.viz-card {
    width: 100%;
    height: 430px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.viz-header {
    background: var(--bg2);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.viz-title {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    margin-left: 4px;
}

/* Custom viz dropdown */
.viz-dropdown {
    flex: 1;
    position: relative;
    margin: 0 8px;
    min-width: 0;
    max-width: 340px;
}

.viz-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    background: white;
    border: 1px solid var(--border2);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.viz-dropdown-btn>i:first-child {
    color: var(--lime);
    font-size: 11px;
    flex-shrink: 0;
}

.viz-dropdown-btn>span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viz-chevron {
    font-size: 10px;
    color: var(--text3);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.viz-dropdown-btn:hover,
.viz-dropdown-btn:focus {
    border-color: var(--lime);
    outline: none;
    box-shadow: 0 0 0 3px rgba(154, 180, 2, 0.12);
}

/* Dropdown list */
.viz-dropdown-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border2);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(13, 31, 61, 0.12);
    list-style: none;
    z-index: 200;
    overflow: hidden;
    padding: 4px;
}

.viz-dropdown-list.open {
    display: block;
}

.viz-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.viz-dropdown-item i {
    font-size: 12px;
    color: var(--text3);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.15s;
}

.viz-dropdown-item:hover {
    background: var(--bg2);
    color: var(--dark);
}

.viz-dropdown-item:hover i {
    color: var(--lime);
}

.viz-dropdown-item.active {
    background: rgba(154, 180, 2, 0.08);
    color: var(--navy);
    font-weight: 600;
}

.viz-dropdown-item.active i {
    color: var(--lime);
}

.viz-open-btn {
    font-size: 12px;
    color: var(--text3);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.viz-open-btn:hover {
    color: var(--navy);
    border-color: var(--border2);
}

.viz-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.viz-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    color: #bbb;
    pointer-events: none;
    transition: opacity 0.4s;
}

/* =========================================
   6. PROJECTS — NEW CARD STYLE
   ========================================= */
.projects-section {
    background: transparent;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 7px 18px;
    background: white;
    border: 1px solid var(--border2);
    border-radius: 99px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--navy);
    color: var(--dark);
}

.filter-btn.active {
    background: var(--grad);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(154, 180, 2, 0.3);
}

.projects-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 12px 12px 24px;
}

/* Custom scrollbar for horizontal scrolling projects grid */
.projects-grid::-webkit-scrollbar {
    height: 6px;
}
.projects-grid::-webkit-scrollbar-track {
    background: rgba(13,31,61,0.03);
    border-radius: 99px;
}
.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(13,31,61,0.12);
    border-radius: 99px;
}
.projects-grid::-webkit-scrollbar-thumb:hover {
    background: var(--lime);
}

/* New project card */
.project-card-new {
    flex: 0 0 350px;
    max-width: 85vw;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    animation: projectPopup 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    scroll-snap-align: start;
}

.pcn-thumb-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f2f5;
    border-bottom: 1px solid var(--border);
}

.pcn-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-new:hover .pcn-thumb {
    transform: scale(1.04);
}

@keyframes projectPopup {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--border2);
}

.pcn-header {
    padding: 18px 18px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.pcn-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.03em;
    flex: 1;
}

.pcn-arrow {
    font-size: 13px;
    color: var(--text3);
    transition: color 0.2s, transform 0.2s;
}

.project-card-new:hover .pcn-arrow {
    color: var(--navy);
    transform: translate(2px, -2px);
}

.pcn-body {
    padding: 0 18px 14px;
    flex: 1;
}

.pcn-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.pcn-desc {
    font-size: 12.5px;
    color: var(--text2);
    line-height: 1.65;
    margin-bottom: 12px;
}

.pcn-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pcn-tag {
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text2);
    font-family: 'Courier New', monospace;
}

.pcn-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    background: var(--bg2);
}

.pcn-metric {
    padding: 10px 8px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.pcn-metric:last-child {
    border-right: none;
}

.pcn-mval {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.pcn-mlabel {
    font-size: 10px;
    color: var(--text3);
}

/* Project modal */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.project-modal[style*="block"] {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 32px;
    width: 100%;
    max-width: 580px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 24px 64px rgba(13, 31, 61, 0.18);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

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

.close-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text3);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.close-modal:hover {
    background: var(--bg2);
    color: var(--dark);
}

/* Case study layout inside project modal */
.cs-section {
    margin-bottom: 22px;
}

.cs-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-title i {
    color: var(--lime);
    font-size: 14px;
}

.cs-text {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

/* =========================================
   7. SKILLS SECTION
   ========================================= */
.skills-section {
    background: transparent;
}

.skills-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
    align-items: stretch;
}

.skills-container-single {
    max-width: 600px;
    margin: 0 auto;
}

.skills-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.skill-item {
    margin-bottom: 18px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.skill-name span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.skill-name span:last-child {
    font-size: 11px;
    color: var(--text3);
    font-weight: 400;
    flex-shrink: 0;
}

.skill-bar {
    height: 6px;
    background: var(--bg2);
    border-radius: 99px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--grad);
    border-radius: 99px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 99px;
}

.skill-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 99px;
    background: white;
    border: 1px solid var(--border2);
    color: var(--text2);
    cursor: default;
    transition: all 0.15s;
}

.skill-chip:hover {
    border-color: var(--lime);
    color: var(--navy);
    background: rgba(154, 180, 2, 0.05);
}

/* Currently working on */
.wip-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.wip-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--grad);
    border-radius: 0 2px 2px 0;
}

.wip-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lime);
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.wip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.wip-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wip-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}

.wip-list li i {
    color: var(--lime);
    font-size: 13px;
    width: 14px;
    flex-shrink: 0;
}

/* Stat row */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    color: var(--text3);
    font-weight: 500;
}

/* =========================================
   8. ABOUT SECTION
   ========================================= */
.about-section {
    background: transparent;
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-bio {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 8px;
}

.about-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 4px solid white;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border2);
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
}

.contact-chip:hover {
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   9. CONTACT SECTION
   ========================================= */
.contact-section {
    background: transparent;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 1;
}

.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1.5px solid var(--border2);
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    color: var(--dark);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--lime);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text3);
    font-size: 14px;
    transition: all 0.25s;
    pointer-events: none;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--lime);
    letter-spacing: 0.05em;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--text);
}

.info-item i {
    font-size: 16px;
    color: var(--lime);
    width: 18px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--grad);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* =========================================
   10. SITE FOOTER
   ========================================= */
.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border2);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
}

/* Col 1 */
.footer-brand {}

.footer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(154, 180, 2, 0.35);
    flex-shrink: 0;
}

.footer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.footer-title {
    font-size: 12px;
    color: var(--lime);
    font-weight: 600;
    margin-top: 2px;
}

.footer-bio {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text2);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.footer-socials a:hover {
    border-color: var(--lime);
    color: var(--lime);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(154, 180, 2, 0.2);
}

/* Cols 2 & 3 */
.footer-col-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 18px;
}

/* Quick links */
.footer-links-grid {
    display: flex;
    gap: 24px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    font-size: 13.5px;
    color: var(--text2);
    transition: color 0.15s;
    font-weight: 400;
}

.footer-links-col a:hover {
    color: var(--navy);
}

/* Contact items */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text2);
    transition: color 0.15s;
}

.footer-contact-item i {
    width: 16px;
    font-size: 13px;
    color: var(--text3);
    text-align: center;
    transition: color 0.15s;
    flex-shrink: 0;
}

.footer-contact-item:hover {
    color: var(--dark);
}

.footer-contact-item:hover i {
    color: var(--lime);
}

/* Back to top button */
.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--grad);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(154, 180, 2, 0.3);
}

.back-to-top-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Bottom bar */
.footer-bar {
    border-top: 1px solid var(--border2);
    padding: 16px 0;
    background: white;
}

.footer-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bar p {
    font-size: 12.5px;
    color: var(--text3);
}

/* =========================================
   11. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

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

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

.animate-fade {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes mobileNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   11b. HERO STACKED (top-bottom layout)
   ========================================= */
.hero-stacked {
    padding: 7rem 0 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}

.hero-stacked .container {
    width: 100%;
}

.hero-stacked-content {
    text-align: center;
    padding: 3rem 0 2.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-stacked-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 16px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text2);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-sub-small {
    display: block;
    font-size: 0.85rem;
    color: var(--text3);
    margin-top: 4px;
}

.hero-ctas {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Viz card full width below text */
.hero-stacked-viz {
    width: 100%;
}

.hero-stacked-viz .viz-card {
    width: 100%;
    height: 520px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 40px rgba(13, 31, 61, 0.10);
    border-bottom: none;
}

.viz-fallback {
    font-size: 14px;
    color: var(--text3);
}

.viz-fallback i {
    font-size: 3rem;
    color: #ddd;
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

.viz-fallback p {
    text-align: center;
}

.viz-fallback-sub {
    font-size: 12px;
    color: #ccc;
    margin-top: 4px;
}

/* (skills-container defined in section 7 above — no duplicate needed) */

.skills-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.skills-chart-wrap {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex-grow: 1;
    align-content: center;
}

.tech-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    transition: transform 0.18s;
}

.tech-icon-card:hover {
    transform: translateY(-3px);
}

.tech-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.18s, border-color 0.18s;
}

.tech-icon-card:hover .tech-icon-box {
    box-shadow: 0 6px 20px rgba(13, 31, 61, 0.12);
    border-color: var(--border2);
}

.tech-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-icon-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}

.skill-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* =========================================
   11b. DETAILED SKILLS & TIMELINE PAGE
   ========================================= */
.skills-grid-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.skill-card-detailed {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s, border-color 0.22s;
}

.skill-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--border2);
}

.skill-ring-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--skill-color) calc(var(--percentage) * 3.6deg), #eef0f7 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.04);
}

.skill-ring-inner {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(13, 31, 61, 0.04);
}

.skill-ring-inner img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.3s;
}

.skill-card-detailed:hover .skill-ring-inner img {
    transform: scale(1.1) rotate(2deg);
}

.skill-title-detailed {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.skill-pct-detailed {
    font-size: 13px;
    font-weight: 600;
    color: var(--lime);
    margin-bottom: 8px;
    display: block;
}

.skill-label-detailed {
    font-size: 12px;
    color: var(--text2);
    line-height: 1.4;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vertical Timeline */
.timeline-section {
    padding: 40px 0 80px;
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: rgba(13, 31, 61, 0.08);
    border-radius: 99px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

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

.timeline-badge {
    position: absolute;
    left: -42px;
    top: 24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--lime);
    box-shadow: 0 0 0 4px rgba(154, 180, 2, 0.15);
    z-index: 2;
    transition: transform 0.2s, background-color 0.2s;
}

.timeline-item:hover .timeline-badge {
    transform: scale(1.2);
    background-color: var(--lime);
}

.timeline-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s, border-color 0.22s;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.timeline-title-wrap {
    display: flex;
    flex-direction: column;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.timeline-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--text3);
    margin-top: 2px;
}

.timeline-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--lime);
    background: rgba(154, 180, 2, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.timeline-desc {
    font-size: 13.5px;
    color: var(--text2);
    line-height: 1.75;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(13, 31, 61, 0.05);
}

.timeline-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: #eef0ff;
    color: #4a4f72;
    border: 1px solid #dde0ff;
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

/* About Hero */
.about-hero-section {
    background: var(--bg);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: center;
}

.about-hero-photo {
    position: relative;
}

.about-hero-img {
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 3px solid var(--border);
}

.about-hero-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.about-hero-tagline {
    font-size: 15px;
    font-weight: 500;
    color: var(--lime);
    margin-bottom: 16px;
}

.about-hero-bio {
    font-size: 14.5px;
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Education & Experience */
.about-edu-section {
    padding: 60px 0;
    background: var(--white);
}

.about-edu-timeline {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-edu-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-edu-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lime), var(--lime2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(154, 180, 2, 0.25);
    margin-top: 4px;
}

.about-edu-card {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s;
}

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

.about-edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.about-edu-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.about-edu-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text3);
    margin-top: 2px;
}

.about-edu-desc {
    font-size: 13.5px;
    color: var(--text2);
    line-height: 1.75;
    margin: 0;
}

/* Certifications */
.about-cert-section {
    padding: 60px 0;
    background: var(--bg);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s, border-color 0.22s;
    box-shadow: var(--shadow-sm);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--lime);
}

.cert-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(154,180,2,0.12), rgba(184,212,0,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
    color: var(--lime);
}

.cert-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.4;
}

.cert-issuer {
    font-size: 12px;
    font-weight: 600;
    color: var(--text3);
    margin-bottom: 4px;
}

.cert-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--lime);
    background: rgba(154, 180, 2, 0.1);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
}

/* GitHub Contribution Graph */
.about-github-section {
    padding: 60px 0 80px;
    background: var(--white);
}

.github-header {
    text-align: center;
    margin-bottom: 32px;
}

.github-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e40c9, #a371f7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(110, 64, 201, 0.3);
}

.github-graph-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px 24px;
    box-shadow: var(--shadow-sm);
}

.github-total {
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 16px;
}

.github-graph-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
}

.github-months {
    position: relative;
    height: 20px;
    margin-bottom: 4px;
    margin-left: 36px;
    font-size: 10px;
    color: var(--text3);
    font-weight: 500;
}

.github-grid-wrap {
    display: flex;
    gap: 4px;
}

.github-days-labels {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 9px;
    color: var(--text3);
    font-weight: 500;
    min-width: 32px;
    padding-top: 0;
}

.github-days-labels span {
    height: 11px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.github-grid {
    display: flex;
    gap: 2px;
}

.github-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.github-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.1s;
}

.github-cell:hover {
    transform: scale(1.5);
    outline: 1px solid rgba(0,0,0,0.15);
    z-index: 2;
}

.github-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text3);
    font-weight: 500;
}

.github-legend-box {
    width: 11px;
    height: 11px;
    border-radius: 2px;
}

/* Scroll Reveal Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animate-left-dir {
    transform: translateX(-40px);
}

.scroll-animate.animate-right-dir {
    transform: translateX(40px);
}

.scroll-animate.animate-active {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* Vertical list layout for dedicated projects page */
.projects-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding: 12px 0;
}

/* Horizontal project card for projects page */
.project-card-horizontal {
    display: flex;
    flex-direction: row-reverse;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s, border-color 0.22s;
    width: 100%;
    height: 200px;
}

.project-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border2);
}

.pch-thumb-wrap {
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #f0f2f5;
    border-left: 1px solid var(--border);
}

.pch-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-horizontal:hover .pch-thumb {
    transform: scale(1.04);
}

.pch-content {
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pch-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pch-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pch-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.pch-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
}

.pch-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
    margin-bottom: 10px;
}

.pch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.pch-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    background: #f0f2f5;
    color: var(--text2);
    border: 1px solid rgba(13,31,61,0.05);
}

.pch-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(13, 31, 61, 0.06);
    padding-top: 10px;
    margin-top: auto;
}

.pch-metrics {
    display: flex;
    gap: 24px;
}

.pch-metric {
    display: flex;
    flex-direction: column;
}

.pch-mval {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.pch-mlabel {
    font-size: 10px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pch-arrow {
    color: var(--text3);
    font-size: 14px;
    transition: transform 0.2s, color 0.2s;
}

.project-card-horizontal:hover .pch-arrow {
    transform: translateX(4px);
    color: var(--lime);
}

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .skills-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 7rem;
        gap: 3rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .about-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .about-image {
        flex: none;
    }
}

@media (max-width: 1150px) {
    .projects-grid {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .skills-grid-detailed {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        padding-left: 35px;
    }

    .timeline-line {
        left: 10px;
    }

    .timeline-badge {
        left: -32px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .timeline-date {
        align-self: flex-start;
    }

    .data-navbar {
        flex-wrap: wrap;
    }

    .data-navbar nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 32px rgba(13, 31, 61, 0.10);
        z-index: 999;
        padding: 12px 5% 18px;
        animation: mobileNavSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .data-navbar nav.mobile-open {
        display: block;
    }

    .data-navbar nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .data-navbar nav ul li a {
        display: block;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: var(--radius-sm);
        transition: background 0.2s, color 0.2s;
    }

    .data-navbar nav ul li a:hover,
    .data-navbar nav ul li a.active {
        background: var(--bg2);
    }

    .mobile-menu {
        display: flex;
    }

    /* Hamburger to X animation */
    .mobile-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .projects-grid {
        justify-content: flex-start;
        gap: 16px;
        padding: 10px 16px 20px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .project-card-horizontal {
        flex-direction: column;
        min-height: auto;
    }

    .pch-thumb-wrap {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .pch-content {
        padding: 20px;
    }

    .pch-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .pch-metrics {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

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

    .contact-container {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bar .container {
        flex-direction: column;
        text-align: center;
    }

    /* About page responsive */
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .about-hero-photo {
        display: flex;
        justify-content: center;
    }

    .about-hero-img {
        width: 200px;
        height: 250px;
    }

    .about-hero-links {
        justify-content: center;
    }

    .about-hero-name {
        font-size: 1.6rem;
    }

    .about-edu-item {
        flex-direction: column;
        gap: 12px;
    }

    .about-edu-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .github-graph-container {
        padding: 20px 16px 18px;
    }
}