/* ========================================
   LANDING PAGE RESIK - STYLES
   File: public/css/landing.css
   Project: DLH Resik
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #2e8b57;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    max-width: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.btn-login {
    background: #ff6347;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #ff4500;
}

.btn-login img {
    width: 20px;
    height: 20px;
}

/* Hamburger Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 60px;
}

.hero-text {
    background: transparent;
    max-width: 600px;
    text-align: left;
    color: white;
}

.hero-title {
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.text-green {
    color: #2e8b57;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}

.hero-buttons .btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #2e8b57;
    color: white;
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.3);
}

.btn-primary:hover {
    background: #247a46;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #1b5e20;
    color: white;
    box-shadow: 0 4px 10px rgba(27, 94, 32, 0.3);
}

.btn-secondary:hover {
    background: #144a18;
    transform: translateY(-2px);
}

/* ===== LEAF BACKGROUND WRAPPER (Section 2-5) ===== */
.leaf-bg-wrapper {
    background-image: url('/assets/background-page.png');
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
}

.leaf-bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    z-index: 0;
}

.leaf-bg-wrapper .section,
.leaf-bg-wrapper .content {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* ===== SECTION BASE ===== */
.section {
    padding: 40px 15px;
    position: relative;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 50px;
    color: #1a1a1a;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: transparent !important;
    padding-top: 40px;
    padding-bottom: 40px;
}

.about-content-flex {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-icon {
    flex-shrink: 0;
}

.about-icon img {
    width: 60%;
    height: auto;
}

.about-title {
    font-size: 30px;
    font-weight: 800;
    color: #2e8b57;
    margin-bottom: 15px;
    margin-top: 0;
    text-align: left;
}

.about-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #444;
    margin: 0;
    text-align: justify;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.feature-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

/* ===== WASTE SECTION ===== */
.waste-section {
    background: #f9fff9;
}

.waste-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.waste-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: #e0e0e0;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.waste-tab.active {
    background: #2e8b57;
    color: white;
}

.waste-tab img {
    width: 40px;
    height: 40px;
}

.waste-content {
    display: none;
}

.waste-content.active {
    display: block;
}

.waste-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.waste-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.waste-item:hover {
    transform: translateY(-5px);
}

.waste-item img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.waste-item h4 {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.waste-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    background: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.pattern-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.download-description {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.btn-download {
    background: #2e8b57;
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #226b42;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: #004d26;
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 1;
    text-align: justify;
}

.footer-section:first-child p {
    color: white !important;
    opacity: 1 !important;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom p {
    color: white !important;
}



/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: nowrap;
        padding: 0 10px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
        padding: 20px 0;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2e8b57;
        gap: 15px;
        padding-left: 40px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-text {
        max-width: 100%;
        padding: 30px 0px;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content-flex {
        flex-direction: column;
        align-items: center;      /* ✅ KUNCI: Pusatkan item flex secara horizontal */
        text-align: center;       /* ✅ Pusatkan teks */
        gap: 20px;
        padding: 0 15px;          /* ✅ Jarak aman dari pinggir layar HP */
    }

    .about-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .about-icon img {
        width: 100px;             /* ✅ Ukuran proporsional di HP */
        height: auto;
        display: block;
        margin: 0 auto;           /* ✅ Cadangan centering */
    }

    .about-title {
        text-align: center;
        margin-top: 0;
    }

    .about-description {
        text-align: justify;
    }

    .features-grid,
    .waste-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .feature-card,
    .waste-item {
        max-width: 350px;
        margin: 0 auto;
    }

    .feature-description {
        text-align: justify;
        text-justify: inter-word;
        padding: 0 10px;
    }

    .feature-title {
        text-align: center;
        padding: 0 10px;
    }

    .waste-tabs {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom p {
        color: white;
    }
}

.footer-section:nth-child(2) {
    padding-left: 150px; 
}

/* Agar rapi di HP (reset ke normal) */
@media (max-width: 768px) {
    .footer-section:nth-child(2) {
        padding-left: 0;
    }
}