/* ========== Reset & Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body,
header,
header a,
nav a {
  color: #fff;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #000428, #004e92);
  text-align: center;
}

/* ========== Navigation ========== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 8rem;
  z-index: 200;
  display: flex;
  justify-content: space-around;
}

nav div {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

nav a {
  font-size: 1.5rem;
  background: linear-gradient(200deg, #023e77, #00a8f7);
  width: 10rem;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

nav div a:hover {
  border: 1px solid #fff;
}

/* ========== Header ========== */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('image/bg.jpg') center/cover no-repeat;
  height: 100vh;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

header a {
  background: linear-gradient(50deg, #00f5a0, #00d9f5);
  padding: 1rem 2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.3s;
}

header a:hover {
  background: #8ad7ff;
}

/* ========== Common Section Styles ========== */
section,
#projects {
  padding: 4rem 1rem;
}

#about,
#projects {
  background: linear-gradient(250deg, #000428, #004e92);
}

#about h2,
#skills h2,
#projects h2,
#achievements h2,
#contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #5d6d7e;
}

#about p {
  max-width: 95%;
  margin: 0 auto;
  font-size: 1.95rem;
  color: #e7e7e7;
  text-align: justify;
}

/* ========== Image Section ========== */
.image {
  border-radius: 50%;
  width: 400px;
  height: 400px;
  margin-bottom: 300px;
  background-size: contain;
  border: 2px solid #fff;
  position: relative;
  top: 10rem;
  transition: transform 10ms ease-in-out;
}

.image:hover {
  transform: scale(1.2);
}

/* ========== Skills ========== */
.skills-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.skill {
  width: 30%;
  margin: 1.5rem;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(150deg, #00f5a0, #00d9f5);
  transition: transform 0.3s ease-in-out;
}

.skill:hover {
  transform: translateY(-10px);
}

.skill i {
  font-size: 4rem;
  color: #001858;
  margin-bottom: 1rem;
}

.skill h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #232323;
}

/* ========== Projects ========== */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.project-card {
  border-radius: 10px;
  width: 400px;
  background: linear-gradient(150deg, #00f5a0, #00d9f5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  color: #001858;
  text-align: center;
  padding: 1rem;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #232323;
}

.project-card p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #000000;
  text-align: justify;
}

.project-card a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #141e61;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}

.project-card a:hover {
  background: #f78793;
}

/* ========== Achievements ========== */
.achievement-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.achievement-card {
  border-radius: 10px;
  width: 400px;
  background: linear-gradient(150deg, #00f5a0, #00d9f5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  color: #001858;
  padding: 1rem;
  text-align: center;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.achievement-card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}

.achievement-card p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #000000;
  text-align: justify;
}

/* ========== Contact Section ========== */
#contact {
  text-align: center;
  padding: 3rem 1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #54f0dd;
  color: #00042a;
}

.contact-form button {
  padding: 1rem;
  border: none;
  background: linear-gradient(90deg, #00f5a0, #00d9f5);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 20px;
  font-weight: bold;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #5d6d7e;
}

/* ========== Social Media ========== */
#social-media div {
  height: 6rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

#social-media div a {
  width: 80px;
  color: #fff;
  font-size: 5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Footer ========== */
footer {
  background-color: #141e61;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .projects-container,
  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card,
  .skill {
    width: 90%;
  }

  nav {
    height: 2.5rem;
    justify-content: space-around;
  }

  nav div {
    width: 96%;
    height: 100%;
    justify-content: space-between;
  }

  nav div a {
    font-size: 0.6rem;
    height: 70%;
    width: 4.2rem;
  }

  .image {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    top: 0;
  }

  #about p {
    max-width: 900px;
    font-size: 1.1rem;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1.2rem;
  }

  #social-media div {
    height: 100%;
    align-items: end;
  }

  #social-media div a {
    width: 50px;
    font-size: 2.5rem;
  }

  .project-card p,
  .achievement-card p {
    font-size: 1rem;
  }
}
