   body{ margin: 0;
      font-family: Arial, sans-serif;
      line-height: 1.6;
      background: #f9f9f9;
      color: #333;
      scroll-behavior: smooth; /* smooth scroll */
    }
    header {
      background: #2c3e50;
      color: #fff;
      padding: 60px 20px;
      text-align: center;
    }
    header h1 {
      margin: 0;
      font-size: 2.5rem;
    }
    header p {
      font-size: 1.2rem;
      margin-top: 10px;
    }
    nav {
      text-align: center;
      background: #34495e;
      padding: 10px;
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    nav a {
      color: #fff;
      margin: 0 15px;
      text-decoration: none;
      font-weight: bold;
    }
    section {
      padding: 40px 20px;
      max-width: 900px;
      margin: auto;
    }
    .skills, .projects {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }
    .card {
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      transition: transform 0.3s;
    }
    .card:hover {
      transform: translateY(-5px);
    }
    .card h3 {
      margin-top: 0;
    }
    footer {
      text-align: center;
      padding: 15px;
      background: #2c3e50;
      color: #fff;
      margin-top: 20px;
    }
    .btn {
      display: inline-block;
      background: #2980b9;
      color: #fff;
      padding: 10px 20px;
      border-radius: 5px;
      text-decoration: none;
      margin-top: 10px;
    }
    .btn:hover {
      background: #1f6391;
    }
    /* Typing animation cursor */
    .typing {
      border-right: 2px solid #fff;
      display: inline;
      animation: blink 0.7s infinite;
    }
    #darkModeToggle {
  background: #2980b9;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}
#darkModeToggle:hover {
  background: #1f6391;
}

body.dark {
  background: #121212;
  color: #f1f1f1;
}
body.dark header,
body.dark nav,
body.dark footer {
  background: #1e1e1e;
}
body.dark .card {
  background: #2c2c2c;
  color: #fff;
}
    @keyframes blink {
      0% { border-color: transparent; }
      50% { border-color: white; }
      100% { border-color: transparent; }
    }