* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
   overflow-x: hidden;
   color-scheme: light;
}


/* Top Bar */
.top-bar {
  background-color: #ffbd59;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.top-bar-container {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: flex-end; /* Letakkan konten di kanan */
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 20px;
}

.contact-info span {
  font-size: 14px;
  color: #252525;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 8px;
  color: #252525;
}

/* navbar */
.navbar {
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(8px);
      padding: 10px 0;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      height: 64px;
    }
    .logo img {
      height: 50px;
    }
    .nav-links {
      list-style: none;
      display: flex;
      gap: 24px;
      align-items: center;
    }
    .nav-links > li {
      position: relative;
    }
    .nav-links a {
      font-weight: 600;
      color: #000;
      text-decoration: none;
      padding: 10px 14px;
      display: inline-block;
      transition: 0.2s;
      font-family: 'Poppins', 'Segoe UI', sans-serif;
      font-size: 18px;
    }
    .nav-links a:hover {
      color: #ff6600;
    }

    .dropdown-wrapper {
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: all 0.3s ease;
      position: absolute;
      top: 100%;
      left: 0;
      width: 220px;
      background-color: #fff;
      border-radius: 8px;
      padding: 8px 0;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
      z-index: 1000;
    }
    .about-dropdown:hover .dropdown-wrapper {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    .dropdown-menu {
      list-style: none;
    }
    .dropdown-menu a {
      display: block;
      padding: 10px 20px;
      color: #000;
      font-weight: normal;
      font-family: 'Poppins', 'Segoe UI', sans-serif;
    }
    .dropdown-menu a:hover {
      background: #f7f7f7;
      color: #ff6600;
    }
    .hamburger {
      display: none;
      font-size: 1.8rem;
      background: none;
      border: none;
      color: #000;
      z-index: 1100;
    }
    .dropdown-icon {
      transition: transform 0.3s ease;
    }









/* bar bwh */
.footer {
  background-color: #ffbd59 !important;
  color: #252525;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  width: 80%;
  margin: auto;
}

.footer p {
  font-size: 14px;
  margin-bottom: 10px;
}


/* Top slideshow section */
.header {
  position: relative;
  width: 100%;
  height: 80vh; /* Atas sahaja */
  overflow: hidden;
}

/* Container for slides */
.container2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}



/* Tajuk tengah */
.slideshow-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 40px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px 30px;
  border-radius: 10px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  animation: fadeSlideUp 1.2s ease-out forwards;
  opacity: 0;
  text-align: center;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Slideshow styling */
.slides-row {
  display: flex;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Next/Prev button - Solid Kecil & Moden */
span.next, span.prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 16px; /* kecilkan padding */
  background: #1b1b1b; /* warna solid gelap */
  color: #fff;
  font-weight: 600;
  font-size: 16px; /* kecilkan teks */
  transition: 0.3s ease;
  border-radius: 6px; /* radius kecil untuk nampak clean */
  user-select: none;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

span.next {
  right: 15px;
}
span.prev {
  left: 15px;
}

span.next:hover, span.prev:hover {
  background: #ff6600; /* hover biru */
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 5px 12px rgba(0,0,0,0.35);
}

/* Dots navigation */
.dots {
  position: absolute;
  bottom: 20px;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
}
.dot {
  height: 15px;
  width: 15px;
  margin: 0 4px;
  border: 3px solid #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active {
  background-color: #fff;
}



/* About Us */
#aboutUs {
  scroll-margin-top: 100px;
}

.container {
  width: 80%;
  margin: 20px auto;
  padding: 20px;
}

.Title {
  text-align: center;
  font-size: 45px;
  font-weight: bold;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
  text-transform: capitalize;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

.image {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  border-radius: 10px;
}

.image img {
  width: 100%;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.image:hover img {
  transform: scale(1.1);
}

.content {
  flex: 1;
  min-width: 300px;
}

.content p {
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
}

/* Vision & Mission Styling */
.vision-mission-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: linear-gradient(145deg, #f3a838, #ffbd59) !important;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  flex: 1 1 45%;
  transition: all 0.4s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
  transform: rotate(45deg);
  pointer-events: none;
  transition: 0.6s ease;
  opacity: 0;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
  top: -25%;
  left: -25%;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.card h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: rgb(59, 59, 59);
  
}

.card p, .card ul {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

.vision-mission-wrapper .card:first-child p {
  margin-top: 40px;
}

.card ul {
  list-style: disc inside;
  padding-left: 0;
}

/* Our Project */
.project {
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.project-col {
    flex-basis: 48%;
    padding: 30px 2px;
}

.img-col {
    order: 1; /* Ensures the image is on the left */
}

.text-col {
    order: 2; /* Ensures the text is on the right */
}

.project-col img {
    width: 100%;
    border-radius: 8px; /* Optional styling for rounded corners */
}

.image-wrapper {
    overflow: hidden; /* Pastikan gambar tidak keluar dari kotak */
    border-radius: 8px; /* Tetap memberikan sudut membulat pada pembungkus */
}

.image-wrapper img {
    width: 100%; /* Pastikan gambar menyesuaikan lebar kotak */
    transition: transform 0.3s ease; /* Transisi untuk efek halus */
}

.image-wrapper img:hover {
    transform: scale(1.1); /* Perbesar gambar saat dihover */
}

.project-col p{
         font-size: 19px;
        line-height: 1.6;
}

 /* our client */
.gallery {
  background: linear-gradient(#fff, #444);
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.slider {
  position: relative;
  width: clamp(230px, 40vw, 300px);
  height: clamp(140px, 25vw, 180px);
  transform-style: preserve-3d;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0%{
    transform: perspective(1000px) rotateY(0deg);
  }
  100%{
    transform: perspective(1000px) rotateY(360deg);
  }
}

.slider span {
  position: absolute;
  inset: 0;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i)*90deg)) translateZ(250px);
}

.slider span img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 2px solid #e0e0e0;                /* garis halus kelabu */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);/* shadow lembut */
  object-fit: cover;
  transition: 2s;
}

.slider span:hover {
  transform: translateY(-20px) scale(1.12)
    rotateY(calc(var(--i) * 90deg)) translateZ(250px);
  z-index: 2;
}


/*license */
.Gallery{
  display: inline-block;
  border: 1px solid hsl(0, 0%, 60%);
  margin: 9px;
  width: 400px;
}

.Gallery .desc {
  padding: 10px;
  text-align: center;
}

.Gallery:hover {
  border: 1px solid hsl(0, 0%, 20%);
}

.Gallery img {
  width: 100%;
  height: auto;
}

/* our service */
 .services-container {
      max-width: 1200px;
      margin: auto;
      padding: 0 20px 80px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      align-items: stretch;
    }

    .service-card {
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform 0.3s ease;
    }

    .service-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 25px 35px rgba(0,0,0,0.15), 0 12px 15px rgba(0,0,0,0.08);
    }

    .service-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  max-height: 200px;
}

    .service-title {
      font-size: 1.1rem;
      font-weight: bold;
      margin-bottom: 15px;
      text-align: center;
      flex: 1;
    }

    .read-more {
      display: inline-block;
      text-align: center;
      padding: 10px 20px;
      background-color: #fb5800;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      transition: background-color 0.2s ease;
      margin-top: auto;
    }

    .read-more:hover {
      background-color: #d74d02;
    }

    

/* Contact us page */
.Section_top {
        height: 50vh;
        width: 100%;
        overflow: hidden;
        position: relative;
        background-image: url(gambar/B\ OOSB\ ECT1.jpg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        animation: change 10s infinite ease-in-out;
        display: block;
        text-align: center;
        color: #000;
        min-height: 80vh;
}

/* tukar gambar background */
@keyframes change {
    0%
    {
        background-image: url(gambar/IRIS\ 2.jpg);
    }
    20%
    {
        background-image: url(gambar/Bgmbr3.jpg);
    }
    40%
    {
        background-image: url(gambar/B\ OOSB\ ECT1.jpg);
    }
    60%
    {
        background-image: url(gambar/B\ OOSB\ ECT1.jpg);
    }
    80%
    {
        background-image: url(gambar/IRIS\ 2.jpg);
    }
    100%
    {
        background-image: url(gambar/IRIS\ 2.jpg);
    }
}      

@keyframes fadeSlideUp2 {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* gelap */
  top: 0;
  left: 0;
  z-index: 1;
}

.Content h1 {
  color: #fff;
  font-size: 60px;
  letter-spacing: 13px;
}

.Content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
  z-index: 2; /* letak di atas overlay */
}

.title {
  color: #fff;
  font-size: 60px;
  letter-spacing: 13px;
  text-shadow: 4px 2px 8px rgba(0, 0, 0, 0.6); /* jadikan teks lebih menonjol */
  animation: fadeSlideUp2 1.5s ease-out forwards;
  opacity: 0; /* mula dengan invisible */
}

/* our experience page*/
.experience {
  min-height: 110vh;
  background-color: #f0f0f0;
  width: 100%;
  overflow-x: hidden;
  padding: 40px 0;
  overflow: hidden;
}



.Container {
  max-width: 1100px;
  margin: 0 auto;
}

.Title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

.Container .Row {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  grid-column-gap: 20px;
  padding: 0 20px;
}

.Row .line {
  position: relative;
  background-color: #fb5800;
}

.contents time {
  position: relative;
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 20px;
  background-color: #fb5800;
  color: white;
  font-weight: bold;
}

.contents time::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 3px;
  background-color: #fb5800;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.contents .description {
  position: relative;
  background-color: white;
  padding: 10px;
  border-left: 5px solid #fb5800;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.55);
  transition: all 0.5s ease;
  opacity: 0;
}

.contents .description::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fb5800;
  top: -10px;
  left: 20px;
  clip-path: polygon(0% 50%, 50% 0%, 100% 50%, 0% 50%);
}

/* Gambar */
.exp-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Grid setup */
.Row .empty-col {
  grid-area: empty_column;
}

.Row .line {
  grid-area: the_line;
}

.Row .contents {
  grid-area: the_contents;
  padding: 10px 0;
}

.Row:nth-child(odd) {
  grid-template-areas: 'empty_column the_line the_contents';
}

.Row:nth-child(even) {
  grid-template-areas: 'the_contents the_line empty_column';
  text-align: right;
}

.Row:nth-child(even) time::before {
  right: initial;
  left: 100%;
}

.Row:nth-child(even) .description::before {
  left: initial;
  right: 20px;
}

.Row:nth-child(even) .description {
  text-align: left;
}

/* Circle */
.Row .line .circle {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: #f0f0f0;
  border: 3px solid #fb5800;
  border-radius: 50%;
  transform: translateX(-50%);
}

.Row .line .start {
  top: 0;
}

.Row .line .end {
  bottom: 0;
}

/* Animation */
.Row:nth-child(odd) .description {
  transform: translateX(150px);
}

.Row:nth-child(even) .description {
  transform: translateX(-150px);
}

.Row .description.show {
  transform: translateX(0);
  opacity: 1;
}


/* contact us */
.location{
  width: 80%;
  margin: auto;
  padding: 80px 0;
        }
.location iframe{
width: 100%;

}
.contact-us{
        width: 80%;
        margin: auto;
}
.contact-col{
        flex-basis: 48%;
        margin-bottom: 30px;
}
.contact-col div{
        display: flex;
        align-items: center;
        margin-bottom: 40px;
}
.contact-col div .fa{
        font-size: 28px;
        color: #fb5800;
        margin: 10px;
        margin-right: 30px;
}
.contact-col h5{
        font-size:  15px ;
}
.contact-col div p{
        padding: 0;
}

/* button to top*/
.to-top{
        background: #ddd;
        position: fixed;
        bottom: 16px;
        right: 32px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        color: #000;
        text-decoration: none;
        opacity: 0;
        pointer-events: none;
        transition: all .4s;
}
.to-top.active{
        bottom: 100px; /* atas kn kedudukan button to top */
        pointer-events: auto;
        opacity: 1;
}






/* Responsive */
@media (max-width: 768px) {
  body.no-scroll {
  height: 100vh;
  overflow: hidden;
}

 .nav-links {
    background: #ffbd59; /* samakan dengan top bar */
  }

  .header {
    height: 45vh; /* pendekkan sikit supaya muat tablet */
  }

  .slideshow-title {
    font-size: 14px;  /* lebih kecil dari desktop */
    padding: 10px 18px;
    top: 40%;
    line-height: 1.4;
  }

  .slide img {
    height: auto;        /* ikut nisbah gambar */
    object-fit: contain; /* elak gambar terpotong */
  }

  span.next, span.prev {
    font-size: 14px;
    padding: 6px 10px;
    top: 40%;            /* naikkan dari 50% → 40% */
  transform: translateY(-50%);
  }

  .dots {
    top: 59%;/*tkan dots bawah title */
  }
  .dot {
    height: 10px;
    width: 10px;
  }
  

  /*about us */
  .Title {
    font-size: 32px;
  }

  .about-content {
    flex-direction: column;     /* susun gambar & text ke bawah */
    align-items: center;        /* ke tengah secara horizontal */
    justify-content: center;    /* ke tengah secara vertical kalau perlu */
    text-align: center;         /* teks ke tengah */
    margin: 0 auto;             /* pastikan container betul-betul tengah */
    gap: 20px;
  }

  .image {
    flex: none;
    min-width: unset;           /* buang min-width supaya fleksibel */
    width: 100%;
    display: flex;
    justify-content: center;    /* pastikan imej tengah */
  }

  .image img {
    max-width: 250px;           /* kecilkan imej di phone */
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .content {
    flex: none;
    min-width: unset;
    max-width: 90%;             /* supaya paragraph tak terlalu lebar */
    margin: 0 auto;
  }

  .content p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Responsive Breakpoint */
  .vision-mission-wrapper {
    flex-direction: column;
  }

  .card {
    flex: 1 1 100%;
  }

  .vision-mission-wrapper .card:first-child p {
  margin-top: 0;
  }

  /* project */
        .project {
        width: 90%;
        margin: auto;
        padding: 40px 0;
         }

        .row {
        flex-direction: column; /* Ubah ke kolom tunggal */
        gap: 30px;
        align-items: center; /* Pastikan elemen berada di tengah */
        }

        .project-col {
        flex-basis: 100%; /* Biarkan elemen memenuhi lebar kontainer */
        padding: 0;
        text-align: center; /* Pusatkan konten teks */
        }

        .project-col img {
        width: 75%; /* Kurangi ukuran gambar menjadi 80% */
        height: auto; /* Tetap menjaga proporsi gambar */
        border-radius: 8px; /* Tetap memberi sudut membulat */
        margin: 0 auto; /* Pastikan gambar berada di tengah */
        display: block; /* Memastikan elemen gambar adalah blok untuk margin auto */
        }

        .image-wrapper {
        width: 100%; /* Pastikan pembungkus gambar memenuhi kontainer */
        }

        .project-col p {
        text-align: justify; /* Untuk tata letak yang lebih rapi */
        font-size: 15px;
        line-height: 1.8;
        }

/* client */
.slider {
/* kecilkan jarak translateZ supaya tidak terkeluar skrin kecil */
--mobile-distance: 200px;
}

.slider span {
transform: rotateY(calc(var(--i) * 90deg))
translateZ(var(--mobile-distance, 200px));
}

.gallery{
  height: 50vh;
}

/* license */
 .Gallery {
    width: 100%;       /* penuh ikut skrin */
    max-width: 300px;  /* hadkan saiz maksimum */
    margin: 10px auto; /* centerkan pada skrin */
    
  }

  .Gallery .desc {
    font-size: 14px;   /* kecilkan tulisan description */
    padding: 6px;
  }
  
/*nav bar */
.hamburger {
        display: block;
      }
      .nav-links {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 65vw;
        max-width: 280px;
        height: 100vh;
        background: #f6bb62;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding-top: 80px;
        overflow-y: auto;
      }
      .nav-links.open {
        transform: translateX(0);
      }
      .nav-links > li {
        width: 100%;
        text-align: left;
      }
      .nav-links > li > a {
        display: block;
        padding: 14px 24px;
      }
      .nav-links > li > a:hover {
        background-color: #fff;
        color: #ff6600;
      }

      /* Submenu mobile */
      .about-dropdown .dropdown-wrapper {
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        padding: 0;
      }
      .about-dropdown .dropdown-wrapper:not(.show) {
        display: none;
      }

      .dropdown-menu a {
        padding: 12px 24px 12px 40px;
      }

      /* Rotate icon only on mobile click */
      .dropdown-icon.rotated {
        transform: rotate(180deg);
      }

      /* service */
      .services-container {
      flex-direction: column;
      align-items: center;
      padding: 20px 10px;
     }

      .service-card {
      width: 90%;
      max-width: 400px;
      margin-bottom: 20px;
     }

      .service-image {
      max-height: 180px;
     }

     /* experience */
         .Container .Row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "the_line"
      "the_contents";
    padding: 0 15px;
  }

  .Row .line {
    height: 60px;
    margin: 0 auto;
    width: 3px;
  }

  .Row .contents {
    text-align: center;
  }

  .contents time {
    display: block;
    margin: 0 auto 15px;
  }

  .contents time::before {
    display: none;
  }

  .description {
    text-align: center !important;
    border-left: none;
    border-top: 5px solid #fb5800;
  }

  .description::before {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }

  .Row:nth-child(odd) .description,
  .Row:nth-child(even) .description {
    transform: translateY(100px);
  }

  .Row .description.show {
    transform: translateY(0);
  }

    .Section_top .title {
    font-size: 2rem;
  }
  
}



  
  

