/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    --accent: #06b6d4;     
    --accent-secondary: #3b82f6; 

    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #818cf8 100%);

    --border: rgba(255, 255, 255, 0.08); 
    --radius: 8px;   
    --radius-sm: 4px;

    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

::selection {
    background: rgba(99,102,241,0.3);
    color: var(--text-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2.5rem;
    background: rgba(10,10,15,0.75);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 2.5rem;
    background: rgba(10,10,15,0.92);
}

.logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active { display: block; opacity: 1; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%; left: -20%;
    width: 140%; height: 140%;
    background:
        radial-gradient(circle at 20% 50%, rgba(99,102,241,0.07) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(139,92,246,0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(236,72,153,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.hero-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1100px;
    width: 100%;
}

.hero-content {
    text-align: left;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 350px;
    height: 350px;
    border-radius: 10%;
    object-fit: cover;
    object-position: top;
    border: 3px solid rgba(99,102,241,0.3);
    box-shadow: 0 0 60px rgba(99,102,241,0.15);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-badge .dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.social-row {
    display: flex;
    gap: 0.875rem;
    justify-content: flex-start;
}

.social-row a {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.social-row a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(99,102,241,0.25);
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 2.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
    max-width: 600px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
}

.about-text p { margin-bottom: 1.25rem; }

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

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.15);
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SKILLS ===== */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(99,102,241,0.15);
    transform: translateY(-4px);
}

.skill-category h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.skill-category h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.skill-category .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    padding: 0.65rem 1.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
    font-weight: 500;
}

.skill-tag:hover {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.25);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ===== EXPERIENCE ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5rem; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2.5rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 14px; height: 14px;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    transform: translateX(-6px);
    transition: var(--transition);
}

.timeline-item:hover::before {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(99,102,241,0.4);
}

.timeline-date {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover::before { transform: scaleX(1); }

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.15);
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #16161f 0%, #1e1e2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img { transform: scale(1.05); }

.project-image .placeholder-icon { opacity: 0.3; font-size: 3rem; }

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

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

.project-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(99,102,241,0.08);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== CASE STUDY BUTTON ===== */
.case-study-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.25rem;
    font-family: inherit;
}

.case-study-btn:hover {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.25);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.case-study-btn i {
    font-size: 0.8rem;
}

/* ===== PROJECT LINKS ===== */
.project-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent);
    gap: 0.6rem;
}

.project-link.github {
    color: var(--text-secondary);
}

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

.project-link.github i {
    font-size: 1rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1.5rem;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

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

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h4 i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.modal-section p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0;
}

/* ===== ARCHITECTURE BLOCK ===== */
.architecture-block {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    overflow-x: auto;
}

.architecture-block pre {
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.72rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre;
}

/* ===== METRICS GRID ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
}

.metric-card {
    background: rgba(6,182,212,0.04);
    border: 1px solid rgba(6,182,212,0.1);
    border-radius: 10px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: var(--transition);
}

.metric-card:hover {
    background: rgba(6,182,212,0.08);
    border-color: rgba(6,182,212,0.2);
    transform: translateY(-3px);
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99,102,241,0.15);
    transform: translateX(4px);
}

.contact-link .icon-wrap {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(99,102,241,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-link .link-info {
    display: flex;
    flex-direction: column;
}

.contact-link .link-label {
    font-weight: 600;
    font-size: 0.92rem;
}

.contact-link .link-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover { color: var(--accent); }

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-wrap {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; }
    .social-row { justify-content: center; }
    .hero-photo img {
        width: 180px;
        height: 180px;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 1.25rem; }
    .navbar.scrolled { padding: 0.75rem 1.25rem; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.35s ease;
        border-left: 1px solid var(--border);
    }

    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .nav-toggle { display: block; z-index: 1001; }

    .hero { padding: 6rem 1.25rem 3rem; }
    .hero h1 { font-size: 2.1rem; }

    section { padding: 4rem 1.25rem; }

    .timeline { padding-left: 1.25rem; }
    .timeline-item { padding-left: 1.75rem; }
    .timeline-item::before { left: -1.25rem; }

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

    .modal-overlay {
        padding: 1rem;
    }
    .modal {
        max-height: 92vh;
        border-radius: 12px;
    }
    .modal-header {
        padding: 1.5rem 1.25rem 0;
    }
    .modal-header h3 {
        font-size: 1.15rem;
        padding-right: 2rem;
    }
    .modal-body {
        padding: 1.25rem;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
    .metric-card {
        padding: 1rem 0.5rem;
    }
    .metric-value {
        font-size: 1.1rem;
    }
    .architecture-block {
        padding: 0.875rem;
    }
    .architecture-block pre {
        font-size: 0.58rem;
    }
}