/* Global Styles - 60-30-10 Color Scheme */
:root {
    /* 60% - Dominant Color */
    --primary-color: #334f43; /* Dark Green */

    /* 30% - Secondary Color */
    --secondary-color: #2f6f4a; /* Green */

    /* 10% - Accent Color */
    --accent-color: #f4c143; /* Yellow */

    /* Neutral Colors */
    --neutral-light: #f9f9f9;
    --neutral-dark: #1a191c;
    --neutral-mid: #6a696d;
    --white: #ffffff;

    /* Additional Colors */
    --light-green: #e9f4ef;
    --light-yellow: #fef7e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
}

body {
    color: var(--neutral-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons - Using accent color for CTAs */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--neutral-dark);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(244, 193, 67, 0.2);
}

.btn:hover {
    background-color: #e0a824;
    border-color: #e0a824;
    transform: translateY(-3px);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(244, 193, 67, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(51, 79, 67, 0.2);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--neutral-mid);
    max-width: 800px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: var(--light-green);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(51, 79, 67, 0.1);
    backdrop-filter: blur(10px);
}

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

.header-left {
    flex: 0 0 auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    color: var(--primary-color);
    padding: 8px 0;
}

.nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover::after {
    width: 100%;
}

.nav-menu a:not(.btn):hover {
    color: var(--secondary-color);
}

.nav-menu .nav-btn {
    padding: 10px 24px;
    font-size: 13px;
    margin-left: 10px;
}

/* Language Switcher */
.language-switcher-desktop {
    display: flex;
    align-items: center;
}

.language-switcher-mobile {
    display: none;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(51, 79, 67, 0.2);
}

.lang-link.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.lang-link:hover {
    background: var(--light-green);
    border-color: var(--secondary-color);
}

.lang-link.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.separator {
    color: rgba(51, 79, 67, 0.3);
    font-weight: 300;
}

/* Hamburger Button - IMPROVED */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Presisi X Animation */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(
        135deg,
        rgba(51, 79, 67, 0.03) 0%,
        rgba(47, 111, 74, 0.05) 50%,
        rgba(244, 193, 67, 0.02) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(244, 193, 67, 0.03));
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle,
        rgba(244, 193, 67, 0.1) 0%,
        transparent 70%
    );
    z-index: -1;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(51, 79, 67, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-color);
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--neutral-mid);
    max-width: 600px;
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 120px 0;
    background-color: var(--light-green);
    position: relative;
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1),
        rgba(255, 255, 255, 0)
    );
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    align-items: center;
}

.features-content {
    position: relative;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--white);
    border: 1px solid rgba(51, 79, 67, 0.1);
}

.feature-item:hover {
    background-color: var(--white);
    border-color: var(--secondary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(51, 79, 67, 0.1);
}

.feature-icon {
    margin-right: 24px;
    flex-shrink: 0;
    background: linear-gradient(
        135deg,
        var(--secondary-color),
        var(--primary-color)
    );
    padding: 20px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 24px;
}

.feature-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.feature-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary-color);
}

.feature-content p {
    color: var(--neutral-mid);
    line-height: 1.7;
}

.features-image {
    margin-top: 60px;
    position: relative;
    text-align: center;
}

.features-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(51, 79, 67, 0.15);
    border: 10px solid var(--white);
}

.features-content > .btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.features-content > .btn i {
    transition: transform 0.3s ease;
}

.features-content > .btn:hover i {
    transform: translateX(5px);
}

/* Messaging Section */
.messaging {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.messaging-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.messaging-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--white), var(--light-green));
    box-shadow: 0 10px 30px rgba(51, 79, 67, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(51, 79, 67, 0.1);
    position: relative;
    overflow: hidden;
}

.messaging-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.messaging-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(51, 79, 67, 0.15);
    border-color: var(--secondary-color);
}

.messaging-card:hover::before {
    transform: scaleX(1);
}

.messaging-card img {
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.messaging-card:hover img {
    transform: scale(1.05);
}

.messaging-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.messaging-card p {
    color: var(--neutral-mid);
    line-height: 1.7;
}

.messaging .btn {
    margin: 0 auto;
    display: block;
    width: fit-content;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), #2a4539);
    color: var(--white);
    padding: 100px 0 30px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent-color),
        var(--secondary-color)
    );
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.footer-column {
    position: relative;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a::before {
    content: "›";
    color: var(--accent-color);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
}

.footer-column ul li:not(a) {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul li:not(a) i {
    color: var(--accent-color);
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px) rotate(5deg);
    border-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    position: relative;
}

.footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-bottom p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.footer-bottom a {
    color: var(--accent-color);
    transition: color 0.3s ease;
    font-weight: 600;
    position: relative;
    padding: 0 5px;
}

.footer-bottom a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 5px;
    right: 5px;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-bottom a:hover::after {
    transform: scaleX(1);
}

.footer-bottom a:hover {
    color: var(--white);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .messaging-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .language-switcher-desktop {
        display: none;
    }

    .header-right {
        gap: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--light-green);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 80px; /* Increased padding bottom for language switcher */
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(51, 79, 67, 0.1);
        z-index: 1001;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(51, 79, 67, 0.1);
        width: 100%;
    }

    .nav-menu a:not(.btn)::after {
        display: none;
    }

    .nav-menu .nav-btn {
        margin: 20px 0 0 0;
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 14px;
    }

    .language-switcher-mobile {
        display: flex;
        justify-content: center;
        margin-top: 24px;
    }

    .language-switcher-mobile .lang-switcher {
        display: flex;
        align-items: center;
        background: #ffffff;
        border-radius: 999px;
        padding: 4px;
        box-shadow: 0 6px 16px rgba(51, 79, 67, 0.15);
        gap: 4px;
    }

    .language-switcher-mobile .lang-link {
        min-width: 52px;
        text-align: center;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 999px;
        color: rgba(51, 79, 67, 0.7);
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .language-switcher-mobile .lang-link.active {
        background: #f2c94c;
        color: #334f43;
        box-shadow: 0 4px 10px rgba(242, 201, 76, 0.5);
    }

    .language-switcher-mobile .lang-link.disabled {
        opacity: 0.6;
    }

    .language-switcher-mobile .separator {
        display: none;
    }

    .logo-img {
        max-width: 100px;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
        text-align: center;
    }

    .hero p {
        font-size: 16px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .button-group .btn {
        width: 100%;
        text-align: center;
        padding: 16px;
    }

    /* Features section adjustments */
    .features {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-bottom: 20px;
    }

    .feature-icon {
        margin: 0 auto 15px;
        width: 60px;
        height: 60px;
        padding: 15px;
    }

    .feature-icon img {
        width: 25px;
        height: 25px;
    }

    /* Messaging section adjustments */
    .messaging {
        padding: 80px 0;
    }

    .messaging-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .messaging-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 32px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-logo {
        max-width: 140px;
        margin: 0 auto 20px;
        display: block;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .footer-column ul li a::before {
        display: none;
    }

    .footer-bottom {
        padding-top: 30px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .logo-img {
        max-width: 80px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
        text-align: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-subtitle {
        font-size: 16px;
        text-align: center;
    }

    .features-image img {
        max-width: 100%;
        margin-top: 0;
    }

    .footer-logo {
        max-width: 120px;
    }

    .lang-link {
        padding: 5px 10px;
        font-size: 14px;
    }

    .language-switcher-mobile {
        top: 5%;
        left: 30%;
        padding: 6px 10px;
    }

    .language-switcher-mobile .lang-link {
        padding: 3px 8px;
        font-size: 12px;
    }

    .language-switcher-mobile .separator {
        font-size: 11px;
    }
}
