* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  img,
video {
  max-width: 100%;
  height: auto;
}

  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #0f172a;
    color: #ffffff;
    line-height: 1.6;
  }
  
  /* Navbar */
  header {
    background-color: #020617;
    padding: 20px 10%;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  nav h2 {
    color: #38bdf8;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
  }
  
  nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    color: #38bdf8;
  }
  
  /* General sections */
  section {
    padding: 80px 10%;
  }
  
  section h2 {
    color: #38bdf8;
    margin-bottom: 20px;
  }
  
  /* Home section */
  #home {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  #home h1 {
    font-size: 48px;
    color: #38bdf8;
    margin-bottom: 15px;
  }
  
  #home p {
    max-width: 650px;
    font-size: 18px;
    margin-bottom: 25px;
    color: #cbd5e1;
  }
  
  button {
    width: fit-content;
    padding: 12px 24px;
    background-color: #38bdf8;
    color: #020617;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #0ea5e9;
  }
  
  /* Projects */
  #projects div {
    background-color: #1e293b;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  
  #projects h3 {
    color: #ffffff;
    margin-bottom: 10px;
  }
  
  #projects p,
  #about p,
  #contact p {
    color: #cbd5e1;
  }

  /* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .skill-card {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 12px;
  }
  
  .skill-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
  }
  
  .skill-card p {
    color: #cbd5e1;
  }

  /* Achievements */
.achievements-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .achievement-card {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 12px;
  }
  
  .achievement-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
  }
  
  .achievement-card p {
    color: #cbd5e1;
  }

  /* Contact */
.contact-info {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    max-width: 500px;
  }
  
  .contact-info p {
    margin-bottom: 10px;
  }

  .btn {
    width: fit-content;
    padding: 12px 24px;
    background-color: #38bdf8;
    color: #020617;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
  }
  
  .btn:hover {
    background-color: #0ea5e9;
  }

  /* Footer */
footer {
    background-color: #020617;
    text-align: center;
    padding: 20px;
    color: #94a3b8;
  }

  section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #38bdf8;
    margin-top: 8px;
    border-radius: 10px;
  }

  .skill-card,
.achievement-card,
.contact-info {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover,
.achievement-card:hover,
.contact-info:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

nav a.active {
    color: #38bdf8;
  }

  #about p {
    max-width: 850px;
    margin-bottom: 15px;
  }

  .skill-card span {
    color: #38bdf8;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
  }
  
  .skill-card {
    border: 1px solid transparent;
  }
  
  .skill-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
  }

  .achievement-card span {
    color: #38bdf8;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
  }
  
  .achievement-card {
    border: 1px solid transparent;
  }
  
  .achievement-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
  }

  .contact-text {
    max-width: 700px;
    color: #cbd5e1;
    margin-bottom: 20px;
  }

  #home h3 {
    color: #94a3b8;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 500;
  }

  .logo {
    color: #38bdf8;
    text-decoration: none;
  }
  
  .logo:hover {
    color: #0ea5e9;
  }

  .back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    background-color: #38bdf8;
    color: #020617;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
    transition: 0.3s;
    opacity: 0;
pointer-events: none;
  }
  
  .back-to-top.show {
    opacity: 1;
    pointer-events: auto;
  }

  .empty-projects {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .empty-projects:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
  }
  
  .empty-projects h3 {
    color: #ffffff;
    margin-bottom: 10px;
  }
  
  .empty-projects p {
    color: #cbd5e1;
  }

  .back-to-top:hover {
    background-color: #0ea5e9;
    transform: translateY(-4px);
    
  } 

  /* Responsive Design */
 /* Responsive Design */
@media (max-width: 768px) {
    header {
      padding: 14px 5%;
    }
  
    nav {
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }
  
    nav ul {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 16px;
    }
  
    nav a {
      font-size: 14px;
    }
  
    section {
      padding: 55px 5%;
    }
  
    #home {
      min-height: 80vh;
      text-align: center;
      align-items: center;
    }
  
    #home h1 {
      font-size: 34px;
    }
  
    #home p {
      font-size: 16px;
      max-width: 100%;
    }
  
    .skills-container,
    .achievements-container {
      grid-template-columns: 1fr;
    }
  
    .skill-card,
    .achievement-card,
    .contact-info {
      width: 100%;
    }
  
    .contact-info {
      max-width: 100%;
    }
  }
  
  @media (max-width: 480px) {
    nav h2 {
      font-size: 21px;
    }
  
    nav ul {
      gap: 8px 12px;
    }
  
    nav a {
      font-size: 13px;
    }
    #home h3 {
        font-size: 18px;
      }
  
    #home h1 {
      font-size: 30px;
    }
  
    #home p {
      font-size: 15px;
    }
  
    .btn {
      padding: 10px 18px;
      font-size: 14px;
    }
  }
  /* Page Animation */
section {
    animation: fadeIn 0.8s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
  
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }