/* ── Google Fonts: DM Serif Display + DM Mono + DM Sans ───────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ── LIGHT MODE — warm parchment ──────────────────────────────── */
html[data-theme="light"] {
    --primary:        #c8410a;
    --primary-dark:   #a8340a;
    --primary-light:  #f5e8e2;
    --resume:         #2a2520;
    --resume-text:    #f5f1e8;
    --text:           #2a2520;
    --text-light:     #6b6258;
    --bg:             #f5f2ed;
    --bg-alt:         #edeae3;
    --border:         #e2ddd4;
    --border-dark:    #c8c0b4;
    --capsule-bg:     rgba(42, 37, 32, 0.85);
    --capsule-text:   #f5f1e8;
    --gold:           #b8860b;
}

/* ── DARK MODE — warm charcoal ────────────────────────────────── */
html[data-theme="dark"] {
    --primary:        #c8410a;
    --primary-dark:   #e85510;
    --primary-light:  rgba(200, 65, 10, 0.15);
    --resume:         #f0ece4;
    --resume-text:    #2a2520;
    --text:           #f0ece4;
    --text-light:     #c8bfb4;
    --bg:             #1c1814;
    --bg-alt:         #252018;
    --border:         #3a3028;
    --border-dark:    #4a3e32;
    --capsule-bg:     rgba(28, 24, 20, 0.85);
    --capsule-text:   #f0ece4;
    --gold:           #d4a017;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 110px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== FLOATING CAPSULE NAVIGATION ===== */
.capsule-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 1298px;
    transition: all 0.3s ease;
    background: transparent;
}

.capsule-container {
    background: rgba(42, 37, 32, 0.75);
    border: 1px solid rgba(245, 241, 232, 0.4);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(42, 37, 32, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
}

html[data-theme="dark"] .capsule-container {
    background: rgba(28, 24, 20, 0.8);
    border: 1px solid rgba(240, 236, 228, 0.15);
}

.nav-group {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}

.nav-left  { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-item {
    color: var(--capsule-text);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.3rem;
    border-radius: 60px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(245, 241, 232, 0.1);
    border: 1px solid rgba(245, 241, 232, 0.3);
}

.nav-item-highlight {
    background: var(--primary);
    color: #f5f1e8;
    font-weight: 600;
}

.nav-item-highlight:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.brand-circle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brand-circle:hover { transform: scale(1.1) rotate(5deg); }

.brand-initials {
    color: #f5f1e8;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.brand-name {
    color: var(--capsule-text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.theme-toggle-capsule {
    background: rgba(245, 241, 232, 0.1);
    border: 1px solid rgba(245, 241, 232, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.theme-toggle-capsule:hover {
    transform: scale(1.1) rotate(20deg);
    background: rgba(245, 241, 232, 0.2);
    border: 1px solid rgba(245, 241, 232, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #f5f1e8;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: var(--capsule-bg);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active { display: flex; opacity: 1; }

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    padding: 2rem;
}

.mobile-menu-item {
    color: var(--capsule-text);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.mobile-menu-item:hover {
    background: rgba(245, 241, 232, 0.1);
    transform: translateX(10px);
}

@media (max-width: 1200px) {
    .nav-item { font-size: 0.9rem; padding: 0.65rem 1.2rem; }
    .capsule-container { padding: 0.5rem 1.5rem; gap: 1rem; }
}

@media (max-width: 1024px) {
    .nav-group            { display: none; }
    .mobile-menu-btn      { display: flex; }
    .theme-toggle-capsule { order: 2; }
    .capsule-container    { justify-content: space-between; padding: 0.75rem 1.5rem; }
    .nav-brand            { order: 1; }
    .mobile-menu-btn      { order: 3; }
}

@media (max-width: 640px) {
    .capsule-nav { width: 92%; top: 15px; }
    .capsule-container { padding: 0.5rem 1rem; min-height: 60px; }
    .brand-circle { width: 35px; height: 35px; }
    .brand-initials { font-size: 0.9rem; }
    .brand-name { font-size: 0.75rem; }
    .theme-toggle-capsule, .mobile-menu-btn { width: 35px; height: 35px; font-size: 1rem; }
    body { padding-top: 100px; }
}

/* ===== HERO ===== */
#hero {
    padding: 8rem 0 6rem;
    text-align: center;
}

#hero h1 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    min-height: 4rem;
    letter-spacing: -0.5px;
}

.highlight { color: var(--primary); }
#typed-text { color: var(--text); }

#typed-text::after {
    content: '|';
    color: var(--primary);
    animation: blink 0.7s infinite;
    margin-left: 5px;
}

#typed-text span {
    font-family: 'DM Serif Display', serif !important;
}


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

.subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary { background: var(--primary); color: #f5f1e8; }
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 65, 10, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #f5f1e8; }

.btn-resume { background: var(--resume); color: var(--resume-text); border: none; }
.btn-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 37, 32, 0.2);
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
    transition: background-color 0.3s ease;
    border-radius: 50px;
}

html[data-theme="light"] #hero { background: #ffffff; }
html[data-theme="dark"]  #hero { background: var(--bg); }

#about           { background: var(--bg-alt); }
#experience      { background: var(--bg); }
#projects        { background: var(--bg-alt); }
#certifications  { background: var(--bg); }
#skills          { background: var(--bg-alt); }
#education       { background: var(--bg); }
#recommendations { background: var(--bg-alt); }
#contact         { background: var(--bg); }


h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
    letter-spacing: -0.3px;
}

#about p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 1000px;
    margin: 0 auto 1rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

/* ===== EXPERIENCE ===== */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 3rem auto;
    padding-left: 2rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--gold) 100%);
}

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

.timeline-marker {
    position: absolute;
    left: -0.625rem;
    top: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 4px var(--bg-alt);
    z-index: 1;
}

html[data-theme="dark"] .timeline-content {
    background: var(--bg-alt);
}


.timeline-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(42, 37, 32, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #e8620a 40%, #b8860b 100%);
}


.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(42, 37, 32, 0.12);
    border-color: var(--border-dark);
}

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

.timeline-content h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.company {
    font-family: 'DM Sans', sans-serif;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.date-badge {
    background: var(--bg-alt);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid var(--border);
}

.experience-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(184, 134, 11, 0.08);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.highlight-item { text-align: center; }

.metric {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-details {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.experience-details li {
    font-family: 'DM Sans', sans-serif;
    padding: 0.75rem 0 0.75rem 1.5rem;
    color: var(--text-light);
    position: relative;
    line-height: 1.6;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: left;
}

.experience-details li:before {
    content: "▹";
    position: absolute;
    left: -0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.tech-tag {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid rgba(200, 65, 10, 0.25);
    background: rgba(200, 65, 10, 0.08);
    color: var(--primary);
    cursor: default;
    transition: all 0.15s;
}

.tech-tag:hover {
    background: rgba(200, 65, 10, 0.15);
}

/* ===== RECOMMENDATIONS ===== */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

html[data-theme="dark"] .recommendation-card {
    background: var(--bg);
}

.recommendation-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(42, 37, 32, 0.05);
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #e8620a 40%, #b8860b 100%);
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(42, 37, 32, 0.1);
    border-color: var(--border-dark);
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    font-family: 'DM Serif Display', serif;
}

.recommendation-text {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    text-align: justify;
}

.recommender {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.recommender-info h4 {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.recommender-title {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.linkedin-link {
    font-family: 'DM Mono', monospace;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.linkedin-link:hover { color: var(--primary-dark); }

/* ===== ROLE TOGGLE ===== */
.role-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.role-toggle {
    position: relative;
    display: inline-flex;
    background: rgba(42, 37, 32, 0.75);
    border: 1px solid rgba(245, 241, 232, 0.4);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(42, 37, 32, 0.15);
}

html[data-theme="dark"] .role-toggle {
    background: rgba(28, 24, 20, 0.8);
    border: 1px solid rgba(240, 236, 228, 0.15);
}

.toggle-slider {
    position: absolute;
    top: 4px; left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--primary);
    border-radius: 50px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.toggle-slider.slide-right { transform: translateX(100%); }

.toggle-btn {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    padding: 0.6rem 1.75rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: rgba(245, 241, 232, 0.7);
    transition: color 0.25s ease;
    white-space: nowrap;
}

.toggle-btn.active { color: #f5f1e8; }

.role-hidden { display: none !important; }

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

.role-visible { animation: cardFadeIn 0.4s ease forwards; }
.role-visible:nth-child(1) { animation-delay: 0s; }
.role-visible:nth-child(2) { animation-delay: 0.08s; }
.role-visible:nth-child(3) { animation-delay: 0.16s; }

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1200px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PROJECT CARD ===== */
html[data-theme="light"] .project-card {
    --pc-bg:          #ffffff;
    --pc-bg-alt:      #f0ece4;
    --pc-border:      #e2ddd4;
    --pc-border-dark: #c8c0b4;
    --pc-text:        #2a2520;
    --pc-text-mid:    #6b6258;
    --pc-text-dim:    #9c9088;
    --pc-accent:      #c8410a;
    --pc-accent-bg:   #f5e8e2;
    --pc-green:       #1a6b3c;
    --pc-green-bg:    #e2f0e8;
    --pc-blue:        #1a4a7a;
    --pc-blue-bg:     #e2eaf5;
    --pc-shadow:      rgba(42,37,32,0.10);
}

html[data-theme="dark"] .project-card {
    --pc-bg:          #1c1814;
    --pc-bg-alt:      #252018;
    --pc-border:      #3a3028;
    --pc-border-dark: #4a3e32;
    --pc-text:        #f0ece4;
    --pc-text-mid:    #c8bfb4;
    --pc-text-dim:    #9c9088;
    --pc-accent:      #c8410a;
    --pc-accent-bg:   rgba(200,65,10,0.12);
    --pc-green:       #4ade80;
    --pc-green-bg:    rgba(74,222,128,0.10);
    --pc-blue:        #60a5fa;
    --pc-blue-bg:     rgba(96,165,250,0.10);
    --pc-shadow:      rgba(0,0,0,0.30);
}

.project-card {
    background: var(--pc-bg);
    border: 1px solid var(--pc-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: 'DM Sans', sans-serif;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--pc-shadow);
    border-color: var(--pc-border-dark);
}

.pc-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--pc-accent) 0%, #e8620a 40%, #b8860b 100%);
    flex-shrink: 0;
}

.pc-header {
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--pc-border);
}

.pc-domain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    color: var(--pc-text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.pc-domain-dot {
    width: 5px;
    height: 5px;
    background: var(--pc-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.pc-title {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--pc-text);
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.pc-title em {
    font-family: 'DM Serif Display', serif !important;
    font-style: italic;
    color: var(--pc-accent);
}

.pc-overview {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--pc-text-mid);
    line-height: 1.7;
    margin-bottom: 16px;
}

.pc-links { display: flex; flex-wrap: wrap; gap: 6px; }

.pc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--pc-text-mid);
    background: var(--pc-bg-alt);
    border: 1px solid var(--pc-border);
    border-radius: 6px;
    padding: 5px 11px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pc-link svg { width: 11px; height: 11px; flex-shrink: 0; }

.pc-link:hover {
    background: var(--pc-accent-bg);
    border-color: var(--pc-accent);
    color: var(--pc-accent);
    transform: translateY(-1px);
}

.pc-body {
    padding: 18px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    background: var(--pc-bg);
}

.pc-section {
    display: flex;
    gap: 12px;
    padding: 13px 14px;
    background: var(--pc-bg-alt);
    border: 1px solid var(--pc-border);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pc-section:hover {
    border-color: var(--pc-border-dark);
    box-shadow: 0 2px 10px var(--pc-shadow);
    transform: translateX(2px);
}

.pc-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.pc-icon-orange { background: var(--pc-accent-bg); }
.pc-icon-green  { background: var(--pc-green-bg); }
.pc-icon-blue   { background: var(--pc-blue-bg); }

.pc-section-content { flex: 1; min-width: 0; }

.pc-section-label {
    font-family: 'DM Mono', monospace !important;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.pc-label-orange { color: var(--pc-accent); }
.pc-label-green  { color: var(--pc-green); }
.pc-label-blue   { color: var(--pc-blue); }

.pc-section-text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--pc-text-mid);
    line-height: 1.65;
}

.pc-hl {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0 4px;
    border-radius: 3px;
}

.pc-hl-orange { color: var(--pc-accent); background: var(--pc-accent-bg); }
.pc-hl-green  { color: var(--pc-green);  background: var(--pc-green-bg); }
.pc-hl-blue   { color: var(--pc-blue);   background: var(--pc-blue-bg); }

.pc-stack {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--pc-border);
}

.pc-stack-label {
    font-family: 'DM Mono', monospace !important;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pc-text-dim);
    margin-bottom: 9px;
}

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

.pc-tag {
    font-family: 'DM Mono', monospace !important;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid var(--pc-border);
    background: var(--pc-bg);
    color: var(--pc-text-mid);
    transition: all 0.15s;
    cursor: default;
}

.pc-tag:hover {
    background: var(--pc-bg-alt);
    border-color: var(--pc-border-dark);
    color: var(--pc-text);
}

.pc-tag-primary {
    background: var(--pc-accent-bg);
    border-color: rgba(200,65,10,0.25);
    color: var(--pc-accent);
}

.pc-tag-primary:hover { background: rgba(200,65,10,0.18); }

/* ===== CERTIFICATIONS ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

html[data-theme="dark"] .certification-card {
    background: var(--bg-alt);
}

.certification-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #e8620a 40%, #b8860b 100%);
}

.certification-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(42, 37, 32, 0.1);
    border-color: var(--border-dark);
}

.cert-header h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.2rem;
}

.cert-issuer {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-light);
    font-size: 0.9rem;
}

.cert-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cert-date {
    font-family: 'DM Mono', monospace;
    color: var(--text-light);
    font-size: 0.8rem;
}

.cert-link,
.cert-link:link,
.cert-link:visited {
    color: var(--primary);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.cert-link:hover { color: var(--primary-dark); }


/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

html[data-theme="dark"] .skill-category {
    background: var(--bg);
}

.skill-category {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #e8620a 40%, #b8860b 100%);
}

.skill-category h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.skill-category ul { list-style: none; }

.skill-category li {
    font-family: 'DM Sans', sans-serif;
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    text-align: center;
    display: flex;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 400;
    align-items: center;
}

.skill-category li:last-child { border-bottom: none; }

/* ===== EDUCATION ===== */
#education .container { max-width: 1400px; }

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

html[data-theme="dark"] .education-card {
    background: var(--bg-alt);
}

.education-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #e8620a 40%, #b8860b 100%);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(42, 37, 32, 0.1);
    border-color: var(--border-dark);
}

.education-card h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.college-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.school {
    font-family: 'DM Sans', sans-serif;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.edu-details {
    font-family: 'DM Mono', monospace;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== CONTACT ===== */
#contact { text-align: center; }

#contact p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: #f5f1e8;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 65, 10, 0.3);
}

.location {
    font-family: 'DM Mono', monospace;
    color: var(--text-light);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
    background: #2a2520;
    color: #f5f1e8;
    text-align: center;
    padding: 2rem 0;
    font-family: 'DM Sans', sans-serif;
}

html[data-theme="dark"] footer {
    background: var(--bg-alt);
    color: var(--text);
    border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #hero h1  { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; }
    h2        { font-size: 2rem; }

    .projects-grid, .skills-grid { grid-template-columns: 1fr; }
    .recommendations-grid, .certifications-grid { grid-template-columns: 1fr; }

    .timeline      { padding-left: 1.5rem; }
    .timeline-item { padding-left: 1.5rem; }
    .timeline-content { padding: 1.5rem; }

    .experience-highlights { grid-template-columns: 1fr; }
    .metric { font-size: 1.5rem; }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn { width: 100%; }
    .education-grid { grid-template-columns: 1fr; }
}
