/* ==========================================================================
   Shubham Kumar Jha — ML/DS Portfolio | v3 Design System
   "Precision Dark" Theme
   ========================================================================== */

/* --- Google Fonts loaded in HTML --- */

/* ========================
   1. CSS CUSTOM PROPERTIES
   ======================== */
:root {
    /* Colors */
    --bg:           #080C18;
    --bg-alt:       #0D1326;
    --surface:      #101828;
    --surface-2:    #1A2540;
    --border:       #1E3A5F;
    --border-glow:  rgba(0, 180, 216, 0.35);

    --cyan:         #00B4D8;
    --cyan-dim:     rgba(0, 180, 216, 0.08);
    --cyan-glow:    rgba(0, 180, 216, 0.25);
    --blue:         #0077B6;
    --teal:         #06D6A0;
    --teal-dim:     rgba(6, 214, 160, 0.08);
    --purple:       #9D4EDD;
    --purple-dim:   rgba(157, 78, 221, 0.1);
    --amber:        #F59E0B;
    --amber-dim:    rgba(245, 158, 11, 0.1);

    --text:         #E2E8F5;
    --text-muted:   #94A3B8;
    --text-dim:     #475569;

    /* Typography */
    --font-head:    'Plus Jakarta Sans', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Transitions */
    --t-fast:    0.18s ease;
    --t-med:     0.3s ease;
    --t-slow:    0.5s ease;

    /* Spacing */
    --section-pad: 10rem 0;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.7;
    overflow-x: hidden;
    /* Subtle animated grid — the "data paper" background */
    background-image:
        linear-gradient(rgba(0,180,216,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,180,216,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 60s linear infinite;
}

@keyframes gridShift {
    0%   { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

a { text-decoration: none; color: var(--cyan); transition: color var(--t-fast); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ========================
   3. UTILITIES
   ======================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.4rem;
}

.section { padding: var(--section-pad); }
.section--alt { background-color: var(--bg-alt); }

.section-label {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
    display: block;
}

.section-heading {
    font-size: clamp(3rem, 5vw, 4.2rem);
    margin-bottom: 6rem;
    position: relative;
    padding-bottom: 2rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    border-radius: 2px;
}

/* ========================
   4. BUTTONS
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.6rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-med);
    border: none;
}

.btn-primary {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
}
.btn-primary:hover {
    background: var(--cyan-dim);
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-2px);
    color: var(--cyan);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
    color: var(--text);
}

/* ========================
   5. NAVIGATION
   ======================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 2.2rem 0;
    z-index: 1000;
    transition: all var(--t-med);
}

.navbar.scrolled {
    background: rgba(8, 12, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.6);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
}

.nav-logo .dot {
    color: var(--cyan);
    display: inline-block;
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 1.4rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--t-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    transition: width var(--t-med);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-resume {
    font-size: 1.3rem !important;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--cyan) !important;
    border-radius: 5px;
    color: var(--cyan) !important;
    font-family: var(--font-mono) !important;
    letter-spacing: 0.5px;
    transition: all var(--t-med) !important;
}

.nav-resume:hover {
    background: var(--cyan-dim) !important;
    box-shadow: 0 0 15px var(--cyan-glow) !important;
}

.nav-resume::after { display: none !important; }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1001;
}

/* ========================
   6. HERO SECTION
   ======================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 9rem;
    overflow: hidden;
}

/* Radial gradient glow in background */
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,119,182,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-80%, -50%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0%   { transform: translate(-80%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-80%, -50%) scale(1.2); opacity: 1; }
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    width: 100%;
}

/* --- Hero Left: Text --- */
.hero-text { flex: 0 0 58%; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid rgba(6, 214, 160, 0.25);
    background: rgba(6, 214, 160, 0.06);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--teal);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeSlideLeft 0.6s ease forwards 0.2s;
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
    animation: dotBlink 2s infinite;
}

@keyframes dotBlink {
    0%,100% { box-shadow: 0 0 0 0 rgba(6,214,160,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(6,214,160,0); }
}

.hero-name {
    font-size: clamp(4.5rem, 7vw, 7.2rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-name .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

.hero-name .word:nth-child(1) { animation: wordRise 0.7s cubic-bezier(0.22,1,0.36,1) forwards 0.4s; }
.hero-name .word:nth-child(2) { animation: wordRise 0.7s cubic-bezier(0.22,1,0.36,1) forwards 0.55s; }
.hero-name .word:nth-child(3) { animation: wordRise 0.7s cubic-bezier(0.22,1,0.36,1) forwards 0.7s; }
.hero-name .word:nth-child(4) { animation: wordRise 0.7s cubic-bezier(0.22,1,0.36,1) forwards 0.85s; }

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

.cursor-blink {
    display: inline-block;
    width: 3px; height: 2.8rem;
    background: var(--cyan);
    margin-left: 4px;
    border-radius: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0; }
}

.hero-desc {
    font-size: 1.8rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 1.2s;
}

.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-cta {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease forwards 1.4s;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 1.6s;
}

.social-icon {
    color: var(--text-muted);
    font-size: 2rem;
    transition: all var(--t-fast);
}
.social-icon:hover {
    color: var(--cyan);
    transform: translateY(-3px);
}

/* --- Hero Right: Photo --- */
.hero-photo {
    flex: 0 0 38%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: photoArrive 0.8s cubic-bezier(0.22,1,0.36,1) forwards 0.6s;
}

@keyframes photoArrive {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.photo-frame {
    position: relative;
    width: 250px; height: 350px;
    animation: floatFrame 5s ease-in-out infinite;
}

@keyframes floatFrame {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

.photo-glow {
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--cyan), var(--blue), var(--cyan));
    z-index: 0;
    opacity: 0.7;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 12px var(--cyan-glow); }
    50%       { opacity: 0.9; box-shadow: 0 0 28px var(--cyan-glow), 0 0 50px rgba(0,119,182,0.2); }
}

.photo-inner {
    position: absolute;
    inset: 3px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    z-index: 1;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: contrast(1.05) saturate(0.95);
    transition: filter var(--t-slow);
}

.photo-frame:hover .profile-img {
    filter: contrast(1) saturate(1.1);
}

/* Scroll arrow */
.scroll-down {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    animation: fadeIn 1s ease forwards 2s, bounceArrow 2s ease-in-out infinite 2.5s;
    opacity: 0;
    cursor: pointer;
}

.scroll-down i { font-size: 1.6rem; color: var(--cyan); }

@keyframes bounceArrow {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* ========================
   7. ABOUT SECTION
   ======================== */
.about-hook {
    text-align: center;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 6rem;
    position: relative;
    padding-bottom: 2.5rem;
}

.about-hook span { color: var(--cyan); }

.about-hook::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.about-body {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 6rem;
    align-items: start;
}

.about-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4rem;
}

.about-summary p {
    font-size: 1.7rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.about-summary p strong { color: var(--text); font-weight: 600; }

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: 10px;
    transition: transform var(--t-fast);
}

.stat-row:hover { transform: translateX(5px); }

.stat-num {
    font-family: var(--font-head);
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--teal);
    white-space: nowrap;
    min-width: 7rem;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========================
   8. SKILLS SECTION
   ======================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--t-med);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med);
}

.skill-card:hover { border-color: var(--border-glow); transform: translateY(-5px); }
.skill-card:hover::before { transform: scaleX(1); }

/* Ghost icon background */
.skill-ghost-icon {
    position: absolute;
    bottom: -1rem; right: -1rem;
    font-size: 10rem;
    color: var(--text-dim);
    opacity: 0.07;
    pointer-events: none;
    transition: opacity var(--t-med);
}

.skill-card:hover .skill-ghost-icon { opacity: 0.12; }

.skill-card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,180,216,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    color: var(--cyan);
    margin-bottom: 2rem;
}

.skill-card h3 {
    font-size: 1.9rem;
    margin-bottom: 2.5rem;
    color: var(--text);
}

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

.tag {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: all var(--t-fast);
    opacity: 0;
    transform: scale(0.85);
}

.tag.visible {
    opacity: 1;
    transform: scale(1);
}

.skill-card:hover .tag {
    border-color: rgba(0,180,216,0.3);
    color: var(--text);
}

/* ========================
   9. PROJECTS SECTION
   ======================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--t-med);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--cyan);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--cyan-glow);
}

/* Visual preview area */
.project-preview {
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all var(--t-med);
}

.project-preview--bf {
    background: linear-gradient(135deg, #080f1e 0%, #0a1628 50%, #081428 100%);
}

.project-preview--tc {
    background: linear-gradient(135deg, #051812 0%, #072018 50%, #071a14 100%);
}

/* Decorative data visualization lines */
.project-preview::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 18px,
        rgba(0,180,216,0.06) 18px,
        rgba(0,180,216,0.06) 20px
    );
}

.preview-icon {
    font-size: 4rem;
    z-index: 1;
}

.project-preview--bf .preview-icon { color: var(--cyan); }
.project-preview--tc .preview-icon { color: var(--teal); }

.preview-label {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 1;
}

.project-preview--bf .preview-label { color: rgba(0,180,216,0.6); }
.project-preview--tc .preview-label { color: rgba(6,214,160,0.6); }

.preview-sub {
    font-family: var(--font-mono);
    font-size: 1rem;
    opacity: 0.35;
    z-index: 1;
}

.project-card:hover .project-preview {
    background-size: 110%;
}

/* Card body */
.project-body {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.project-meta-row h3 {
    font-size: 2.1rem;
    line-height: 1.3;
    flex: 1;
}

.project-gh-link {
    color: var(--text-muted);
    font-size: 1.8rem;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: color var(--t-fast);
    flex-shrink: 0;
}

.project-gh-link:hover { color: var(--text); }

.project-date {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--cyan);
    margin-bottom: 1.8rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 1.55rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex: 1;
}

.project-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pill {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--cyan);
    background: var(--cyan-dim);
    border: 1px solid rgba(0,180,216,0.18);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
}

.project-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.metric-badge {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--teal);
    background: var(--teal-dim);
    border: 1px solid rgba(6,214,160,0.2);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-weight: 600;
}

.project-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 1.45rem;
    font-weight: 600;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: auto;
    transition: color var(--t-fast);
}

.project-card:hover .project-cta { color: var(--cyan); }
.project-cta i { transition: transform var(--t-fast); }
.project-card:hover .project-cta i { transform: translateX(4px); }

/* ========================
   10. MODALS
   ======================== */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(8,12,24,0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-med);
}

.modal-bg.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform var(--t-med);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.modal-bg.open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 2rem; right: 2rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: all var(--t-fast);
}

.modal-close-btn:hover { color: var(--text); border-color: var(--text-muted); }

.modal-inner { padding: 5rem; }

.modal-kpi {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.modal-inner h2 {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.modal-tagline {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.modal-result-box {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.result-item {
    background: var(--teal-dim);
    border: 1px solid rgba(6,214,160,0.2);
    border-radius: 10px;
    padding: 2rem 3rem;
    text-align: center;
}

.result-num {
    font-family: var(--font-head);
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--teal);
}

.result-label {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.modal-section { margin-bottom: 3.5rem; }

.modal-section h3 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.modal-section h3 i { color: var(--cyan); font-size: 1.5rem; }

.modal-section p { color: var(--text-muted); font-size: 1.55rem; }

.modal-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-bullets li {
    color: var(--text-muted);
    font-size: 1.55rem;
    padding-left: 2.2rem;
    position: relative;
}

.modal-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 1.2rem;
}

.modal-bullets li strong { color: var(--text); }

.modal-footer { margin-top: 4rem; }

/* ========================
   11. EXPERIENCE SECTION
   ======================== */
.timeline {
    position: relative;
    padding-left: 5rem;
    max-width: 860px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 1.4rem;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--border) 0%, var(--cyan) 60%, var(--border) 100%);
}

.timeline-entry {
    position: relative;
    padding-bottom: 5rem;
}

.timeline-entry:last-child { padding-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -3.7rem;
    top: 0.4rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
    transition: all var(--t-fast);
}

.timeline-entry:hover .tl-dot {
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan);
}

.tl-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.tl-date {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: 0.8rem;
}

.tl-badge {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.badge--ds   { color: var(--cyan);   background: var(--cyan-dim);   border: 1px solid rgba(0,180,216,0.2); }
.badge--ai   { color: var(--purple); background: var(--purple-dim); border: 1px solid rgba(157,78,221,0.2); }
.badge--pe   { color: var(--teal);   background: var(--teal-dim);   border: 1px solid rgba(6,214,160,0.2); }

.tl-role {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--cyan);
    padding-left: 1.2rem;
}

.tl-company {
    font-size: 1.6rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.tl-company .location {
    color: var(--text-dim);
    font-size: 1.4rem;
}

.tl-bullets {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.tl-bullets li {
    color: var(--text-muted);
    font-size: 1.55rem;
    position: relative;
    padding-left: 1.8rem;
}

.tl-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 1.1rem;
}

.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-left: 1.5rem;
}

.tl-tag {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
}

/* ========================
   12. CERTIFICATIONS
   ======================== */
.certs-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 780px;
    margin: 0 auto;
}

.cert-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.8rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    transition: all var(--t-fast);
}

.cert-banner:hover {
    border-color: var(--teal);
    transform: translateX(6px);
    box-shadow: -4px 0 0 0 var(--teal);
}

.cert-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.cert-check {
    font-size: 2.4rem;
    color: var(--teal);
    flex-shrink: 0;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cert-name {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.cert-date {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-dim);
}

.cert-right { flex-shrink: 0; }

.cert-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--teal);
    border: 1px solid rgba(6,214,160,0.25);
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    transition: all var(--t-fast);
    white-space: nowrap;
}

.cert-link-btn:hover {
    background: var(--teal-dim);
    color: var(--teal);
}

/* ========================
   13. ACHIEVEMENTS
   ======================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.achievement-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all var(--t-med);
    position: relative;
    overflow: hidden;
}

.achievement-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 2px 2px 0 0;
}

.achievement-card:nth-child(1)::after { background: var(--amber); }
.achievement-card:nth-child(2)::after { background: var(--cyan); }
.achievement-card:nth-child(3)::after { background: var(--teal); }
.achievement-card:nth-child(4)::after { background: var(--purple); }

.achievement-card:hover { transform: translateY(-8px); }
.achievement-card:nth-child(1):hover { border-color: var(--amber); box-shadow: 0 12px 30px rgba(245,158,11,0.1); }
.achievement-card:nth-child(2):hover { border-color: var(--cyan);  box-shadow: 0 12px 30px var(--cyan-glow); }
.achievement-card:nth-child(3):hover { border-color: var(--teal);  box-shadow: 0 12px 30px rgba(6,214,160,0.1); }
.achievement-card:nth-child(4):hover { border-color: var(--purple);box-shadow: 0 12px 30px rgba(157,78,221,0.1); }

.ach-icon-ring {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    margin: 0 auto 2rem auto;
    transition: all var(--t-med);
}

.achievement-card:nth-child(1) .ach-icon-ring { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(245,158,11,0.2); }
.achievement-card:nth-child(2) .ach-icon-ring { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(0,180,216,0.2); }
.achievement-card:nth-child(3) .ach-icon-ring { background: var(--teal-dim);   color: var(--teal);   border: 1px solid rgba(6,214,160,0.2); }
.achievement-card:nth-child(4) .ach-icon-ring { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(157,78,221,0.2); }

.ach-card:hover .ach-icon-ring { transform: scale(1.1); }

.ach-big {
    font-family: var(--font-head);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.achievement-card:nth-child(1) .ach-big { color: var(--amber); }
.achievement-card:nth-child(2) .ach-big { color: var(--cyan); }
.achievement-card:nth-child(3) .ach-big { color: var(--teal); }
.achievement-card:nth-child(4) .ach-big { color: var(--purple); }

.ach-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.ach-desc {
    font-size: 1.35rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================
   14. EDUCATION — TIMELINE
   ======================== */
.edu-timeline {
    position: relative;
    padding-left: 5rem;
    max-width: 700px;
    margin: 0 auto;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 1.4rem;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cyan) 0%, var(--border) 100%);
}

.edu-entry {
    position: relative;
    padding-bottom: 4.5rem;
}

.edu-entry:last-child { padding-bottom: 0; }

.edu-dot {
    position: absolute;
    left: -3.7rem; top: 0.5rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.edu-entry:nth-child(2) .edu-dot { border-color: var(--text-muted); box-shadow: none; }
.edu-entry:nth-child(3) .edu-dot { border-color: var(--text-dim);   box-shadow: none; }

.edu-year {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: 0.6rem;
}

.edu-entry:nth-child(2) .edu-year { color: var(--text-muted); }
.edu-entry:nth-child(3) .edu-year { color: var(--text-dim); }

.edu-degree {
    font-size: 2rem;
    font-weight: 700;
    border-left: 3px solid var(--cyan);
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.edu-entry:nth-child(2) .edu-degree { border-color: var(--text-muted); }
.edu-entry:nth-child(3) .edu-degree { border-color: var(--text-dim); color: var(--text-muted); }

.edu-school {
    font-size: 1.55rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-left: 1.5rem;
}

.edu-tag {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
}

/* ========================
   15. CONTACT SECTION
   ======================== */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-statement h2 {
    font-size: clamp(2.8rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.contact-statement h2 span { color: var(--cyan); }

.contact-sub {
    font-size: 1.7rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-open {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--teal);
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail i {
    color: var(--cyan);
    font-size: 1.8rem;
    width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.contact-detail span,
.contact-detail a {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: color var(--t-fast);
}

.contact-detail a:hover { color: var(--cyan); }

.contact-divider {
    height: 1px;
    background: var(--border);
    margin: 3rem 0;
}

.contact-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ========================
   16. FOOTER
   ======================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-dim);
}

.footer-text span { color: var(--cyan); }

.footer-socials {
    display: flex;
    gap: 1.8rem;
}

.footer-socials a {
    color: var(--text-dim);
    font-size: 1.8rem;
    transition: all var(--t-fast);
}

.footer-socials a:hover {
    color: var(--cyan);
    transform: translateY(-2px);
}

/* ========================
   17. SCROLL REVEAL SYSTEM
   ======================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }

/* ========================
   18. RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    html { font-size: 57%; }
    .skills-grid      { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid{ grid-template-columns: repeat(2, 1fr); }
    .projects-grid    { grid-template-columns: 1fr; }
    .about-body       { grid-template-columns: 1fr; gap: 4rem; }
    .contact-inner    { grid-template-columns: 1fr; gap: 4rem; }

    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 4rem; }
    .hero-text  { flex: none; width: 100%; }
    .hero-photo { flex: none; }
    .hero-cta, .hero-socials { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .photo-frame { width: 220px; height: 310px; }
}

@media (max-width: 768px) {
    html { font-size: 52%; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--surface);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        gap: 3.5rem;
        transition: right var(--t-med);
        z-index: 999;
    }

    .nav-links.open { right: 0; }
    .hamburger { display: flex; }

    .skills-grid       { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid     { grid-template-columns: 1fr; }

    .cert-banner       { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .modal-inner       { padding: 3rem 2.5rem; }
    .modal-result-box  { flex-direction: column; }
    .contact-btns      { flex-direction: column; }
    .footer-inner      { flex-direction: column; text-align: center; }
    .footer-socials    { justify-content: center; }
}

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

/* Keyframe helpers */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
