/* =============================
 Accent Colors
 ============================= */
:root {
    --accent: #b19cd9;
    --accent-10: rgba(177, 156, 217, 0.10);
}

.accent {
    color: var(--accent);
}

.bg-accent {
    background-color: var(--accent);
}

.hover-accent:hover {
    background-color: var(--accent-10);
}

/* =============================
 Page & Card Layout
 ============================= */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* top align for mobile */
    min-height: 100vh;
    margin: 0;
    background-color: #f9fafb;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =============================
 Floating CV Card
 ============================= */
.cv-card {
    width: min(980px, 96%);
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: visible;
}

/* Dark Mode */
.dark .cv-card {
    background-color: #1f2937;
    border-color: #374151;
}

/* =============================
 Scrollable Content
 ============================= */
.cv-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* =============================
 Fade-in & Staggered Animation
 ============================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to all children */
.cv-card>* {
    opacity: 0;
    animation: fadeInUp 0.8s ease-in-out forwards;
}

/* Stagger animations by child index */
.cv-card>*:nth-child(1) {
    animation-delay: 0.1s;
}

.cv-card>*:nth-child(2) {
    animation-delay: 0.3s;
}

.cv-card>*:nth-child(3) {
    animation-delay: 0.5s;
}

.cv-card>*:nth-child(4) {
    animation-delay: 0.7s;
}

.cv-card>*:nth-child(5) {
    animation-delay: 0.9s;
}

/* =============================
 Typography
 ============================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0.5em 0;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

p,
a,
li {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin: 0.25em 0;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =============================
 Responsive Images
 ============================= */
img.responsive-img {
    display: block;
    margin: 0 auto;
    max-width: clamp(100px, 25vw, 160px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

img.responsive-img:hover {
    transform: scale(1.05);
}

/* =============================
 Responsive Adjustments
 ============================= */

/* Mobile */
@media (max-width: 639px) {
    .cv-scroll {
        padding: 0.75rem 0.5rem;
    }

    p,
    a,
    li {
        text-align: justify;
        text-justify: inter-word;
        line-height: 1.7;
    }

    h1,
    h2,
    h3 {
        text-align: center;
    }
}

/* Mobile: text left aligned */
@media (max-width: 639px) {

    .cv-scroll p,
    .cv-scroll a,
    .cv-scroll li,
    .accordion-content {
        text-align: left;
    }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
    .cv-scroll {
        padding: 1.25rem;
    }

    h1,
    h2 {
        text-align: center;
    }
}

/* Desktop */
@media (min-width: 1024px) {

    p,
    a,
    li {
        text-align: left;
    }

    img.responsive-img {
        max-width: 180px;
    }
}
.share-bar {
    position: fixed !important;
    bottom: 1rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: white !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
    display: flex !important;
    gap: 0.5rem !important;
    opacity: 1 !important;
    visibility: visible !important;
}