/* --- COLOR PALETTE & VARIABLES --- */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #00adb5; /* Teal accent */
    --accent-hover: #007a80;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 80px; /* Space for the fixed header */
}

/* --- TOP NAVIGATION BAR --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: var(--border-color);
    color: var(--accent-color);
}

.nav-btn.active {
    background-color: var(--accent-color);
    color: #fff;
}

/* --- MAIN LAYOUT WRAPPER --- */
.layout-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 2rem;
    align-items: flex-start; /* Crucial for sticky sidebar to work */
}

/* --- SIDEBAR (Left Column) --- */
.sidebar {
    width: 300px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: sticky;
    top: 100px; /* Sticks 100px from the top (below header) */
    text-align: center;
    flex-shrink: 0;
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 3px solid var(--accent-color);
    object-fit: cover;
    margin-bottom: 1rem;
}

.sidebar h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.sidebar .title {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    font-size: 0.85rem;
    text-align: left;
}

.info-list li {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
}

.info-list span:first-child {
    color: var(--text-muted);
    font-weight: bold;
}

/* --- CONTENT AREA (Right Column) --- */
.content-area {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 60vh;
}

.section {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.section.active {
    display: block;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- TIMELINE & SKILLS (Content Styling) --- */
.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.skill-bar {
    margin-bottom: 1rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.progress {
    background-color: var(--border-color);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background-color: var(--accent-color);
    height: 100%;
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .layout-wrapper {
    flex-direction: column;
    align-items: center;
    }
    .sidebar {
    width: 100%;
    max-width: 500px;
    position: static; /* Removes sticky behavior on small screens */
    }
    .content-area {
    width: 100%;
    padding: 2rem;
    }
    .header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    }
    .nav-menu {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    }
    body {
    padding-top: 130px; /* More space for stacked header */
    }
}

/* --- ICON STYLING --- */
.title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.icon-box {
  position: relative;
  background: var(--border--gradient-onyx);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}


/* --- GRANTS & AWARDS CARDS --- */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  gap: 20px;
  list-style: none;
  padding: 0;
}

.service-item {
  position: relative;
  background: #202022; /* Solid dark gray background */
  padding: 25px;
  border-radius: 14px;
  border: 1px solid #383838; /* Subtle border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color); /* Teal highlight on hover */
  background: #252527;
}

.service-item-title {
  color: var(--text-main);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

time {
  color: #00adb5; /* Using your accent color for the date */
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.service-item-text {
  color: #a0a0a0; /* Muted text for the description */
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Fix for small screens */
@media (max-width: 768px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}