   /* Smooth and modern font */
   body {
       font-family: 'Poppins', sans-serif;
       background: #f4f6f8;
       color: #333;
       margin: 0;
       padding: 2rem;
       line-height: 1.8;
       letter-spacing: 0.5px;
       transition: background 0.3s, color 0.3s;
   }

   body.dark-mode {
       background: #121212;
       color: white;
   }

   .cv-container {
       background: white;
       max-width: 800px;
       margin: auto;
       border-radius: 12px;
       box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
       padding: 2rem 3rem;
       transition: background 0.3s;
   }

   .cv-container.dark-mode {
       background: #2d2d2d;
   }

   h1 {
       font-size: 2.5rem;
       margin-bottom: 0.25rem;
       font-weight: 600;
       letter-spacing: 0.8px;
   }

   h2 {
       color: #007acc;
       border-bottom: 2px solid #e0e0e0;
       padding-bottom: 0.3rem;
       margin-top: 2rem;
       font-size: 1.5rem;
   }

   .section {
       margin-bottom: 1.5rem;
   }

   .cv-line {
       white-space: pre-line;
       margin-left: 1rem;
   }

   footer {
       text-align: center;
       margin-top: 3rem;
       font-size: 1rem;
       color: #777;
       font-weight: 300;
   }

   footer.dark-mode {
       color: #bbb;
   }

   /* Contact Information */
   .contact-info {
       display: flex;
       align-items: center;
       justify-content: flex-start;
       gap: 15px;
       font-size: 1rem;
   }

   .contact-info a {
       color: #007acc;
       text-decoration: none;
   }

   .contact-info a:hover {
       text-decoration: underline;
   }

   /* Dark Mode Toggle Button */
   .toggle-btn {
       position: absolute;
       top: 20px;
       right: 20px;
       background: #007acc;
       color: white;
       border: none;
       border-radius: 5px;
       padding: 10px 15px;
       cursor: pointer;
       font-size: 1rem;
       transition: background 0.3s, color 0.3s;
   }

   .toggle-btn.dark-mode {
       background: #bbb;
       color: #121212;
   }

   .toggle-btn:hover {
       background: #005a87;
   }

   /* Download PDF Button */
   .download-btn {
       background: #007acc;
       color: white;
       border: none;
       border-radius: 5px;
       padding: 10px 15px;
       cursor: pointer;
       margin-top: 1rem;
       font-weight: 500;
       transition: background 0.3s, transform 0.2s;
   }

   .download-btn:hover {
       background: #005a87;
       transform: scale(1.05);
   }

   .header-section {
       display: flex;
       align-items: center;
       gap: 1.5rem;
       margin-bottom: 1rem;
   }

   .profile-img {
       width: 100px;
       height: 100px;
       border-radius: 50%;
       object-fit: cover;
       border: 4px solid var(--primary-color);
       box-shadow: 0 4px 12px var(--accent-shadow);
   }

   .summary {
       margin-bottom: 2rem;
       font-size: 1.05rem;
       font-weight: 400;
       color: #555;
       line-height: 1.7;
   }

   body.dark-mode .summary {
       color: #ddd;
   }

   .skills-container {
       display: flex;
       flex-wrap: wrap;
       gap: 0.5rem;
       margin-top: 0.5rem;
   }

   .skill-tag {
       background: #e6f0ff;
       color: #003366;
       padding: 0.4rem 0.8rem;
       border-radius: 20px;
       font-size: 0.9rem;
       font-weight: 500;
       white-space: nowrap;
       transition: background 0.3s, color 0.3s;
   }

   body.dark-mode .skill-tag {
       background: #3b4a5a;
       color: #cce7ff;
   }

   .skill-tag {
       position: relative;
       background: #e6f0ff;
       color: #003366;
       padding: 0.4rem 0.8rem;
       border-radius: 20px;
       font-size: 0.9rem;
       font-weight: 500;
       white-space: nowrap;
       transition: background 0.3s, color 0.3s;
       cursor: default;
   }

   body.dark-mode .skill-tag {
       background: #3b4a5a;
       color: #cce7ff;
   }

   .skill-tag::after {
    content: attr(data-tooltip);
    position: absolute;
    display: block; /* <-- Ensures width is respected */
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    white-space: normal;
    min-width: 160px;
    max-width: 500px; /* Wider tooltip */
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

   .skill-tag:hover::after {
       opacity: 1;
   }

   footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  footer a:hover {
    color: #007acc;
  }
  
  body.dark-mode footer a:hover {
    color: #66ccff;
  }

  /* Responsive Design for Mobile Devices */
@media (max-width: 600px) {
    body {
      padding: 1rem;
    }
  
    .cv-container {
      padding: 1.5rem;
    }
  
    h1 {
      font-size: 1.8rem;
      text-align: center;
    }
  
    h2 {
      font-size: 1.2rem;
    }
  
    .header-section {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      text-align: center;
    }
  
    .contact-info {
      flex-direction: column;
      gap: 8px;
      font-size: 0.95rem;
      align-items: center;
    }
  
    .profile-img {
      width: 80px;
      height: 80px;
    }
  
    .summary {
      font-size: 1rem;
      text-align: center;
    }
  
    .skills-container {
      justify-content: center;
    }
  
    .skill-tag {
      font-size: 0.85rem;
      padding: 0.3rem 0.7rem;
    }
  
    .toggle-btn,
    .download-btn {
      width: 100%;
      font-size: 0.95rem;
      padding: 0.8rem 1rem;
      position: static;
      margin-top: 1rem;
    }
  
    .toggle-btn {
      margin-bottom: 0.5rem;
    }
  }