* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  a {
    color: #61dafb;
    text-decoration: none;
    cursor: pointer;
  }
  a:hover {
    text-decoration: underline;
  }
  header {
    background: #1f1f1f;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  }
  header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #61dafb;
  }
  nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  nav ul li {
    font-weight: 600;
    font-size: 1rem;
  }
  nav ul li.active a {
    color: #21c997;
    font-weight: 700;
    border-bottom: 2px solid #21c997;
  }

  main {
    flex-grow: 1;
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
  }

  section {
    display: none;
    animation: fadeIn 0.8s ease forwards;
  }
  section.active {
    display: block;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Landing section */
  #landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 70vh;
    text-align: center;
  }
  #landing h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #21c997;
    animation: glow 2s ease-in-out infinite alternate;
  }
  @keyframes glow {
    from {
      text-shadow: 0 0 10px #21c997, 0 0 30px #21c997;
    }
    to {
      text-shadow: 0 0 20px #15a06b, 0 0 40px #15a06b;
    }
  }
  /* Typed text styling */
  #typed-text {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 600;
    border-right: 2px solid #21c997;
    white-space: nowrap;
    overflow: hidden;
    width: 24ch; /* To limit width and make consistent blinking */
  }
  #landing p {
    font-size: 1.2rem;
    max-width: 520px;
    line-height: 1.5;
    color: #ccc;
    margin-top: 1.2rem;
    min-height: 3rem;
  }

  /* Projects */
  #projects .project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 1.5rem;
  }
  .project {
    background: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(33,201,151,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .project:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 18px #21c997;
  }
  .project img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  .project-content {
    padding: 1rem;
  }
  .project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: #21c997;
  }
  .project-content p {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
  }

  /* Skills */
  #skills .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .skill {
    background: #1f1f1f;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #21c997;
    box-shadow: 0 0 10px rgba(33,201,151,0.4);
    transition: background 0.3s ease;
  }
  .skill:hover {
    background: #21c997;
    color: #121212;
  }

  /* Blogs */
  #blogs .blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  .blog-post {
    background: #1f1f1f;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(33,201,151,0.3);
    transition: box-shadow 0.3s ease;
  }
  .blog-post:hover {
    box-shadow: 0 0 18px #21c997;
  }
  .blog-post h4 {
    font-size: 1.1rem;
    color: #21c997;
    margin-bottom: 0.3rem;
  }
  .blog-post p {
    font-size: 0.9rem;
    color: #ddd;
  }

  /* Contact */
  #contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  #contact label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #21c997;
  }
  #contact input, #contact textarea {
    background: #1f1f1f;
    border: 1.5px solid #21c997;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    color: #eee;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
  }
  #contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: #15a06b;
  }
  #contact textarea {
    resize: vertical;
    min-height: 100px;
  }
  #contact button {
    background: #21c997;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    color: #121212;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  #contact button:hover {
    background: #15a06b;
  }

  /* Responsive */
  @media (max-width: 600px) {
    header {
      flex-direction: column;
      align-items: flex-start;
    }
    nav ul {
      flex-wrap: wrap;
      gap: 1rem;
      margin-top: 0.6rem;
    }
    #landing h2 {
      font-size: 2.2rem;
    }
    #typed-text {
      font-size: 1.3rem;
      width: 100%;
    }
  }
