/* ===========================
   Base & Typography
   =========================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #eef2f6;
    color: #333;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 6px;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 2rem 1.5rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.expertise-text {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
}

.connect-label {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

/* ===========================
   Social Links
   =========================== */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 30px;
    background-color: #f5f5f7;
    border: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: #0071e3;
    color: #ffffff;
    border-color: #0071e3;
    transform: translateX(4px);
    text-decoration: none;
}

/* ===========================
   Buttons
   =========================== */
.btn-rounded {
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-rounded:hover {
    background-color: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

.btn-sm.btn-rounded {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* ===========================
   Main Content Area
   =========================== */
.main-content {
    background:
        radial-gradient(circle at 92% 4%, rgba(0, 113, 227, 0.08), transparent 24rem),
        #eef2f6;
    min-height: 100vh;
}

/* ===========================
   Navigation Tabs
   =========================== */
.nav-tabs {
    border-bottom: none;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-tabs .nav-link {
    border-radius: 30px;
    padding: 8px 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #e8f0fe;
    color: #0071e3;
    border-color: #c7d9fb;
}

.nav-tabs .nav-link.active {
    background-color: #0071e3;
    color: #ffffff;
    border-color: #0071e3;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* ===========================
   Tab Content
   =========================== */
.tab-content {
    background-color: transparent;
    padding: 0;
}

.tab-pane.show {
    animation: fadeInUp 0.2s ease;
}

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

/* ===========================
   Cards
   =========================== */
.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
}

.featured-project {
    border: 1px solid #cfe0f5;
    box-shadow: 0 8px 26px rgba(0, 79, 144, 0.1);
}

.experience-featured {
    border-left: 4px solid #0071e3;
}

.card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.875rem;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
}

ul li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* Date badge on education / experience cards */
.date-badge {
    font-size: 0.78rem;
    color: #888;
    background-color: #f5f5f7;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
    flex-shrink: 0;
}

/* ===========================
   Project Card Images
   =========================== */
.project-img-wrap {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-height: 180px;
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.project-video {
    display: block;
    background: #ffffff;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.text-project-body {
    padding: 1.5rem 1.65rem;
}

.project-tags span {
    padding: 4px 10px;
    border: 1px solid #d9e5f3;
    border-radius: 999px;
    background: #f4f8fc;
    color: #47647e;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ===========================
   Publications
   =========================== */
.pub-card {
    border-left: 4px solid #0071e3;
}

.badge-journal {
    display: inline-block;
    background-color: #e8f0fe;
    color: #0071e3;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}

.badge-published {
    display: inline-block;
    background-color: #ecfdf5;
    color: #059669;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #6ee7b7;
}

.badge-under-review {
    display: inline-block;
    background-color: #fff7ed;
    color: #d97706;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #fcd34d;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 6px;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.5;
    margin-bottom: 6px;
}

.pub-authors {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.pub-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.keyword-tag {
    background-color: #f5f5f7;
    color: #555;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

/* ===========================
   About Section
   =========================== */
.about-intro-card {
    border-left: 4px solid #0071e3;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
}

.about-greeting {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.about-intro {
    font-size: 1rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 0;
}

.about-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.about-build-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-build-item {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.about-build-icon {
    color: #0071e3;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Skills & Tools */
.skills-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.skills-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 130px;
    padding-top: 5px;
    flex-shrink: 0;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-chip {
    background-color: #f0f6ff;
    color: #0071e3;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #c7d9fb;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .project-img-wrap {
        min-height: 160px;
    }

    .date-badge {
        margin-top: 6px;
    }
}
