/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4fff6;
    line-height: 1.6;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2e8b57;
    color: white;
    padding: 15px 60px;
}

nav h2 {
    font-size: 22px;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 60px;
    gap: 40px;
}

.hero-text {
    max-width: 55%;
}

/* JUDUL */
.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #3cb371, #2e8b57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

/* SUB JUDUL */
.hero-text p:nth-child(2) {
    font-size: 20px;
    font-weight: 600;
    color: #2e8b57;
    margin-bottom: 10px;
}

/* DESKRIPSI */
.hero-text p {
    margin-bottom: 10px;
    font-size: 15px;
    text-align: justify;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #2e8b57;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    background-color: #256d46;
}

/* HERO IMAGE */
.hero-img img {
    width: 380px;
    max-width: 100%;
}

/* FITUR */
.fitur {
    text-align: center;
    padding: 60px 40px;
}

.fitur h2 {
    margin-bottom: 40px;
    font-size: 28px;
    color: #2e8b57;
}

/* GRID CARD */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 40px;
}

/* CARD */
.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

/* ICON */
.card img {
    width: 130px;
    margin-bottom: 15px;
}

/* TITLE */
.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* TEXT */
.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* BUTTON CARD */
.btn-card {
    display: inline-block;
    background: #2e8b57; /* disesuaikan dengan tema */
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
}

.btn-card:hover {
    background: #256d46;
}

/* FOOTER UTAMA */
.footer {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    margin-top: 60px;
}

/* CONTAINER */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 60px;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* KOLOM */
.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #f0fdf4;
}

/* COPYRIGHT */
.footer-bottom {
    text-align: center;
    background-color: #e6f4ea;
    color: #2e8b57;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
}
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: white;
    width: 60%;
    max-width: 600px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    animation: pop 0.3s ease;
}

.modal-content img {
    width: 120px;
    margin-bottom: 10px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

@keyframes pop {
    from {transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
.hero-img img {
    width: 380px;
    max-width: 100%;
    animation: floatUpDown 3s ease-in-out infinite;
}

/* animasi naik turun */
@keyframes floatUpDown {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}
