/* --- SCROLL FIX --- */
html,
body {
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
  background-color: #f8fafc; /* Light background for contrast */
}

.resume-wrapper {
  /* FIXED: Increased padding to prevent navbar overlap */
  padding-top: 100px; 
  padding-bottom: 50px;
}

.resume-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Card Styling */
.resume-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #f1f5f9;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.5rem;
}
.section-header i {
  color: #2563eb;
  font-size: 1.25rem;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* --- EDUCATION CARD STYLING (NEW) --- */
.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.edu-uni {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}
.edu-degree {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.edu-date {
  font-size: 0.85rem;
  color: #64748b;
  white-space: nowrap;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

/* GPA & Awards Grid */
.edu-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.edu-meta-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}
.edu-meta-icon {
  color: #64748b;
  width: 20px;
  margin-right: 0.5rem;
}
.edu-meta-text {
  color: #334155;
}

/* Course Tags */
.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.course-tag {
  font-size: 0.7rem;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 12px;
}

/* --- EXPERIENCE TIMELINE --- */
.experience-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  border-left: 2px solid #e2e8f0;
}
.experience-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #3b82f6;
}

/* Custom Border Colors for specific companies */
.experience-item:nth-of-type(1)::before { border-color: #4285F4; } /* Google Blue */
.experience-item:nth-of-type(2)::before { border-color: #fb923c; } /* OpenSesame Orange */
.experience-item:nth-of-type(3)::before { border-color: #10b981; } /* ANDSystems Green */
.experience-item:nth-of-type(4)::before { border-color: #8b5cf6; } /* Rochester Purple */


.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.company-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}
.job-period {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}
.job-role {
  color: #2563eb;
  font-weight: 600;
  font-size: 1rem;
}
.job-location {
  color: #64748b;
  font-size: 0.875rem;
}

/* Team/Project Sub-cards */
.team-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
}
.team-title {
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.25rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.team-details li {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.75rem;
  list-style-type: disc;
  margin-left: 1.25rem;
  line-height: 1.6;
  transition: opacity 0.3s ease; /* Smooth transition for filtering */
}

/* Skills Tags (Sidebar) */
.skill-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.25rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

/* --- HIGHLIGHTING STYLES --- */
.highlight-project {
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px dotted #94a3b8;
}
.highlight-tech {
    display: inline-block;
    background-color: #e0e7ff;
    color: #3730a3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85em;
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #c7d2fe;
    vertical-align: middle;
}
.highlight-metric {
    color: #059669;
    font-weight: 700;
    background-color: rgba(5, 150, 105, 0.05);
    padding: 0 2px;
    border-radius: 2px;
}

/* --- FEATURED WORK STYLING --- */
.hero-feature {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #3b82f6;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25);
  margin-bottom: 1.5rem;
  transition: transform 0.2s;
}
.hero-feature:hover {
  transform: translateY(-2px);
}
.hero-content {
  padding: 1.5rem;
}

.secondary-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.secondary-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.secondary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.tag.top-project {
  background: #2563eb;
  color: white;
}
.tag.blog {
  background: #e2e8f0;
  color: #475569;
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Responsive Layout */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .resume-grid {
    grid-template-columns: 1fr;
  }
  .secondary-features {
    grid-template-columns: 1fr;
  }
}

/* --- INTERACTIVE STATES (Added for JS functionality) --- */
#language-skills .skill-tag {
  cursor: pointer;
}
#language-skills .skill-tag:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}
#language-skills .skill-tag.active {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
}