/* General */
* {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

/* Background and General Text Colors */
body {
  background: linear-gradient(
    435deg,
    #0d47a1,
    /* Biru tua dari burung */ #2196f3,
    /* Biru muda dari burung */ #ff8a65 /* Oranye sebagai aksen */
  );
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.5s ease-in-out;
}

/* Header styles */
header {
  position: absolute;
  z-index: 10;
  width: 100%;
  background: #102a43; /* Dark blue shade */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.burung {
  position: absolute;
  top: 70px;
  right: 70px;
  width: 400px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 9;
}

/* Navigation Bar */
nav {
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav ul li a {
  font-size: 18px;
  color: #fff;
  text-decoration: none !important;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: #ff6b6b; /* Vibrant red/pink */
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Intro Section */
.intro {
  margin-top: 120px;
  padding: 0 10%;
  text-align: left;
}

.intro h1 {
  font-size: 40px;
  line-height: 1.5;
  color: #fff;
}

.intro span {
  color: #ff6b6b; /* Red/pink */
}

/* About Section */
.about {
  padding: 80px 10%;
  color: #ffffff;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-1 img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-col-2 {
  flex-basis: 60%;
}

.about-col-2 h1 {
  font-size: 32px;
  font-weight: 700;
  color: #ff6b6b; /* Red/pink */
}

.about-col-2 p {
  line-height: 1.8;
}

.about-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #0d47a1; /* Biru tua */
  color: #ffffff; /* Putih */
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.about-button:hover {
  background-color: #ff8a65; /* Biru muda */
  transform: scale(1.05);
}

/* Skills Section */
#skills {
  padding: 80px 10%;
  color: #ffffff;
  text-align: center;
}

#skills h2 {
  font-size: 36px;
  color: #ff6b6b; /* Aksen merah muda */
  margin-bottom: 40px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skill {
  display: inline-block;
  padding: 12px 20px;
  background-color: #ffffff; /* putih bersih */
  color: #0d47a1; /* biru gelap */
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill:hover {
  background-color: #ff8a65; /* oranye aksen */
  color: #ffffff;
  transform: translateY(-3px);
}

/* Projects Section */
.projects {
  padding: 80px 10%; /* Biru muda semi-transparan */
  color: #132248;
  text-align: center;
}

.projects h1 {
  font-size: 36px;
  color: #ff6b6b; /* Biru tua */
  margin-bottom: 40px;
}

.projects p {
  padding-right: 80px;
}

a {
    color: #6ca0f6;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    text-decoration: underline;
}

/* Card Container */
.project-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Individual Card */
.project-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff; /* Putih */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 20px;
}

.project-card.reverse {
  flex-direction: row-reverse;
}

/* Image */
.card-image img {
  height: auto;
  border-radius: 10px;
  max-width: 300px;
  max-height: 150px;
}

/* Info Section */
.card-info {
  flex: 1;
  text-align: left;
}

.card-info h2 {
  font-size: 24px;
  color: #0d47a1; /* Biru tua */
  margin-bottom: 10px;
}

.card-info p {
  color: #555555; /* Abu-abu untuk teks deskripsi */
  font-size: 16px;
  line-height: 1.6;
}

/* Contacts Section */
.contacts {
  padding: 80px 10%;
  text-align: center;
  color: #ffffff;
}

.contacts h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #ff6b6b; /* Pinkish red */
}

.contacts p {
  font-size: 16px;
  margin-bottom: 40px;
  color: #d1d9e6; /* Light grayish blue */
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #0d47a1; /* Dark blue */
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2da8d8; /* Bright cyan */
  box-shadow: 0 0 5px rgba(45, 168, 216, 0.5);
}

.submit-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background: #ff6b6b; /* Pinkish red */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.submit-button:hover {
  background: #e53935; /* Darker red */
  transform: scale(1.05);
}

/* Footer */
footer {
  padding: 20px;
  background: #102a43; /* Dark blue shade */
  color: #ffffff; /* White */
  text-align: center;
  font-size: 14px;
}

footer a {
  color: #2da8d8; /* Bright cyan */
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* Additional Transitions for Better UX */
a,
button {
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

a:hover,
button:hover {
  transform: scale(1.05);
}

/* Responsive Design */

@media (max-width: 1200px) {
  .about-col-2 {
    padding-top: 10%;
  }
}

@media (max-width: 1084px) {
  nav {
    padding: 20px 5%;
  }

  .intro {
    padding: 0 5%;
  }

  .about,
  .projects,
  .contacts {
    padding: 60px 5%;
  }

  .burung {
    display: none;
  }
}

@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .intro {
    margin-top: 200px;
    text-align: center;
  }

  .intro h1 {
    font-size: 28px;
  }

  .row {
    flex-direction: column;
    gap: 30px;
  }

  .about-col-1 img {
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  .about-col-2 h1 {
    font-size: 26px;
    text-align: center;
  }

  .about-col-2 p {
    font-size: 15px;
    text-align: center;
  }

  .about-button {
    display: block;
    margin: 20px auto 0;
    text-align: center;
  }

  #skills {
    padding: 60px 5%;
  }

  #skills h2 {
    font-size: 28px;
  }

  .skills-list {
    gap: 10px;
  }

  .skill {
    font-size: 14px;
    padding: 10px 16px;
  }

  .projects h1,
  .contacts h1 {
    font-size: 26px;
  }

  .project-container {
    gap: 30px;
  }

  .project-card,
  .project-card.reverse {
    flex-direction: column;
    padding: 15px;
    text-align: center;
  }

  .card-image img {
    width: 100%;
    margin-bottom: 15px;
  }

  .card-info h2 {
    font-size: 20px;
  }

  .card-info p {
    font-size: 14px;
  }

  .contacts p {
    font-size: 14px;
  }

  .contact-form {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .intro {
    margin-top: 200px;
  }

  .intro h1 {
    font-size: 22px;
  }

  .about-col-2 h1 {
    font-size: 22px;
  }

  .card-info h2 {
    font-size: 18px;
    text-align: center;
  }

  .card-info p {
    font-size: 14px;
    padding-right: 0px;
  }

  .submit-button {
    width: 100%;
    font-size: 15px;
  }

  .about-button {
    width: 100%;
    font-size: 15px;
  }

  .contact-form {
    padding: 10px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 15px;
  }
}
