/* Import modern professional font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a202c;
  background: linear-gradient(135deg, #f5f7fa 0%, #d9e2ef 100%);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation styling */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  margin-bottom: 0;
}

.hero-header {
  background-image: url('/images/hero-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.hero-header.navbar {
  background-color: transparent !important;
}

.hero-header .container-fluid {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  max-width: 1200px;
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.profile-pic {
  height: 180px;
  width: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.profile-pic:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.heading-txt {
  text-align: center;
  margin-top: 1.5rem;
}

.heading-txt h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.heading-txt p {
  font-size: 1.1rem;
  color: #4a5568;
  font-weight: 400;
}

.nav-link {
  font-weight: 500;
  color: #4a5568 !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #edf2f7;
  color: #2d3748 !important;
  transform: translateY(-2px);
}

/* Main content container */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

section:first-of-type {
  margin-top: 2rem;
}

h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #0033A0;
  display: inline-block;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #cbd5e0, transparent);
  margin: 3rem 0;
}

/* Accordion styling */
.accordion {
  margin-top: 1.5rem;
}

.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.accordion-item.is-highlighted {
  border-color: #0033A0;
  box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.2);
}

.accordion-item.is-highlighted .accordion-button {
  color: #0033A0;
}

.accordion-button {
  font-size: 1rem;
  font-weight: 500;
  color: #2d3748;
  background-color: #f7fafc !important;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #0033A0 !important;
  color: white !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.2);
}

.accordion-button strong {
  color: #0033A0;
  margin-right: 0.5rem;
}

.accordion-button:not(.collapsed) strong {
  color: white;
}

.accordion-body {
  padding: 1.5rem;
  background-color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-body ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.accordion-body li {
  margin-bottom: 0.75rem;
  color: #4a5568;
}

/* Skills section */
.skills {
  margin-top: 1.5rem;
}

.table {
  font-size: 1rem;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: #0033A0;
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border: none;
}

.table thead th:first-child {
  border-top-left-radius: 8px;
}

.table thead th:last-child {
  border-top-right-radius: 8px;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background-color: #f7fafc;
  transform: scale(1.01);
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
}

.skill {
  width: 25%;
  font-size: 1rem;
  font-weight: 500;
  color: #2d3748;
}

.experience {
  width: 75%;
}

.progress {
  height: 30px;
  border-radius: 15px;
  background-color: #e2e8f0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, #d9d9d9 0%, #0033A0 100%);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s ease;
}

/* Knowledge graph */
.knowledge-graph {
  margin-top: 1.5rem;
}

#knowledgeGraph {
  height: 420px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f7fafc;
}

.graph-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.graph-year-label {
  font-weight: 600;
  color: #2d3748;
}

#graphYear {
  width: min(420px, 100%);
  accent-color: #0033A0;
}

.graph-year-value {
  font-weight: 600;
  color: #0033A0;
  min-width: 3ch;
}

#graphPlayPause {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .heading-txt h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 2rem 1rem;
    margin: 1rem;
  }
  
  .profile-pic {
    height: 150px;
    width: 150px;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .accordion-button {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

/* Footer styling */
.footer {
  background: linear-gradient(135deg, #d9d9d9 0%, #0033A0 100%);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer p:first-child {
  font-weight: 600;
  font-size: 1rem;
}