
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #ffffff;
}

.section-home-cover {
   position: relative;
    width: 100%;
    height: 100vh; 
    background: url('Pertanian.jpeg') no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    background: #4a6741;
    opacity: 0.9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

.logo {
    font-size: 2em;
    color:#ffffff;
    user-select: none;
}
.navigation a {
    content: '';
    position: relative;
    left: 0;
    bottom: -6px;
    font-size: 1.1em;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
    transform: scaleX(0);
}

.navigation a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 5px;
    transform: scaleX(0);
    transition: .3s ease-in-out;
}

.navigation a:hover::after{
      transform: scaleX(1);
}

.navigation .btnLogin-popup {
width: 130px;
height: 50px;
background:transparent;
border: 2px solid;
outline: none;
border-radius: 6px;
cursor: pointer;
font-size: 1.1em;
color: #ffffff;
font-weight: 500;
margin-left: 40px;
transition: .3s ease-in-out;
}

.navigation .btnLogin-popup:hover{
    background: #ffffff;
    color: black;
}

/* 1. KOTAK PUTIH (Tetap seperti kode kamu) */
.white-box {
    position: absolute;
    top: 370px;
    opacity: 0.9;
    left: 0;
    width: 100%;
    height: 400px; 
    background: #fcfdfd;
    border-radius: 50px 50px 0 0;
    z-index: 10;
    overflow: visible; 
}

/* 2. LENGKUNGAN KACA (Diturunkan lagi) */
.white-box::before {
    content: "";
    position: absolute;
    /* Nilai top diperbesar ke arah positif agar turun */
    top: 70px; 
    right: 50px; 
    width: 450px;
    height: 250px;
    background: #4a6741; 
    backdrop-filter: blur(8px);
    border-radius: 250px 250px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: -1; 
}

/* 3. LUBANG PUTIH (Diturunkan agar menyatu sempurna) */
.white-box::after {
    content: "";
    position: absolute;
    /* Kita gunakan nilai yang lebih besar agar terlihat jelas turunnya */
    top: 140px; 
    right: 125px; 
    width: 300px;
    height: 150px;
    background: #fcfdfd;
    border-radius: 150px 150px 0 0;
    
    /* UBAH BAGIAN INI */
    z-index: 1; /* Naikkan jadi positif agar tidak sembunyi di balik background putih */
}

/* Supaya teks "Welcome" dan tombol tidak tertutup oleh elemen di atas */
.white-box > * {
    position: relative;
    z-index: 5; 
}

/* TEXT */
.welcome {
    position: absolute;
    top: 390px;
    left: 100px;
    font-size: 38px;
    font-weight: bold;
    z-index: 14;
}

.explore {
    position: absolute;
    top: 440px;
    left: 100px;
    font-size: 20px;
    width: 450px;
    z-index: 14;
}

.subtitle {
    position: absolute;
    top: 470px;
    left: 100px;
    font-size: 16px;
    width: 450px;
    z-index: 14;
}

.green-btn {
    position: absolute;
    top: 520px;
    left: 100px;
    padding: 12px 30px;
    background: #161717;
    border-radius: 20px;
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    z-index: 15;      
    transition: .3s ease-in-out;
}

.green-btn:hover{
    background: #646962de;
    color: rgb(252, 250, 250);
}

/* Section About */
.section-about {
    background-color: #f9fbf9;
    padding: 40px 20px;
}

.wrapper-about {
    width: 100%;
}

/* Isi About */
.about-content {
    display: flex; 
    align-items: flex-start;
    justify-content: space-between;
    gap: 100px;
    background: #fcfdfe;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* TEXT */
.about-text {
    flex: 1;
    padding-left: 20px;
} 

/* Judul */
.about-text h2 {
    font-size: 2.5rem;
    color: #4a6741;
    margin-bottom: 30px;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #4a6741, #161717);
    margin-top: 10px;
    border-radius: 2px;
}

/* Paragraf */
.about-text p {
    font-size: 18px;
    margin: 15px 0;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

.content-button{
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 17px;
    font-weight: bold;
    color: #ffffff;
    background-color: #161717;
    outline: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: .3s ease-in-out;
}

.content-button:hover{
    background-color: #636861;
}

/* Image */
.about-image {
    flex:1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end; 
    padding-right: 20px;
    margin-top: 90px;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    display: block;
    border-radius: 15px;
    transition: .4s ease-in-out;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .wrapper-about {
        padding: 40px 20px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
    }

    .about-image img {
        max-width: 100%;
    }
}

/* Section Contact */
/* Section Contact */
.section-contact {
    background-color: #f9fbf9;

    /* sebelumnya 40px 20px */
    padding: 10px 20px 40px;
    margin-top: -40px; /* mendekatkan ke section about */
}

/* Container Contact */
.contact-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 100px;

    background: #fcfdfe;

    padding: 40px;
    border-radius: 30px; /* lengkungan */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);

    width: 100%;
}

/* Text kiri */
.contact-text {
    flex: 1;
    margin-top: 20px;
}

.contact-text h2 {
    font-size: 2.5rem;
    color: #4a6741;
    margin-bottom: 20px;
}

.contact-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;

    background: linear-gradient(to right, #4a6741, #161717);

    margin-top: 10px;
    border-radius: 2px;
}

.contact-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #161717;
}

/* Form kanan */
.contact-form {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 20px;

    margin-top: 60px; /* form turun sedikit */
}

/* Input */
.contact-form input,
.contact-form textarea {

    width: 100%;
    padding: 15px;

    border: 1px solid #dcdcdc;
    border-radius: 12px;

    outline: none;

    font-size: 16px;
}

/* Textarea */
.contact-form textarea {
    min-height: 150px;
    resize: none;
}

/* Button */
.contact-button {
    width: 50%; 
    padding: 15px;
    background: #161717;
    color: white;
    border: none;
    border-radius: 12px; 
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: .3s ease;
    margin-top: 10px;
}

.contact-button:hover {
    background: #636861; 
    transform: translateY(-2px); 
}

/* Responsive */
@media (max-width: 768px) {

    .section-contact {
        padding: 40px 20px;
    }

    .contact-container {
        flex-direction: column;
        padding: 30px;
    }
}

html {
    scroll-behavior: smooth;
}

#about, #contact {
    scroll-margin-top: 100px; 
}

#Home, #home-cover {
    scroll-margin-top: 0px !important;
}