    /* Reset and Base Styles */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      font-size: 18px;
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Poppins', sans-serif;
      line-height: 1.6;
      background: #0f172a;
      color: #e0e7ff;
      padding-top: 100px;
      overflow-x: hidden;
      transition: background 10s linear;
    }

    /* Sidebar */
    .sidebar {
      position: fixed;
      top: 0;
      width: 100%;
      height: 80px;
      background-color: #1e293b;
      display: flex;
      align-items: center;
      padding: 0 2rem;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
      z-index: 1000;
      font-weight: 700;
      color: #e0e7ff;
    }

    .sidebar h2 {
      font-size: 1.9rem;
      margin-right: auto;
    }

    .nav-links {
      list-style: none;
      display: flex;
      gap: 2rem;
    }

    .nav-links li a {
      color: #cbd5e1;
      text-decoration: none;
      padding: 0.6rem 1.2rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 1.05rem;
      transition: background-color 0.3s, color 0.3s;
    }

    .nav-links li a:hover,
    .nav-links li a:focus {
      background: #3b82f6;
      color: #fff;
    }

    /* Introduction */
    .introduction {
      max-width: 900px;
      margin: 3rem auto 5rem;
      text-align: center;
      padding: 0 1rem;
      position: relative;
      z-index: 1;
    }

    .introduction .social-icons {
      margin-bottom: 1.8rem;
    }

    .social-icons a {
      color: #94a3b8;
      font-size: 2rem;
      margin: 0 1.1rem;
      transition: color 0.3s;
      display: inline-block;
    }

    .social-icons a:hover,
    .social-icons a:focus {
      color: #7c3aed;
      transform: translateY(-4px);
      transition: color 0.3s, transform 0.3s;
    }

    .introduction h1 {
      font-weight: 900;
      font-size: 3.8rem;
      background: linear-gradient(90deg, #7c3aed, #2563eb);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 0.5rem;
    }

    .introduction h1 span {
      color: #2563eb;
    }

    .subtitle {
      font-weight: 400;
      font-size: 1.5rem;
      color: #cbd5e1;
      margin-bottom: 2.8rem;
    }

    .intro-action {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 300px;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: linear-gradient(90deg, #7c3aed, #2563eb);
      color: white;
      padding: 1.1rem 3rem;
      font-weight: 700;
      font-size: 1.3rem;
      border: none;
      border-radius: 14px;
      cursor: pointer;
      box-shadow: 0 7px 25px rgba(124, 58, 237, 0.6);
      transition: background-position 0.3s ease, box-shadow 0.3s ease;
      text-decoration: none;
      display: inline-block;
      min-width: 180px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .btn-primary:hover,
    .btn-primary:focus {
      background-position: right center;
      box-shadow: 0 9px 32px rgba(124, 58, 237, 0.9);
      transform: translateY(-3px);
    }

    .profile-img-wrapper {
      position: relative;
      display: inline-block;
      width: 320px;
      height: 320px;
    }

    .profile-img-wrapper::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 340px;
      height: 340px;
      background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      filter: blur(50px);
      z-index: -1;
      animation: pulseGlow 3s ease-in-out infinite;
    }

    .profile-img {
      width: 320px;
      height: 320px;
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 0 35px 10px rgba(124, 58, 237, 0.9);
      animation: floatUpDown 6s ease-in-out infinite;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }

    .profile-img:hover,
    .profile-img:focus {
      transform: scale(1.1);
      box-shadow: 0 0 48px 14px rgba(124, 58, 237, 1);
    }

    /* Pulsing glow */
    @keyframes pulseGlow {
      0%, 100% {
        box-shadow: 0 0 30px 10px rgba(124, 58, 237, 0.4);
      }
      50% {
        box-shadow: 0 0 48px 14px rgba(124, 58, 237, 0.7);
      }
    }

    /* Keyframe floating image */
    @keyframes floatUpDown {
      0%, 100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-15px);
      }
    }

    /* Section Styles */
    .section {
      max-width: 900px;
      margin: 0 auto 4rem;
      padding: 0 1rem;
      scroll-margin-top: 110px;
    }

    .section-title {
      color: #a78bfa;
      font-weight: 700;
      font-size: 2.6rem;
      border-bottom: 4px solid #a78bfa;
      padding-bottom: 0.5rem;
      margin-bottom: 2rem;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .section.is-visible .section-title {
      opacity: 1;
      transform: translateY(0);
    }

    /* Text and Lists */
    p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
      color: #d1d5db;
    }

    .icon-list {
      list-style: none;
      padding-left: 2rem;
      margin-top: 1rem;
      color: #c7d2fe;
      font-size: 1.15rem;
    }

    .icon-list li {
      margin-bottom: 0.75rem;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .icon-list.is-visible li {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.3s;
    }

    /* Skills container */
    .skills-container {
      display: flex;
      gap: 2.5rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .skills-block {
      background: #1e293b;
      padding: 1.6rem 2rem;
      border-radius: 16px;
      flex: 1 1 280px;
      box-shadow: 0 4px 14px rgba(39, 39, 42, 0.85);
      transition: background-color 0.3s ease;
      opacity: 0;
      transform: translateY(40px);
    }

    .skills-block:hover {
      background-color: #4338ca;
      box-shadow: 0 8px 20px #7c3aedcc;
    }
    .skills-block.is-visible {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.3s;
    }

    .skills-block h3 {
      color: #c4b5fd;
      margin-bottom: 1.25rem;
      font-weight: 700;
      font-size: 1.7rem;
    }

    .skills-block ul {
      list-style: disc inside;
      color: #d1d5db;
      font-size: 1.1rem;
    }

    .skills-block ul li {
      margin-bottom: 0.65rem;
    }

    /* Skills progress bar container */
    .skills-progress-wrapper {
      background: #2a2f4a;
      border-radius: 10px;
      height: 16px;
      margin: 8px 0 16px 0;
      box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
      overflow: hidden;
    }

    /* Progress bar that animates */
    .skills-progress {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #7c3aed, #2563eb);
      border-radius: 10px;
      transition: width 1.2s ease-out;
    }

    /* Projects */
    .projects-container {
      display: flex;
      flex-wrap: wrap;
      gap: 2.5rem;
      justify-content: center;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .projects-container.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .project-card {
      background: #1e293b;
      border-radius: 16px;
      padding: 1.25rem 1.75rem;
      box-shadow: 0 5px 14px rgba(0, 0, 0, 0.75);
      text-align: center;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
    }

    .project-card:hover,
    .project-card:focus-within {
      transform: translateY(-12px);
      box-shadow: 0 10px 26px #7c3aedbb;
    }

    .project-card h3 {
      color: #c4b5fd;
      margin: 1.2rem 0 1rem;
      font-weight: 700;
      font-size: 1.6rem;
    }

    .project-card img {
      max-width: 1100px;
      border-radius: 12px;
      box-shadow: 0 0 14px #7c3aedbb;
      object-fit: cover;
      filter: drop-shadow(0 0 6px #7c3aedbb);
    }

    /* Buttons */
    .btn-secondary,
    .btn-primary {
      border-radius: 12px;
      font-weight: 700;
      cursor: pointer;
      border: none;
      transition: background-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.2s ease;
      display: inline-block;
      padding: 0.9rem 2.5rem;
      user-select: none;
      text-align: center;
      min-width: 140px;
      color: white;
      position: relative;
      overflow: hidden;
    }

    .btn-primary {
      background: linear-gradient(90deg, #7c3aed, #2563eb);
      box-shadow: 0 7px 25px rgba(124, 58, 237, 0.6);
    }

    .btn-primary:hover,
    .btn-primary:focus {
      background-position: right center;
      box-shadow: 0 9px 32px rgba(124, 58, 237, 0.9);
      transform: translateY(-3px);
    }

    .btn-secondary {
      background: linear-gradient(90deg, #a78bfa, #9333ea);
      box-shadow: 0 5px 15px #7c3aed88;
      margin-top: 0.8rem;
    }

    .btn-secondary:hover,
    .btn-secondary:focus {
      background-color: #7c3aed;
      box-shadow: 0 8px 25px #7c3aedaa;
      transform: translateY(-3px);
    }

    /* Button ripple effect */
    .btn-primary .ripple,
    .btn-secondary .ripple {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      animation: ripple-effect 0.6s linear;
      pointer-events: none;
      transform: scale(0);
      z-index: 10;
    }

    @keyframes ripple-effect {
      to {
        transform: scale(4);
        opacity: 0;
      }
    }

    /* Mini projects */
    .mini-projects {
      margin-top: 3rem;
      max-width: 340px;
      margin-left: auto;
      margin-right: auto;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .mini-projects.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .mini-projects h3 {
      font-weight: 700;
      color: #c4b5fd;
      margin-bottom: 1.3rem;
      font-size: 1.5rem;
    }

    .mini-projects ul {
      list-style: disc inside;
      color: #cbd5e1;
      font-size: 1.15rem;
    }

    .mini-projects ul li {
      margin-bottom: 0.7rem;
    }

    /* Education */
    .education-info {
      display: flex;
      flex-wrap: wrap;
      gap: 2.7rem;
      justify-content: center;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .education-info.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .education-info article {
      background: #1e293b;
      border-radius: 16px;
      padding: 1.6rem 2rem;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
      flex: 1 1 320px;
      color: #d1d5db;
      font-size: 1.1rem;
    }

    .education-info h3 {
      color: #a78bfa;
      margin-bottom: 1rem;
      font-weight: 700;
      font-size: 1.75rem;
    }

    /* Contact Form */
    .contact-form {
      background: #1e293b;
      max-width: 500px;
      margin: 0 auto;
      padding: 2.3rem 3rem;
      border-radius: 18px;
      box-shadow: 0 8px 32px rgba(124, 58, 237, 0.7);
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .contact-form.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .contact-form label {
      display: block;
      margin-bottom: 0.8rem;
      font-weight: 700;
      color: #c4b5fd;
      font-size: 1.1rem;
    }

    .contact-form input {
      width: 100%;
      padding: 14px 18px;
      border-radius: 10px;
      border: none;
      font-size: 1.15rem;
      margin-bottom: 2rem;
      box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.15);
      transition: box-shadow 0.3s ease;
      color: #0f172a;
    }

    .contact-form input::placeholder {
      color: #94a3b8;
    }

    .contact-form input:focus {
      outline: none;
      box-shadow: 0 0 14px #7c3aed;
    }

    /* Form buttons */
    .form-buttons {
      display: flex;
      gap: 1.5rem;
      justify-content: flex-start;
    }

    .form-buttons button {
      flex: 1;
    }

    /* Message & Quote Sections */
    .message-section p,
    .motivation-section p {
      max-width: 700px;
      margin: 0 auto;
      font-size: 1.3rem;
      color: #c7d2fe;
      line-height: 1.6;
      text-align: center;
      font-weight: 500;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .message-section.is-visible p,
    .motivation-section.is-visible p {
      opacity: 1;
      transform: translateY(0);
    }

    .quote {
      font-style: italic;
      font-weight: 700;
      font-size: 1.5rem;
      color: #a78bfa;
      margin-top: 0.5rem;
    }

    /* Footer */
    footer {
      text-align: center;
      padding: 2rem 1rem;
      background-color: #1e293b;
      color: #94a3b8;
      font-size: 1rem;
      border-top: 3px solid #7c3aed;
      font-weight: 400;
    }

    footer a {
      color: #a78bfa;
      font-weight: 700;
      text-decoration: none;
      margin: 0 0.5rem;
      font-size: 1rem;
    }

    footer a:hover,
    footer a:focus {
      text-decoration: underline;
    }

    #bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* allows clicks through canvas */
    z-index: 0;
    background: transparent;
  }

  /* Hamburger icon - hidden on desktop, visible on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #cbd5e1;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.hamburger:hover span,
.hamburger:focus span {
  background-color: #7c3aed;
}

/* Show hamburger on small screens */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #1e293b;
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.6);
    z-index: 1050;
  }
  .nav-links.active {
    display: flex;
  }
}



    /* Responsive */
    @media (max-width: 768px) {
      .sidebar {
        flex-direction: column;
        height: auto;
        padding: 1.2rem 0;
      }

      .nav-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
      }

      .profile-img {
        width: 240px;
        height: 240px;
      }

      .skills-container,
      .education-info,
      .projects-container {
        flex-direction: column;
        align-items: center;
      }

      .intro-action {
        flex-direction: column;
        gap: 2.5rem;
      }

      .btn-primary {
        min-width: auto;
        width: 100%;
        max-width: 280px;
      }

      .contact-form {
        padding: 2rem;
      }
    }

    @media (max-width: 480px) {
      html {
        font-size: 15.5px;
      }

      .profile-img {
        width: 200px;
        height: 200px;
      }

      .section-title {
        font-size: 2.1rem;
      }

      .skills-block,
      .education-info article,
      .project-card {
        width: 100% !important;
      }
    }