/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans Armenian', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(99,102,241,0.25), transparent 60%),
                radial-gradient(800px 500px at 80% 10%, rgba(124,58,237,0.25), transparent 60%),
                #0b1020;
    min-height: 100vh;
}

/* Light theme overrides */
.theme-light body {
    color: #1f2937;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(99,102,241,0.12), transparent 60%),
                radial-gradient(800px 500px at 80% 10%, rgba(124,58,237,0.12), transparent 60%),
                #f8fafc;
}

.theme-light .container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.theme-light .brand { color: #111827; }
.theme-light .lang-btn, .theme-light .icon-btn { background: rgba(241, 245, 249, 0.9); color: #3730a3; border-color: rgba(99, 102, 241, 0.35); }
.theme-light .lang-btn:hover, .theme-light .icon-btn:hover, .theme-light .dropdown-item:hover { background: rgba(99,102,241,0.12); color: #111827; }
.theme-light .lang-btn.active, .theme-light .icon-btn.active { color: #111827; }
.theme-light .site-header { background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.55)); border-bottom-color: rgba(15, 23, 42, 0.08); }
.theme-light .nav-link { color: #1f2937; }
.theme-light .nav-link.active::after, .theme-light .nav-link:hover::after { background: #4f46e5; box-shadow: 0 0 6px rgba(79,70,229,0.35); }
.theme-light .dropdown-menu { background: #ffffff; border-color: rgba(99, 102, 241, 0.25); box-shadow: 0 10px 25px rgba(2,6,23,0.08); }
.theme-light .dropdown-item { color: #1f2937; }
/* Light: backgroundless theme toggle */
.theme-light #theme-toggle { background: transparent; border: none; color: #1f2937; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.theme-light #theme-toggle:hover, .theme-light #theme-toggle.active { background: transparent; border: none; color: #111827; text-shadow: none; }

.theme-light .avatar-placeholder {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #111827;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

.theme-light .name { background: linear-gradient(135deg, #111827, #4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.theme-light .title { color: #4f46e5; }
.theme-light .subtitle { color: #475569; }

.theme-light .section-title { color: #111827; }
.theme-light .section-title::after { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 0 10px rgba(79, 70, 229, 0.35); }

.theme-light .mcp-hero { background: linear-gradient(180deg, rgba(99,102,241,0.06), rgba(255,255,255,0)); }
.theme-light .hero-eyebrow { background: rgba(99,102,241,0.12); color: #3730a3; }
.theme-light .hero-title { background: linear-gradient(135deg, #111827, #4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.theme-light .hero-subtitle { color: #334155; }

.theme-light .about-content p { color: #334155; }
.theme-light .fun-fact { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border-left-color: #6366f1; }
.theme-light .fun-fact-label { color: #4338ca; }

.theme-light .skill-card, .theme-light .experience-item, .theme-light .contact-info { background: white; border-color: rgba(15, 23, 42, 0.08); box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06); }
.theme-light .skill-card h3 { color: #111827; }
.theme-light .skill-card p { color: #1f2937; }
.theme-light .skill-card:hover { border-color: rgba(79, 70, 229, 0.25); box-shadow: 0 16px 36px rgba(2, 6, 23, 0.09); }
.theme-light .experience-date { color: #4338ca; }
.theme-light .experience-content h3 { color: #111827; }
.theme-light .company { color: #4f46e5; }
.theme-light .experience-content li { color: #334155; }
.theme-light .experience-content li::before { color: #4f46e5; }

.theme-light .contact-content > p { color: #334155; }
.theme-light .contact-item strong { color: #111827; }
.theme-light .contact-item span { color: #4338ca; }
.theme-light .disclaimer { background: #f1f5f9; border-color: rgba(15, 23, 42, 0.08); }
.theme-light .disclaimer p { color: #475569; }
.theme-light .footer { border-top-color: rgba(15, 23, 42, 0.08); }
.theme-light .footer p { color: #6b7280; }

.theme-light ::-webkit-scrollbar-track { background: #f8fafc; }
.theme-light ::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    margin-top: 24px;
    margin-bottom: 24px;
}

/* Global Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px) saturate(120%);
    background: linear-gradient(180deg, rgba(2,6,23,0.72), rgba(2,6,23,0.4));
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.6);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links .nav-link { font-size: 0.95rem; line-height: 1; letter-spacing: 0.2px; }

.nav-link {
    color: #c7d2fe;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

.nav-link {
    position: relative;
}
.nav-link.active::after, .nav-link:hover::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(129,140,248,0.5);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    padding: 8px 10px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: rgba(30, 41, 59, 0.6);
    color: #c7d2fe;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

/* Backgroundless theme toggle */
#theme-toggle {
    background: transparent;
    border: none;
    color: #c7d2fe;
    padding: 8px 6px;
    font-size: 22px; /* larger icon size */
    line-height: 1;
    width: 34px; /* equal width across themes */
    height: 34px; /* equal height for square button */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#theme-toggle:hover { color: #ffffff; text-shadow: 0 0 10px rgba(129,140,248,0.6); }

.lang-dropdown { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 8px; }
.lang-trigger::after { content: '▾'; font-size: 0.8em; }
.globe { display: inline-flex; align-items: center; }
.lang-label { font-weight: 700; }
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    min-width: 160px;
    padding: 6px;
    display: none;
}

/* Mobile dropdown positioning - align to left edge on small screens */
@media (max-width: 480px) {
    .dropdown-menu {
        right: auto;
        left: 0;
    }
}
.dropdown-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #e5e7eb;
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.dropdown-item:hover { background: rgba(99,102,241,0.18); }

.lang-btn, .icon-btn {
    padding: 8px 14px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: rgba(30, 41, 59, 0.6);
    color: #c7d2fe;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    font-family: 'Inter', 'Noto Sans Armenian', sans-serif;
    text-decoration: none;
}

.lang-btn:hover, .icon-btn:hover, .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(124,58,237,0.25));
    color: white;
    border-color: rgba(129, 140, 248, 0.6);
}

.lang-btn.active, .icon-btn.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(124,58,237,0.35));
    color: white;
    border-color: rgba(129, 140, 248, 0.85);
}

/* Ensure theme toggle stays backgroundless on hover/active */
#theme-toggle:hover, #theme-toggle.active {
    background: transparent;
    border: none;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 54px;
}

/* MCP hero */
.mcp-hero {
    text-align: left;
    background: none;
    border-radius: 0;
    padding: 0 24px;
}

/* Home hero distinct styling */
.intro { padding: 12px 24px 0; margin-bottom: 28px; }
.intro-inner { max-width: 1200px; margin: 0 auto; text-align: left; }
.intro-title { font-size: 2.4rem; font-weight: 900; line-height: 1.15; background: linear-gradient(135deg, #ffffff, #e5e7eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.intro-subkicker { color: #a78bfa; font-weight: 800; letter-spacing: 0.2px; margin-bottom: 6px; }
.intro-subtitle { color: #a5b4fc; margin-bottom: 12px; }
.intro-ctas { display: flex; gap: 10px; }
.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.intro-col {}
.intro-text {}
.intro-media {}

.media-frame { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.35); border: none; background: #000; }
.media-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #000; display: block; }

@media (max-width: 1000px) { .intro-inner { max-width: 900px; } }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

.theme-light .intro-title { background: linear-gradient(135deg, #111827, #4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.theme-light .intro-subkicker { color: #7c3aed; }
.theme-light .intro-subtitle { color: #475569; }

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero card styles similar to reference */
.hero-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 28px;
}

.hero-card--doc {
    background: transparent;
}

.theme-light .hero-card {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.theme-light .hero-card--doc {
    background: transparent;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(99,102,241,0.15);
    color: #c7d2fe;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e5e7eb, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.hero-ctas { display: flex; gap: 10px; }

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: radial-gradient(120px 50px at 50% 0%, rgba(129, 140, 248, 0.5), rgba(17, 24, 39, 0.6)),
                linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f8fafc;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.profile-info {
    text-align: left;
    max-width: 560px;
}

.name {
    font-size: 3rem;
    font-weight: 800;
    color: #e5e7eb;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e5e7eb, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.2rem;
    color: #a5b4fc;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    font-size: 1rem;
    color: #94a3b8;
    font-style: normal;
}

.cta-group {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.cta-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.cta-btn.primary {
    background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(124,58,237,0.35));
    color: #fff;
    border-color: rgba(129, 140, 248, 0.6);
}

.cta-btn.secondary {
    background: rgba(30, 41, 59, 0.6);
    color: #c7d2fe;
}

/* Sections */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #e5e7eb;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Docs subnav for MCP */
.doc-subnav {
    position: sticky;
    top: 60px;
    z-index: 20;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(148,163,184,0.15);
    background: rgba(2,6,23,0.6);
    backdrop-filter: blur(8px) saturate(120%);
    border-radius: 10px;
}

.subnav-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 10px 10px;
    border-radius: 8px;
    position: relative;
    font-size: 0.9rem;
}
.subnav-link:hover { color: #ffffff; }
.subnav-link::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s ease;
}
.subnav-link:hover::after, .subnav-link.active::after {
    background: linear-gradient(90deg, #818cf8, #a78bfa);
}

.theme-light .doc-subnav { border-bottom-color: rgba(15,23,42,0.08); background: rgba(255,255,255,0.85); backdrop-filter: blur(8px) saturate(120%); }
.theme-light .subnav-link { color: #334155; }
.theme-light .subnav-link:hover { color: #111827; }
.theme-light .subnav-link:hover::after, .theme-light .subnav-link.active::after { background: #4f46e5; }

.about-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 18px;
    color: #cbd5e1;
}

/* Style lists inside about-content (e.g., Security section) */
.about-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px 0;
}

.about-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: #cbd5e1;
    line-height: 1.6;
}

.about-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #818cf8;
    font-weight: bold;
}

.theme-light .about-content li { color: #374151; }
.theme-light .about-content li::before { color: #4f46e5; }

.fun-fact {
    background: linear-gradient(135deg, rgba(30,41,59,0.8), rgba(17,24,39,0.8));
    padding: 22px;
    border-radius: 12px;
    border-left: 4px solid #818cf8;
    margin-top: 26px;
}

.fun-fact-label {
    font-weight: 800;
    color: #c7d2fe;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-card {
    background: rgba(15, 23, 42, 0.7);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(129, 140, 248, 0.35);
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e5e7eb;
    margin-bottom: 10px;
}

.skill-card p {
    color: #cbd5e1;
    line-height: 1.7;
}

/* Experience Timeline */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-left: 4px solid #818cf8;
}

/* API endpoints visual card style */
.api-endpoints .experience-item {
    background: rgba(2,6,23,0.6);
    border: 1px solid rgba(148,163,184,0.18);
    border-left: 0;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.api-endpoints .experience-date {
    width: 220px;
    color: #a78bfa;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.api-endpoints .experience-content h3 {
    font-size: 1.6rem;
}
.api-endpoints .company {
    color: #a5b4fc;
    font-weight: 700;
}
.api-endpoints .experience-content li {
    color: #cbd5e1;
}

.theme-light .api-endpoints .experience-item { background: #ffffff; border-color: rgba(15,23,42,0.08); box-shadow: 0 12px 30px rgba(2,6,23,0.08); }
.theme-light .api-endpoints .experience-date { color: #4f46e5; font-weight: 800; }
.theme-light .api-endpoints .company { color: #1f2937; font-weight: 700; }
.theme-light .api-endpoints .experience-content li { color: #374151; }

.experience-date {
    flex-shrink: 0;
    width: 110px;
    font-weight: 800;
    color: #c7d2fe;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.experience-content {
    flex: 1;
}

.experience-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.company {
    color: #a5b4fc;
    font-weight: 600;
    margin-bottom: 12px;
}

.experience-content ul {
    list-style: none;
    padding-left: 0;
}

.experience-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: #cbd5e1;
    line-height: 1.6;
}

.experience-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #818cf8;
    font-weight: bold;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content > p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 26px;
}

.contact-info {
    background: rgba(15, 23, 42, 0.7);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 18px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Remove hover styles for contact items */
.contact-item:hover { background: transparent; }

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: #e5e7eb;
    font-weight: 700;
}

.contact-item span {
    color: #c7d2fe;
    font-weight: 600;
}

.disclaimer {
    background: rgba(30, 41, 59, 0.6);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.disclaimer p {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

/* Footer */
.footer {
    text-align: left;
    padding: 8px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    margin-top: 24px;
    /* Extend to container edges by offsetting container padding */
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    /* Pull down into container bottom padding so line sits at edge */
    margin-bottom: -24px;
}

.footer p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1;
    margin: 0;
    white-space: normal;
}

.footer p a {
    color: #c7d2fe;
    text-decoration: none;
    border-bottom: 1px dashed rgba(129, 140, 248, 0.6);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer p a:hover {
    color: #ffffff;
    border-bottom-color: rgba(129, 140, 248, 0.9);
}

.theme-light .footer p a {
    color: #1e3a8a; /* darker blue for contrast */
    border-bottom-color: rgba(30, 64, 175, 0.5);
}
.theme-light .footer p a:hover {
    color: #111827;
    border-bottom-color: rgba(30, 64, 175, 0.9);
}

.footer p + p { margin-top: 0; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 15px;
    }
    /* Keep header layout stable above 480px */
    .nav { gap: 8px; padding: 10px 15px; }
    .nav-controls { gap: 8px; }
    .footer {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: -15px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .experience-date {
        width: auto;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    .nav-link {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    .nav-controls { justify-content: flex-end; gap: 6px; }
    .nav { flex-wrap: wrap; }
    .nav {
        gap: 6px;
        padding: 10px 12px;
    }
    .brand {
        font-size: 0.95rem;
    }
    #theme-toggle { width: 32px; height: 32px; font-size: 20px; }
    /* Keep nav children intrinsic width; allow wrapping without forcing full width */
    .nav-links { flex-wrap: wrap; row-gap: 6px; }
    .footer p {
        white-space: normal;
        line-height: 1.3;
    }
    .footer p a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
}

/* Fine-tune header below ~475px to prevent awkward wrap */
@media (max-width: 475px) {
    /* Consolidated into 480px breakpoint to reduce breakpoints */
}

/* Armenian Typography Enhancements */
[lang="hy"] {
    font-family: 'Noto Sans Armenian', 'Inter', sans-serif;
}

[lang="hy"] .name {
    font-family: 'Noto Sans Armenian', sans-serif;
}

/* Animation for language switching */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Hover effects */
.skill-card, .experience-item {
    transition: all 0.3s ease;
}

.skill-card:hover, .experience-item:hover {
    transform: translateY(-2px);
}

/* Custom scrollbar removed to use system defaults */
