* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
html,
body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
  color: #fff;
  overflow-x: hidden;
  background-color: #1b2026;
}
main {
  height: 100%;
  width: 100%;
}
/* Navbar */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: linear-gradient(to right, #080808, #282424, #020202);
  border-bottom: 2px solid #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .left h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

nav .right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #00ffff;
}

nav button {
  padding: 0.6rem 1rem;
  background: transparent;
  border: 2px solid #00ffff;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

nav button:hover {
  background-color: #00ffff;
  color: #000;
}

/* Hero Section */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 5rem;
  gap: 3rem;
  flex-wrap: wrap;
}

#hero .desc {
  flex: 1 1 400px;
}

#hero h4 {
  color: #ffb6b6;
  font-weight: 400;
  font-size: 1.1rem;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 1rem;
  line-height: 1.3;
}

#hero h1 span {
  color: #00ffff;
}

#hero p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #d3d3d3;
}

#hero button {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  border: 2px solid #ff5a5a;
  background: transparent;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#hero button:hover {
  background: #ff5a5a;
  transform: scale(1.05);
}

#hero .img {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

#hero img {
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255, 119, 92, 0.5);
}

/* About Section */
#about {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap-reverse;
  margin: 5%;
  padding: 4rem 5rem;
  background: linear-gradient(135deg, #111, #2b0000);
  gap: 3rem;
}

#about .info {
  flex: 1 1 400px;
}

#about .info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00ffff;
}

#about .info p {
  font-size: 1rem;
  line-height: 1.6;
  color: #d3d3d3;
}

#about .info button {
  margin-top: 1.5rem;
  padding: 0.8rem 1.3rem;
  border: 2px solid #00ffff;
  background: transparent;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

#about .info button:hover {
  background-color: #00ffff;
  color: #000;
  transform: scale(1.05);
}

#about .img2 img {
  width: 90%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}
/* ...........Projects section............ */
.projectHeading {
  text-align: center;
  color: white;
  margin-top: 3rem;
  font-size: 2.3rem;
  letter-spacing: 1.2px;
}
#projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 5%;
}
.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 350px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid white;
  border-radius: 1rem;
}
.project p {
  color: white;
  font-size: 0.9rem;
  padding-top: 0.6rem;
}

.project:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.1);
}
.project img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.project-content h2 {
  color: #00cfff;
}
.buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.buttons a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1.5px solid #00cfff;
  border-radius: 8px;
  color: #00cfff;
  transition: 0.3s;
}
.buttons a:hover {
  background: #00cfff;
  color: black;
}
/* Skills Section */
#skill {
  text-align: center;
  padding: 4rem 5%;
  background: linear-gradient(135deg, #111, #2b0000);
  gap: 3rem;
}

.skill-heading {
  color: #00ffff;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.skill-subtext {
  color: #d3d3d3;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skill-card {
  background: #1f1f1f;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  width: 250px;
  text-align: center;
  border: 1px solid #00ffff33;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.skill-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.skill-card h3 {
  color: #00ffff;
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  color: white;
  text-align: center;
  padding: 4rem 5%;
  width: 100%;
}

.contact-heading {
  font-size: 2.3rem;
  color: #00ffff;
  margin-bottom: 0.5rem;
}

.contact-subtext {
  color: #d3d3d3;
  margin-bottom: 2.5rem;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-form {
  background: rgba(85, 77, 77, 0.105);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 15px;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 8px;
  background: #1f1f1f;
  color: white;
  font-size: 1rem;
  outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #aaa;
}

#contact-form button {
  background: transparent;
  border: 2px solid #00ffff;
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#contact-form button:hover {
  background: #00ffff;
  color: #000;
}

/* .......... Responsive Layout ............ */
@media (max-width: 1024px) {
  nav {
    padding: 1rem 2rem;
  }

  #hero,
  #about {
    padding: 3rem 3rem;
  }

  #hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav .right {
    display: none;
  }

  #hero,
  #about {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  #hero .img,
  #about .img2 {
    justify-content: center;
  }

  #hero img,
  #about .img2 img {
    width: 80%;
    max-width: 300px;
  }

  #hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  #hero p,
  #about p {
    font-size: 0.95rem;
  }

  #projects {
    padding: 2rem;
    gap: 1.5rem;
  }

  .project {
    width: 90%;
  }
}

/* Mobile Devices */
@media (max-width: 480px) {
  nav {
    padding: 0.8rem 1.2rem;
  }

  #hero,
  #about {
    padding: 2rem 1rem;
  }

  #hero h1 {
    font-size: 1.7rem;
  }

  #hero p,
  #about p {
    font-size: 0.9rem;
  }

  #hero img,
  #about .img2 img {
    width: 90%;
  }

  .project {
    width: 100%;
    padding: 1rem;
  }

  .project h2 {
    font-size: 1.2rem;
  }

  .buttons a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}
