/* External CSS for PORT OF PEOPLE website */

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Calibre", "Inter", "Open Sans", "San Francisco", "SF Pro Text", -apple-system,
    system-ui, sans-serif;
}

body {
  background-color: #0D3B70; 
  color: #0D3B70;
  line-height: 1.6;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5rem;
  background-color: #0D3B70;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Aturan untuk tampilan desktop (normal) */
.nav-links {
  display: flex;
  gap: 2rem; 
}

.logo {
  color:white;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.logo span {
  color: white;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: white;
  transition: var(--transition);
}

.nav-links a:hover::before {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: #0D3B70;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 5rem;
  color: var(--white);
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-family: "Open Sans", sans-serif;
  font-size: 35px;
  font-weight: normal; 
  margin: 0;
  position: relative;
  margin-top: -10rem;
  margin-bottom: 2rem;
  color: white;
}

.hero h1 .bold {
  font-weight: bold;
}

.hero p {
  font-family: "Open Sans", sans-serif;
  font-size: 1.2rem;
  text-align: justify;
  margin-bottom: 1rem;
  max-width: 600px;
}

.hero-image {
  position: absolute;
  right: -17rem;
  top: 44%;
  transform: translateY(-50%);
  width: 94%;
  border-radius: 5px;
  overflow: hidden;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Slide-Up Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO CONTENT */
.hero-content {
  opacity: 0;
  animation: slideUp 1s ease-out forwards;
  animation-delay: 0.4s;
}

/* HERO IMAGE */
.hero-image {
  position: absolute;
  right: -17rem;
  top: 44%;
  width: 94%;
  border-radius: 5px;
  overflow: hidden;
  z-index: 0;

  opacity: 0;
  animation: slideUpImage 1s ease-out forwards;
  animation-delay: 0.6s;
}

/* Keyframe KHUSUS untuk gambar */
@keyframes slideUpImage {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% + 40px));
  }
  100% {
    opacity: 1;
    transform: translateY(-50%);
  }
}


/* Services Section */
.section-title {
  color: #0D3B70;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70%;
  height: 1px;
  background-color: var(--green);
}

.services-description {
  font-size: 1.2rem;
  color: #0D3B70;
  text-align: justify;
  line-height: 1.8;
  max-width: 650px;
}

.services {
  padding: 6rem 5rem;
  background-color: white; 
}

.services-content {
  flex: 1;
  max-width: 600px;
}

.services-image {
  flex-shrink: 0;
  max-width: 190px; 
  margin-left: 700px; 
  margin-top: -720px;
}

.services-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer; 
}

.services-image img:hover {
  transform: scale(1.05); /* Efek timbul saat hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.services-image img:active {
  transform: scale(0.95); 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
  opacity: 0.9;
}

.services-image2 {
  flex-shrink: 0;
  max-width: 250px; 
  margin-left: 920px;
  margin-top: -90px;
  margin-bottom: 60px;
}

.services-image2 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer; 
}

.services-image2 img:hover {
    transform: scale(1.05);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.services-image2 img:active {
  transform: scale(0.95); 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
  opacity: 0.9;
}

.icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px;
  justify-items: center;
  margin-top: 40px;
  margin-right: -80px;
  margin-bottom: 180px;
  width: 650px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 64px; 
}

.icons img {
  width: 64px;
  height: 64px;
  margin-top: 20px; 
  margin-left: -30px;
}

.icons img:hover {
  cursor: pointer;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icons img:active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  outline: 3px solid #FFD54F;
  border-radius: 12px;
  transform: scale(0.96);
  transition: all 0.1s ease-in-out;
}

.icon-title {
  margin-top: 8px;
  font-size: 0.9rem; 
  color: black;
  font-weight: 600;
  width: 200%; 
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: -30px;
}

/* Efek saat diklik */
.icons img:active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
  outline: 3px solid #FFD54F; 
  border-radius: 12px; 
  transform: scale(0.96); 
  transition: all 0.1s ease-in-out;
}

/* Efek saat hover (opsional) */
.icons img:hover {
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

/* Contact Section */
.contact {
  padding: 6rem 5rem;
  background-color: #0D3B70;
  color: white;
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title::after {
  background-color: var(--green);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: -20px;
  text-align: justify;
}

.contact-text p {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  color: var(--green);
  font-size: 1.5rem;
}

/* Footer */

:root {
  --navy: #0a1128;
  --light-slate: #cbd5e0;
  --green: #10b490;
  --transition: all 0.3s ease;
}

footer {
  background-color: var(--light-navy);
  color: var(--light-slate);
  padding: 2rem 5rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--light-slate);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--green);
}

.footer-text {
  font-size: 0.9rem;
}

@media (max-width: 640px) {
    nav {
        padding: 1rem;
        position: static;
    }

    .logo {
        font-size: 1.6rem; 
        margin-left: 20px;
        position: static;
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: #0D3B70;
        position: absolute;
        top: 60px; 
        left: 0;
        padding: 1rem 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex; 
    }

    .nav-links a {
    text-align: left; 
    padding: 0.5rem 1rem;
  }

    .hamburger-menu {
        display: block; 
        cursor: pointer;
        font-size: 2rem;
        color: white;
    }
    /* Akhir dari kode menu hamburger */

    .hero {
        height: auto;
        padding: 3rem 1rem;
        flex-direction: column;
        align-items: center;
        margin-top: -10px;
    }

    .hero-content {
        order: 2; 
        text-align: center;
    }

    .hero h1 {
        font-size: 19px;
        margin-top: -180px;
        margin-bottom: 0.0rem;
        margin-left: 10px;
        text-align: left;
        opacity: 0;
        animation: fadeInUpText 1s ease-out forwards;
        animation-delay: 0.5s;
    }

    .hero p {
        padding: 10px;
        font-size: 15px;
        text-align: justify;
        margin-bottom: 50px;
        opacity: 0;
        animation: fadeInUpText 1s ease-out forwards;
        animation-delay: 0.7s;
    }
    
    .hero-image {
        order: 1; 
        position: static;
        width: 100vh;
        margin-right: 40px;
        margin-top: 160px;
        margin-bottom: 2rem;
        opacity: 0;
     }

    /* ------------------------------------- */
    /* PENYESUAIAN ANIMASI                   */
    /* ------------------------------------- */
    @keyframes fadeInUpText {
        0% { opacity: 0; transform: translateY(20px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInUpImage {
        0% { opacity: 0; transform: translateY(20px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    .services {
        padding: 2rem 1rem;
        display: flex; 
        flex-direction: column;
    }

    .section-title  {
      font-size: 1.3rem;
      margin-left: 10px;
    }

    .services-description {
        font-size: 15px;
        padding: 10px;
        margin-top: -40px;
    }

     /* Icon di atas gambar */
    .icons {
      order: 1;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin: 2rem 0;
        width: 120%;
        margin-bottom: 0;
        padding: 50px;
        margin-left: -30px;
        margin-top: -40px;
    }

   .services-image {
        order: 2;
        margin: 1.5rem auto;
        max-width: 50%;
        display: block;
    }

    .services-image2 {
        order: 3;
        margin: 1.5rem auto;
        max-width: 50%;
        display: block;
        margin-bottom: 50px;
    }

    .icon-item {
        width: 120%;
        padding: 20px;
    }

    .icons img {
        width: 45px; 
        height: 50px; 
        margin: 0 auto;
        white-space: normal;
        text-align: center;
    }
  
    .icon-title {
        margin: 0 auto;
        width: auto !important;
        white-space: normal;
        text-align: center;
        font-size: 0.6rem;
    }
    
    .contact {
        padding: 2rem 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 50px;
    }

    .contact-text {
        font-size: 15px;
        margin-bottom: 1rem;
    }

    .contact-text p {
        padding: 10px;
        font-size: 15px;
        margin-top: -90px; 
        text-align: justify;
    }

    .footer-content {
        padding: 1.5rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: -10px;
    }
}