:root {
    --primary: #1A6F3A;
    --secondary: #F8A31B;
    --accent: #E62E2D;
    --dark: #333333;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --gray: #777777;
    --black: #000000;
    --third: #1C3A85;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles - REVISI */
header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1;
    transition: all 0.4s ease;
    padding: 50px 0; /* Ditambahkan padding untuk header */
}

.header-top {
    background-color: var(--third);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-contact {
    display: flex;
    gap: 20px;
}

.header-top-social {
    display: flex;
    gap: 15px;
    z-index: 10;
}

.header-top-social a {
    color: var(--white);
    transition: all 0.3s ease;
}

.header-top-social a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

header.scrolled {
    padding: 10px 0; /* Diubah dari 5px */
    background-color: #F5F7FA;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-left: 10px;
    transition: color 0.4s ease;
}

header.scrolled .logo-text {
    color: var(--dark);
}

.logo-highlight {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

header.scrolled nav ul li a {
    color: var(--dark);
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

header.scrolled .mobile-menu-btn {
    color: var(--black);
}

/* Hero Section - Diperbaiki */
.hero {
    position: relative; /* penting agar anak absolute nempel ke sini */
    padding: 200px 0 150px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1498837167922-ddd27525d352?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80')
                no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 46, 0, 0.6)),
                url('../img/aboutusimg.png')
                no-repeat center center/cover;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-divider {
    width: 100%;
    height: 80px; /* tinggi efek */
    background: url('../img/overlay-bottom.png') repeat-x;
    background-size: cover;
    position: absolute; /* ubah dari relative jadi absolute */
    bottom: 0; /* nempel bawah */
    left: 0;
    z-index: 2;
}

.hero-divider-top {
    width: 100%;
    height: 80px; /* tinggi efek */
    background: url('../img/overlay-top.png') repeat-x;
    background-size: cover;
    position: absolute; /* ubah dari relative jadi absolute */
    top: 0; /* nempel bawah */
    left: 0;
    z-index: 2;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--primary);
}

/* Floating elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 60%;
    left: 80%;
    animation: float 12s ease-in-out infinite;
}

.floating-element:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 70%;
    left: 15%;
    animation: float 18s ease-in-out infinite;
}

.floating-element:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 75%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231A6F3A" fill-opacity="0.03" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #2a8c4f 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    color: white;
}

.service-card:hover h3,
.service-card:hover .service-icon {
    color: white;
}

.service-icon {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    transition: all 0.4s ease;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: url('../img/headerimage.png') fixed;
    background-size: cover;
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 59, 135, 0.9);
}

.products .container {
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 40px;
    position: relative;
    overflow: hidden;
}

.product-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
}

.product-card:hover .product-img::before {
    left: 100%;
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.products .container .section-title h2, .products .container .section-title p {
    color: white;
}

.certificates {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #f1faee;
    border-bottom: 1px solid #a8dadc;
}

.certificates img {
    height: 40px;
    object-fit: contain;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23F8A31B" fill-opacity="0.03" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    height: 400px;
    background: linear-gradient(45deg, #1A6F3A, #2a8c4f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
    box-shadow: 0 15px 35px rgba(26, 111, 58, 0.2);
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231A6F3A" fill-opacity="0.03" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonial {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: url('../img/headerimage.png') fixed;
    background-size: cover;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 59, 135, 0.9);
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-title h2,
.contact .section-title p {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-icon {
    margin-right: 15px;
    font-size: 20px;
    color: var(--secondary);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 111, 58, 0.1);
    outline: none;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.animate__animated .animate__fadeInDown {
    width: 50%;
}

.hero-buttons .animate__animated .animate__fadeInUp .animate__delay-2s {
    margin-top: 2%;
    justify-content: left;
}

/* Vision And Mission */
.vm-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vm-section {
    padding: 100px 0 60px 0; /* tambahkan padding atas 100px */
}
.vm-title-main {
    margin-bottom: 40px;
    margin-top: 20px; /* bisa juga atur di sini */
}

.vm-icon {
    color: #27ae60;
    font-size: 2rem;
}

.vision-container, .mission-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.vision-container:hover,
.mission-container:hover {
    transform: translateY(-5px);
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

.mission-list li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #27ae60;
}

/* Responsive Design - Diperbaiki */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        transition: all 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(255, 255, 255, 1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 80px 30px 30px;
        margin-top: 0;
    }

    nav ul li {
        margin: 0 0 20px 0;
    }

    nav ul li a {
        color: var(--dark)!important;
        font-size: 18px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 150px 0 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-container {
        flex-direction: column;
    }

    .floating-element {
        display: none;
    }

    .animate__animated .animate__fadeInDown {
        width: 100%;
    }

    .hero-buttons .animate__animated .animate__fadeInUp .animate__delay-2s {
        margin-bottom: 5%;
    }

    .header-top {
        display: none;
    }
}
