 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box !important;
    }
    html, body {
      height: 100%;
      font-family: sans-serif;
      overflow: hidden;
      background-color: #171717;
      color: #ffffff;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 50px;
      background-color: rgba(0, 0, 0, 0.8);
      position: fixed;
      width: 100%;
      z-index: 1000;
      box-shadow: 0 0 20px #0ff;
    }
  .profile-container {
  position: relative;
  width: 225px;
  height: 225px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #000;
  border: 3px solid #00ffff;

  /* Floating animation */
  animation: float 4s ease-in-out infinite;

  /* Smooth glow transition */
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* BACKGROUND NEON GLOW LAYER */
.profile-container::before {
  content: "";
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, #0ff 0%, transparent 70%);
  opacity: 0.4;              /* visible even without hover */
  filter: blur(20px);
  z-index: -1;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* HOVER – STRONG NEON EFFECT */
.profile-container:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 0 20px #00ffff,
    0 0 40px #00ffff,
    0 0 80px rgba(0, 255, 255, 0.8);
}

.profile-container:hover::before {
  opacity: 1;
  filter: blur(30px);
}

/* FLOATING KEYFRAMES */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* 🔑 KEY: fits image properly */
  object-position: center 20%;   /* keeps face centered */
  image-rendering: auto; 
  display: block;
}
    header h1 {
      font-size: 28px;
      color: #0ff;
      text-shadow: 0 0 10px #0ff;
    }

    nav a {
      margin: 0 15px;
      text-decoration: none;
      color: #fff;
      font-weight: 600;
      padding: 8px 12px;
      border-radius: 5px;
      background: rgba(0, 255, 255, 0.1);
      box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
      transition: all 0.3s ease;
    }

    nav a:hover {
      color: #000;
      background-color: #0ff;
      box-shadow: 0 0 20px #0ff, 0 0 30px #0ff;
    }

    section {
      width: 100vw;
      height: 100vh;
      display: none;
      padding: 100px 20px;
      overflow-y: auto;
      transition: transform 0.6s ease, opacity 0.6s ease;
      opacity: 0;
      transform: translateY(30px);
    }

    section.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    section:hover {
      box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.02);
      border-radius: 12px;
    }

    #home .home-content {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      position: relative;
      flex-wrap: wrap;
      text-align: center;
      z-index: 1;
    }

    .bg-gradient {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
      background-size: 400% 400%;
      animation: gradientBG 15s ease infinite;
      z-index: 0;
    }

    @keyframes gradientBG {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .matrix {
      position: fixed;
      width: 100%;
      top:0;
      left:0;
      height: 100%;
      overflow: hidden;
      z-index :2;
      pointer-events: none;
    }

    .matrix span {
      position: absolute;
      top: -1em;
      color: #00bfff;
      font-size: 20px;
      animation: fall linear infinite;
      text-shadow: 0 0 5px #00bfff, 0 0 10px #00bfff;
    }

    @keyframes fall {
      0% { transform: translateY(0); opacity: 1; }
      100% { transform: translateY(100vh); opacity: 0; }
    }

    .intro {
      max-width: 500px;
      animation: fadeIn 2s ease-in-out;
    }

    @keyframes fadeIn {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .intro h1 {
      font-size: 48px;
      color: #00ffff;
      text-shadow: 0 0 20px #00ffff;
    }

     .typewriter h2 {
    overflow: hidden;
    border-right: 0.15em solid #0ff;
    white-space: nowrap;
    letter-spacing: 0.05em;
    animation: typing 5s steps(45, end), blink-caret 0.75s;
    animation-fill-mode: forwards;
    font-family: 'Poppins', monospace;
    font-size: 1.4rem;
    font-weight: 600;
  }
     .typewriter h2:hover {
    color: #0ff;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff;
     }
     .typing.finished {
    border-right: none;
    animation: none;
     }
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #0ff; }
  }
    @keyframes float {
      0% {
        transform: translateY(0px);
      }
      50% {
        transform: translateY(-15px);
      }
      100% {
        transform: translateY(0px);
      }
    }


    .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .skills-grid:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(0,255,255,0.4);
  }

  .skill-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    width: 120px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.1);
  }

  .skill-card:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.5);
  }

  .skill-card img{
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .skill-card p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .projects-grid:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(0,255,255,0.4);
  }

  .project-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 25px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.1);
    text-align: left;
    color: #e0e0e0;
  }
  .project-card img{
      width: 200px;
      height: 70px;

  }
  .project-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.6);
  }

  .project-card h3 {
    color: #00ffff;
    margin-bottom: 10px;
  }
  .about:hover{
     transform: translateY(1.2);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.6);
  }
    .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .contact-form:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(0,255,255,0.4);
  }

  .input-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .contact-form input,
  .contact-form textarea {
    flex: 1;
    padding: 12px 15px;
    background: #1e1e1e;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  }

  .contact-form button {
    background: #00ffff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    color: #121212;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  .contact-form button:hover {
    background: #00e0ff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.4);
  }
  section {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateX(100%);
    z-index: 0;
    display: none;
  }

  section.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
  }
  section {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateX(100%);
    z-index: 0;
    display: none;
  }

  section.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
  }

  footer {
      text-align: center;
      padding: 20px;
      color: #888;
      margin-top: auto;
    }
