/* 
  Brand Palette:
  Green: #0c9045
  Deep Green: #054f43
  Emerald Green: #078159
  Orange: #fd7016
  Yellow: #fed778
  White: #ffffff
*/

:root {
    --color-primary: #0c9045;
    --color-secondary: #078159;
    --color-tertiary: #054f43;
    --color-accent: #fd7016;
    --color-yellow: #fed778;
    --color-white: #ffffff;
    --color-dark: #121212;
    --color-text: #2b332b;
    --color-text-light: #5d665d;
    --color-bg-light: #f7fbf8;
    --color-bg-gray: #f3f4f6;
    --color-border: #e2e8f0;

    --font-main: 'Be Vietnam Pro', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(5, 79, 67, 0.05), 0 2px 4px -1px rgba(5, 79, 67, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(5, 79, 67, 0.08), 0 4px 6px -2px rgba(5, 79, 67, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(5, 79, 67, 0.1), 0 10px 10px -5px rgba(5, 79, 67, 0.04);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-tertiary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.highlight-text {
    color: var(--color-primary);
}

.highlight-accent {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(253, 112, 22, 0.3);
}

.btn-primary:hover {
    background-color: #e5600d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 112, 22, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Tags & Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-yellow);
    color: var(--color-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-inline: auto;
}

.section-header p {
    font-size: 1.125rem;
}

/* Utility Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-image {
    max-width: 510px;
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ========= HEADER ========= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-tertiary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--color-tertiary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    background-color: var(--color-bg-gray);
    border-radius: var(--radius-full);
    padding: 4px;
}

.lang-switch button {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition);
}

.lang-switch button.active {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-tertiary);
    cursor: pointer;
}

/* Responsive Header */
@media (max-width: 992px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        visibility: hidden;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        visibility: visible;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .header .btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .header .logo {
        font-size: 1.25rem;
    }

    .header .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .header .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-switch button {
        padding: 4px 8px;
    }
}

/* ========= HERO SECTION ========= */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    background-color: var(--color-bg-light);
    overflow: hidden;
    position: relative;
    min-height: calc(100vh - 80px);
    /* Fill screen minus header */
    display: flex;
    align-items: center;
}

.hero-bg-shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 144, 69, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--color-tertiary);
}

.hero-image-wrapper {
    position: relative;
    max-width: 460px;
    margin-left: auto;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Placeholder for styling the image dynamically generated */
.hero-image img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1.1;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

.hero-decoration {
    position: absolute;
    background: var(--color-yellow);
    border-radius: var(--radius-full);
    z-index: 1;
}

.decor-1 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    left: -30px;
}

.decor-2 {
    width: 60px;
    height: 60px;
    top: -20px;
    right: 40px;
    background: var(--color-primary);
}

.floating-card {
    position: absolute;
    bottom: 40px;
    right: -30px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

.floating-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(12, 144, 69, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .badge {
        margin: 0 auto 16px auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .floating-card {
        right: 20px;
        bottom: -20px;
    }
}

/* ========= FOOTER ========= */
.footer {
    background-color: var(--color-tertiary);
    color: var(--color-white);
    padding: 80px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-desc {
    color: #a0aec0;
    max-width: 400px;
    margin-bottom: 24px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.footer-contact i {
    color: var(--color-yellow);
    font-size: 1.25rem;
    margin-top: 4px;
}

.footer-title {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e2e8f0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-yellow);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.875rem;
    color: #718096;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* --- PROMO POPUP --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: var(--color-white);
    border-radius: var(--radius-md);
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    z-index: 10;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.popup-close:hover {
    color: var(--color-accent);
}

.popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.popup-image-col {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.popup-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-html-col {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .popup-grid {
        grid-template-columns: 1fr;
    }

    .popup-html-col {
        padding: 24px;
    }
}