/* Academic CV Design inspired by Raul Astudillo's website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
  }
  
  /* Navigation Bar */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 0 20px;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
  }
  
  .nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
  }
  
  .nav-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-item a:hover {
    color: #2c3e50;
  }
  
  /* Main Content */
  .main-content {
    margin-top: 60px;
  }
  
  .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  /* Header Section */
  .header {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 50px;
  }
  
  .profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 3px solid #2c3e50;
  }
  
  .name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
  }
  
  .title {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 20px;
  }
  
  .contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
  }
  
  .contact-item {
    color: #34495e;
    text-decoration: none;
  }
  
  .contact-item:hover {
    color: #2c3e50;
    text-decoration: underline;
  }
  
  .links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
  }
  
  .link:hover {
    color: #2980b9;
    text-decoration: underline;
  }
  
  /* Content Sections */
  .section {
    margin-bottom: 50px;
  }
  
  .section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 25px;
    font-weight: bold;
  }
  
  .about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 30px;
  }
  
  .about-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .about-text a:hover {
    color: #2980b9;
    text-decoration: underline;
  }
  
  /* Research Outputs */
  .research-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .research-item:last-child {
    border-bottom: none;
  }
  
  .research-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
  }
  
  .research-authors {
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
  }
  
  .research-venue {
    color: #7f8c8d;
    margin-bottom: 8px;
  }
  
  .research-links {
    margin-top: 10px;
  }
  
  .research-links a {
    color: #3498db;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
  }
  
  .research-links a:hover {
    color: #2980b9;
    text-decoration: underline;
  }
  
  /* Education */
  .education-item {
    margin-bottom: 30px;
  }
  
  .degree {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .university {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .education-details {
    color: #95a5a6;
    margin-bottom: 10px;
  }
  
  .education-description {
    margin-top: 10px;
    text-align: justify;
  }
  
  .document-links {
    margin-top: 10px;
  }
  
  .document-links a {
    color: #3498db;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
  }
  
  .document-links a:hover {
    color: #2980b9;
    text-decoration: underline;
  }
  
  /* Projects */
  .project-item {
    margin-bottom: 25px;
  }
  
  .project-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .project-subtitle {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 8px;
  }
  
  .project-description {
    text-align: justify;
  }
  
  /* Experience */
  .job-item {
    margin-bottom: 30px;
  }
  
  .job-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
  }
  
  .company {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .date {
    color: #95a5a6;
    margin-bottom: 10px;
  }
  
  .job-description ul {
    margin-left: 20px;
    margin-top: 8px;
  }
  
  .job-description li {
    margin-bottom: 5px;
  }
  
  /* Scholarships */
  .scholarship-item {
    margin-bottom: 20px;
  }
  
  .scholarship-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
  }
  
  .scholarship-description {
    color: #666;
  }
  
  /* Certifications */
  .certification-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .certification-item:last-child {
    border-bottom: none;
  }
  
  .certification-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
  }
  
  .certification-provider {
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 3px;
  }
  
  .certification-date {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .certification-description {
    margin-bottom: 10px;
    text-align: justify;
  }
  
  .certification-links {
    margin-top: 10px;
  }
  
  .certification-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
  }
  
  .certification-links a:hover {
    color: #2980b9;
    text-decoration: underline;
  }
  
  /* Highlight Box */
  .highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 5px 5px 0;
  }
  
  .highlight-text {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    color: #7f8c8d;
    font-size: 0.9rem;
  }
  
  /* Mobile Menu Toggle Button */
  .nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
  }
  
  .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  /* Mobile Menu Active States */
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .nav-toggle {
      display: flex;
    }
    
    .nav-menu {
      position: fixed;
      left: -100%;
      top: 60px;
      flex-direction: column;
      background-color: #ffffff;
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
      border-top: 1px solid #e0e0e0;
      padding: 20px 0;
    }
    
    .nav-menu.active {
      left: 0;
    }
    
    .nav-item {
      margin: 15px 0;
    }
    
    .nav-item a {
      font-size: 1.1rem;
      padding: 10px 0;
      display: block;
    }
    
    .nav-theme-toggle {
      margin: 10px auto;
    }
    
    .container {
      padding: 20px 15px;
    }
    
    .name {
      font-size: 2rem;
    }
    
    .contact {
      flex-direction: column;
      gap: 10px;
    }
    
    .links {
      flex-direction: column;
      gap: 10px;
    }
    
    .section-title {
      font-size: 1.5rem;
    }
    
    .about-text {
      font-size: 1rem;
    }
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Dark Mode Styles */
  [data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #2d2d2d;
    --border-color: #404040;
    --card-bg: #2d2d2d;
    --accent-color: #4a9eff;
    --muted-color: #a0a0a0;
  }
  
  [data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  
  [data-theme="dark"] .navbar {
    background-color: var(--header-bg);
    border-bottom-color: var(--border-color);
  }
  
  [data-theme="dark"] .nav-logo {
    color: var(--text-color);
  }
  
  [data-theme="dark"] .nav-item a {
    color: var(--muted-color);
  }
  
  [data-theme="dark"] .nav-item a:hover {
    color: var(--text-color);
  }
  
  [data-theme="dark"] .header {
    background-color: var(--header-bg);
    border-bottom-color: var(--border-color);
  }
  
  [data-theme="dark"] .name {
    color: var(--text-color);
  }
  
  [data-theme="dark"] .title {
    color: var(--muted-color);
  }
  
  [data-theme="dark"] .contact-item {
    color: var(--muted-color);
  }
  
  [data-theme="dark"] .contact-item:hover {
    color: var(--text-color);
  }
  
  [data-theme="dark"] .section-title {
    color: var(--text-color);
    border-bottom-color: var(--accent-color);
  }
  
  [data-theme="dark"] .highlight-box {
    background-color: #2a2a2a;
    border-left-color: var(--accent-color);
  }
  
  [data-theme="dark"] .highlight-text {
    color: var(--text-color);
  }
  
  [data-theme="dark"] .research-item,
  [data-theme="dark"] .certification-item {
    border-bottom-color: var(--border-color);
  }
  
  [data-theme="dark"] .research-title,
  [data-theme="dark"] .certification-title,
  [data-theme="dark"] .degree,
  [data-theme="dark"] .project-title,
  [data-theme="dark"] .job-title,
  [data-theme="dark"] .scholarship-title {
    color: var(--text-color);
  }
  
  [data-theme="dark"] .research-authors,
  [data-theme="dark"] .research-venue,
  [data-theme="dark"] .certification-provider,
  [data-theme="dark"] .university,
  [data-theme="dark"] .project-subtitle,
  [data-theme="dark"] .company {
    color: var(--muted-color);
  }
  
  [data-theme="dark"] .research-description,
  [data-theme="dark"] .certification-description,
  [data-theme="dark"] .education-description,
  [data-theme="dark"] .project-description,
  [data-theme="dark"] .scholarship-description {
    color: var(--muted-color);
  }
  
  [data-theme="dark"] .about-text a {
    color: var(--accent-color);
  }
  
  [data-theme="dark"] .about-text a:hover {
    color: #5ba8ff;
  }
  
  [data-theme="dark"] .footer {
    border-top-color: var(--border-color);
    color: var(--muted-color);
  }
  
  /* Navigation Dark Mode Toggle Button */
  .nav-theme-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
  }
  
  .nav-theme-toggle:hover {
    color: #2c3e50;
    background-color: rgba(44, 62, 80, 0.1);
  }
  
  [data-theme="dark"] .nav-theme-toggle {
    color: #a0a0a0;
  }
  
  [data-theme="dark"] .nav-theme-toggle:hover {
    color: #e0e0e0;
    background-color: rgba(224, 224, 224, 0.1);
  }
  
  /* Scroll Up Button */
  .scroll-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
  }
  
  .scroll-up:hover {
    background: #34495e;
    transform: translateY(-2px);
  }
  
  .scroll-up.show {
    display: flex;
  }
  
  [data-theme="dark"] .scroll-up {
    background: #4a9eff;
  }
  
  [data-theme="dark"] .scroll-up:hover {
    background: #5ba8ff;
  }
  
  /* Dark mode for mobile menu */
  [data-theme="dark"] .bar {
    background-color: #e0e0e0;
  }
  
  [data-theme="dark"] .nav-menu {
    background-color: var(--header-bg);
    border-top-color: var(--border-color);
  }
  
  /* Responsive adjustments for buttons */
  @media (max-width: 768px) {
    .scroll-up {
      bottom: 20px;
      right: 20px;
      width: 45px;
      height: 45px;
      font-size: 1rem;
    }
    
    .nav-theme-toggle {
      width: 28px;
      height: 28px;
      font-size: 1rem;
    }
  }