@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .card {
    padding: 10px;
  }

  .card img {
    height: 150px;
  }
}



body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    color: #222;
    background-color: #fff;
  }
  
  h1 {
    font-size: 2em;
    font-family: Lucida Handwriting , cursive;
  }

  h2 {
    font-size: 2em;
    font-family: Arial, sans-serif;
  }

  blockquote {
    font-style: italic;
    color: #666;
    margin: 1em 0;
    padding-left: 1em;
    border-left: 3px solid #ccc;
  }
  
  .portfolio-section {
    margin-top: 40px;
  }
  
  .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .card-container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .card {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: 0.3s ease;
  }
  
  .card:hover {
    transform: scale(1.02);
  }
  
  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .card h3 {
    margin-top: 10px;
  }
  
  .card .date {
    font-size: 0.85em;
    color: #777;
  }


  

  body.light {
    background: #ffffff;
    color: #222;
  }
  
  body.dark {
    background: #121212;
    color: #eee;
  }
  
  body.dark .card {
    background: #1e1e1e;
  }
  
  #theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10; /* higher than the banner's ::before */
    padding: 6px 12px;
    border: none;
    background-color: #888;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }




  .page-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .page-header p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
  }
  
  .page-header blockquote {
    font-style: italic;
    color: #a0a6f8;
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 600px;
  }

  /*.banner {
    background: url('images/banner.png') center/cover no-repeat;
    color: white;
    padding: 4rem 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }*/

  
  .banner {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    z-index: 1;
  }
  
  /* Blurred background image */
  .banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('images/banner1.png') center/cover no-repeat;
    filter: blur(2px);
    z-index: -2;
    transform: scale(1.1); /* prevent edge cutoff */
  }
  
  /* Optional: dark overlay for better text contrast */
  .banner::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
  }
  
  blockquote {
    color: #e6c613;
    font-size: 1.1rem;
    border-left: 4px solid #888;
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
  }
  
  #emojiToggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10; /* higher than the banner's ::before */
    font-size: 24px;
    background-color: white;  
    border: 2px solid #f8f406;  
    border-radius: 50%;
    padding: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #emojiToggle:hover {
    transform: scale(1.5) rotate(-15deg);
    background-color: white;
  }

 
  
  body.dark-theme {
    background-color: #2c2c54;
    color: #f8f8ff;
  }
  

.nav-link {
    padding: 8px 16px;
    margin: 4px;
    background-color: #eee;
    color: #333;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  /* .nav-link.active {
    background-color: #1d9bf0;
    color: white;
    box-shadow: 0 0 8px rgba(29, 155, 240, 0.6);
  }
   */
   
  .nav-link:hover {
    background-color: #1d9bf0;
    color: white;
    box-shadow: 0 0 12px rgba(29, 155, 240, 0.8), 0 0 20px rgba(29, 155, 240, 0.5);
    transform: scale(1.03);
    z-index: 1;
  }
  
  



  
  .timeline-container {
    
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: 0.3s ease;
  }

  .card {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: 0.3s ease;
  }
  
  
  .timeline-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    
  }
  
  .timeline {
    position: relative;
    margin: 0 auto;
    padding: 0 0 2rem 0;
  }
  
  .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: black;
  }
  
  .timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    box-sizing: border-box;
  }
  
  .timeline-item.left {
    left: 0;
    text-align: right;
  }
  
  .timeline-item.right {
    left: 50%;
    text-align: left;
  }
  
  .timeline-item .content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
    max-width: 90%;
  }
  
  .timeline-item .date {
    font-size: 0.8rem;
    background-color: #396e92;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.5rem;
  }
  
  .timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: red;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 10;
  }
  
  /* Responsive */
  @media screen and (max-width: 768px) {
    .timeline::before {
      left: 8px;
    }
  
    .timeline-item {
      width: 100%;
      padding-left: 2rem;
      padding-right: 1rem;
    }
  
    .timeline-item.left,
    .timeline-item.right {
      left: 0;
      text-align: left;
    }
  
    .timeline-dot {
      left: 8px;
    }
  
    .timeline-item .content {
      max-width: 100%;
    }
  }
  
