/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Header */
  header {
    background: #222;
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }
  .nav-links li {
    list-style: none;
  }
  .nav-links a:hover {
    color: #00aaff;
  }
  .menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* Hero */
  .hero {
    height: 90vh;
    background-image: url(profile.jpg);
    background-position: center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
.hero::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 8%;
    width: 84%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 2;
  }
  
  .hero-content {
    position: relative;
    z-index: 3; /* Ensures text is above the overlay */
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content span {
    color: #ffe600;
  }
  .hero-content .btn {
    display: inline-block;
    margin-top: 1rem;
    background: #fff;
    color: #0052d4;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: 0.3s ease;
  }
  .hero-content .btn:hover {
    background: #ffe600;
    color: #222;
  }
  
  /* Sections */
  section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
  }
  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0052d4;
  }
  
  /* Skills */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  .skills-grid div {
    background: #eef;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
  }
  
  /* Projects */
  .project-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .card h3 {
    margin-bottom: 0.5rem;
  }
  
  /* Contact */
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  input, textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  button {
    background: #0052d4;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  button:hover {
    background: #003eaa;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 1rem;
    background: #222;
    color: white;
  }
  
  /* Responsive Menu */
  @media (max-width: 768px) {
    .nav-links {
      flex-direction: column;
      background: #222;
      position: absolute;
      top: 60px;
      right: 0;
      width: 200px;
      display: none;
    }
    .nav-links.show {
      display: flex;
    }
    .menu-toggle {
      display: block;
    }
  }
  