/* ---- BASE STYLES & VARIABLES ---- */
:root {
    --primary-blue: #14b8a6;       /* Teal */
    --primary-blue-hover: #0d9488; /* Darker Teal */
    --light-blue-bg: #e0f8f7;      /* Pale Teal for backgrounds */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* ---- NAVBAR ---- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 40px; background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1400px; margin: 0 auto; }

.logo { font-size: 26px; font-weight: 700; color: var(--primary-blue); }
.logo svg { width: 100px; height: auto; } /* Keeping SVG if you want it, or use text-logo */

.search-bar { display: flex; align-items: center; background-color: #f3f4f6; border-radius: 8px; padding: 8px 16px; width: 300px; }
.search-bar i { color: var(--text-muted); margin-right: 10px; }
.search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; }

.nav-links { display: flex; gap: 10px; }
.nav-item {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: var(--text-muted); padding: 8px 16px; border-radius: 8px; font-size: 16px; gap: 4px; transition: 0.2s;
}
.nav-item.active { background-color: var(--light-blue-bg); color: var(--primary-blue); }
.nav-item:hover { color: var(--primary-blue); }

.burger-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-main); }

/* ---- GLOBAL LAYOUT & UTILITIES ---- */
.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* ---- PROFILE HERO CARD ---- */


.profile-hero-card {
    margin-bottom: 24px;
}

.profile-banner {
    height: 140px;
    background: linear-gradient(to right, #4f46e5, #6b7280); /* Deep blue to slate gradient */
    width: 100%;
}

.profile-content {
    padding: 0 24px 24px;
}

.profile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -60px;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--white);
    background-color: var(--border-color);
    object-fit: cover;
}

.profile-actions {
    margin-bottom: 16px;
    display: flex;
    flex-direction: row;   /* تأكيد إنهم صف */
    flex-wrap: nowrap;     /* يمنع النزول لسطر تاني */
    gap: 10px;
}

.profile-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;           /* إلغاء 100% */
    flex: 0 0 auto;        /* يمنع التمدد */
    white-space: nowrap;
}

.profile-header-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 12px;
}

.profile-title {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.profile-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 24px;
}

.profile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* ---- STATS GRID ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- RESUME / SECTIONS (Experience & Education) ---- */
.section-card {
    padding: 32px 24px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.resume-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.resume-item {
    display: flex;
    gap: 16px;
}

.resume-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.light-gray-bg {
    background-color: #f3f4f6;
    color: var(--text-muted);
}

.teal-bg {
    background-color: var(--primary-blue);
    color: var(--white);
}

.resume-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.resume-subtitle {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.resume-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.resume-desc {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 60px 20px 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover{
    color: var(--primary-blue-hover);
    transition: all 0.2s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.social-links a {
    color: var(--primary-blue);
    font-size: 18px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-top-row {
        flex-direction: column;
        align-items: center;
        margin-top: -65px;
    }
    
    .profile-actions {
        margin-top: 16px;
        width: 100%;
        display: flex;
        gap: 10px;
        align-items: center;
        flex-direction: column;
    }
    
    .profile-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-header-text {
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }

    .search-bar {
        display: none;
    }

    .nav-container { padding: 0 20px; }
    .search-bar { display: none; }
    .burger-btn { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 70px; left: 0;
        width: 100%; background: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 15px 0;
    }
    .nav-links.active { display: flex; }
    .nav-item { flex-direction: row; padding: 12px 30px; width: 100%; gap: 15px; }
}





