/* ==========================================================================
   EMEFILE BLESSING — PORTFOLIO STYLESHEET
   Author  : Emefile Blessing
   Version : 3.0 (Professional)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM FONTS
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/jakarta-bold.ttf') format('truetype');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-bold.ttf') format('truetype');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    --text-xs:   clamp(0.7rem,  0.6rem  + 0.2vw,  0.75rem);
    --text-sm:   clamp(0.8rem,  0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.938rem,0.9rem  + 0.3vw,  1rem);
    --text-lg:   clamp(1.125rem,1.05rem + 0.5vw,  1.25rem);
    --text-xl:   clamp(1.25rem, 1.15rem + 0.8vw,  1.5rem);
    --text-2xl:  clamp(1.5rem,  1.3rem  + 1.2vw,  2rem);
    --text-hero: clamp(2.25rem, 1.5rem  + 4vw,    4.5rem);

    --color-blue:     #2563eb;
    --color-indigo:   #4f46e5;
    --color-slate-50: #f8fafc;
    --color-slate-100:#f1f5f9;
    --color-slate-800:#1e293b;
    --color-slate-950:#030711;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --section-py: clamp(3rem, 5vw, 5rem);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    scroll-padding-top: 60px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-slate-800);
    background-color: var(--color-slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar { display: none; }

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', system-ui, sans-serif; }
h2 { font-size: var(--text-2xl); font-weight: 900; letter-spacing: -0.03em; }
h3 { font-size: var(--text-xl);  font-weight: 800; letter-spacing: -0.02em; }
img { max-width: 100%; height: auto; display: block; }

::selection { background-color: rgba(37,99,235,0.15); color: var(--color-slate-800); }
:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   4. UTILITY
   -------------------------------------------------------------------------- */
.glass {
    background: rgba(255,255,255,0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.gradient-text {
    background: linear-gradient(90deg, var(--color-blue), var(--color-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title    { font-size: var(--text-hero); line-height: 1.05; font-weight: 900; letter-spacing: -0.04em; }
.hero-subtitle { font-size: var(--text-sm); line-height: 1.7; color: #64748b; max-width: 540px; }
.hero-label    { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4em; color: var(--color-blue); display: block; }
.sub-label     { font-size: var(--text-xs); letter-spacing: 0.15em; font-weight: 700; }

/* --------------------------------------------------------------------------
   5. SCROLLBAR — HIDDEN
   -------------------------------------------------------------------------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --------------------------------------------------------------------------
   6. LOADING SCREEN
   -------------------------------------------------------------------------- */
body.loading { overflow: hidden; height: 100vh; }
#loader-wrapper { transition: opacity 0.7s ease, visibility 0.7s ease; }
#loader-wrapper.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   7. CUSTOM CURSOR (desktop only)
   -------------------------------------------------------------------------- */
#cursor-dot, #cursor-outline {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-100px,-100px);
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
}
#cursor-dot     { width: 8px;  height: 8px;  background-color: var(--color-blue); }
#cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(37,99,235,0.3); }
@media (min-width: 768px) { body, a, button { cursor: none !important; } }

/* --------------------------------------------------------------------------
   8. SVG / ICON NORMALISATION
   -------------------------------------------------------------------------- */
svg { display: inline-block; vertical-align: middle; }
[data-lucide] { display: inline-block; vertical-align: middle; stroke-width: 1.5; }
@media (max-width: 768px) {
    [data-lucide] { width: 16px; height: 16px; }
    button [data-lucide], a [data-lucide] { width: 18px; height: 18px; }
}

/* --------------------------------------------------------------------------
   9. ANIMATED STAT NUMBERS
   -------------------------------------------------------------------------- */
.stat-number { display: inline-block; min-width: 1ch; font-variant-numeric: tabular-nums; }
.stat-number.show {
    color: var(--color-blue);
    text-shadow: 0 0 15px rgba(37,99,235,0.2);
    transition: text-shadow 0.5s ease;
}

/* --------------------------------------------------------------------------
   10. HERO REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
}
.hero-reveal-img {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
    will-change: opacity, transform;
}
.hero-reveal.show, .hero-reveal-img.show { opacity: 1; transform: translateY(0) scale(1); }

.headline-word {
    display: inline-block;
    opacity: 0;
    transform: translateX(-12px) translateY(18px) scale(0.98);
    transform-origin: left center;
    transition: transform 620ms var(--ease-out-expo), opacity 460ms var(--ease-out-expo);
    will-change: transform, opacity;
}
.headline-word.show { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
.hero-reveal.text-animated { letter-spacing: -0.02em; }

@media (max-width: 768px) { .hero-btns { flex-direction: column; gap: 1rem; } }

#hero-typing {
    border-right: 2px solid var(--color-blue);
    padding-right: 2px;
    animation: blink-cursor 0.75s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { border-color: var(--color-blue); }
    50%       { border-color: transparent; }
}

/* --------------------------------------------------------------------------
   11. SCROLL REVEAL — CARDS & SECTIONS
   -------------------------------------------------------------------------- */
.reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.reveal-card.show { opacity: 1; transform: translateY(0); }

.reveal-card:nth-child(1) { transition-delay: 0.05s; }
.reveal-card:nth-child(2) { transition-delay: 0.15s; }
.reveal-card:nth-child(3) { transition-delay: 0.25s; }
.reveal-card:nth-child(4) { transition-delay: 0.35s; }
.reveal-card:nth-child(5) { transition-delay: 0.45s; }
.reveal-card:nth-child(6) { transition-delay: 0.55s; }

.reveal-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 1.3s var(--ease-out-expo), transform 1.3s var(--ease-out-expo);
}
.reveal-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity 1.3s var(--ease-out-expo), transform 1.3s var(--ease-out-expo);
}
.reveal-left.show, .reveal-right.show { opacity: 1; transform: translateX(0); }

/* --------------------------------------------------------------------------
   12. SERVICE CARDS
   -------------------------------------------------------------------------- */
.service-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 1.5rem;
    border: 1px solid var(--color-slate-100);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(37,99,235,0.1);
}
.service-card svg { width: 24px; height: 24px; display: block; }
@media (max-width: 768px) {
    .service-card h3 { font-size: 1rem; }
    .service-card p  { font-size: 0.875rem; }
}

/* --------------------------------------------------------------------------
   13. PORTFOLIO — FILTER BUTTONS
   -------------------------------------------------------------------------- */
.filter-btn {
    background-color: transparent;
    color: #64748b;
    border-color: var(--color-slate-100);
    transition: all 0.25s ease;
}
.filter-btn.active {
    background-color: var(--color-blue) !important;
    color: #ffffff !important;
    border-color: var(--color-blue) !important;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.filter-btn:hover:not(.active) {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: var(--color-blue);
}

/* --------------------------------------------------------------------------
   14. PROJECT MODAL
   -------------------------------------------------------------------------- */
#project-modal { background: rgba(15,23,42,0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#modal-card .overflow-y-auto::-webkit-scrollbar       { width: 4px; }
#modal-card .overflow-y-auto::-webkit-scrollbar-track { background: transparent; }
#modal-card .overflow-y-auto::-webkit-scrollbar-thumb { background-color: #e2e8f0; border-radius: 20px; }

/* --------------------------------------------------------------------------
   15. CERTIFICATION CARDS & MODAL
   -------------------------------------------------------------------------- */
.cert-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* FIX 3: Ensures taps register reliably on mobile inside scroll tracks.
       touch-action: manipulation eliminates the 300ms tap delay and prevents
       the horizontal scroll container from swallowing click events. */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.06);
    cursor: pointer;
}
.cert-card:hover { transform: translateY(-4px); }

#cert-track { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }

#cert-modal          { transition: opacity 0.35s ease; }
#cert-modal.hidden   { pointer-events: none; }
#cert-modal.flex     { display: flex; }

#cert-modal-card {
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity   0.35s ease;
}
#cert-img-container img { transition: opacity 0.4s ease, transform 0.4s ease; }
#cert-img-fallback {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1e293b, #030711);
    pointer-events: none;
}

/* FIX: Cert modal close button — keep inside viewport on very small screens */
@media (max-width: 400px) {
    #cert-modal-card > button[aria-label="Close"] {
        top: 10px !important;
        right: 10px !important;
    }
}

/* --------------------------------------------------------------------------
   16. ABOUT — HIDE PORTRAIT ON MOBILE
   -------------------------------------------------------------------------- */
.about-portrait { display: none; }
@media (min-width: 1024px) { .about-portrait { display: block; } }

/* --------------------------------------------------------------------------
   17. TIMELINE
   -------------------------------------------------------------------------- */
.timeline-container { max-width: 900px; margin: 0 auto; position: relative; }

.timeline-line {
    position: absolute; width: 2px;
    background: linear-gradient(to bottom, var(--color-blue), #e2e8f0, var(--color-slate-100));
    top: 0; bottom: 0; left: 20px;
    transform-origin: top; transform: scaleY(0);
    transition: transform 1.5s ease-out;
}
.timeline-line.show { transform: scaleY(1); }

.timeline-item {
    position: relative; margin-bottom: 20px;
    width: 100%; padding-left: 45px;
    opacity: 0; transition: all 0.8s var(--ease-spring);
}
.timeline-item.left  { transform: translateX(-40px); }
.timeline-item.right { transform: translateX(40px); }
.timeline-item.show  { opacity: 1; transform: translateX(0); }

.timeline-content {
    background: #ffffff; padding: 14px 18px;
    border-radius: 1rem;
    border: 1px solid var(--color-slate-100);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-content:hover {
    border-color: var(--color-blue);
    box-shadow: 0 8px 18px -10px rgba(37,99,235,0.15);
}

.timeline-dot {
    position: absolute; width: 12px; height: 12px;
    border-radius: 50%; left: 15px; top: 20px;
    border: 3px solid #ffffff; z-index: 10;
}

@media (min-width: 768px) {
    .timeline-line                     { left: 50%; margin-left: -1px; }
    .timeline-item                     { width: 50%; padding-left: 0; margin-bottom: 10px; }
    .timeline-item.left                { left: 0;   padding-right: 36px; text-align: right; }
    .timeline-item.right               { left: 50%; padding-left: 36px;  text-align: left; }
    .timeline-item.left .timeline-dot  { left: auto; right: -6px; }
    .timeline-item.right .timeline-dot { left: -6px; }
}

/* --------------------------------------------------------------------------
   18. TOOLS TICKER
   -------------------------------------------------------------------------- */
.tools-slider-container {
    overflow: hidden; position: relative; width: 100%;
    padding: 18px 0;
    background-color: var(--color-slate-100);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tool-item {
    display: flex; align-items: center; gap: 8px;
    min-width: max-content;
    background: #ffffff;
    padding: 9px 16px;
    border-radius: 12px;
    border: 1px solid var(--color-slate-100);
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.03);
    white-space: nowrap;
}
.tool-item span {
    font-weight: 700; color: #334155;
    text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em;
}
.tool-item svg, .tool-item i { width: 22px; height: 22px; flex-shrink: 0; }

@keyframes loop-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
.animate-loop-scroll { display: flex; animation: loop-scroll 30s linear infinite; }
@media (min-width: 768px) { .animate-loop-scroll { animation-duration: 40s; } }
@media (hover: hover) and (pointer: fine) {
    .tools-slider-container:hover .animate-loop-scroll { animation-play-state: paused; }
}

/* --------------------------------------------------------------------------
   19. CONTACT FORM
   -------------------------------------------------------------------------- */
#contact-form { transition: border-color 0.5s ease, box-shadow 0.5s ease; }
#contact-form:hover {
    border-color: rgba(37,99,235,0.4);
    box-shadow: 0 20px 40px -12px rgba(37,99,235,0.2);
}

/* --------------------------------------------------------------------------
   20. WHATSAPP FAB
   -------------------------------------------------------------------------- */
.whatsapp-fab {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(37,211,102,0.3);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.whatsapp-fab:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(37,211,102,0.4); }
@media (max-width: 768px) { .whatsapp-fab { bottom: 20px; right: 20px; width: 52px; height: 52px; } }

/* --------------------------------------------------------------------------
   21. FOOTER
   -------------------------------------------------------------------------- */
#footer .reveal-card {
    opacity: 0; transform: translateY(16px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
#footer .reveal-card.show         { opacity: 1; transform: translateY(0); }
#footer .reveal-card:nth-child(1) { transition-delay: 0.05s; }
#footer .reveal-card:nth-child(2) { transition-delay: 0.2s; }
#footer .reveal-card:nth-child(3) { transition-delay: 0.35s; }
#footer .reveal-card:nth-child(4) { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   22. AVAILABILITY BADGE
   -------------------------------------------------------------------------- */
#availability-badge {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 9999px;
    width: fit-content; height: fit-content;
}

/* --------------------------------------------------------------------------
   23. STICKY PORTRAIT
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) { .sticky-portrait { position: sticky; top: 100px; } }

/* --------------------------------------------------------------------------
   24. MARQUEE / STREAMING PILLS
   -------------------------------------------------------------------------- */
.marquee-container {
    overflow: hidden; position: relative; width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex; width: max-content;
    animation: scroll 35s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
    .marquee-container:hover .animate-marquee { animation-play-state: paused; }
}

.stream-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 9999px;
    border: 1px solid currentColor;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    transition: filter 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}
.stream-pill:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   25. SCROLL PROGRESS BAR & BACK-TO-TOP
   -------------------------------------------------------------------------- */
#scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--color-blue), #818cf8);
    z-index: 9999; pointer-events: none;
    transition: width 0.1s linear;
}
#back-to-top { transition: all 0.3s var(--ease-out-expo); }

/* --------------------------------------------------------------------------
   26. MOBILE GLOBAL OVERRIDES  (max 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .cta-button { width: 100%; text-align: center; }
    .container  { padding-left: 1rem; padding-right: 1rem; }
    h1 { font-size: 2.25rem; line-height: 1.2; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.125rem; }
    p  { font-size: 0.875rem; }
}

/* --------------------------------------------------------------------------
   27. TABLET GLOBAL OVERRIDES  (769px – 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
    h1 { font-size: 3rem;   line-height: 1.1; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.375rem; }
    p  { font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   28. DESKTOP GLOBAL OVERRIDES  (1025px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
    .container { max-width: 1200px; margin-left: auto; margin-right: auto; }
    h1 { font-size: 4.5rem; line-height: 1.05; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
    p  { font-size: 1.125rem; }
}

/* --------------------------------------------------------------------------
   29. SKILLS BARS
   -------------------------------------------------------------------------- */
.skill-bar {
    height: 100%;
    border-radius: 9999px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   30. TESTIMONIALS
   -------------------------------------------------------------------------- */
#testimonials .reveal-card:nth-child(1) { transition-delay: 0.05s; }
#testimonials .reveal-card:nth-child(2) { transition-delay: 0.2s; }
#testimonials .reveal-card:nth-child(3) { transition-delay: 0.35s; }

/* --------------------------------------------------------------------------
   31. HEADER — FLOATING PILL, TRANSPARENT → OPAQUE ON SCROLL
   -------------------------------------------------------------------------- */
#app {
    position: relative;
    z-index: 1;
}

#site-header {
    position: fixed !important;
    top: 0rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 500 !important;
    width: 94% !important;
    max-width: 1152px !important;
    pointer-events: auto !important;
    cursor: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, z-index 0.3s ease;
}

/* When mobile menu is open, lower header z-index so menu is clickable */
#site-header.menu-open {
    z-index: 30 !important;
}

body.loading #site-header {
    opacity: 0;
    transform: translate(-50%, -12px);
    pointer-events: none;
}

body:not(.loading) #site-header {
    opacity: 1;
    transform: translateX(-50%);
}

#site-header a,
#site-header button {
    cursor: auto;
}

#menu-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
}



/* FIX 2 — MENU ICON VISIBILITY
   The original rule had "display: none !important" which
   prevented JavaScript from ever showing the hamburger icon
   when the menu closed. Removed !important so JS can control
   it freely. */    
#menu-icon {
    display: none;
}


/* ============================================================
   FIX 1 — CLOSE ICON
   The original rule had "display: none !important" which
   prevented JavaScript from ever showing the X icon when the
   menu opened. Removed !important so JS can control it freely.
   ============================================================ */
#close-icon {
    display: none;
    width: 24px;
    height: 24px;
}

/* Ensure the X icon is actually visible when the 'hidden' class is removed */
#close-icon:not(.hidden) {
    display: inline-block !important;
}


/* --- FIXED NAV ICONS --- */
#menu-icon.hidden {
    display: none !important;
}

#close-icon {
    display: none; /* Hidden by default */
}


#cert-modal-card {
    width: min(90vw, 320px);
    max-width: 320px;
}

@media (max-width: 640px) {
    #cert-img-container {
        height: 8rem !important;
    }
}

@media (min-width: 768px) {
    #cert-modal-card {
        width: min(85vw, 400px);
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    #cert-modal-card {
        width: min(70vw, 460px);
        max-width: 460px;
    }
}

/* Ensure content doesn't hide under the header on mobile */
section#home {
    padding-top: 80px !important;
}

@media (max-width: 640px) {
    section#home {
        padding-top: 100px !important;
    }
}

/* --------------------------------------------------------------------------
   32. HERO IMAGE — MOBILE SIZING
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    #home img[alt="Portrait of Emefile Blessing"] {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* --------------------------------------------------------------------------
   33. SECTION DIVIDERS
   -------------------------------------------------------------------------- */
#services,
#portfolio,
#experience,
#certifications,
#tools,
#download-cv,
#skills,
#testimonials {
    border-top: 1px solid rgba(241, 245, 249, 0.8);
}

/* --------------------------------------------------------------------------
   34. DOWNLOAD CV CARDS — hover lift
   -------------------------------------------------------------------------- */
#download-cv .reveal-card:hover {
    transform: translateY(-4px);
}
#download-cv .reveal-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --------------------------------------------------------------------------
   35. TESTIMONIAL CARDS — quote mark decoration
   -------------------------------------------------------------------------- */
#testimonials .reveal-card {
    position: relative;
}
#testimonials .reveal-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 3rem;
    line-height: 1;
    color: rgba(37, 99, 235, 0.07);
    font-family: Georgia, serif;
    font-weight: 900;
    pointer-events: none;
    user-select: none;
}

/* --------------------------------------------------------------------------
   36. ACTIVE NAV LINK
   -------------------------------------------------------------------------- */
header nav a.nav-active {
    color: #2563eb !important;
    font-weight: 900 !important;
}

/* --------------------------------------------------------------------------
   37. SMOOTH PAGE ENTRANCE
   -------------------------------------------------------------------------- */
@keyframes page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
#app {
    animation: page-enter 0.6s var(--ease-out-expo) both;
    animation-delay: 0.05s;
}

/* --------------------------------------------------------------------------
   38. FOCUS RING — skip nav accessibility
   -------------------------------------------------------------------------- */
.skip-nav {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 10000;
    background: var(--color-blue);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: top 0.2s;
}
.skip-nav:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   39. REVIEWS SCROLL TRACK — hide scrollbar
   -------------------------------------------------------------------------- */
#reviews-track::-webkit-scrollbar { display: none; }
#reviews-track { -ms-overflow-style: none; scrollbar-width: none; }