/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(26, 34, 56, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  html.light .header {
    background: rgba(248, 249, 250, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin: 0 auto;
    width: 100%;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
    text-decoration: none;
    transition: transform 0.3s ease;
  }
  
  .logo:hover {
    transform: scale(1.05);
  }
  
  .nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  
  .nav-link {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
  }
  
  html.light .nav-link {
    color: #343a40;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: #3498db;
  }
  
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .nav-link:hover::before,
  .nav-link.active::before {
    transform: translateX(0);
  }
  
  .nav-button {
    padding: 10px 20px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .nav-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2980b9, #3498db);
    transition: all 0.3s ease;
    z-index: -1;
  }
  
  .nav-button:hover::before {
    left: 0;
  }
  
  .nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
  }
  
  .theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-left: 15px;
  }
  
  .theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #34495e;
    transition: 0.4s;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    overflow: hidden;
  }
  
  html.light .slider {
    background-color: #bdc3c7;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .slider .moon,
  .slider .sun {
    z-index: 1;
    font-size: 14px;
    transition: transform 0.4s ease;
  }
  
  .slider .moon {
    margin-right: 5px;
    transform: translateX(30px);
  }
  
  .slider .sun {
    margin-left: 5px;
    transform: translateX(-30px);
  }
  
  input:checked + .slider:before {
    transform: translateX(30px);
  }
  
  input:checked + .slider .moon {
    transform: translateX(0);
  }
  
  input:checked + .slider .sun {
    transform: translateX(0);
  }
  
  input:checked + .slider {
    background-color: #3498db;
  }
  
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #f8f9fa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .mobile-menu-btn:hover {
    transform: rotate(90deg);
  }
  
  html.light .mobile-menu-btn {
    color: #343a40;
  }
  
  /* Responsive Styles */
  @media (max-width: 1200px) {
    .nav-link {
      font-size: 0.9rem;
      padding: 8px 8px;
    }
    
    .nav-menu {
      gap: 10px;
    }
  }
  
  @media (max-width: 992px) {
    .header-container {
      padding: 15px 20px;
    }
  
    .nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      height: 100vh;
      background: #1a2238;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding: 80px 40px;
      transition: all 0.4s ease;
      z-index: 1001;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
      gap: 20px;
    }
  
    html.light .nav-menu {
      background: #f8f9fa;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
  
    .nav-menu.active {
      right: 0;
    }
  
    .nav-link {
      margin: 5px 0;
      font-size: 1.2rem;
    }
  
    .mobile-menu-btn {
      display: block;
      z-index: 1002;
    }
  
    .theme-switch {
      margin: 20px 0;
    }
  }
  
  @media (max-width: 480px) {
    .logo {
      font-size: 1.2rem;
    }
    
    .nav-menu {
      width: 100%;
      padding: 80px 20px;
    }
  }
  