/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Source Code Pro', monospace;
    background-color: #fff;
    color: #000;
    line-height: 1.6;
  }
  
  h1, h2, h3 {
    font-family: 'Merriweather', serif;
  }
  
  a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: #555;
  }
  
  /* Smooth Scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Header Styles */
  header {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
  }
  
  .header-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  nav ul {
    list-style: none;
    padding: 10px 0;
  }
  
  nav li {
    display: inline-block;
    margin: 0 15px;
  }
  
  nav a {
    font-weight: bold;
  }
  
  h2 {
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
  }
  
  /* About Section */
  #about {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
  }
  
  #about p {
    font-size: 1.1em;
    line-height: 1.8;
  }
  
  /* Main Content Styles */
  main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Work Section */
  .work-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .work-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
  }
  
  .work-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .work-summary {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
  }
  
  .work-summary:hover {
    background-color: #f0f0f0;
  }
  
  .work-summary h3 {
    margin: 0;
  }
  
  .work-duration {
    font-style: italic;
    color: #666;
  }
  
  /* Projects Section */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .project-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .project-summary {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
  }
  
  .project-summary:hover {
    background-color: #f0f0f0;
  }
  
  .project-summary h3 {
    margin: 0;
  }
  
  .project-duration {
    font-style: italic;
    color: #666;
  }
  
  .project-details {
    padding: 16px;
    border-top: 1px solid #ccc;
  }
  
  .project-details img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .project-links {
    margin-top: 10px;
  }
  
  .project-links a {
    margin-right: 10px;
    font-size: 0.9em;
  }
  
  /* Publications & Talks Section */
  #publications-and-talks {
    margin-bottom: 40px;
  }
  
  #publications-and-talks h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.5em;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
  }
  
  #publications-and-talks h3 i {
    margin-right: 10px;
    color: #000;
  }
  
  .publications-section {
    margin-bottom: 30px;
  }
  
  .publications-list {
    list-style: none;
    padding-left: 0;
  }
  
  .publications-list li {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #000;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .publications-list li:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
  }
  
  .publications-list a {
    color: #000;
    text-decoration: none;
    display: block;
  }
  
  .publications-list a:hover {
    text-decoration: underline;
  }
  
  .publications-list strong {
    font-size: 1.1em;
  }
  
  .publications-list span {
    font-size: 0.9em;
    color: #555;
  }
  
  
  /* Contact Section */
  #contact p {
    margin-bottom: 10px;
  }
  
  /* Footer Styles */
  footer {
    background-color: #f9f9f9;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ccc;
  }
  
  footer p {
    margin-bottom: 10px;
  }
  
  footer a {
    margin: 0 10px;
    font-weight: bold;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .profile-pic {
      width: 100px;
      height: 100px;
    }
  
    nav li {
      display: block;
      margin: 10px 0;
    }
  }
  
  /* Popup Styles */
  .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
  }
  
  .popup-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
  }
  
  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  .close-btn:hover {
    color: #000;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { transform: translateY(-50px); }
    to { transform: translateY(0); }
  }
  
  /* Responsive Popup Content */
  @media (max-width: 600px) {
    .popup-content {
      max-width: 90%;
      padding: 15px;
    }
  
    .profile-pic {
      width: 100px;
      height: 100px;
    }
  
    nav li {
      display: block;
      margin: 10px 0;
    }
  
    /* Publications & Talks Responsive */
    .publications-list li {
      padding: 10px;
      font-size: 0.95em;
    }
  
    #about p {
      font-size: 1em;
    }
  }
  
  /* Publications & Talks Additional Styles */
  .publications-list li {
    /* Ensures list items are properly spaced and aligned */
  }
  
  /* Sports Page Styles */
  #sports {
    padding: 50px 20px;
    background-color: #f4f4f4;
  }
  
  #sports h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #222;
    font-family: 'Merriweather', serif;
  }
  
  .sports-achievements {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .achievement {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    width: 280px;
    text-align: center;
    padding: 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .achievement:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }
  
  .achievement img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .achievement h3 {
    margin-top: 20px;
    font-size: 1.75em;
    color: #333;
    font-family: 'Merriweather', serif;
  }
  
  .achievement p {
    color: #555;
    margin-top: 12px;
    font-size: 1em;
  }
  
  /* Strava Badge Styles */
  #strava-badge {
    text-align: center;
    margin: 40px 0;
  }
  
  /* Blog Section Styles */
  #blog {
    padding: 50px 20px;
    background-color: #f9f9f9;
  }
  
  #blog h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #222;
    font-family: 'Merriweather', serif;
  }
  
  .activities-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .activity {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .activity h3 {
    margin-bottom: 10px;
    color: #1e90ff;
    font-family: 'Merriweather', serif;
  }
  
  .activity p {
    color: #555;
    font-size: 1em;
  }
  
  /* Ensure the main style consistency */
  body {
    font-family: 'Source Code Pro', monospace;
    color: #333;
    background-color: #ffffff;
  }
  
  header, footer {
    background-color: #f9f9f9;
    color: #000;
  }
  
  header a, footer a {
    color: #000;
    text-decoration: none;
  }
  
  header a:hover, footer a:hover {
    color: #555;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .sports-achievements {
      flex-direction: column;
      align-items: center;
    }
  
    .achievement {
      width: 90%;
    }
  
    nav ul {
      flex-direction: column;
      gap: 10px;
    }
  
    .activities-container {
      padding: 0 10px;
    }
  }
  
  .story-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .story-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .story-intro, .story-outro {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .story-timeline {
    position: relative;
    padding: 2rem 0;
  }
  
  .story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #ddd;
    transform: translateX(-50%);
  }
  
  .story-chapter {
    position: relative;
    margin-bottom: 3rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .story-chapter:nth-child(odd) {
    margin-right: 50%;
  }
  
  .story-chapter:nth-child(even) {
    margin-left: 50%;
  }
  
  .story-chapter h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  .story-chapter i {
    margin-right: 0.5rem;
    color: #000;
  }
  
  .story-chapter p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
  }
  
  @media (max-width: 768px) {
    .story-timeline::before {
      left: 0;
    }
    
    .story-chapter {
      margin-left: 20px !important;
      margin-right: 0 !important;
    }
  }
  
  /* Add these new styles at the end of your existing styles.css file */
  
  .story-content {
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }
  
  .story-content.hidden {
    max-height: 0;
    opacity: 0;
  }
  
  .story-content.visible {
    max-height: 5000px; /* Adjust this value based on your content length */
    opacity: 1;
  }
  
  .toggle-story-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .toggle-story-btn:hover {
    background-color: #333;
  }
  
  #strava-badge {
    margin-top: 20px;
    text-align: center;
  }
  
  @media (max-width: 768px) {
    .story-content {
      padding: 0 10px;
    }
  }
  
  /* Add these new styles at the end of your existing styles.css file */
  
  .story-title.hidden,
  .story-content.hidden {
    display: none;
  }
  
  .visible-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .toggle-story-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .toggle-story-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  }
  
  .toggle-story-btn .btn-text {
    margin-right: 10px;
  }
  
  .toggle-story-btn i {
    transition: transform 0.3s ease;
  }
  
  .toggle-story-btn.active i {
    transform: rotate(180deg);
  }
  
  .story-content {
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }
  
  .story-content.visible {
    max-height: 5000px; /* Adjust this value based on your content length */
    opacity: 1;
  }
  
  @media (max-width: 768px) {
    .toggle-story-btn {
      font-size: 0.9rem;
      padding: 10px 20px;
    }
  }
  
  .activity-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
  }
  
  .activity-card:hover {
    transform: translateY(-5px);
  }
  
  .activity-card i {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .activity-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
  }
  
  .activity-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
  }
  
  .activity-details span {
    display: flex;
    align-items: center;
  }
  
  .activity-details i {
    font-size: 14px;
    margin-right: 5px;
  }
  
  .view-more-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
  }
  
  .view-more-btn:hover {
    background-color: #333;
  }
  
  .error-message {
    color: #ff0000;
    text-align: center;
    margin-top: 20px;
  }
  
  .activity-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .activity-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
  }
  
  .close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
  }
  
  .activity-popup-details {
    margin-top: 20px;
  }
  
  #activity-map {
    margin-top: 20px;
  }
  
  .activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .activity-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
  }
  
  .activity-card:hover {
    transform: translateY(-5px);
  }
  
  .activity-card i {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .activity-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
  }
  
  .activity-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .activity-details span {
    font-size: 14px;
  }
  
  .view-more-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #FC4C02;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
  }
  
  .view-more-btn:hover {
    background-color: #E34500;
  }
  
  .activity-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .activity-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
  }
  
  .close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
  }
  
  #activity-map {
    margin-top: 20px;
  }
  
  .activity-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .activity-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    max-height: 90%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  .close-btn {
    align-self: flex-end;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 10px;
  }
  
  .activity-popup-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .activity-popup-details {
    flex: 1;
    min-width: 300px;
  }
  
  .activity-popup-map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
  }
  
  #activity-map {
    width: 100%;
    height: 100%;
  }
  
  .activity-popup-details div {
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f8f8f8;
    border-radius: 5px;
  }
  
  .activity-popup-details div i {
    margin-right: 5px;
    color: #FC4C02;
  }
  
  @media (max-width: 768px) {
    .activity-popup-content {
      width: 95%;
      max-height: 95%;
    }
    
    .activity-popup-details-container {
      flex-direction: column;
    }
    
    .activity-popup-map-container {
      height: 300px;
    }
  }

.stats-container {
  margin-top: 20px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.record {
  margin-bottom: 15px;
  padding: 10px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.record h3 {
  margin-top: 0;
  color: #333;
}

.record p {
  margin: 5px 0;
  color: #666;
}