/* ===========================
   ROOT VARIABLES & RESET
   =========================== */
:root {
    --navy: #1e293b;
    --slate: #475569;
    --light-slate: #94a3b8;
    --line: #f1f5f9;
    --accent: #3b82f6;
    --white: #ffffff;
    --bg-subtle: #fafafa;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--navy);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    padding: 1.2rem 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--slate);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--navy);
    font-weight: 700;
}

/* ===========================
   SPLIT-STREAM LAYOUT
   =========================== */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px; /* Balanced ratio */
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Content */
.content-flow {
    padding: 40px 8%;
    border-right: 1px solid var(--line);
}

.name-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0;
    line-height: 1.05;
    color: var(--navy);
}

.role-subtitle {
    font-size: 1.15rem;
    color: var(--slate);
    margin: 15px 0 35px 0;
    font-weight: 400;
}

.intro-text {
    font-size: 1.1rem;
    max-width: 720px;
    margin-bottom: 50px;
    color: var(--slate);
}

.internal-link {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1.5px solid var(--line);
    transition: var(--transition);
    font-weight: 600;
}

.internal-link:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* ===========================
   RESEARCH PILLARS
   =========================== */
.section-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--light-slate);
    margin-bottom: 25px;
    display: block;
}

.pillar-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 35px;
}

.pillar {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.pillar:hover {
    background: #f8fafc;
    border-left: 3px solid var(--accent);
}

.pillar-num {
    font-weight: 800;
    font-size: 1rem;
    color: var(--light-slate);
    opacity: 0.5;
}

.pillar strong {
    font-size: 1rem;
    color: var(--navy);
    display: block;
}

.pillar p {
    margin-top: 4px;
    font-size: 1rem;
    color: var(--slate);
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: var(--transition);
}

.explore-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Academic History Section */
.academic-history {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
    color: var(--slate);
}

/* ===========================
   SIDEBAR (RIGHT)
   =========================== */
/* Update these sections in your existing CSS */

.visual-sidebar { 
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    padding: 60px 45px; 
    display: flex; 
    flex-direction: column; 
    /* CHANGED: This allows the sidebar to expand so nothing is cut off */
    height: auto; 
    min-height: 100vh;
    border-left: 1px solid var(--line);
}

.profile-frame { 
    width: 100%; 
    border-radius: 20px; 
    overflow: hidden; 
    margin-bottom: 30px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* ADDED: Ensures the container matches the image height */
    display: block;
}

.profile-frame img { 
    width: 100%; 
    height: auto; /* Ensures original proportions are kept */
    display: block; 
    object-fit: cover; /* Keeps it sharp without stretching */
}

.contact-icons {
    margin-bottom: 40px;
    display: flex;
    gap: 22px;
    font-size: 1.3rem;
    justify-content: center;
}

.contact-icons a {
    color: var(--navy);
    transition: var(--transition);
}

.contact-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-slate);
    margin-bottom: 20px;
    display: block;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.award-item {
    margin-bottom: 20px;
    font-size: 1rem;
}

.award-item strong {
    display: block;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem; /* Matches the refined scale */
    line-height: 1.3;
}

.award-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--slate);
    font-style: italic; /* Makes it look like a formal subtitle */
    margin-top: 2px;
}

.award-detail {
    font-size: 0.9rem;
    color: var(--slate);
    padding: 15px 0;
    border-top: 1px solid var(--line);
    line-height: 1.5;
}

/* Vision Quote */
.vision-quote-container {
    margin-top: auto;
    padding-top: 30px;
}

.vision-text {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--slate);
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--line);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    padding: 3rem 8%;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--light-slate);
    font-size: 0.9rem;
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-text {
  color: var(--color-gray-300);
  font-size: 0.875rem;
}
/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    .content-flow {
        border-right: none;
    }
    .visual-sidebar {
        height: auto;
        position: relative;
        top: 0;
        padding: 60px 8%;
        border-top: 1px solid var(--line);
    }
    .name-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .visitor-map {
        display: none;
    }
}

