:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --secondary-color: #34495e;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --bg-light: #f9f9f9;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --button-color: #000000;
  }

  * {
    box-sizing: border-box;
  }

 body {
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    color: var(--text-dark);
    background-image: url('bhaktapur.jpg') !important; /* Add !important here */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    backdrop-filter: blur(2px);
    margin: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    body {
        background-image: url('b.jpg') !important; /* Overrides correctly */
    }
    .main-content {
        margin: 0.5rem; /* Adjust margins for mobile */
    }
}
  .profile-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .profile-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    height: 2rem;
    margin-bottom: 2rem;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* Contact Button Styles */
  .contact-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    background-color: transparent;
    border: 2px solid var(--button-color);
    color: var(--button-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
  }
  
  .contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* CV Button Styles */
  .cv-btn {
    background-color: transparent;
    border: 2px solid var(--button-color);
    color: var(--button-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    margin-top: 2rem;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Social Icons */
  .social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
  }
  
  .social-icons a {
    background-color: #ffffff;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
  
  .social-icon {
    font-size: 1.5rem;
    color: #000000;
    transition: var(--transition);
  }
  
  .social-icon:hover {
    transform: translateY(-3px);
  }
  
  /* Typing animation */
  .typing-text:after {
    content: '|';
    animation: blink 1s infinite;
  }
  
  @keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  /* Update button backgrounds */
  .contact-btn,
  .cv-btn {
    background-color: #ffffff !important;
    border-color: #ffffff;
    color: #000000 !important;
  }
  
  .contact-btn:hover,
  .cv-btn:hover {
    background-color: #f0f0f0 !important;
  }
  
  /* Mobile adjustments */
  @media (max-width: 768px) {
    .profile-title {
      font-size: 2.5rem;
    }
    .profile-subtitle {
      font-size: 1.3rem;
    }
    .contact-btn {
      font-size: 0.9rem;
      padding: 10px 18px;
      bottom: 20px;
      left: 20px;
    }
    .cv-btn {
      font-size: 0.9rem;
      padding: 10px 24px;
    }
  }
  
  @media (max-width: 576px) {
    .profile-title {
      font-size: 2rem;
    }
    .profile-subtitle {
      font-size: 1.2rem;
    }
    .contact-btn {
      padding: 8px 16px;
      font-size: 0.85rem;
    }
    .cv-btn {
      padding: 8px 20px;
      font-size: 0.85rem;
    }
  }

  .chat-notification {
    position: fixed;
    bottom: 90px; /* Positioned just above the chat button */
    right: 20px;
    background: #2d2d2d;
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none; /* Initially hidden */
    z-index: 1060;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    #chatWrapper {
      width: 95% !important;
      right: 2.5% !important;
      bottom: 100px !important;
      max-height: 65vh !important;
    }
    
    #chatToggleBtn {
      right: 15px !important;
      bottom: 15px !important;
    }
    
    .card {
      margin: 0 10px;
    }
    
    .input-group {
      flex-wrap: nowrap;
    }
    
    .input-group-append {
      margin-left: 8px;
    }
    
    .btn-outline-secondary {
      padding: 8px 12px;
    }
    
    #aiChatContent {
      max-height: 45vh !important;
    }
    
    .chat-notification {
      right: 15px;
      bottom: 85px;
    }
  }
  
  /* Ensure text visibility */
  .card-body, .text-muted {
    color: #e0e0e0 !important;
  }
  
  .text-muted {
    opacity: 0.8;
  }
  
