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

:root {
    --primary: #1b5e20;
    /* Deep Eco Green */
    --primary-light: #4c8c4a;
    --secondary: #01579b;
    /* Deep Industrial Blue */
    --accent: #aed581;
    /* Soft Lime */
    --background: #fcfdfe;
    --dark: #0a0c10;
    --text: #1a1c1e;
    --light-text: #546e7a;
    --glass: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.badge-premium {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border: 1px solid rgba(27, 94, 32, 0.2);
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.glass-light {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: var(--shadow-premium);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
    background: var(--glass);
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.04em;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    width: 55%;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: var(--secondary);
    -webkit-text-fill-color: initial;
    background: none;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--light-text);
    max-width: 90%;
}

#canvas-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 90%;
    z-index: 1;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--light-text);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-card p {
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.5;
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    z-index: 1001;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chatbot-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 85%;
}

.chat-bubble.bot {
    background: #f0f2f5;
    align-self: flex-start;
}

.chat-bubble.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}

.chat-options {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-option {
    padding: 0.5rem 1rem;
    background: #e8f5e9;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-option:hover {
    background: var(--primary);
    color: white;
}

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

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--accent);
    letter-spacing: -0.04em;
}

.footer-info p {
    opacity: 0.7;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-info i {
    color: var(--accent);
    width: 20px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.8rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* About & Mission Components */
.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mv-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.mv-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-premium);
}

.mv-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.technical-assistance {
    background: rgba(0, 255, 127, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border-left: 5px solid var(--secondary);
}

.technical-assistance h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.values-section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.values-grid span {
    background: rgba(255, 255, 255, 0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--dark);
}

.values-grid span i {
    color: var(--primary);
}

/* Detailed Product Sections */
.product-detail-box {
    margin-bottom: 60px;
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.product-detail-box:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 400px;
}

.detail-grid.reverse {
    direction: rtl;
}

.detail-grid.reverse .detail-text {
    direction: ltr;
}

.detail-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-item {
    margin-bottom: 1.5rem;
}

.product-item h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.product-item p {
    font-size: 0.95rem;
    color: var(--light-text);
}

.detail-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transition: none;
}

.reveal.active {
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.relative {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        width: 80%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid.reverse {
        direction: ltr;
    }

    .detail-image {
        height: 300px;
        order: -1;
        /* Image on top for mobile */
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--dark);
        z-index: 1100;
        margin-right: 15px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 2rem;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        color: var(--dark);
    }

    .nav-btn {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        flex-direction: column-reverse;
        padding-top: 120px;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
    }

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

    #canvas-container {
        position: relative;
        width: 100%;
        height: 350px;
        top: 0;
        transform: none;
        margin-bottom: 2rem;
    }

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

    .footer-info p {
        justify-content: center;
    }

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

    /* General Adjustments */
    .section-title h2 {
        font-size: 2rem;
    }

    .glass-light {
        padding: 2rem;
    }

    .detail-text {
        padding: 2rem 1.5rem;
    }

    .chatbot-window {
        width: 90%;
        right: 5%;
        bottom: 90px;
    }
}