:root {
    --bg: #f6f7f2;
    --surface: #ffffff;
    --ink: #1f2230;
    --muted: #5e667a;
    --primary: #0f5bd8;
    --accent: #ff6b35;
    --line: #dbe0ef;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

body.dark-mode {
    --bg: #0b1120;
    --surface: #141f3a;
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --primary: #3b82f6;
    --accent: #f97316;
    --line: #1e293b;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.dark-mode .bg-shape-1 { background: #1e3a5f; opacity: 0.25; }
body.dark-mode .bg-shape-2 { background: #5a3a2a; opacity: 0.2; }
body.dark-mode .site-header { background: rgba(11,17,32,0.85); border-bottom-color: rgba(226,232,240,0.05); }
body.dark-mode .section { background: rgba(20,31,58,0.5); border-color: rgba(226,232,240,0.06); }
body.dark-mode .btn-secondary { color: #93c5fd; background: rgba(59,130,246,0.07); border-color: rgba(59,130,246,0.18); }
body.dark-mode .btn-secondary:hover { background: rgba(59,130,246,0.14); }
body.dark-mode .project-card { background: rgba(20,31,58,0.55); border-color: rgba(226,232,240,0.06); }
body.dark-mode .project-card:hover { border-color: rgba(59,130,246,0.18); }
body.dark-mode .contact-item { background: rgba(20,31,58,0.55); border-color: rgba(226,232,240,0.06); }
body.dark-mode .contact-item:hover { border-color: rgba(59,130,246,0.2); }
body.dark-mode .project-img-fallback { background: rgba(20,31,58,0.6); color: var(--muted); }
body.dark-mode .about-quote { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.12); }
body.dark-mode .header-link { color: var(--muted); }
body.dark-mode .header-link:hover { color: var(--ink); }
body.dark-mode .focus-item { background: rgba(20,31,58,0.55); border-color: rgba(226,232,240,0.06); }
body.dark-mode .focus-item:hover { border-color: rgba(59,130,246,0.18); }
body.dark-mode .focus-icon { background: rgba(59,130,246,0.1); color: var(--primary); }
body.dark-mode .focus-card { background: rgba(20,31,58,0.55); border-color: rgba(226,232,240,0.06); }
body.dark-mode .focus-card:hover { border-color: rgba(59,130,246,0.18); }
body.dark-mode .focus-card-icon { background: rgba(59,130,246,0.1); color: var(--primary); }
body.dark-mode .method-step { background: rgba(20,31,58,0.55); border-color: rgba(226,232,240,0.06); }
body.dark-mode .method-num { background: rgba(59,130,246,0.1); color: var(--primary); }
body.dark-mode .cs-badge { background: rgba(59,130,246,0.1); color: #93c5fd; }
body.dark-mode .stat { color: var(--muted); }

#theme-toggle { background: none; border: none; font-size: 1.15rem; cursor: pointer; color: var(--muted); padding: 6px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: color 0.2s; }
#theme-toggle:hover { color: var(--ink); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .logo, .btn { font-family: var(--font-display); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.icon { width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }

.bg-shape { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.10; }
.bg-shape-1 { width: 400px; height: 400px; background: #8eb6ff; top: 2%; left: -140px; }
.bg-shape-2 { width: 380px; height: 380px; background: #ffc4ad; right: -160px; top: 20%; }
@keyframes drift { 0%,100%{ transform: translate(0,0); } 33%{ transform: translate(40px,-30px); } 66%{ transform: translate(-20px,40px); } }
@keyframes drift2 { 0%,100%{ transform: translate(0,0); } 33%{ transform: translate(-30px,20px); } 66%{ transform: translate(30px,-40px); } }
.bg-shape-1 { animation: drift 28s ease-in-out infinite; }
.bg-shape-2 { animation: drift2 24s ease-in-out infinite; }

.site-header {
    position: sticky; top: 0; z-index: 40;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px clamp(20px, 4vw, 48px);
    background: rgba(246,247,242,0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.logo { text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-radius: 999px; padding: 7px 13px; }
.main-nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.88rem; transition: color 0.2s; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-link { color: var(--muted); font-size: 1.1rem; transition: color 0.2s; text-decoration: none; }
.header-link:hover { color: var(--ink); }
.container { width: min(1120px, 92vw); margin: 0 auto; }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 80px 24px 40px;
    text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-title { font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.06; margin: 0 0 12px; letter-spacing: -0.025em; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.hero-desc { color: var(--muted); margin: 0 auto 28px; font-size: 0.95rem; letter-spacing: 0.03em; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-stats {
    display: flex; gap: 20px; justify-content: center; margin-top: 24px; flex-wrap: wrap;
}
.stat { display: flex; align-items: center; gap: 5px; }
.stat-num { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

.hero-info { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: -12px 0 18px; font-size: 0.85rem; color: var(--muted); }
.hero-info span { display: inline-flex; align-items: center; gap: 5px; }

/* BUTTONS */
.btn {
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--radius-sm); padding: 11px 22px; font-weight: 600;
    border: 1px solid transparent; transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.93rem; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 4px 14px rgba(15,91,216,0.15); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(15,91,216,0.25); }
.btn-secondary { color: var(--primary); background: #edf3ff; border-color: #c8dbff; }
.btn-sm { padding: 8px 16px; font-size: 0.83rem; }

/* SECTION */
.section-eyebrow { margin: 0 0 4px; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); }
.section { margin-top: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.section-title-lg { margin: 0 0 6px; font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.02em; }
.section-subtitle { margin: 6px 0 16px; font-size: 0.95rem; color: var(--muted); max-width: 600px; line-height: 1.5; }

/* ENGINEERING FOCUS */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.focus-grid-center { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.focus-grid-center .focus-item { width: calc((100% - 24px) / 3); flex-shrink: 0; }
.focus-item {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 28px 22px;
    border: 1px solid var(--line); border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.focus-item:hover { border-color: #c8d4ef; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.focus-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px;
    background: #e7f0ff; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
}
.focus-item > div { flex: none; }
.focus-item h3 { margin: 0 0 4px; font-size: 0.95rem; }
.focus-item p { margin: 0; font-size: 0.83rem; color: var(--muted); line-height: 1.45; max-width: 28ch; }

.focus-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.focus-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px 22px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.25s ease, border-color 0.25s; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.focus-card:hover { transform: translateY(-2px); border-color: #c8d4ef; }
.focus-card-icon { width: 38px; height: 38px; border-radius: 9px; background: #e7f0ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.focus-card h3 { margin: 0; font-size: 0.95rem; }
.focus-card p { margin: 0; font-size: 0.83rem; color: var(--muted); line-height: 1.45; }

/* PROJECTS */
.projects-list { display: grid; gap: 16px; margin-top: 16px; }

.project-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.25s;
}
.project-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); border-color: #c8d4ef; }
.project-visual {
    position: relative; overflow: hidden; background: #eef2f7;
    width: 100%; aspect-ratio: 20 / 9;
    display: flex; align-items: center; justify-content: center;
}
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.project-visual video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    z-index: 2;
    transition: transform 0.4s ease;
}
.project-card:hover .project-visual img, .project-card:hover .project-visual video { transform: scale(1.05); }
.project-img-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 2.6rem; color: var(--muted); opacity: 0.2;
}
.project-info { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; }
.project-info h3 { margin: 0 0 6px; font-size: 1.15rem; border-left: 3px solid var(--primary); padding-left: 12px; }
.project-info > p { margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); line-height: 1.5; flex: 1; }
.project-info p strong { color: var(--primary); font-weight: 700; }
.project-context {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--primary); margin-bottom: 6px;
    opacity: 0.8;
}

/* BADGE (reused in DevOS footer) */
.cs-badge {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 3px 12px; border-radius: 999px;
    background: #eef4ff; color: var(--primary);
}

/* METHOD */
.method-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.method-step {
    border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 20px 16px; text-align: center;
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex; flex-direction: column; align-items: center;
}
.method-step:hover { transform: translateY(-3px); }
.method-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
    background: #e7f0ff; color: var(--primary);
    margin-bottom: 10px;
}
.method-step h3 { margin: 0 0 6px; font-size: 1rem; }
.method-step p { margin: 0; font-size: 0.83rem; color: var(--muted); line-height: 1.45; }

/* ABOUT */
.about-content { max-width: 72ch; }
.about-content p { margin: 0 0 14px; font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.about-content p:last-of-type { margin-bottom: 0; }
.about-quote {
    margin-top: 20px; padding: 18px 22px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #f0f6ff; font-weight: 600; font-style: italic;
    color: var(--ink); font-size: 1rem;
}
.about-techs { margin: 14px 0 0 !important; font-size: 0.88rem; color: var(--muted); }
.about-techs strong { color: var(--ink); font-weight: 600; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.contact-item {
    text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-weight: 600; font-size: 0.85rem; background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.25s;
}
.contact-item i { font-size: 1.3rem; color: var(--primary); }
.contact-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); border-color: #c8d4ef; }

/* FOOTER */
.site-footer { text-align: center; padding: 48px 18px 52px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.footer-tagline { margin: 0 0 14px; font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-dot { color: var(--muted); opacity: 0.4; font-size: 0.8rem; }
.footer-copy { margin: 0; font-size: 0.72rem; color: var(--muted); opacity: 0.5; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }



/* MODAL */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 20px; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--surface); border-radius: var(--radius-lg); max-width: 740px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 36px 40px; position: relative; transform: translateY(24px) scale(0.97); transition: transform 0.3s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close { position: sticky; top: 0; float: right; z-index: 1; background: none; border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 1.1rem; transition: color 0.2s, background 0.2s; }
.modal-close:hover { color: var(--ink); background: var(--line); }
.modal-box h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 4px; }
.modal-box .modal-eyebrow { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); margin: 0 0 2px; }
.modal-box .modal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 20px; font-size: 0.78rem; color: var(--muted); }
.modal-box .modal-meta span { display: inline-flex; align-items: center; gap: 4px; }
.modal-visual { width: 100%; border-radius: var(--radius-md); overflow: hidden; margin: 0 0 24px; background: #101520; }
.modal-visual img, .modal-visual video { width: 100%; display: block; }
.modal-section { margin-bottom: 20px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section h3 { font-size: 0.85rem; margin: 0 0 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--primary); }
.modal-section h3::before { content: ''; display: inline-block; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }
.modal-section p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.modal-section ul { margin: 6px 0 0; padding: 0 0 0 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.modal-tags .cs-badge { font-size: 0.68rem; padding: 2px 10px; }
body.dark-mode .modal-box { background: #141f3a; }
body.dark-mode .modal-close { border-color: rgba(226,232,240,0.1); }
body.dark-mode .modal-close:hover { background: rgba(226,232,240,0.08); }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) {
    .modal-box { padding: 24px 20px; }
    .modal-visual { border-radius: var(--radius-sm); }
    .modal-section p { font-size: 0.85rem; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .focus-grid { grid-template-columns: 1fr; }
    .focus-grid-center { flex-direction: column; align-items: stretch; }
    .focus-grid-center .focus-item { width: 100%; }
    .focus-cards { grid-template-columns: 1fr; }
    .method-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .contact-grid { grid-template-columns: 1fr; }
    .method-steps { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .hero-info { gap: 12px; font-size: 0.8rem; flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
    .section { padding: 16px; }
    .site-header { gap: 6px; padding: 10px 12px; }
    .main-nav { gap: 12px; overflow-x: auto; }
    .main-nav a { font-size: 0.78rem; white-space: nowrap; padding: 8px 6px; }
    .logo { font-size: 0.78rem; padding: 6px 10px; }
    .hero { padding: 60px 16px 36px; min-height: auto; }
    .hero-title { font-size: 2.2rem; }
    .hero-sub { font-size: 1.1rem; }
    .project-info { padding: 14px; }
    .project-info h3 { font-size: 1.05rem; }
    .header-actions { gap: 8px; }
    .focus-grid { gap: 8px; }
    .focus-item { padding: 14px; }
    .btn-sm { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .project-card:hover, .contact-item:hover, .method-step:hover { transform: none !important; }
    .project-card:hover .project-visual img { transform: none; }
    .project-card:hover .project-visual video { transform: none; }
    .bg-shape-1, .bg-shape-2 { animation: none; }
}

@media (max-width: 380px) {
    .main-nav { gap: 8px; }
    .main-nav a { font-size: 0.72rem; }
    .hero-title { font-size: 1.9rem; }
    .hero-sub { font-size: 1rem; }
    .hero-desc { font-size: 0.85rem; }
}

/* ============ NEW FEATURE STYLES ============ */

/* LANGUAGE SWITCHER */
.lang-switcher {
    display: flex; align-items: center; gap: 3px;
    background: var(--line); border-radius: 10px; padding: 3px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.lang-btn {
    background: none; border: none;
    padding: 5px 11px; font-size: 0.76rem;
    font-weight: 700; cursor: pointer; border-radius: 7px;
    color: var(--muted); font-family: var(--font-display);
    letter-spacing: 0.04em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.lang-btn.lang-active {
    background: var(--primary); color: #fff;
    box-shadow: 0 2px 8px rgba(15,91,216,0.2);
}
.lang-btn:hover:not(.lang-active) {
    color: var(--ink);
    background: rgba(15,91,216,0.06);
}
body.dark-mode .lang-switcher {
    background: rgba(226,232,240,0.08);
    box-shadow: none;
}
body.dark-mode .lang-btn.lang-active {
    background: var(--primary); color: #fff;
    box-shadow: 0 2px 10px rgba(59,130,246,0.25);
}
body.dark-mode .lang-btn:hover:not(.lang-active) {
    background: rgba(59,130,246,0.12);
    color: #e2e8f0;
}

/* CV BUTTON - HEADER */
.cv-btn-header { text-decoration: none; padding: 6px 12px; font-size: 0.78rem; }
.cv-btn-header .icon { font-size: 0.85rem; }

/* HERO ACCENT BUTTON */
.btn-accent { color: #fff; background: var(--accent); box-shadow: 0 4px 14px rgba(255,107,53,0.2); }
.btn-accent:hover { box-shadow: 0 6px 20px rgba(255,107,53,0.3); transform: translateY(-1px); }

/* SKILLS / TECH STACK */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.skill-category { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color 0.2s; }
.skill-category:hover { border-color: #c8d4ef; }
.skill-cat-title { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; margin: 0 0 12px; color: var(--ink); }
.skill-cat-title .icon { color: var(--primary); font-size: 1.1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-badge { font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #eef4ff; color: var(--primary); transition: all 0.2s; letter-spacing: 0.02em; }
.skill-badge:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
body.dark-mode .skill-badge { background: rgba(59,130,246,0.1); color: #93c5fd; }
body.dark-mode .skill-badge:hover { background: var(--primary); color: #fff; }
body.dark-mode .skill-category { background: rgba(20,31,58,0.55); border-color: rgba(226,232,240,0.06); }
body.dark-mode .skill-category:hover { border-color: rgba(59,130,246,0.18); }

/* PROJECT FILTERS */
.project-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.filter-btn {
    background: transparent; border: 1px solid var(--line);
    padding: 7px 18px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; border-radius: 999px;
    color: var(--muted); font-family: var(--font-display);
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn:hover {
    color: var(--ink);
    border-color: var(--muted);
    background: rgba(15,91,216,0.04);
}
.filter-btn.filter-active {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(15,91,216,0.2);
}
body.dark-mode .filter-btn {
    border-color: rgba(226,232,240,0.1);
}
body.dark-mode .filter-btn:hover {
    border-color: rgba(226,232,240,0.25);
    background: rgba(59,130,246,0.08);
    color: #e2e8f0;
}
body.dark-mode .filter-btn.filter-active {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 14px rgba(59,130,246,0.25);
}

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.testimonial-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; transition: transform 0.25s ease, border-color 0.25s; }
.testimonial-card:hover { transform: translateY(-2px); border-color: #c8d4ef; }
.testimonial-stars { display: flex; gap: 2px; color: #f6ad55; font-size: 0.85rem; }
.testimonial-text { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.6; flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.testimonial-author div { display: flex; flex-direction: column; }
.testimonial-author strong { font-size: 0.82rem; color: var(--ink); }
.testimonial-author span { font-size: 0.72rem; color: var(--muted); }
body.dark-mode .testimonial-card { background: rgba(20,31,58,0.55); border-color: rgba(226,232,240,0.06); }
body.dark-mode .testimonial-card:hover { border-color: rgba(59,130,246,0.18); }

/* CV FOOTER LINK */
.cv-footer-link { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.cv-footer-link:hover { color: var(--primary); }

/* RESPONSIVE: SKILLS & TESTIMONIALS */
@media (max-width: 800px) {
    .skills-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .cv-btn-header .cv-label { display: none; }
}
@media (max-width: 600px) {
    .testimonials-grid { gap: 10px; }
    .testimonial-card { padding: 16px; }
    .project-filters { gap: 6px; padding-bottom: 10px; }
    .filter-btn { font-size: 0.74rem; padding: 6px 14px; }
    .lang-btn { padding: 4px 9px; font-size: 0.72rem; }
}
