/* ============================================
   IDLIB UNIVERSITY - EMPLOYEE PROFILE SYSTEM
   Premium Light Theme with Green (#00a352)
   Mobile-First Design
   ============================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);

    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #8896a8;

    --accent-primary: #00a352;
    --accent-secondary: #00c964;
    --accent-dark: #008a44;
    --accent-light: #e6f7ee;
    --accent-glow: rgba(0, 163, 82, 0.15);

    --gradient-hero: linear-gradient(135deg, #f0faf4 0%, #e6f7ee 40%, #f5f7fa 100%);
    --gradient-accent: linear-gradient(135deg, #00a352, #00c964);
    --gradient-accent-soft: linear-gradient(135deg, rgba(0, 163, 82, 0.08), rgba(0, 201, 100, 0.05));
    --gradient-gold: linear-gradient(135deg, #f59e0b, #eab308);
    --gradient-emerald: linear-gradient(135deg, #00a352, #059669);
    --gradient-rose: linear-gradient(135deg, #f43f5e, #e11d48);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 163, 82, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Faculty = Green, Technical = Teal, Admin = Amber */
    --faculty-color: #00a352;
    --faculty-bg: rgba(0, 163, 82, 0.1);
    --technical-color: #0891b2;
    --technical-bg: rgba(8, 145, 178, 0.1);
    --admin-color: #d97706;
    --admin-bg: rgba(217, 119, 6, 0.1);
}

/* ---- Global Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-dark);
}

/* ============================================
   ANIMATED BACKGROUND PARTICLES
   ============================================ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.07;
    animation: floatParticle 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 350px;
    height: 350px;
    top: 5%;
    right: -120px;
    background: var(--accent-primary);
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 250px;
    height: 250px;
    top: 45%;
    left: -80px;
    background: var(--accent-secondary);
    animation-delay: 3s;
    animation-duration: 20s;
}

.particle:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 65%;
    right: 15%;
    background: #a7f3d0;
    animation-delay: 6s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 25%;
    background: var(--accent-primary);
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(5) {
    width: 280px;
    height: 280px;
    bottom: 5%;
    left: 45%;
    background: #bbf7d0;
    animation-delay: 5s;
    animation-duration: 28s;
}

.particle:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 35%;
    right: 35%;
    background: #6ee7b7;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.9);
    }

    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.profile-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 2rem 0 3rem;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid rgba(0, 163, 82, 0.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 163, 82, 0.08) 0%, transparent 60%);
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 163, 82, 0.1) 0%, transparent 70%);
    border-radius: var(--radius-full);
    filter: blur(80px);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.1);
    }
}

.profile-hero .container {
    z-index: 1;
}

/* University Header */
.uni-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .uni-header {
        justify-content: center;
        margin-bottom: 2rem;
    }
}

.uni-logo-hero {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 163, 82, 0.2));

}



.uni-title h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.uni-title p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Profile Avatar */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.avatar-ring {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    padding: 4px;
    background: var(--gradient-accent);
    box-shadow: 0 4px 20px rgba(0, 163, 82, 0.25);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 163, 82, 0.25), 0 0 0 0 rgba(0, 163, 82, 0.2);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 163, 82, 0.25), 0 0 0 12px rgba(0, 163, 82, 0);
    }
}

.avatar-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-light), #f0faf4);
}

.profile-avatar-placeholder i {
    font-size: 3.5rem;
    color: var(--accent-primary);
    opacity: 0.5;
}

.avatar-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 3px solid #fff;
    border-radius: var(--radius-full);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 163, 82, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 163, 82, 0);
    }
}

/* Hero Text */
.hero-text {
    margin-bottom: 1.5rem;
}

.profile-name {
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.profile-name-en {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

/* Type Badge */
.profile-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid;
    box-shadow: var(--shadow-sm);
}

.badge-faculty {
    background: var(--faculty-bg);
    color: var(--faculty-color);
    border-color: rgba(0, 163, 82, 0.2);
}

.badge-technical {
    background: var(--technical-bg);
    color: var(--technical-color);
    border-color: rgba(8, 145, 178, 0.2);
}

.badge-admin {
    background: var(--admin-bg);
    color: var(--admin-color);
    border-color: rgba(217, 119, 6, 0.2);
}

/* Quick Pills */
.quick-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 163, 82, 0.1);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.pill:hover {
    background: #fff;
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 163, 82, 0.2);
}

.pill i {
    color: var(--accent-primary);
    font-size: 0.75rem;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    position: relative;
    z-index: 2;
    margin-top: -1.5rem;
    padding: 0 1rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 163, 82, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.2rem 0.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0, 163, 82, 0.1);
}

.stat-number {
    font-family: 'Cairo', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.profile-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0 3rem;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 163, 82, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    margin-bottom: 1.5rem;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 163, 82, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Card Header */
.card-header-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-light);
}

.card-header-custom i {
    font-size: 1.3rem;
    color: var(--accent-primary);
}

.card-header-custom h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Bio Card */
.bio-card {
    position: relative;
    overflow: hidden;
}

.bio-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.bio-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.9;
    padding-right: 0.8rem;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.tab-nav-wrapper {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 163, 82, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--accent-primary);
    background: var(--accent-light);
}

.tab-btn.active {
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 4px 15px rgba(0, 163, 82, 0.3);
    font-weight: 600;
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeInTab 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PERSONAL INFO SHOWCASE (NEW DESIGN)
   ============================================ */
.personal-info-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Premium Info Card (Top Row) */
.premium-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 163, 82, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    height: 100%;
}

.premium-info-card:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 163, 82, 0.2);
}

.card-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.bg-gradient-emerald {
    background: linear-gradient(135deg, #10b981, #047857);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.card-content {
    display: flex;
    flex-direction: column;
}

/* Grid Container */
.premium-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.premium-grid-container.two-cols {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Premium Info Item */
.premium-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.premium-info-item:hover {
    background: #fff;
    border-color: rgba(0, 163, 82, 0.1);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.premium-info-item.highlight-card {
    background: linear-gradient(to right, rgba(0, 163, 82, 0.03), transparent);
    border-right: 3px solid var(--accent-primary);
}

.premium-info-item i {
    font-size: 1.25rem;
    margin-top: 2px;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.item-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, rgba(0, 163, 82, 0.2), transparent);
    margin-right: 1rem;
}

/* Contact Cards */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 163, 82, 0.2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    direction: ltr;
    /* Ensure phones/emails are LTR */
    text-align: left;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-right: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    right: -26px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(0, 163, 82, 0.15);
    z-index: 1;
}

.timeline-card {
    background: rgba(0, 163, 82, 0.03);
    border: 1px solid rgba(0, 163, 82, 0.08);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    transition: all var(--transition-medium);
}

.timeline-card:hover {
    background: var(--accent-light);
    border-color: rgba(0, 163, 82, 0.15);
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-badge {
    display: inline-block;
    padding: 3px 12px;
    background: var(--gradient-accent);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.timeline-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.timeline-meta i {
    margin-left: 4px;
    color: var(--accent-primary);
}

.timeline-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

/* ============================================
   RESEARCH LIST
   ============================================ */
.research-list {
    display: grid;
    gap: 1rem;
}

.research-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(0, 163, 82, 0.03);
    border: 1px solid rgba(0, 163, 82, 0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
}

.research-item:hover {
    background: var(--accent-light);
    border-color: rgba(0, 163, 82, 0.15);
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.research-year {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 163, 82, 0.25);
}

.research-body {
    flex: 1;
    min-width: 0;
}

.research-title {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.5;
}

.research-journal {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 6px;
    font-weight: 500;
}

.research-journal i {
    margin-left: 4px;
}

.research-abstract {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.research-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    padding: 5px 14px;
    background: var(--gradient-accent);
    border-radius: 50px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 163, 82, 0.2);
}

.research-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 163, 82, 0.35);
    color: #fff;
}

/* ============================================
   COURSES GRID
   ============================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.course-card {
    background: rgba(0, 163, 82, 0.03);
    border: 1px solid rgba(0, 163, 82, 0.08);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.course-card:hover {
    background: var(--accent-light);
    border-color: rgba(0, 163, 82, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 163, 82, 0.12);
}

.course-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 163, 82, 0.25);
}

.course-name {
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.course-meta i {
    margin-left: 3px;
    color: var(--accent-primary);
}

.course-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-list {
    display: grid;
    gap: 1rem;
}

.skill-item {
    padding: 0.3rem 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.skill-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-level-text {
    font-size: 0.72rem;
    color: var(--accent-primary);
    font-weight: 600;
    background: var(--accent-light);
    padding: 2px 10px;
    border-radius: 50px;
}

.skill-bar {
    height: 8px;
    background: var(--accent-light);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 50px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    position: relative;
    z-index: 1;
    background: #fff;
    border-top: 2px solid var(--accent-light);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-brand {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border: 1px solid rgba(0, 163, 82, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-size: 1.1rem;
    transition: all var(--transition-medium);
}

.social-link:hover {
    color: #fff;
    background: var(--gradient-accent);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 163, 82, 0.3);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   INDEX PAGE
   ============================================ */
.index-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    z-index: 1;
    background: var(--gradient-hero);
}

.index-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 15px rgba(0, 163, 82, 0.2));

}



.index-title {
    font-family: 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.index-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

/* Employees Grid */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.emp-card-link {
    text-decoration: none;
    color: inherit;
}

.emp-card {
    text-align: center;
    padding: 2rem 1.5rem;
    cursor: pointer;
}

.emp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 163, 82, 0.12);
}

.emp-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid rgba(0, 163, 82, 0.2);
    box-shadow: 0 4px 12px rgba(0, 163, 82, 0.1);
}

.emp-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
}

.emp-card-placeholder i {
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 0.5;
}

.emp-card-name {
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.emp-card-title {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.emp-card-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 576px) {
    .profile-name {
        font-size: 1.5rem;
    }

    .avatar-ring {
        width: 120px;
        height: 120px;
    }

    .stats-grid {
        padding: 1rem 0.3rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }

    .glass-card {
        padding: 1.2rem;
        border-radius: var(--radius-md);
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .employees-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .index-title {
        font-size: 2rem;
    }

    .research-item {
        flex-direction: column;
    }

    .research-year {
        width: fit-content;
        height: auto;
        padding: 4px 16px;
    }
}

@media (min-width: 768px) {
    .profile-hero {
        padding: 3rem 0 4rem;
    }

    .profile-name {
        font-size: 2.2rem;
    }

    .avatar-ring {
        width: 160px;
        height: 160px;
    }

    .stats-grid {
        max-width: 600px;
        margin: 0 auto;
    }

    .profile-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .profile-content {
        max-width: 800px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 163, 82, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 163, 82, 0.45);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(0, 163, 82, 0.2);
    color: var(--text-primary);
}

/* ============================================
   PROFILE ACTIONS (SHARING, QR, PRINT)
   ============================================ */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-md);
}

.action-btn i {
    font-size: 1.1rem;
}

.share-btn {
    background: var(--gradient-accent);
    color: #fff;
}

.qr-btn {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid rgba(0, 163, 82, 0.15);
}

.print-btn {
    background: #1e293b;
    color: #fff;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.share-btn:hover {
    background: var(--accent-dark);
}

.qr-btn:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.print-btn:hover {
    background: #0f172a;
}

/* QR Code */
.qr-container {
    display: inline-block;
}

.qr-container img {
    margin: 0 auto;
}

/* ============================================
   PRINT AND PDF OPTIMIZATION
   ============================================ */
.print-only-header,
.print-only-footer {
    display: none;
}

@media print {
    @page {
        margin: 15mm;
        size: A4;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
        padding: 0;
    }

    /* Show Print Header & Footer */
    .print-only-header {
        display: block !important;
        border-bottom: 2px solid #00a352;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    .print-header-content {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: center;
    }

    .print-logo {
        width: 70px;
        height: 70px;
        object-fit: contain;
    }

    .print-title-area {
        text-align: center;
    }

    .print-title-area h2 {
        font-size: 18pt;
        margin: 0;
        color: #00a352;
    }

    .print-title-area h3 {
        font-size: 10pt;
        margin: 0;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .print-doc-type {
        margin-top: 5px;
        font-weight: bold;
        font-size: 11pt;
        padding: 2px 15px;
        background: #f1f5f9;
        background: #f1f5f9;
        display: inline-block;
        border-radius: 4px;
    }

    .print-date {
        text-align: left;
        font-size: 8pt;
        color: #888;
        margin-top: 5px;
    }

    .print-only-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        width: 100%;
        padding-top: 10px;
    }

    .print-footer-line {
        height: 1px;
        background: #eee;
        margin-bottom: 5px;
    }

    .print-footer-content {
        display: flex;
        justify-content: space-between;
        font-size: 8pt;
        color: #999;
    }

    /* Hide Web Elements */
    .no-print,
    .bg-particles,
    .hero-overlay,
    .hero-glow,
    .profile-actions,
    .tab-nav-wrapper,
    .avatar-status-dot,
    .avatar-ring,
    footer {
        display: none !important;
    }

    /* Structural Adjustments */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .profile-hero {
        background: none !important;
        border-bottom: 1px solid #eee;
        padding: 0 0 20px 0 !important;
        margin-bottom: 25px;
        text-align: center;
    }

    .avatar-ring-inner {
        border: 1px solid #eee !important;
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto;
    }

    .profile-name {
        font-size: 20pt !important;
        margin-top: 10px;
    }

    .profile-type-badge {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
        color: #333 !important;
        padding: 4px 12px !important;
    }

    .stats-bar {
        margin: 0 !important;
        padding: 0 !important;
    }

    .stats-grid {
        background: #fcfcfc !important;
        border: 1px solid #eee !important;
        box-shadow: none !important;
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }

    .stat-number {
        font-size: 14pt !important;
        color: #00a352 !important;
        -webkit-text-fill-color: #00a352 !important;
    }

    /* Content Layout */
    .profile-content {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .glass-card {
        background: #fff !important;
        border: 1px solid #eee !important;
        box-shadow: none !important;
        border-radius: 4px !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
        break-inside: avoid;
    }

    .card-header-custom {
        border-bottom: 1px solid #00a352 !important;
        margin-bottom: 10px !important;
    }

    .info-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* 2-column layout for print */
        gap: 5px 20px !important;
    }

    .info-item {
        padding: 4px 0 !important;
        border-bottom: 1px dotted #eee !important;
    }

    .info-icon {
        display: none !important;
        /* Icons take too much space in print */
    }

    /* Force show all tabs */
    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 25px;
    }

    .timeline::before {
        background: #eee !important;
    }

    .timeline-dot {
        border-color: #00a352 !important;
    }

    .timeline-card {
        background: #fff !important;
        border: 1px solid #f0f0f0 !important;
    }

    /* Skill bars for print */
    .skill-bar {
        background: #f1f5f9 !important;
        border: 1px solid #eee;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .skill-fill {
        background: #00a352 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .skill-fill::after {
        display: none !important;
    }
}

/* ============================================
   TIMELINE V2 (Supervision & Admin Positions)
   ============================================ */
.timeline-v2 {
    position: relative;
    padding-right: 2.5rem;
    margin-top: 1rem;
}

.timeline-v2::before {
    content: '';
    position: absolute;
    right: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, transparent 100%);
    border-radius: 2px;
}

.timeline-v2-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-v2-item:last-child {
    margin-bottom: 0;
}

.timeline-v2-item::after {
    content: '';
    position: absolute;
    right: -2.5rem;
    top: 10px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--accent-light);
}

.timeline-v2-year {
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.4rem;
    display: inline-block;
    padding: 2px 10px;
    background: var(--accent-light);
    border-radius: 20px;
}

.timeline-v2-content {
    background: rgba(0, 163, 82, 0.02);
    border: 1px solid rgba(0, 163, 82, 0.06);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    transition: all var(--transition-medium);
}

.timeline-v2-item:hover .timeline-v2-content {
    background: #fff;
    border-color: var(--accent-primary);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.timeline-v2-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.timeline-v2-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.timeline-v2-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.timeline-v2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-v2-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: 50px;
}

.timeline-v2-meta span i {
    font-size: 0.85rem;
}