/* FONT */
/* Ubuntu */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
/* Oswald */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
/* Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


body{
  background: #377BC8;
}
.navbar{
    background-color: #fff;
    height: 64px;
    margin: 20px;
    border-radius: 30px;
    border: 3px solid rgb(19, 87, 155);
    padding: 0.5rem;
}

.navbar-brand{
    font-weight: 500;
    color: #04308e;
    font-size: 24px;
    transition: 0.3s color;
}

.login-button{
    background-color: #04308e;
    color: #fff;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s background-color;
}

.login-button:hover{
    background-color: #0065b3;
}

.navbar-toggler{
    border: none;
    font-size: 1.25rem;
}

.navbar-toggler:focus, .btn-close:focus{
    box-shadow: none;
    outline: none;
}

.nav-link{
    color: #666777;
    font-weight: 700;
    font-size: 16px;
    position: relative;
}

.nav-link:hover, .nav-link:active{
    color: #000;
}

@media (min-width: 991px){
    .nav-link::before{
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #04308e;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }

    .nav-link:hover::before, .nav-link.active::before{
        width: 100%;
        visibility: visible;
    }
}

/* HERO SECTION START */
.hero-section{
    background: url(img/spazebg.jpeg) no-repeat center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    position: relative;
}

.hero-section::before{
    background-color: rgba(0, 0, 0, 0.3);
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hero-section .container{
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* kotak kiri (lebih tinggi & besar) */
.box-left{
    background-color: rgba(247, 245, 245, 0.75);
    height: 55vh;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 20px;
    margin-top: 10.5rem;
}
.box-left h1{
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-style: normal;
}
.box-left .deskripsi-project{
  font-weight: 600;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size:20px;
}


/* kotak kanan (lebih pendek) */
.box-right{
    background-color: rgba(247, 245, 245, 0.6);
    height: 60vh;
    border: 2px solid #000;
    border-radius: 20px;
    margin-top: 9.3rem;
    overflow: hidden; /* biar gak keluar kotak */

    display: flex;
    justify-content: center;
    align-items: center;
}

.box-right img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

.hero-section h1{
    color: #000;
    font-size: 1.5rem;
}
.hero-section h2{
    color: #000;
    font-size: 1.2rem;
    font-weight: 400;
}

@media only screen and (max-width: 600px) {
  .hero-section{
    background: url(img/spazebg.jpeg) no-repeat center;
    height: 50vh;
    background: cover;      /* Scales image to fill the screen */
    background-position: center; /* Keeps the middle of the image visible */
    background-repeat: no-repeat;
    height: 100vh; 
}

  .hero-section h1{
    color: #000;
    font-size: 1rem;
}

  .hero-section h2{
    color: #000;
    font-size: 15px;
    font-weight: 400;
}

  .box-left{
    margin-top: 4rem;
    margin-left: 2.5rem;
    height: 43vh; 
  }

  .box-left .deskripsi-project{
    font-size: 12px;
  }

  .box-right{
    margin-top: 2rem;
    height:20vh;
    margin-left: 2.5rem;
  }
}
/* HERO SECTION END */

/* COMPONENT SECTION START */
.section-component {
  padding: 30px 20px 50px;
  background: #377BC8;
  min-height: 160vh;
}

.title {
  color: #04308e;
  font-size: 3rem;
  font-family: "Ubuntu", sans-serif;
  font-weight: bold;
  margin-bottom: 20px;
}

.component-box {
  background: #f4f4f4;
  border-radius: 16px;
  padding: 40px 25px;
  height: 68vh;
}

.sensor-card {
  background: #d9d9d9;
  border-radius: 12px;
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.68);
  overflow: hidden;
  max-width: 240px;
  margin: 0 auto;
  border: 2px solid #000;
  display: flex;
  flex-direction: column; /* Mengubah layout menjadi kolom */
  height: 100%;           /* Memastikan tinggi card mengisi kolom */
}

.sensor-header {
  background: #76b8dd;
  color: #ffffff;
  text-align: center;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px 10px 0 0;
}

.sensor-body {
  padding: 18px 16px 20px;
  text-align: center;
  flex-grow: 1;           /* Membuat body elemen tumbuh agar semua kotak memiliki panjang yang sama */
}

.sensor-image-box {
  background: #f7f7f7;
  width: 100px;
  height: 130px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.sensor-image-box img {
  max-width: 70px;
  max-height: 110px;
  object-fit: contain;
}

.sensor-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222222;
}

.sensor-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
  margin: 0;
}

@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .component-box {
    padding: 20px 15px;
  }
}

@media only screen and (max-width: 600px) {
  h1.title.component-title{
    font-size: 30px;
  }
  .component-box {
    padding: 40px 25px;
    height: 174vh;
  }
  .sensor-card {
    max-width: 240px;
    height: 100%;           
  }
  .sensor-image-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  .sensor-image-box img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
  }
  .sensor-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222222;
  }
  .sensor-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #333333;
    margin: 0;
  }
  .text-footer i{
    width: 200px;
  }
}

footer{
  background-color: #4fb1ea;
}
.text-footer i{
    width: 180px;
}

/* ==========================HOWORKS=========================== */
.section-howorks{
  padding: 40px;
  padding-top: 7rem; 
}

.title-howorks {
  font-family: "Ubuntu", sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 30px;
}

.howorks-box {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.card {
  background: #f4f4f4;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Make the card items spread out evenly */
}

.card-title {
  font-weight: 500;
  font-size: 1.25rem;
}

.card-text {
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

.card-footer {
  background: #76b9e1;
  color: white;
  font-size: 0.875rem;
  text-align: center;
  padding: 10px;
}

.btn-custom {
  background-color:#04308e;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  text-transform: uppercase;
}

/* Layout adjustment */
.howorks-row{
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 3rem;
}

.col-md-6 {
  flex: 1;
  min-width: 290px;
}

/* Ensures that all cards have the same height */
.col-md-6 .card {
  height: 100%; /* Make all cards have the same height */
}

@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .card {
    margin-bottom: 15px;
  }

  .col-md-6 {
    min-width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  h1.title-howorks{
    font-size: 27px;
  }
}



/* ============ OURTEAM START ============= */
.card-img-top{
    border-radius: 50%;
    height: 250px !important;
    width: 250px !important;
    position: relative;
    left: 8px;
    top: -80px;
    object-fit: cover;
    border: 3px solid #04308e;
}
.card-team{
  border: 3px solid #04308e;
  height: 26rem;
}

.title-team h2{
  margin-top: 5rem;
  color: #a0d8f8;
  font-weight: bold;
}
.title-team h3{
  padding-bottom: 1rem;
  color: #04308e;
  font-weight: bold;
  font-size: 40px;
}

.batas{
  width: 250px;
  height: 10px;
  background-color: #04308e;
  border-radius: 50px;
  margin-left: 33rem;
  margin-bottom: 2rem;
}

.title-team h4{
  padding-bottom: 3rem;
  color: #a0d8f8;
}

.pekerjaan{
  width: 200px;
  height: 30px;
  background-color: #04308e;
  border-radius: 50px;
  margin-left: 10px;
  margin-bottom: 10px;
}
.pekerjaan p{
  color: #a0d8f8;
}
.card:hover{
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;

}
.card-body{
    margin-top: -50px;
}
.bi{
    font-size: 25px;
}
@media only screen and (max-width: 600px) {
    .title-team h2{
      font-size: 20px;
    }
    .title-team h3{
      font-size: 30px;
      padding-bottom: 30px;
    }
    .batas{
      width: 180px;
      height: 5px;
      margin-left: 5rem;
      margin-bottom: 2rem;
    }
    .title-team h4{
      font-size: 20px;
    }
    .card-img-top{
      left: 1.5px;
      border-radius: 50%;
      height: 250px !important;
      width: 250px !important;
      position: relative;
      top: -80px;
      object-fit: cover;
      border: 2px solid #000;
    }
    .card-team-box{
      margin-bottom: 50px;
      max-width: 320px;
    }
    .card-team{
      left: 30px;
      margin-bottom: 30px;
    }
  }

/* ============ OURTEAM END =========== */
