 * {
    box-sizing: border-box;
}
 html, body {
    width: 100%;
    overflow-x: hidden !important;
}

 header{
        background: #644A38;
        background: -moz-linear-gradient(45deg, #644A38 0%, #FFF223 47%, #2268B9 100%);
        background: -webkit-linear-gradient(45deg, #644A38 0%, #FFF223 47%, #2268B9 100%);
        background: linear-gradient(45deg, #644A38 0%, #FFF223 47%, #2268B9 100%);
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
        height: 60px;
        color: white; 
        font-family: 'Open Sauce', sans-serif; 
        border-radius: 5px 5px 0 0;
    }


.bg_product{
    background-image: url(../gambar/gambar11.jpeg);
    background-size: cover;       /* Menyesuaikan gambar agar menutupi seluruh area */
    background-position: center;  /* Menengahkan gambar */
    background-repeat: no-repeat; /* Supaya gambar tidak diulang */
    min-height: 93.2vh;                /*Tinggi section*/
    position: relative;
    width: 100%;
    flex: 1;
}
.bg_contact{
    background-image: url(../gambar/gambar10.jpeg);
    background-size: cover;       /* Menyesuaikan gambar agar menutupi seluruh area */
    background-position: center;  /* Menengahkan gambar */
    background-repeat: no-repeat; /* Supaya gambar tidak diulang */
    height: 93.2vh;                /* Tinggi section */
    position: relative;
}
.p_contact{
  text-align: center; 
  padding-top: 180px; 
  color:white
}
.section_feldspar{
    background-image: url(../gambar/gambar12.jpeg);
    background-size: cover;       /* Menyesuaikan gambar agar menutupi seluruh area */
    background-position: center;  /* Menengahkan gambar */
    background-repeat: no-repeat; /* Supaya gambar tidak diulang */
    height: 100vh;                /* Tinggi section */ 
    position: relative;
}
.section_dolomit{
    background-image: url(../gambar/dolomit_resource.PNG);
    background-size: cover;       /* Menyesuaikan gambar agar menutupi seluruh area */
    background-position: center;  /* Menengahkan gambar */
    background-repeat: no-repeat; /* Supaya gambar tidak diulang */
    height: 100vh;                /* Tinggi section */
    position: relative;
}
  .section_silika{
      background-image: url(../gambar/gambar8.jpeg);
      background-size: cover;       /* Menyesuaikan gambar agar menutupi seluruh area */
      background-position: center;  /* Menengahkan gambar */
      background-repeat: no-repeat; /* Supaya gambar tidak diulang */
      height: 100vh;                /* Tinggi section */
      position: relative;
  }
    .card-section {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        padding: 40px;
    }

    .card {
      width: 400px;
      height: 400px;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      background-color: #fff;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 3s ease forwards;
      transition: transform 0.3s;
    }

    .card:hover {
      transform: translateY(-5px);
    }

    .card-image {
      height: 300px;
      background-size: cover;
      background-position: center;
      position: relative;
      color: white;
      display: flex;
      align-items: flex-end;
      padding: 15px;
    }
    .spek-lab{
        height: 81vh; /* tinggi maksimal = tinggi layar */
        width: 60vh;        /* lebar otomatis mengikuti proporsi */
        display: block;
        text-align: center;
        margin: 0 auto;
        padding-bottom: 20px;
    }
    .process-image{
       height: 81vh; /* tinggi maksimal = tinggi layar */
        width: 120vh;        /* lebar otomatis mengikuti proporsi */
        display: block;
        text-align: center;
        margin: 0 auto;
        padding-bottom: 20px;
    }
    .logo{
      height: 210px;
      margin-right: 10px;
    }
    .logo_contact{
      height: 200px;
    }

    .nav {
      position: absolute;
      top: 20px;
      left: 20px;
      right: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: white;
      font-weight: bold;
      z-index: 10;
    }
    .nav .right {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .nav a {
      color: white;
      text-decoration: none;
      margin-left: 10px;
    }
    .nav-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
    }
    .nav-toggle span {
      height: 3px;
      background: white;
      margin: 4px 0;
      width: 25px;
    }

    .card-image h3 {
      margin: 0;
      font-size: 20px;
      text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }

    .card-body {
      height: 50px;
      padding: 15px;
      font-family: sans-serif;
      font-size: 14px;
    }

    .card-body p {
      margin: 0 0 10px;
      color: #555;
    }

    .card-body a {
      color: #0066ff;
      text-decoration: none;
      font-weight: bold;
    }

    .card-body a span {
      margin-left: 5px;
    }
    .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease forwards;
    }
    .footer {
      background-color: #333;
      color: white;
      padding: 40px 0;
      display: flex;
      width: 100%;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    .footer div {
      flex: 1 1 550px;
      margin-left: 150px;
      margin-bottom: 20px;
    }
    .footer h3 {
      margin-bottom: 10px;
    }
    .footer p, .footer a {
      font-size: 14px;
      color: #ccc;
      text-decoration: none;
    }

    @media (max-width: 768px) {
    header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100px !important;
        padding: 10px !important;
    }
    .nav .right {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.8);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        border-radius: 5px;
      }
      .nav .right.show {
        display: flex;
      }
      .nav-toggle {
        margin-top: 15px;
        display: flex;
      }

    header img {
        height: 300px !important;
        width: 300px;
    }
    
    header nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 10px 0 !important;
    }
     header nav a {
        display: block !important;
        width: 45% !important;
        text-align: center !important;
        margin: 5px 0 !important;
        white-space: normal !important;
    }

    /* .logo{
      height: 500px;
      width: 400px;
    } */

    .logo_contact{
      height: 100px;
    }

    .p_contact{
      text-align: center; 
      padding-top: 180px; 
      color:white
    }

    .card {
        width: 90% !important;
        height: auto !important;
        max-width: 350px !important;
    }
    .card-section {
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px !important;
    }

    .card-image {
        height: 200px !important;
    }
    .card-body {
      height: 60px;
      padding: 15px;
      font-family: sans-serif;
      font-size: 14px;
    }
    .process-image{
       height: 41vh; /* tinggi maksimal = tinggi layar */
       width: 50vh;        /* lebar otomatis mengikuti proporsi */
        display: block;
        text-align: center;
        margin: 0 auto;
    }

    .footer div {
        margin-left: 0 !important;
        text-align: center !important;
    }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    @font-face {
    font-family: 'Open Sauce';
    src: url('KJC/font/open-sauce.sans-black.ttf') format('truetype');
    font-weight: normal;
  }

  @font-face {
    font-family: 'Open Sauce';
    src: url('KJC/font/open-sauce.sans-extrabold.ttf') format('truetype');
    font-weight: bold;
  }