/* ==========================================================================
   MINIMALIST EDITORIAL LUXURY & ACADEMIC PORTFOLIO STYLESHEET
   Aesthetic: Light-Mode First, Prestigious Scientific Journal / Executive Style
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Prestige HSL Variables System --- */
:root {
    /* Ivory Parchment Canvas (Light Mode First) */
    --bg-main: #fcfbf9;            /* Alabaster Warm White */
    --bg-surface: #ffffff;         /* Pure Paper White */
    --bg-surface-hover: #fcfcfc;
    
    --border-color: rgba(15, 23, 42, 0.06);
    --border-color-glow: rgba(15, 118, 110, 0.35); /* Subtle Eucalyptus Teal Accent */
    
    --text-primary: #0f172a;        /* Deep Slate Navy (High Contrast) */
    --text-secondary: #475569;      /* Muted Slate */
    --text-muted: #64748b;          /* Light Slate */
    
    --color-primary: #0f766e;       /* Organic Sage Teal (Life Sciences/Pharma) */
    --color-primary-rgb: 15, 118, 110;
    --color-secondary: #1e1b4b;     /* Deep Royal Blue (Data Science/Tech) */
    --color-secondary-rgb: 30, 27, 75;
    --color-accent: #b45309;        /* Warm Champagne Gold (Prestige Achievement) */
    --color-accent-rgb: 180, 83, 9;
    
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02), 0 10px 40px -10px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.01);
    --glass-blur: 16px;
    
    --transition-speed: 0.5s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    /* Executive Dark Mode */
    --bg-main: #0b0f19;            /* Deep Obsidian Navy */
    --bg-surface: #111827;         /* Charcoal Paper */
    --bg-surface-hover: #172033;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-glow: rgba(45, 212, 191, 0.4);
    
    --text-primary: #f9fafb;        /* Crisp Ivory White */
    --text-secondary: #e5e7eb;      /* Soft Grey */
    --text-muted: #9ca3af;
    
    --color-primary: #2dd4bf;       /* Electric Turquoise */
    --color-primary-rgb: 45, 212, 191;
    --color-secondary: #818cf8;     /* Cyber Indigo */
    --color-secondary-rgb: 129, 140, 248;
    --color-accent: #fb923c;        /* Soft Amber */
    --color-accent-rgb: 251, 146, 60;
    
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* --- Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) var(--transition-curve),
                color var(--transition-speed) var(--transition-curve);
}

/* === Scroll Progress Bar === */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    z-index: 99999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 9000;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.4);
}

/* === Stats Counter Row === */
.stats-counter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 32px;
}

.stat-counter-box {
    padding: 18px 14px;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-counter-box:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .stats-counter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Subtle editorial background gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 90% 10%, rgba(var(--color-primary-rgb), 0.03), transparent 45%),
                radial-gradient(circle at 10% 90%, rgba(var(--color-secondary-rgb), 0.03), transparent 45%);
    z-index: -2;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-curve);
}

/* --- Premium Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--color-primary-rgb), 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-primary-rgb), 0.6);
}

/* --- Global Layout Rules --- */
.section {
    padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--color-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.85rem;
    max-width: 900px;
    margin: 0 auto clamp(40px, 8vw, 80px);
}

.subsection-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 45px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
}


/* --- Clean Editorial Glass Cards --- */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) var(--transition-curve),
                border-color var(--transition-speed) var(--transition-curve),
                box-shadow var(--transition-speed) var(--transition-curve),
                background-color var(--transition-speed) var(--transition-curve);
    position: relative;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-glow);
    box-shadow: var(--shadow-hover);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
    border-radius: 30px;
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-curve);
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px -3px rgba(var(--color-primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-secondary);
    box-shadow: 0 6px 20px -3px rgba(var(--color-secondary-rgb), 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: rgba(var(--color-primary-rgb), 0.04);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* CV Download Button */
.btn-cv {
    background: linear-gradient(135deg, var(--color-accent), #d97706);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px -3px rgba(var(--color-accent-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cv::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-20deg);
    animation: cvShine 3s ease-in-out infinite;
}

@keyframes cvShine {
    0%   { left: -60%; }
    40%  { left: 120%; }
    100% { left: 120%; }
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -3px rgba(var(--color-accent-rgb), 0.4);
}

/* --- Floating Mono Monogram Header --- */
.header {
    position: fixed;
    top: clamp(12px, 3vh, 24px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(320px, 92%, 1100px);
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(16px, 4vw, 32px);
    z-index: 1000;
    background: rgba(252, 251, 249, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 40px;
    box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.05);
    transition: all var(--transition-speed) var(--transition-curve);
}

[data-theme="dark"] .header {
    background: rgba(11, 15, 25, 0.85);
}

.header.scrolled {
    height: 52px;
    border-color: var(--border-color-glow);
    box-shadow: 0 8px 32px -8px rgba(var(--color-primary-rgb), 0.1);
    background: rgba(252, 251, 249, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(11, 15, 25, 0.4);
}

.logo {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-speed) var(--transition-curve), left var(--transition-speed) var(--transition-curve);
    transform: translateX(-50%);
    border-radius: 10px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-speed) var(--transition-curve);
}

.theme-toggle-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: rotate(12deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero Section (Editorial Split) --- */
.hero-sec {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
    padding: 120px clamp(16px, 4vw, 40px) 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(var(--color-primary-rgb), 0.05);
    border: 1px solid var(--border-color-glow);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

/* Live dot inside hero badge */
.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    animation: heroBadgePulse 2s ease-in-out infinite;
}

@keyframes heroBadgePulse {
    0%   { box-shadow: 0 0 0 0px rgba(var(--color-primary-rgb), 0.6); opacity: 1; }
    55%  { box-shadow: 0 0 0 6px rgba(var(--color-primary-rgb), 0); opacity: 0.8; }
    100% { box-shadow: 0 0 0 0px rgba(var(--color-primary-rgb), 0); opacity: 1; }
}

.hero-title {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 800;
}

.hero-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--color-primary);
}

.typewriter-wrapper {
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.typewriter-text {
    border-right: 2px solid var(--color-primary);
    white-space: nowrap;
    animation: blinkCursor 0.75s step-end infinite;
    font-size: clamp(1.15rem, 3vw, 1.8rem);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-secondary);
}

.hero-desc {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin-bottom: 36px;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 1.15rem;
    color: var(--text-secondary);
    transition: all var(--transition-speed) var(--transition-curve);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.social-icon:hover {
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(var(--color-primary-rgb), 0.25);
}

.social-icon.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.social-icon.scholar:hover { background: #4285f4; border-color: #4285f4; }
.social-icon.orcid:hover { background: #a6ce39; border-color: #a6ce39; }
.social-icon.instagram:hover { background: #e1306c; border-color: #e1306c; }
.social-icon.x:hover { background: #111111; border-color: #111111; }

/* Editorial Circular Centered Profile Container Layout */
.hero-graphic-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 5;
    position: relative;
}

.profile-image-frame {
    position: relative;
    width: clamp(240px, 30vw, 300px);
    height: clamp(240px, 30vw, 300px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -90px; /* Shifted up by 90px for perfect vertical centering in the viewport */
    animation: floatImage 6s infinite alternate ease-in-out;
    --orbit-radius: 174px; /* Symmetrical orbit distance centered at center of the frame */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    box-shadow: var(--card-shadow);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08), rgba(var(--color-secondary-rgb), 0.08));
    z-index: 2;
    position: relative;
    transition: transform var(--transition-speed) var(--transition-curve);
}

.profile-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    box-shadow: var(--card-shadow);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.06), rgba(var(--color-secondary-rgb), 0.06));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
    z-index: 2;
    position: relative;
    transition: transform var(--transition-speed) var(--transition-curve);
}

.profile-img-placeholder i {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-primary);
    margin-bottom: 8px;
}

.profile-img-placeholder span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-primary);
}

.profile-img-placeholder small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* Concetrically centered glowing elegant ring */
.profile-frame-bg {
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 50%;
    border: 2px dashed var(--color-primary);
    z-index: 1;
    pointer-events: none;
    transition: all var(--transition-speed) var(--transition-curve);
    opacity: 0.85;
    animation: rotateFrame 25s linear infinite;
}

.profile-image-frame:hover .profile-img, 
.profile-image-frame:hover .profile-img-placeholder {
    transform: scale(1.02);
}

.profile-image-frame:hover .profile-frame-bg {
    animation: rotateFrameHover 8s linear infinite;
    border-color: var(--color-accent);
    border-style: solid;
    opacity: 1;
}

/* Custom interactive border color shifts matching each brand's signature color on icon hover */
.profile-image-frame:has(.scholar:hover) .profile-frame-bg {
    border-color: #4285f4;
    border-style: solid;
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.45);
}

.profile-image-frame:has(.linkedin:hover) .profile-frame-bg {
    border-color: #0077b5;
    border-style: solid;
    box-shadow: 0 0 25px rgba(0, 119, 181, 0.45);
}

.profile-image-frame:has(.orcid:hover) .profile-frame-bg {
    border-color: #a6ce39;
    border-style: solid;
    box-shadow: 0 0 25px rgba(166, 206, 57, 0.45);
}

.profile-image-frame:has(.instagram:hover) .profile-frame-bg {
    border-color: #e1306c;
    border-style: solid;
    box-shadow: 0 0 25px rgba(225, 48, 108, 0.45);
}

.profile-image-frame:has(.x:hover) .profile-frame-bg {
    border-color: #111111;
    border-style: solid;
    box-shadow: 0 0 25px rgba(15, 23, 42, 0.45);
}
[data-theme="dark"] .profile-image-frame:has(.x:hover) .profile-frame-bg {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
}

/* --- Orbiting Social Icons Clinging to Profile Circle --- */
.orbiting-socials {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}

/* Base Orbit Slots - centered precisely so they rotate on a perfect radial track */
.orbit-slot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    pointer-events: none;
}

/* Pause the orbit movement when mouse is over the profile area or icons to make clicking easy */
.profile-image-frame:hover .orbit-slot {
    animation-play-state: paused;
}

/* Distinct radial animations to distribute 5 slots into a mathematically rigid pentagon */
.scholar-slot {
    animation: orbitScholar 75s linear infinite;
}

.linkedin-slot {
    animation: orbitLinkedIn 75s linear infinite;
}

.orcid-slot {
    animation: orbitORCID 75s linear infinite;
}

.instagram-slot {
    animation: orbitInstagram 75s linear infinite;
}

.x-slot {
    animation: orbitX 75s linear infinite;
}

.orbit-icon {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(var(--color-primary-rgb), 0.15);
    font-size: 1.25rem;
    transition: all var(--transition-speed) var(--transition-curve);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
    pointer-events: auto; /* Make the links interactive since parent is none */
}

[data-theme="dark"] .orbit-icon {
    background: rgba(17, 24, 39, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Set bright, high-contrast signature brand colors for icons by default */
.orbit-icon.scholar i {
    color: #4285f4; /* Google Scholar Blue */
}
.orbit-icon.linkedin i {
    color: #0077b5; /* LinkedIn Blue */
}
.orbit-icon.orcid i {
    color: #a6ce39; /* ORCID Green */
}
.orbit-icon.instagram i {
    color: #e1306c; /* Instagram Magenta Pink */
}
.orbit-icon.x i {
    color: #111111; /* X Black */
}
[data-theme="dark"] .orbit-icon.x i {
    color: #ffffff; /* X White in Dark Theme */
}

/* Elegant Hover Effects: smooth scale, fill brand background, white icon and intense glow */
.orbit-icon:hover {
    transform: scale(1.22) translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.25);
}

.orbit-icon.scholar:hover {
    background: #4285f4;
    border-color: #4285f4;
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.45);
}
.orbit-icon.scholar:hover i {
    color: #ffffff;
}

.orbit-icon.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.45);
}
.orbit-icon.linkedin:hover i {
    color: #ffffff;
}

.orbit-icon.orcid:hover {
    background: #a6ce39;
    border-color: #a6ce39;
    box-shadow: 0 10px 25px rgba(166, 206, 57, 0.45);
}
.orbit-icon.orcid:hover i {
    color: #ffffff;
}

.orbit-icon.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.45);
}
.orbit-icon.instagram:hover i {
    color: #ffffff;
}

.orbit-icon.x:hover {
    background: #111111;
    border-color: #111111;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.45);
}
.orbit-icon.x:hover i {
    color: #ffffff;
}
[data-theme="dark"] .orbit-icon.x:hover {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .orbit-icon.x:hover i {
    color: #111111;
}

@keyframes rotateFrame {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateFrameHover {
    0% { transform: scale(1.04) rotate(0deg); }
    100% { transform: scale(1.04) rotate(360deg); }
}

/* Mathematical pentagon orbits (starts at top 270deg and distributes clockwise at 72deg increments) */
@keyframes orbitScholar {
    0% { transform: rotate(270deg) translate(var(--orbit-radius)) rotate(-270deg); }
    100% { transform: rotate(630deg) translate(var(--orbit-radius)) rotate(-630deg); }
}

@keyframes orbitLinkedIn {
    0% { transform: rotate(342deg) translate(var(--orbit-radius)) rotate(-342deg); }
    100% { transform: rotate(702deg) translate(var(--orbit-radius)) rotate(-702deg); }
}

@keyframes orbitORCID {
    0% { transform: rotate(414deg) translate(var(--orbit-radius)) rotate(-414deg); }
    100% { transform: rotate(774deg) translate(var(--orbit-radius)) rotate(-774deg); }
}

@keyframes orbitInstagram {
    0% { transform: rotate(486deg) translate(var(--orbit-radius)) rotate(-486deg); }
    100% { transform: rotate(846deg) translate(var(--orbit-radius)) rotate(-846deg); }
}

@keyframes orbitX {
    0% { transform: rotate(558deg) translate(var(--orbit-radius)) rotate(-558deg); }
    100% { transform: rotate(918deg) translate(var(--orbit-radius)) rotate(-918deg); }
}

@keyframes floatImage {
    0% { transform: translateY(0px) rotate(-0.5deg); }
    100% { transform: translateY(-12px) rotate(0.5deg); }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 60px);
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin-bottom: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}

.highlight-box {
    padding: 24px;
    text-align: center;
    border-radius: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.highlight-number {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.highlight-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 20px;
    padding: 24px 24px 24px 28px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) var(--transition-curve);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    transition: all var(--transition-speed) var(--transition-curve);
}

.feature-item:nth-child(1)::before { background: var(--color-primary); }
.feature-item:nth-child(2)::before { background: var(--color-secondary); }
.feature-item:nth-child(3)::before { background: var(--color-accent); }

.feature-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color-glow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all var(--transition-speed) var(--transition-curve);
}

.feature-item:nth-child(1) .feature-icon {
    background: rgba(var(--color-primary-rgb), 0.06);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
}
.feature-item:nth-child(2) .feature-icon {
    background: rgba(var(--color-secondary-rgb), 0.06);
    color: var(--color-secondary);
    border: 1px solid rgba(var(--color-secondary-rgb), 0.15);
}
.feature-item:nth-child(3) .feature-icon {
    background: rgba(var(--color-accent-rgb), 0.06);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.15);
}

/* Symmetrical Hover state for icon glow */
.feature-item:nth-child(1):hover .feature-icon {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.35);
}
.feature-item:nth-child(2):hover .feature-icon {
    background: var(--color-secondary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(var(--color-secondary-rgb), 0.35);
}
.feature-item:nth-child(3):hover .feature-icon {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(var(--color-accent-rgb), 0.35);
}

.feature-content h4 {
    margin-bottom: 6px;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Research Spotlight (Nature Journal Card Style) --- */
.research-container {
    max-width: 900px;
    margin: 0 auto;
}

.publication-card {
    padding: clamp(24px, 5vw, 44px);
    border-radius: 16px;
    position: relative;
    border-top: 4px solid var(--color-primary); /* Nature top-border style */
}

.publication-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(var(--color-accent-rgb), 0.06);
    color: var(--color-accent);
    padding: 4px 14px 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Live dot inside Peer Reviewed badge */
.publication-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
    animation: peerBadgePulse 2.2s ease-in-out infinite;
}

@keyframes peerBadgePulse {
    0%   { box-shadow: 0 0 0 0px rgba(var(--color-accent-rgb), 0.7); }
    55%  { box-shadow: 0 0 0 6px rgba(var(--color-accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0px rgba(var(--color-accent-rgb), 0); }
}

.publication-journal {
    color: var(--color-accent);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.publication-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.publication-authors strong {
    color: var(--color-primary);
    font-weight: 700;
}

.publication-authors .authors-label {
    color: var(--color-accent);
    font-weight: 700;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 3vw, 30px);
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.publication-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.publication-meta span i {
    color: var(--color-primary);
}

.abstract-toggle-btn {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
}

.abstract-toggle-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.02);
}

.abstract-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.abstract-content.open {
    max-height: 800px;
}

.abstract-text-block {
    margin-top: 16px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

[data-theme="dark"] .abstract-text-block {
    background: rgba(255, 255, 255, 0.02);
}

.abstract-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-family: 'Space Grotesk', sans-serif;
}

.publication-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

/* --- Certifications Showcase Section --- */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cert-card {
    padding: clamp(20px, 4vw, 30px);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cert-provider {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--color-accent-rgb), 0.05);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    animation: certProviderPulse 2.4s ease-in-out infinite;
}

@keyframes certProviderPulse {
    0%   { box-shadow: 0 0 0 0px rgba(var(--color-accent-rgb), 0.5); }
    55%  { box-shadow: 0 0 0 8px rgba(var(--color-accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0px rgba(var(--color-accent-rgb), 0); }
}

.cert-provider.pharma {
    background: rgba(var(--color-primary-rgb), 0.05);
    color: var(--color-primary);
    animation: certPharmaPulse 2.4s ease-in-out infinite;
}

@keyframes certPharmaPulse {
    0%   { box-shadow: 0 0 0 0px rgba(var(--color-primary-rgb), 0.5); }
    55%  { box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0px rgba(var(--color-primary-rgb), 0); }
}

.cert-provider.tech {
    background: rgba(var(--color-secondary-rgb), 0.05);
    color: var(--color-secondary);
    animation: certTechPulse 2.4s ease-in-out infinite;
}

@keyframes certTechPulse {
    0%   { box-shadow: 0 0 0 0px rgba(var(--color-secondary-rgb), 0.5); }
    55%  { box-shadow: 0 0 0 8px rgba(var(--color-secondary-rgb), 0); }
    100% { box-shadow: 0 0 0 0px rgba(var(--color-secondary-rgb), 0); }
}


.cert-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.cert-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary);
    flex-grow: 1;
}

.cert-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cert-meta p {
    margin-bottom: 2px;
}

.cert-meta p span {
    color: var(--text-primary);
    font-weight: 600;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.cert-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Space Grotesk', sans-serif;
}

/* --- Interactive Lightbox Certificate Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px;
}

[data-theme="dark"] .modal-overlay {
    background: rgba(3, 7, 18, 0.9);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color-glow);
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    padding: clamp(24px, 6vw, 36px);
    box-shadow: var(--shadow-hover);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--color-accent);
}

.modal-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.05);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.modal-issuer {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
}

.modal-details {
    background: rgba(15, 23, 42, 0.02);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.modal-details p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-details p:last-child {
    margin-bottom: 0;
}

.modal-details p strong {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-details p span {
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Skills Showcase --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.skills-column {
    padding: clamp(20px, 4vw, 36px);
    height: 100%;
}

.skills-column h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.skills-column h3 i {
    color: var(--color-primary);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-name {
    color: var(--text-primary);
}

.skill-percentage {
    color: var(--color-primary);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .skill-bar {
    background: rgba(255, 255, 255, 0.05);
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    width: 0%;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0; left: -40%;
    width: 35%;
    height: 100%;
    background: rgba(255,255,255,0.35);
    animation: progressShine 2.5s ease-in-out infinite;
}

@keyframes progressShine {
    0%   { left: -40%; }
    60%  { left: 120%; }
    100% { left: 120%; }
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-speed) var(--transition-curve);
    cursor: default;
}

.tag-item:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.02);
    transform: translateY(-2px);
}

/* --- Editorial Cardless Education Chronology --- */
.editorial-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-timeline-item {
    display: grid;
    grid-template-columns: 180px 60px 1fr;
    align-items: start;
    padding: 10px 0;
    transition: all 0.35s var(--transition-curve);
}

.edit-timeline-year {
    text-align: right;
    padding-top: 18px;
}

.year-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
    transition: all 0.35s var(--transition-curve);
}

.cup-year {
    background: rgba(var(--color-primary-rgb), 0.06);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}
.rgpv-year {
    background: rgba(var(--color-secondary-rgb), 0.06);
    color: var(--color-secondary);
    border: 1px solid rgba(var(--color-secondary-rgb), 0.1);
}
.bseb-year {
    background: rgba(var(--color-accent-rgb), 0.06);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.1);
}

.edit-timeline-tracker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: start;
    height: 100%;
    min-height: 140px;
}

.edit-timeline-tracker::before {
    content: '';
    position: absolute;
    top: 36px;
    bottom: -36px;
    width: 2px;
    background: var(--border-color);
}

/* Stop timeline track line at the very last child item */
.edit-timeline-item:last-child .edit-timeline-tracker::before {
    display: none;
}

.edit-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--border-color);
    margin-top: 22px;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-main);
    transition: all 0.35s var(--transition-curve);
}

.cup-dot { 
    border-color: var(--color-primary);
    background: var(--color-primary);
    animation: trainLivePulse 2s ease-in-out infinite;
}

@keyframes trainLivePulse {
    0%   { 
        box-shadow: 0 0 0 0px rgba(var(--color-primary-rgb), 0.6),
                    0 0 0 0px rgba(var(--color-primary-rgb), 0.3),
                    0 0 0 4px var(--bg-main);
    }
    55%  { 
        box-shadow: 0 0 0 8px  rgba(var(--color-primary-rgb), 0.15),
                    0 0 0 18px rgba(var(--color-primary-rgb), 0),
                    0 0 0 4px var(--bg-main);
    }
    100% { 
        box-shadow: 0 0 0 0px rgba(var(--color-primary-rgb), 0),
                    0 0 0 0px rgba(var(--color-primary-rgb), 0),
                    0 0 0 4px var(--bg-main);
    }
}

.rgpv-dot { border-color: var(--color-secondary); }
.bseb-dot { border-color: var(--color-accent); }

.edit-timeline-details {
    position: relative;
    padding: 16px 28px 24px 28px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.35s var(--transition-curve);
}

.timeline-watermark {
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    transition: all 0.4s var(--transition-curve);
}

.degree-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 3vw, 1.45rem);
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color 0.35s var(--transition-curve);
}

.school-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cup-name { color: var(--color-primary); }
.rgpv-name { color: var(--color-secondary); }
.bseb-name { color: var(--color-accent); }
.bseb-name-10 { color: var(--color-primary); }

.degree-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interactive Hover States (Cardless Micro-Animations) */
.edit-timeline-item:hover .edit-timeline-dot {
    transform: scale(1.35);
}

.cup-item:hover .edit-timeline-dot {
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.35), 0 0 0 4px var(--bg-main);
}
.rgpv-item:hover .edit-timeline-dot {
    background: var(--color-secondary);
    box-shadow: 0 0 12px rgba(var(--color-secondary-rgb), 0.35), 0 0 0 4px var(--bg-main);
}
.bseb-item:hover .edit-timeline-dot {
    background: var(--color-accent);
    box-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.35), 0 0 0 4px var(--bg-main);
}
.bseb-10-item:hover .edit-timeline-dot {
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.35), 0 0 0 4px var(--bg-main);
}

.edit-timeline-item:hover .edit-timeline-details {
    background: var(--bg-surface);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
    padding-left: 36px; /* Smooth editorial slide-in nudge */
}

.edit-timeline-item:hover .timeline-watermark {
    opacity: 0.08;
    transform: scale(1.06);
}

.cup-item:hover .degree-title {
    color: var(--color-primary);
}
.rgpv-item:hover .degree-title {
    color: var(--color-secondary);
}
.bseb-item:hover .degree-title {
    color: var(--color-accent);
}
.bseb-10-item:hover .degree-title {
    color: var(--color-primary);
}

/* Responsive Editorial Adjustments */
@media (max-width: 768px) {
    .editorial-timeline {
        gap: 0;
    }

    .edit-timeline-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-left: 32px;
        position: relative;
    }

    .edit-timeline-year {
        text-align: left;
        padding-top: 0;
        margin-bottom: 2px;
    }

    .edit-timeline-tracker {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        min-height: auto;
        width: 20px;
    }

    .edit-timeline-tracker::before {
        top: 24px;
        bottom: -24px;
        left: 9px;
    }

    .edit-timeline-dot {
        margin-top: 8px;
        margin-left: 2px;
    }

    .edit-timeline-details {
        padding: 4px 0 24px 0 !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    
    .edit-timeline-item:hover .edit-timeline-details {
        padding-left: 8px !important;
    }
    
    .timeline-watermark {
        display: none;
    }
}


/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 60px);
    align-items: flex-start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* === New Social Cards Grid === */
.social-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-connect-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* Live pulse on the satellite dish icon */
.social-connect-label i {
    position: relative;
    color: var(--color-primary);
    display: inline-flex;
    border-radius: 50%;
    padding: 3px;
    font-size: 1.2rem;
    animation: liveSatellitePulse 2s ease-in-out infinite;
}

@keyframes liveSatellitePulse {
    0%   { 
        box-shadow: 0 0 0 0px rgba(var(--color-primary-rgb), 0.6),
                    0 0 0 0px rgba(var(--color-primary-rgb), 0.3);
    }
    55%  { 
        box-shadow: 0 0 0 12px rgba(var(--color-primary-rgb), 0.12),
                    0 0 0 24px rgba(var(--color-primary-rgb), 0);
    }
    100% { 
        box-shadow: 0 0 0 0px rgba(var(--color-primary-rgb), 0),
                    0 0 0 0px rgba(var(--color-primary-rgb), 0);
    }
}

.social-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.social-card:hover {
    transform: translateY(-4px);
}

.social-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

.social-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.social-card-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all 0.3s ease;
}

.social-card:hover .social-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Platform-specific hover colors */
.email-card:hover .social-card-icon   { background: rgba(234,67,53,0.12); color: #ea4335; }
.linkedin-card:hover .social-card-icon { background: rgba(10,102,194,0.12); color: #0a66c2; }
.scholar-card:hover .social-card-icon  { background: rgba(66,133,244,0.12); color: #4285f4; }
.orcid-card:hover .social-card-icon    { background: rgba(166,206,57,0.15); color: #a6ce39; }
.insta-card:hover .social-card-icon    { background: rgba(225,48,108,0.12); color: #e1306c; }
.x-card:hover .social-card-icon        { background: rgba(0,0,0,0.08); color: var(--text-primary); }

[data-theme="dark"] .x-card:hover .social-card-icon { background: rgba(255,255,255,0.08); color: #ffffff; }

.email-card:hover   { box-shadow: 0 8px 24px rgba(234,67,53,0.1); }
.linkedin-card:hover { box-shadow: 0 8px 24px rgba(10,102,194,0.12); }
.scholar-card:hover  { box-shadow: 0 8px 24px rgba(66,133,244,0.12); }
.orcid-card:hover    { box-shadow: 0 8px 24px rgba(166,206,57,0.1); }
.insta-card:hover    { box-shadow: 0 8px 24px rgba(225,48,108,0.12); }
.x-card:hover        { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }


.contact-form {
    padding: clamp(20px, 5vw, 36px);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.01);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: all var(--transition-speed) var(--transition-curve);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.1);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .form-control:focus {
    background: rgba(255, 255, 255, 0.03);
}

textarea.form-control {
    resize: vertical;
}

/* Form Alert Messages */
.form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    animation: fadeSlideIn 0.4s ease;
}

.form-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #059669;
}

.form-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #dc2626;
}

[data-theme="dark"] .form-alert-success {
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="dark"] .form-alert-error {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 40px;
    background: var(--bg-main);
}

.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-brand:hover {
    opacity: 0.75;
}

.footer-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}


.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    padding: 2px 4px;
}

.legal-link-btn:hover {
    color: var(--color-primary);
}

.footer-legal-divider {
    color: var(--border-color);
    font-size: 0.8rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
    margin-bottom: 2px;
}

.footer-legal-note {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.55;
    text-align: center;
}

/* --- Legal Modals --- */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.legal-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.legal-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

.legal-modal-overlay.active .legal-modal-box {
    transform: translateY(0) scale(1);
}

.legal-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.legal-modal-close:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.legal-modal-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.legal-modal-header > i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: block;
}

.legal-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.legal-modal-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
}

.legal-modal-body {
    padding: 24px 32px 32px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.75;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.legal-modal-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 22px 0 8px;
}

.legal-modal-body h3:first-child { margin-top: 0; }

.legal-modal-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.legal-modal-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-modal-body ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.legal-modal-body strong {
    color: var(--text-primary);
    font-weight: 700;
}


/* ==========================================================================
   ADVANCED RESPONSIVENESS AND COLLAPSIBILITY (Lightweight Drawer)
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-sec {
        grid-template-columns: 1fr;
        padding-top: 120px;
        padding-bottom: 40px;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .typewriter-wrapper {
        justify-content: center;
    }
    
    .hero-graphic-container {
        grid-row: 1;
    }
    
    .profile-image-frame {
        margin-top: 0; /* Reset desktop shift when stacked on mobile viewports */
    }
}

@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header {
        width: 94%;
        height: 54px;
        padding: 0 16px;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(252, 251, 249, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }
    
    [data-theme="dark"] .nav {
        background: rgba(11, 15, 25, 0.95);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 12px;
    }

    .hero-sec {
        padding-top: 90px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Hero buttons center on mobile */
    .hero-sec > .hero-content > div[style] {
        justify-content: center;
    }

    .hero-badge {
        justify-content: center;
    }

    /* Show graphic on small screens and scale it down slightly */
    .hero-graphic-container {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        transform: scale(0.85);
    }

    /* About grid stacked */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Stats: 2 columns on mobile */
    .stats-counter-row {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer stacked */
    .footer-top-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-brand {
        justify-content: center;
    }

    /* Social cards: 1 column */
    .social-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Back to top button smaller */
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    /* Publication card padding */
    .publication-card {
        padding: 20px 16px;
    }

    .publication-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 10px;
    }

    /* Certifications grid */
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    /* Section titles smaller */
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    /* CV button smaller */
    .btn-cv {
        padding: 10px 16px;
        font-size: 0.82rem;
    }

    .publication-meta {
        flex-direction: column;
        gap: 6px;
    }

    /* Skill columns stacked */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .publication-actions, .hero-socials {
        justify-content: center;
    }

    /* Adjust orbiting social slots on mobile */
    .profile-image-frame {
        --orbit-radius: 128px;
    }
    .orbit-slot {
        width: 36px;
        height: 36px;
        margin-top: -18px;
        margin-left: -18px;
    }
    .orbit-icon {
        font-size: 0.95rem;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-sec {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-graphic-container {
        display: flex;
        justify-content: center;
    }

    .stats-counter-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .social-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .publication-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 10px;
    }
}


/* ============================================================
   SECTION FADE-IN ANIMATION SYSTEM
   ============================================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for child items */
.fade-in-section:nth-child(1) { transition-delay: 0s; }
.fade-in-section:nth-child(2) { transition-delay: 0.1s; }
.fade-in-section:nth-child(3) { transition-delay: 0.2s; }
.fade-in-section:nth-child(4) { transition-delay: 0.3s; }
.fade-in-section:nth-child(5) { transition-delay: 0.4s; }
.fade-in-section:nth-child(6) { transition-delay: 0.5s; }


/* ============================================================
   CUSTOM CURSOR GLOW & MOUSE TRAIL SYSTEM
   ============================================================ */
@media (pointer: fine) {
    /* Hide native cursor when custom cursor is active */
    body.custom-cursor-active {
        cursor: none;
    }
    
    body.custom-cursor-active a,
    body.custom-cursor-active button,
    body.custom-cursor-active select,
    body.custom-cursor-active input,
    body.custom-cursor-active textarea,
    body.custom-cursor-active [role="button"],
    body.custom-cursor-active .clickable,
    body.custom-cursor-active .social-card,
    body.custom-cursor-active .cert-card,
    body.custom-cursor-active .publication-card,
    body.custom-cursor-active .stat-card,
    body.custom-cursor-active .footer-brand,
    body.custom-cursor-active .theme-toggle,
    body.custom-cursor-active .back-to-top {
        cursor: none !important;
    }

    /* Outer glowing trail */
    .custom-cursor-glow {
        position: fixed;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        border: 2px solid rgba(var(--color-primary-rgb), 0.4);
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        transform: translate3d(-50%, -50%, 0);
        transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                    height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                    border-color 0.3s ease, 
                    background-color 0.3s ease, 
                    box-shadow 0.3s ease, 
                    opacity 0.3s ease;
        box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.2);
        opacity: 0;
        will-change: transform, width, height;
    }

    /* Inner solid dot */
    .custom-cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background-color: var(--color-primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        transform: translate3d(-50%, -50%, 0);
        transition: width 0.2s ease, 
                    height 0.2s ease, 
                    background-color 0.3s ease,
                    opacity 0.3s ease;
        opacity: 0;
        will-change: transform;
    }

    /* Show state when mouse moves inside viewport */
    .custom-cursor-glow.active,
    .custom-cursor-dot.active {
        opacity: 1;
    }
    
    /* Click State (Subtle shrink feedback in same green/teal color) */
    .custom-cursor-glow.clicked {
        width: 24px;
        height: 24px;
        border-color: rgba(var(--color-primary-rgb), 0.6);
        background-color: rgba(var(--color-primary-rgb), 0.15);
        box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.3);
    }

    .custom-cursor-dot.clicked {
        width: 5px;
        height: 5px;
        background-color: var(--color-primary);
    }
}

/* ============================================================
   ACADEMIC ENDORSEMENTS (TESTIMONIALS)
   ============================================================ */
.endorsements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.endorsement-card {
    position: relative;
    padding: 45px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    overflow: hidden;
}

.endorsement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0.8;
}

.endorsement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .endorsement-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                inset 0 0 15px rgba(var(--color-primary-rgb), 0.1);
}

.quote-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    color: rgba(var(--color-primary-rgb), 0.08);
    pointer-events: none;
    transition: color 0.3s ease;
}

.endorsement-card:hover .quote-icon {
    color: rgba(var(--color-primary-rgb), 0.15);
}

.quote-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.mentor-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
}

.mentor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.2);
    flex-shrink: 0;
}

.mentor-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mentor-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
}

.mentor-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mentor-institution {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.mentor-institution i {
    color: var(--color-secondary);
}

/* Responsive breakdowns */
@media (max-width: 992px) {
    .endorsements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .endorsements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

