/* Responsive Fix for 480px */
@media screen and (max-width: 480px) {
  body {
    padding: 10px;
  }

  .nav, .intro, .contact-section, .project-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card, .contact-form, .about-content {
    width: 100%;
    padding: 10px;
  }

  h1, h2 {
    font-size: 1.5em;
  }

  p {
    font-size: 14px;
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}


* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Helvetica Neue', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #0f0f0f;
      color: #fff;
      line-height: 1.6;
      overflow-x: hidden;
    }

    nav {
      width: 100%;
      background: rgba(0, 0, 0, 0.85);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: fixed;
      top: 0;
      z-index: 1000;
    }

    nav ul {
      display: flex;
      gap: 1.5rem;
    }

    nav ul li {
      list-style: none;
    }

    nav ul li a {
      color: #00ff88;
      text-decoration: none;
      font-weight: bold;
      transition: color 0.3s;
    }

    nav ul li a:hover {
      color: #fff;
    }

    .container {
      padding: 120px 2rem 2rem;
      max-width: 1000px;
      margin: auto;
      text-align: center;
    }

    .profile-pic {
      width: 160px;
      height: 160px;
      border-radius: 50%;
      overflow: hidden;
      margin: 1rem auto;
      transition: transform 0.3s;
    }

    .profile-pic:hover {
      transform: scale(1.1);
    }

    .profile-pic img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .active-indicator {
      width: 12px;
      height: 12px;
      background-color: #00ff88;
      border-radius: 50%;
      margin: 0 auto;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.5); opacity: 0.5; }
      100% { transform: scale(1); opacity: 1; }
    }

    .slider {
      display: flex;
      overflow-x: auto;
      gap: 1rem;
      scroll-snap-type: x mandatory;
      padding: 2rem 0;
    }

    .slider::-webkit-scrollbar {
      height: 6px;
    }

    .slider::-webkit-scrollbar-thumb {
      background: #00ff88;
      border-radius: 10px;
    }

    .slide {
      flex: 0 0 auto;
      background: #1a1a1a;
      border: 1px solid #333;
      border-radius: 12px;
      padding: 1rem;
      min-width: 250px;
      scroll-snap-align: start;
    }


    .slide:hover {
      transform: translateY(-5px);
      box-shadow: 0 0 10px #00ff88;
    }
    body.dark div{
      background: rgb(247, 244, 244);
      color: #121212;
    }

    
    footer {
      text-align: center;
      padding: 2rem;
      font-size: 14px;
      color: #888;
      border-top: 1px solid #333;
      margin-top: 3rem;
    }

    @media (max-width: 768px) {
      nav {
        bottom: 0;
        top: auto;
      }
      nav ul {
        flex-direction: row;
        justify-content: center;
      }
    }

    section {
        background: #0f0f0f;
        border-radius: 16px;
        padding: 1.8rem 1.5rem;
        box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
        transition: box-shadow 0.3s ease, background-color 0.3s ease;
        cursor: default;
      }
      section:hover {
        box-shadow: 0 8px 20px rgb(0 0 0 / 0.2);
      }
    
      section a {
        color: inherit;
        text-decoration: none;
        cursor: pointer;
        display: block;
        height: 100%;
      }
      .social-bar {
        position: fixed;
        bottom: 20px;
        right: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        z-index: 1000;
      }

@media (max-width: 768px) {
  .social-bar {
    bottom: 80px; /* Push it up on small screens */
  }
}

      .social-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #0f0f0f;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
        color: #00ff88;
        transition: background-color 0.3s ease, color 0.3s ease;
      }
      .social-bar a:hover {
        background: #00ff88;
        color: #0f0f0f;
      }
      body.dark .social-bar a {
        background: #2a2a2a;
        color: #eee;
      }
      body.dark .social-bar a:hover {
        background: #3399ff;
        color: white;
      }
    
      /* Social icons SVG */
      .social-bar svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
      }

      /* Dark mode toggle */
  .dark-toggle {
    position: fixed;
    top: 3.5rem;
    right: 1.5rem;
    background: #f5f5f7;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1100;
  }
  body.dark {
    background: rgb(252, 249, 249);
    color: #121212;
  }
  .dark-toggle:hover {
    background: #0077ff;
    color: white;
  }
  body.dark .dark-toggle {
    background: #2a2a2a;
    color: #eee;
  }
  body.dark .dark-toggle:hover {
    background: #3399ff;
    color: white;
  }
    
    form {
      width: 75%;
      margin-left: 15%;
    }
    h3 {
      text-align: center;
    }

    .chat-box {
      background: #222;
      padding: 1rem;
      border-radius: 10px;
      color: white;
      max-width: 600px;
      margin: 2rem auto;
    }
    textarea {
      width: 100%;
      height: 100px;
      border: none;
      border-radius: 8px;
      padding: 1rem;
      font-size: 16px;
    }
    button {
      margin-top: 10px;
      padding: 0.5rem 1rem;
      background: #00ff88;
      border: none;
      color: black;
      font-weight: bold;
      border-radius: 8px;
      cursor: pointer;
    }
    #chatResponse {
      margin-top: 1rem;
      background: #111;
      padding: 1rem;
      border-radius: 8px;
    }
    
