/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(to bottom, #f5faff, #ffffff);
    overflow-x: hidden;
  }
  
  h2 {
    font-size: 2rem;
    color: #4361ee;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #4cc9f0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
  }
  
  /* Header Styles */
  header {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(to right, #4361ee, #4cc9f0);
    color: white;
    position: relative;
  }
  button#theme-toggle {
    background: none;
    border: none;
}
  
  header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
  }
  
  nav img {
    height: 40px;
    border-radius: 50%;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }
  
  nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  nav a:hover {
    color: #ffcc00;
  }
  
  header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  header .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ffcc00;
    color: #333;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  header .cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* About Section */
  #about {
    padding: 3rem 1.5rem;
    background: #f0f4f8;
    text-align: center;
  }
  
  #about p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }
  
  /* Projects Section */
  #projects ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    list-style: none;
  }
  
  #projects li {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  #projects li:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  #projects img {
    width: 100%;
    border-bottom: 2px solid #4cc9f0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  
  #projects h3 {
    padding: 1rem;
    text-align: center;
    background: #4361ee;
    color: white;
    margin: 0;
  }
  
  /* Skills Section */
  #skills {
    padding: 3rem 1.5rem;
    text-align: center;
  }
  
  #skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    list-style: none;
    padding: 0;
  }
  
  #skills li {
    background: white;
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  #skills li:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  #skills li img {
    width: 30px;
    height: 30px;
  }
  
  /* Contact Section */
  #contact {
    padding: 3rem 1.5rem;
    text-align: center;
  }
  
  #contact p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
  }
  
  /* Footer */
  footer {
    background: linear-gradient(to right, #4cc9f0, #4361ee);
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  
  footer p {
    margin: 0;
  }
  
  /* Animations */
  #projects li:hover,
  #skills li:hover {
    animation: pulse 1s ease-out;
  }

  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }

  /* dark mode! */
  /* Dark Mode Styles */
body.dark-mode {
    background: #121212;
    color: #f0f0f0;
  }
  
  body.dark-mode header {
    background: linear-gradient(to right, #1e3a8a, #1d4ed8);
  }
  
  body.dark-mode nav {
    background: rgba(30, 30, 30, 0.8);
  }
  
  body.dark-mode a {
    color: #4cc9f0;
  }
  
  body.dark-mode a:hover {
    color: #ffcc00;
  }
  
  body.dark-mode #projects li {
    background: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
  
  body.dark-mode footer {
    background: linear-gradient(to right, #1d4ed8, #1e3a8a);
  }
  
  