/* ════════════════════════════════════════════════
   cv.css — Mohamed Nor Ahmed Adam CV Page Styles
   ════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   CSS Custom Properties (Tokens)
────────────────────────────────────────────── */
:root {
    --primary:       #2563eb;
    --primary-dk:    #1d4ed8;
    --primary-lt:    #dbeafe;
    --accent:        #0ea5e9;

    --bg-page:       #f0f4f8;
    --bg-card:       #ffffff;
    --bg-nav:        rgba(255,255,255,0.92);

    --text-head:     #0f172a;
    --text-body:     #334155;
    --text-muted:    #64748b;
    --text-light:    #94a3b8;

    --border:        #e2e8f0;
    --shadow-card:   0 4px 6px -1px rgba(0,0,0,.06), 0 20px 60px -10px rgba(0,0,0,.1);
    --shadow-btn:    0 4px 14px rgba(37,99,235,.35);
    --radius-card:   18px;
    --radius-sm:     8px;
    --radius-full:   9999px;

    --font-head:     'Playfair Display', Georgia, serif;
    --font-ui:       'Outfit', sans-serif;
    --font-body:     'Inter', sans-serif;

    --ticker-h:      38px;
    --nav-h:         70px;

    --tr:            all 0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
    --bg-page:       #0f172a;
    --bg-card:       #1e293b;
    --bg-nav:        rgba(15,23,42,0.95);
    --text-head:     #f8fafc;
    --text-body:     #cbd5e1;
    --text-muted:    #94a3b8;
    --text-light:    #64748b;
    --border:        #334155;
    --primary-lt:    rgba(37,99,235,0.15);
    --shadow-card:   0 4px 6px -1px rgba(0,0,0,.3), 0 20px 60px -10px rgba(0,0,0,.4);
}

/* ──────────────────────────────────────────────
   Reset & Base
────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ticker-h) + var(--nav-h)); }

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* ──────────────────────────────────────────────
   ANNOUNCEMENT TICKER
────────────────────────────────────────────── */
.ticker-wrap {
    height: var(--ticker-h);
    background: var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

.ticker-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ticker 28s linear infinite;
    align-items: center;
}

.ticker-track span {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    text-transform: uppercase;
}

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ──────────────────────────────────────────────
   NAVBAR
────────────────────────────────────────────── */
.cv-header {
    position: fixed;
    top: var(--ticker-h);
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--tr);
}

.cv-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cv-logo {
    font-family: var(--font-ui);
    font-size: 1.3rem;
    font-weight: 800;
    color: linear-gradient(135deg, #00c6ff, #0072ff);
    white-space: nowrap;
}
.cv-logo span { color: linear-gradient(135deg, #00c6ff, #0072ff); }

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

.cv-nav-links a {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
}
.cv-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--tr);
}
.cv-nav-links a:hover { color: var(--primary); }
.cv-nav-links a:hover::after { width: 100%; }

.cv-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cv-icon-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: var(--tr);
}
.cv-icon-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-lt); }

.cv-theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: var(--tr);
}
.cv-theme-toggle:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-lt); }

.cv-cta-btn {
    padding: 0.55rem 1.4rem;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-btn);
    transition: var(--tr);
    white-space: nowrap;
}
.cv-cta-btn:hover { background: var(--primary-dk); transform: translateY(-1px); }

.cv-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.cv-hamburger span {
    display: block;
    width: 22px; height: 2.5px;
    background: var(--text-head);
    border-radius: 2px;
    transition: var(--tr);
}

/* Mobile Nav */
.cv-mobile-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.cv-mobile-nav.open { display: block; }
.cv-mobile-nav ul { display: flex; flex-direction: column; gap: 1rem; }
.cv-mobile-nav a {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
}
.cv-mobile-nav a:hover { color: var(--primary); }

/* ──────────────────────────────────────────────
   MAIN LAYOUT
────────────────────────────────────────────── */
.cv-main {
    padding-top: calc(var(--ticker-h) + var(--nav-h) + 2.5rem);
    padding-bottom: 4rem;
    max-width: 960px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ──────────────────────────────────────────────
   PAGE CONTROLS (Back / Download)
────────────────────────────────────────────── */
.cv-page-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cv-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    transition: var(--tr);
}
.cv-back-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-lt); }

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    padding: 0.6rem 1.4rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    transition: var(--tr);
}
.cv-download-btn:hover { background: var(--primary-dk); transform: translateY(-2px); }

/* ──────────────────────────────────────────────
   CV CARD
────────────────────────────────────────────── */
.cv-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 3rem 3.5rem;
    border: 1px solid var(--border);
    animation: fadeUp 0.6s ease both;
}

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

/* ──────────────────────────────────────────────
   PROFILE HEADER
────────────────────────────────────────────── */
.cv-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.cv-profile-info { flex: 1; }

.cv-name {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-head);
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}

.cv-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}
.cv-title .sep { color: var(--text-light); margin: 0 0.3rem; }

.cv-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    align-items: center;
}

.cv-contact-row span,
.cv-contact-row a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}
.cv-contact-row a:hover { color: var(--primary); }
.cv-contact-row i { font-size: 0.8rem; color: var(--primary); }

/* Profile Photo */
.cv-profile-photo-wrap { flex-shrink: 0; }

.cv-profile-photo {
    width: 110px; height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 5px var(--primary-lt);
}
.cv-profile-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ──────────────────────────────────────────────
   DIVIDER
────────────────────────────────────────────── */
.cv-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 2rem 0;
}

/* ──────────────────────────────────────────────
   SECTION BASE
────────────────────────────────────────────── */
.cv-section {
    animation: fadeUp 0.5s ease both;
}

.cv-section-title {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-head);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cv-sec-icon {
    color: var(--primary);
    font-size: 0.95rem;
    background: var(--primary-lt);
    padding: 6px;
    border-radius: var(--radius-sm);
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}

/* ──────────────────────────────────────────────
   PROFESSIONAL SUMMARY
────────────────────────────────────────────── */
.cv-summary-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-body);
    border-left: 3px solid var(--primary);
    padding-left: 1.1rem;
    font-style: italic;
}

/* ──────────────────────────────────────────────
   SKILLS
────────────────────────────────────────────── */
.cv-skills-groups { display: flex; flex-direction: column; gap: 1.1rem; }

.cv-skill-group-title {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.cv-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.badge {
    padding: 0.28rem 0.8rem;
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-teal   { background: #ccfbf1; color: #0f766e; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-gray   { background: #f1f5f9; color: #475569; }

[data-theme="dark"] .badge-blue   { background: rgba(37,99,235,0.2); color: #93c5fd; }
[data-theme="dark"] .badge-teal   { background: rgba(14,165,233,0.2); color: #67e8f9; }
[data-theme="dark"] .badge-purple { background: rgba(139,92,246,0.2); color: #c4b5fd; }
[data-theme="dark"] .badge-green  { background: rgba(16,185,129,0.2); color: #6ee7b7; }
[data-theme="dark"] .badge-gray   { background: rgba(100,116,139,0.2); color: #94a3b8; }

/* ──────────────────────────────────────────────
   TIMELINE (Experience & Education)
────────────────────────────────────────────── */
.cv-timeline {
    position: relative;
    padding-left: 1.8rem;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--border));
    border-radius: 2px;
}

.cv-timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.cv-timeline-item:last-child { margin-bottom: 0; }

.cv-timeline-marker {
    position: absolute;
    left: -1.8rem;
    top: 6px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 1;
}

.cv-marker-edu { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.cv-timeline-body {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
    transition: var(--tr);
}
.cv-timeline-body:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
}

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

.cv-job-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-head);
    margin-bottom: 0.2rem;
}

.cv-org {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}
.cv-location-tag {
    color: var(--text-muted);
    font-weight: 400;
}

.cv-date-badge {
    padding: 0.25rem 0.75rem;
    background: var(--primary-lt);
    color: var(--primary);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.cv-list {
    list-style: none;
    padding: 0;
}
.cv-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 0.4rem;
    line-height: 1.6;
}
.cv-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
}

/* ──────────────────────────────────────────────
   CERTIFICATIONS
────────────────────────────────────────────── */
.cv-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.cv-cert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    transition: var(--tr);
}
.cv-cert-item:hover { border-color: var(--primary); transform: translateY(-2px); }

.cv-cert-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.cv-cert-name {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-head);
    margin-bottom: 0.15rem;
}
.cv-cert-org {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ──────────────────────────────────────────────
   PROJECTS
────────────────────────────────────────────── */
.cv-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.cv-project-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--tr);
}
.cv-project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37,99,235,.1);
    transform: translateY(-3px);
}

.cv-project-header {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.cv-project-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--primary-lt);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cv-project-title {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-head);
    line-height: 1.3;
}
.cv-project-subtitle {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.2rem;
}

.cv-project-desc {
    font-size: 0.83rem;
    color: var(--text-body);
    line-height: 1.65;
    flex: 1;
}

.cv-project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.cv-project-techs span {
    padding: 0.18rem 0.65rem;
    background: var(--primary-lt);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
}

[data-theme="dark"] .cv-project-techs span {
    background: rgba(37,99,235,0.2);
    color: #93c5fd;
}

.cv-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    width: fit-content;
    transition: var(--tr);
}
.cv-view-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ──────────────────────────────────────────────
   LANGUAGES
────────────────────────────────────────────── */
.cv-languages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cv-lang-item {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    text-align: center;
    transition: var(--tr);
}
.cv-lang-item:hover { border-color: var(--primary); transform: translateY(-2px); }

.cv-lang-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cv-lang-name {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-head);
    margin-bottom: 0.2rem;
}
.cv-lang-level {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.cv-lang-bar {
    height: 5px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.cv-lang-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
.cv-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 2rem 1.5rem;
    margin-top: 4rem;
}

.cv-footer-top {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1e293b;
}

.cv-footer-logo {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    display: block;
    margin-bottom: 0.75rem;
}
.cv-footer-logo span { color: var(--primary); }

.cv-footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #64748b;
}

.cv-footer-socials {
    display: flex;
    gap: 0.75rem;
}
.cv-footer-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid #334155;
    display: flex; align-items: center; justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    transition: var(--tr);
}
.cv-footer-socials a:hover { color: #fff; border-color: var(--primary); background: var(--primary); }

.cv-footer-col h5 {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.1rem;
}

.cv-footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.cv-footer-col li a,
.cv-footer-col li span {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--tr);
}
.cv-footer-col li a:hover { color: var(--primary); }
.cv-footer-col li i { font-size: 0.8rem; color: var(--primary); }

.cv-footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #334155;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cv-footer-bottom a { color: #334155; }
.cv-footer-bottom a:hover { color: var(--primary); }

/* ──────────────────────────────────────────────
   PRINT / PDF STYLES
────────────────────────────────────────────── */
@media print {
    /* Hide everything except the CV card */
    .ticker-wrap,
    .cv-header,
    .cv-page-controls,
    .cv-footer,
    .cv-view-btn { display: none !important; }

    body {
        background: #fff !important;
        font-size: 11pt;
    }

    .cv-main {
        padding: 0;
        max-width: 100%;
    }

    .cv-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 1.5cm 1.8cm;
    }

    .cv-name { font-size: 22pt; }
    .cv-title { font-size: 10pt; }

    .cv-section-title { font-size: 10pt; page-break-after: avoid; }

    .cv-timeline-body {
        background: none !important;
        border: none !important;
        padding: 0.4rem 0;
    }

    .cv-cert-item,
    .cv-project-card,
    .cv-lang-item {
        background: none !important;
        border: 1px solid #ddd !important;
    }

    /* A4 page size */
    @page {
        size: A4;
        margin: 0;
    }

    /* Prevent bad page breaks */
    .cv-section,
    .cv-timeline-item,
    .cv-cert-item,
    .cv-project-card { page-break-inside: avoid; }

    .cv-divider { margin: 12pt 0; }

    a { color: inherit !important; }
    .badge { border: 1px solid #ddd; }
}

/* ──────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cv-navbar { display: none; }
    .cv-hamburger { display: flex; }

    .cv-card { padding: 2rem 1.5rem; }

    .cv-profile-header { flex-direction: column-reverse; align-items: center; text-align: center; }

    .cv-contact-row { justify-content: center; }

    .cv-name { font-size: 1.7rem; }

    .cv-languages-grid { grid-template-columns: 1fr; }

    .cv-footer-top { grid-template-columns: 1fr; gap: 2rem; }

    .cv-footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 576px) {
    .cv-card { padding: 1.5rem 1rem; }

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

    .cv-cert-grid { grid-template-columns: 1fr; }

    .cv-name { font-size: 1.45rem; }

    .cv-section-title { font-size: 0.9rem; }

    .cv-timeline-header { flex-direction: column; gap: 0.4rem; }

    .cv-cta-btn { display: none; }
}

@media (max-width: 400px) {
    .cv-logo { font-size: 1rem; }
    .cv-name { font-size: 1.3rem; }
}
