@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2e7d32;
    --primary-hover: #1b5e20;
    --secondary-color: #4caf50;
    --accent-color: #81c784;
    --dark-bg: #ffffff;
    --card-bg: #f4fbf5;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(46, 125, 50, 0.15);
    --light-text: #172d1c;
    --muted-text: #5a7561;
}

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

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

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
.highlight { color: var(--secondary-color); }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--secondary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title p {
    color: var(--muted-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}
.navbar.scrolled {
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    transition: color 0.3s ease;
}
.navbar.scrolled .logo {
    color: var(--light-text);
}
.logo .leaf { color: var(--secondary-color); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.navbar.scrolled .nav-links a {
    color: var(--light-text);
}
.nav-links a:hover, .navbar.scrolled .nav-links a:hover { color: var(--secondary-color); }

/* Buttons */
.btn {
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: white;
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    background-attachment: fixed;
    padding: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 18, 0.9) 0%, rgba(15, 23, 18, 0.5) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    color: #fff;
}
.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    color: #fff;
}
.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--light-text);
    animation: bounce 2s infinite;
}
.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.7;
}

/* Dashboard Section */
.dashboard {
    background-color: var(--dark-bg);
    position: relative;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.metric-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}
.metric-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.metric-card h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.metric-card p {
    color: var(--muted-text);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Pillars Section */
.pillars {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #152219 100%);
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.pillar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.pillar-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}
.pillar-card:hover::before {
    transform: scaleX(1);
}
.icon-wrapper {
    width: 60px; height: 60px;
    background: rgba(129, 199, 132, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.icon-wrapper i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}
.pillar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.pillar-card p {
    color: var(--muted-text);
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: #0a0f0c;
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo p {
    color: var(--muted-text);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links h4 {
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.2s ease-out forwards;
}
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 10px;
    background-color: var(--glass-bg);
    min-width: 200px;
    box-shadow: 0px 8px 30px 0px rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    list-style: none;
    padding: 0;
}
.user-btn + .dropdown-content {
    right: 0;
    left: auto;
}
.dropdown-content li {
    width: 100%;
}
.dropdown-content li a {
    color: var(--light-text);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.3s ease, color 0.3s ease;
}
.dropdown-content li:last-child a {
    border-bottom: none;
}
.dropdown-content li a:hover {
    background-color: rgba(46, 125, 50, 0.05);
    color: var(--secondary-color);
}
.dropdown-content.show {
    display: block;
    animation: fadeInDropdown 0.2s ease-out forwards;
}
.user-btn {
    background: rgba(129, 199, 132, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(129, 199, 132, 0.3);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.user-btn:hover {
    background: rgba(129, 199, 132, 0.25);
    transform: translateY(-2px);
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .cta-buttons { flex-direction: column; }
}
