*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins",sans-serif;
    scroll-behavior: smooth;

}
body{
    background-color: #f8f8f8;
}
header{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)),url("../img/sea.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.container{
    width: 80%;
    margin-inline: auto;
}
.navbar{
    padding: 20px 0px 20px 0px;
    position: fixed;
    width: 100%;
    transition: all 0.3s ease;
    z-index: 9;
}
.navbar.scrolling-active{
    background-color: #0050b3; 
    padding: 30px 0px 30px 0px;
}
.navbar .box-navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .box-navbar .menu{
    display: flex;
    column-gap: 20px;
}
.navbar .box-navbar .logo h1{
    color:white;
    font-size: 16px;
}
.navbar .box-navbar .menu li{
    list-style-type: none;
}
.navbar .box-navbar .menu li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px 10px 15px;
}
.navbar .box-navbar .menu li a:hover{
    background-color: #0050b3;
    transition: all 0.3s ease;
}
.navbar .box-navbar .menu .active a{
    background-color:#0050b3 ;
}
.menu-bar{
    display: none;
    color: white;
    font-size: 24px;
}
.hero{
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 50px;
}
.hero .box-hero{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    column-gap: 50px;
    align-items: center;
    justify-self: space-between;
}
.hero .box-hero .box:nth-child(1) h1{
    color:white;
    font-size: 3vw;
    line-height: 1.3;
    margin-bottom: 20px;
}
.hero .box-hero .box:nth-child(1) p{
    line-height: 2;
    color: white;
    margin-bottom: 20px; 
    font-weight: 300;
}
.hero .box-hero .box:nth-child(1) button{
    width: 150px;
    height: 50px;
    background-color: #0050b3;
    font-weight: bold;
    color: white;
    border:none;
    cursor: pointer;
    border-radius: 5px;
}
.hero .box-hero .box:nth-child(1) button:hover{
    background-color: #005e83;
    transition: all 0.3s ease;
}
.hero .box-hero .box:nth-child(2) img{
    width: 100%;
    align-items: center;
}
.services{
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 50px 0px 50px 0px;
}
.services .box-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 50px;
}
.services .box-services .box1{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 50px;
    text-align: center;
    color: black;
}
.services .box-services .box{
    width: 300px;
    text-align: center;
    color: black;
}
.services .box-services .box i{
    font-size: 40px;
    margin-bottom: 10px;
}
.farm{
    padding: 50px 0 50px 0;
  
}
.farm .box-farm {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px; 
}

.farm .box-farm > div {
    width: 30%; 
    min-width: 250px; 
    margin-bottom: 20px;
}

 .farm .box-farm .box{
    text-align: center;
    color: black;
    transition: all 0.3s ease;
    z-index: 1;
}
.farm .box-farm .box:hover{
    transform: translateY(-20px);
}
.farm .box-farm .box img{
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    border-radius: 5px;
}
.farm .box-farm .box p{
    font-weight: 200;
    margin-bottom: 15px;
}
.farm .box-farm .box a{
    width: 120px;
    height: 40px;
    border: none;
    background-color: #0050b3;
    color: white;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px 20px;
    text-decoration: none;
}
.farm .box-farm .box a:hover{
    background-color: #005e83;
    transition: all 0.3s ease;
}
/* Styling gallery */
.gallery {
    background-color: #f8f8f8;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    
}

.gallery .container {
    width: 90%;
    max-width: 1200px;
    
}

.gallery .box-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-top: 30px;
    justify-content: center;
}

.gallery .box-gallery .box {
    text-align: center;
    transition: all 0.3s ease;
}

.gallery .box-gallery .box img {
    width: 100%;
    max-height: 200px;
    border-radius: 5px;
    height: 150px; /* Tetapkan tinggi yang sama untuk semua gambar */
    object-fit: cover;
}
.gallery .box-gallery1 .box h1{
    color: black;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 50px;
    
}
/* Lightbox Styling */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
}

/* Tombol Close */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.support-section {
    background: #f8f8f8;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    z-index: 1;
}

.support-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 70%;
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    z-index: 1
}

.support-content img {
    width: 80px;
    height: auto;
}

.text {
    text-align: center;
}

.support-content .text h2 {
    margin: 0;
    font-size: 24px;
    margin-top: 10px;
}

.support-content .text a {
    color: #0050b3;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}
.footer {
    background: #0050b3;
    color: white;
    padding: 50px;
   
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
    margin-top: 30px;
}

.footer-logo {
    max-width: 250px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links h3 {
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
}
.social-icons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #005e83;
}

@media screen and (max-width:1200px){
    .hero .box-hero .box:nth-child(1) button{
        width: 150px;
    }
}
@media screen and (max-width: 990px){
    .menu-bar{
        display: block;
    }
    .navbar .box-navbar .menu{
        position:absolute;
        flex-direction: column;
        height: 250px;
        width: 100%;
        row-gap: 20px;
        justify-content: center;
        align-items: center;
        top: 70px;
        right: 50%;
        transform: translateX(50%);
        opacity: 0;
        transition: all 0.3s ease;
        background-color: #0050b3;
    }
    .navbar .box-navbar .menu.menu-active{
        top:80;
        opacity: 1;
        border-top: 1px solid white;
    }
    .hero .box-hero .box:nth-child(1) p{
        font-size: 14px;
    }
 } 
 @media  screen and (max-width: 768px){
    .hero .box-hero{
        grid-template-columns: 1fr;
        grid-template-rows: repeat (2, 1fr);
        row-gap: 20px;
    }
    .hero .box-hero .box:nth-child(1){
        order: 2;
        text-align: center;
    }
    .hero .box-hero .box:nth-child(2){
        order: 1;
        text-align: center;
    }
    .hero .box-hero .box:nth-child(2) img{
        width: 50vw;
    }
 }
 @media screen and(max-width:575px){
    .hero .box-hero .box:nth-child(1) h1 {
        font-size: 18px;
        }
 }
 @media  screen and (max-width:370px){
    .hero .box-hero .box:nth-child(2){
        width: 50vw;
        align-self: flex-end;
        justify-self: center  ;
    }
 }
 @media screen and (max-width: 768px) {
    .farm .box-farm > div {
        width: 45%; /* 2 item per baris */
    }
}
@media screen and (max-width: 480px) {
    .farm .box-farm > div {
        width: 100%; /* 1 item per baris */
    }
}
    


/* Responsif untuk layar lebih kecil */
@media (max-width: 1024px) {
    .gallery .box-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
}

@media (max-width: 768px) {
    .gallery .box-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery .box-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 8px 15px; /* Sedikit lebih kecil untuk tablet */
    }

    .footer-links h3, 
    .footer-links ul li a, 
    .footer-icon h3 {
        font-size: 13px; /* Kurangi ukuran teks */
    }

    .social-icons a {
        font-size: 12px;
    }
}

/* Responsif untuk HP (max-width: 480px) */
@media (max-width: 560px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    /* Pastikan semua elemen berada di tengah */
    .footer-logo {
        width: 100%;
    }

    .footer-links {
        display: flex;
        flex-direction: column; /* Ubah ke vertikal */
        align-items: center; /* Pusatkan semua teks */
        gap: 10px;
    }

    .footer-links div {
        width: 100%;
    }

    /* Perkecil ukuran teks */
    .footer-logo p,
    .footer-links h3,
    .footer-links ul li a,
    .footer-icon h3 {
        font-size: 14px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .social-icons a {
        font-size: 18px;
    }
}
@media (max-width: 768px) {
    .support-content {
        flex-direction: column; /* Ubah ke vertikal */
        text-align: center;
        top: 100%; /* Geser lebih ke bawah */
        max-width: 90%; /* Lebar lebih besar agar proporsional */
        padding: 15px;
    }

    .support-content img {
        width: 60px; /* Perkecil logo */
    }

    .support-content .text h2 {
        font-size: 18px;
    }

    .support-content .text a {
        font-size: 14px;
    }
}

/* RESPONSIVE: Tampilan di layar sangat kecil (HP kecil) */
@media (max-width: 480px) {
    .support-content {
        max-width: 95%;
        padding: 5px;
        
    }

    .support-content img {
        width: 40px;
        margin-top: 5px;
    }

    .support-content .text h2 {
        font-size: 12px;
    }

    .support-content .text a {
        font-size: 12px;
    }
}
