:root {
    --primary: #25cf0f;
    --bg: #000000;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: 0;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1.4rem 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid var(--primary);
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-style: italic;
}

.navbar-logo span {
    color: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav a {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 1rem;
    transition: 0.3s;
}

.navbar-nav a:hover {
    color: var(--primary);
}

.navbar-nav a::after {
    content: '';
    display: block;
    border-bottom: 2px solid var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.navbar-nav a:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('../img/header-bg.jpg') no-repeat center center/cover;
    position: relative;
    text-align: center;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0));
}

.hero .content {
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero .cta {
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: #fff;
    background-color: var(--primary);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.hero .cta:hover {
    background-color: #1eae0e;
}

/* Global Variables */
:root {
    --primary: #25cf0f;
    --bg: #000000;
}

/* Global Styles */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: 0;
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #000000;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 7%;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.navbar-logo span {
    color: var(--primary);
}

.navbar-nav a {
    color: #ffffff;
    margin: 0 1rem;
    font-size: 1.3rem;
    transition: 0.3s;
}

.navbar-nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: url('../img/header-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
}

.hero .content {
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Daftar Benih Section */
.daftar-benih {
    padding: 3rem 7%;
    text-align: center;
}

.daftar-benih h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 18rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 1rem;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card button {
    padding: 0.7rem 1.5rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card button:hover {
    background-color: #1fa50d;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

/* Kontak Section */
.kontak {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/header-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 2rem;
    text-align: center;
    position: center;
}

.kontak h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.kontak ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kontak li {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #ddd;
    animation: fadeInUp 1s ease-out;
}

.kontak a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
}

.kontak a:hover {
    color: #1eae0e;
    border-bottom: 2px solid #1eae0e;
}

/* Footer */
footer {
    background: linear-gradient(to right, #000, #333);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary);
    animation: slideIn 1s infinite alternate;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #1eae0e;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        left: -100%;
    }
    to {
        left: 100%;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    html {
        font-size: 90%;
    }

    .navbar-nav {
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        right: -100%;
        width: 100%;
        height: 100vh;
        transition: 0.3s;
    }

    .navbar-nav.active {
        right: 0;
    }

    .kontak {
        padding: 1.5rem;
        text-align: center;
    }

    .kontak h2 {
        font-size: 2rem;
    }

    .kontak li {
        font-size: 1rem;
    }

    footer {
        font-size: 0.8rem;
    }
}
