:root {
    --primary-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --accent-color: #4a00e0;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --card-bg: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(26, 26, 46, 0.95);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
  }
  
  /* Navbar Styles */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
  }
  
  .nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    /* color: var(--accent-color); */
    color: #fff;
    text-shadow: 0 0 5px #00f7ff,
                 0 0 10px #00f7ff,
                 0 0 20px #00f7ff,
                 0 0 40px #00f7ff;
   
  }
  .menu-icon {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }
  
  /* Mobile styles */
  @media (max-width: 768px) {
    .menu-icon {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: var(--nav-bg);
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;
      text-align: center;
      padding: 1rem 0;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .nav-links li {
      margin: 0.5rem 0;
    }
  }
  
  
  /* Section Styles */
  section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    position: relative;
  }
  
  /* section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3.5rem;
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

  } */
  section h2 {
    position: relative;
    display: inline-block; /* allows underline to size only the text */
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  section {
    text-align: center; /* centers the h2 inside the section */
  }
  
  section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    border-radius: 2px;
  }
  /* Home Section */
  #home {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
  }
  
  #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    margin-top: 5rem;
  }
  
  .profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(74, 0, 224, 0.3);
    margin-bottom: 2rem;
  }
 
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .typed-container {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 30px; /* Space between text and button */
  }
  
  .typed-cursor {
    font-weight: 100;
    font-size: 24px;
    color: #fff;
    animation: blink 0.7s infinite;
  }
  
  @keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
  }
  .buttons{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
  }

  .btn {
    display: inline-block;
    margin-top: 0; /* Remove top margin since we're using gap */
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background:linear-gradient(135deg, #4a00e0, #8e2de2);
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 200px; /* Fixed width for consistent button size */
    text-align: center;
  }
  
  .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(142, 45, 226, 0.4);
  }

  .btn a{
    text-decoration: none;
    color: #f4ecf5;
  }
  
  /* About Section */
  .about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }
  .about-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-height: 600px; /* NEW: Limit the height */
    box-shadow: 0 0 20px rgba(123, 31, 255, 0.2); /* Optional: soft glow */
  }
  
  .about-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* NEW: Crops to fit box */
    filter: brightness(0.9) contrast(1.1) saturate(1.2); /* NEW: Dark theme tone */
    border-radius: 20px;
    transition: transform 0.3s ease;
  }
  
  .about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(74, 0, 224, 0.2), rgba(142, 45, 226, 0.2));
    opacity: 100; /* FIXED: Make it hidden by default */
    transition: opacity 0.3s ease;
  }
  
  .about-image-wrapper:hover .about-image-overlay {
    opacity: 1;
  }
  
  .about-image-wrapper:hover .about-img {
    transform: scale(1.05);
  }
  
  /* .about-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
  }
  
  .about-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: transform 0.3s ease;
  }
  
  .about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background: linear-gradient(45deg, rgba(74, 0, 224, 0.2), rgba(142, 45, 226, 0.2));
    opacity: 100;
    transition: opacity 0.3s ease;
  }
  
  .about-image-wrapper:hover .about-image-overlay {
    opacity: 1;
  }
  
  .about-image-wrapper:hover .about-img {
    transform: scale(1.05);
  }
   */
  .about-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-align: center;
  }
  
  .about-text p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
  }
  
  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
  }
  
  .stat-item:hover {
    transform: translateY(-5px);
  }
  
  .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
  }
  
  .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  /* Skills Section */
  .skills-container {
    max-width: 1500px;
    margin: 0 auto;
  }
  
  .skill-category {
    margin-bottom: 4rem;
  }
  
  .skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
  }
  
  .skills-grid.modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 0, 224, 0.2);
  }
  
  .skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
  }
  
  .skill-info h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }
  
  .skill-level {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
  }
  
  .level-bar {
    height: 100%;
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    border-radius: 3px;
    transition: width 1s ease;
  }
  
  /* Education Section */
  .timeline {
    position: relative;
    max-width: 1500px;
    margin: 3rem auto;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--accent-color);
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
  }
  
  .timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
  }
  
  .timeline-content:hover {
    transform: scale(1.02);
  }
  
  /* Contact Section */
  .contact-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
  }
  
  .contact-form textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .glow-button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .glow-button:hover {
    box-shadow: 0 0 20px rgba(74, 0, 224, 0.5);
    transform: translateY(-2px);
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .social-icon {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
  }
  
  .social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
  }
  
  /* Chatbot Styles */
  .chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(74, 0, 224, 0.4);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    cursor: pointer;
  }
  
  .chatbot-widget.expanded {
    width: 350px;
    height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .chatbot-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .chatbot-widget.expanded .chatbot-header {
    padding: 15px 20px;
    justify-content: flex-start;
    height: auto;
  }
  
  .chatbot-header:hover {
    transform: scale(1.05);
  }
  
  .chatbot-avatar {
    display: none;
  }
  
  .chatbot-widget.expanded .chatbot-avatar {
    display: flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
  }
  
  .chatbot-avatar i {
    font-size: 18px;
    color: white;
  }
  
  .chatbot-info {
    display: none;
  }
  
  .chatbot-widget.expanded .chatbot-info {
    display: block;
    flex: 1;
  }
  
  .chatbot-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
  }
  
  .chatbot-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
  }
  
  .chatbot-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .chatbot-widget.expanded .chatbot-toggle {
    font-size: 16px;
    padding: 5px;
  }
  
  .chatbot-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
  
  .chatbot-body {
    height: 400px;
    display: none;
    flex-direction: column;
    transition: all 0.3s ease;
  }
  
  .chatbot-widget.expanded .chatbot-body {
    display: flex;
  }
  
  .chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .message {
    display: flex;
    margin-bottom: 10px;
  }
  
  .bot-message {
    justify-content: flex-start;
  }
  
  .user-message {
    justify-content: flex-end;
  }
  
  .message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .bot-message .message-content {
    background: rgba(74, 0, 224, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(74, 0, 224, 0.2);
  }
  
  .user-message .message-content {
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
  }
  
  .chat-input-container {
    display: flex;
    padding: 15px;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .chat-input-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
  }
  
  .chat-input-container input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(74, 0, 224, 0.3);
  }
  
  .chat-input-container button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .chat-input-container button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(74, 0, 224, 0.4);
  }
  
  .chat-input-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }
  
  /* Typing indicator */
  .typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    background: rgba(74, 0, 224, 0.1);
    border-radius: 15px;
    max-width: 80%;
  }
  
  .typing-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
  }
  
  .typing-dot:nth-child(1) { animation-delay: -0.32s; }
  .typing-dot:nth-child(2) { animation-delay: -0.16s; }
  
  @keyframes typing {
    0%, 80%, 100% {
      transform: scale(0.8);
      opacity: 0.5;
    }
    40% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Mobile responsive */
  @media (max-width: 768px) {
    .chatbot-widget {
      width: 50px;
      height: 50px;
      right: 15px;
      bottom: 15px;
    }
    
    .chatbot-widget.expanded {
      width: calc(100vw - 20px);
      right: 10px;
      left: 10px;
      bottom: 10px;
      max-height: 60vh;
    }
    
    .chatbot-body {
      height: 250px;
    }
    
    .chatbot-header {
      padding: 12px 15px;
    }
    
    .chatbot-avatar {
      width: 35px;
      height: 35px;
      margin-right: 10px;
    }
    
    .chatbot-info h4 {
      font-size: 13px;
    }
    
    .chatbot-info p {
      font-size: 11px;
    }
    
    .message-content {
      max-width: 85%;
      padding: 8px 12px;
      font-size: 13px;
    }
    
    .chat-input-container {
      padding: 12px;
      gap: 8px;
    }
    
    .chat-input-container input {
      padding: 8px 12px;
      font-size: 13px;
    }
    
    .chat-input-container button {
      width: 35px;
      height: 35px;
    }
    
    .chat-messages {
      padding: 12px;
      gap: 8px;
    }
  }
  
  @media (max-width: 480px) {
    .chatbot-widget {
      width: 45px;
      height: 45px;
      right: 10px;
      bottom: 10px;
    }
    
    .chatbot-widget.expanded {
      width: calc(100vw - 10px);
      right: 5px;
      left: 5px;
      bottom: 5px;
      max-height: 70vh;
    }
    
    .chatbot-body {
      height: 200px;
    }
    
    .chatbot-header {
      padding: 10px 12px;
    }
    
    .chatbot-avatar {
      width: 30px;
      height: 30px;
      margin-right: 8px;
    }
    
    .chatbot-info h4 {
      font-size: 12px;
    }
    
    .chatbot-info p {
      font-size: 10px;
    }
    
    .message-content {
      max-width: 90%;
      padding: 6px 10px;
      font-size: 12px;
    }
    
    .chat-input-container {
      padding: 10px;
      gap: 6px;
    }
    
    .chat-input-container input {
      padding: 6px 10px;
      font-size: 12px;
    }
    
    .chat-input-container button {
      width: 32px;
      height: 32px;
    }
    
    .chat-messages {
      padding: 10px;
      gap: 6px;
    }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .navbar {
      padding: 1rem;
    }
  
    .nav-links {
      gap: 1rem;
    }
  
    .about-container {
      flex-direction: column;
      padding: 1rem;
    }
  
    .about-stats {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .timeline::before {
      left: 0;
    }
  
    .timeline-item {
      width: 100%;
      padding-left: 2rem;
    }
  
    .timeline-item:nth-child(even) {
      left: 0;
      padding-left: 2rem;
    }
  
    .timeline-item:nth-child(odd) {
      padding-right: 0;
    }
  
    .skills-grid.modern {
      grid-template-columns: 1fr;
    }
  }