﻿/* =========================================================
   ARGO AGRITECH LANDING PAGE
   Eco-Friendly / Aesthetic / Modern / High-Performance
   ========================================================= */

/* ---------------------------------------------------------
   Global Palette & Variables
--------------------------------------------------------- */
:root {
    --eco-dark-forest: #132718;
    --eco-primary: #2d5a27;
    --eco-secondary: #4a7c59;
    --eco-accent: #6b8e23;
    --eco-accent-light: #88b04b;
    --eco-soft-bg: #f4f7f2;
    --eco-card-bg: #ffffff;
    --eco-text: #1a2b1c;
    --eco-text-muted: #627565;
    --eco-border: #d4e0d6;
    --eco-border-hover: #a3c4a8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, button, input, select, textarea, .navbar, .card {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

body {
    padding-top: 0 !important;
    color: var(--eco-text);
    background: linear-gradient(135deg, #f4f8f4 0%, #e5f0e7 50%, #f7faf7 100%);
    background-attachment: fixed;
    line-height: 1.65;
    overflow-x: hidden;
}

::selection {
    background: var(--eco-primary);
    color: #ffffff;
}

a {
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.text-eco-dark {
    color: var(--eco-dark-forest) !important;
}

.text-eco-accent {
    color: #92b85e !important;
}

.text-success {
    color: var(--eco-primary) !important;
}

.bg-eco-dark {
    background-color: var(--eco-dark-forest) !important;
}

.border-eco {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.text-muted-eco {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ---------------------------------------------------------
   Glassmorphism Navbar & Active Link Underline
--------------------------------------------------------- */
.navbar {
    min-height: 76px;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.12);
    transition: all 0.3s ease;
    z-index: 1050;
}

    .navbar.shadow-sm {
        box-shadow: 0 4px 25px rgba(19, 39, 24, 0.06) !important;
    }

.navbar-brand {
    color: var(--eco-dark-forest) !important;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
}

    .navbar-brand img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .navbar-brand:hover img {
        transform: rotate(-5deg) scale(1.05);
    }

    .navbar-brand small {
        color: var(--eco-text-muted) !important;
        letter-spacing: 0.5px;
        font-size: 0.68rem;
    }

.navbar .nav-link {
    position: relative;
    font-weight: 500;
    color: #384d3c !important;
    padding: 0.65rem 1rem !important;
    margin: 0 0.1rem;
    transition: color 0.3s ease;
}

    .navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 0;
        height: 3px;
        border-radius: 10px;
        background: var(--eco-primary);
        transform: translateX(-50%);
        transition: width 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--eco-primary) !important;
    }

        .navbar .nav-link:hover::after,
        .navbar .nav-link.active::after {
            width: 65%;
        }

/* ---------------------------------------------------------
   Buttons & Badges
--------------------------------------------------------- */
.btn-eco {
    background: linear-gradient(135deg, var(--eco-primary), var(--eco-secondary));
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    box-shadow: 0 6px 18px rgba(45, 90, 39, 0.22);
    transition: all 0.3s ease;
}

    .btn-eco:hover {
        background: linear-gradient(135deg, var(--eco-secondary), var(--eco-dark-forest));
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(45, 90, 39, 0.35);
    }

.badge-eco {
    background: rgba(107, 142, 35, 0.85) !important;
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ---------------------------------------------------------
   Hero Carousel & Text Animations
--------------------------------------------------------- */
.hero-carousel {
    position: relative;
    margin-top: 75px;
}

.carousel-item {
    height: 36rem;
    min-height: 520px;
    background: var(--eco-dark-forest);
    position: relative;
    overflow: hidden;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.0);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item.active .carousel-img {
    transform: scale(1.06);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, rgba(12, 28, 16, 0.88) 0%, rgba(12, 28, 16, 0.65) 45%, rgba(12, 28, 16, 0.25) 100% );
}

.carousel-caption {
    right: auto;
    left: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 4rem 15px;
    text-align: left;
    z-index: 10;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-content-visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel-caption h1 {
    max-width: 800px;
    font-size: 3rem;
    line-height: 1.18;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.2rem;
}

.carousel-caption p.lead {
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.carousel-indicators {
    bottom: 25px;
    z-index: 20;
}

    .carousel-indicators li {
        width: 24px;
        height: 4px;
        margin: 0 4px;
        border: none;
        border-radius: 50px;
        background-color: rgba(255, 255, 255, 0.4);
        transition: all 0.3s ease;
    }

    .carousel-indicators .active {
        width: 44px;
        background-color: #ffffff;
    }

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    z-index: 15;
    opacity: 0.6;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
    }

/* ---------------------------------------------------------
   Section Headers & Dividers
--------------------------------------------------------- */
.section-intro {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    color: var(--eco-primary);
    background: #e8f2e9;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-intro h2 {
    font-size: 2.2rem;
    line-height: 1.25;
    letter-spacing: -0.8px;
    margin-bottom: 0.8rem;
    color: var(--eco-dark-forest);
}

.featurette-divider {
    margin: 2.5rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--eco-border), transparent);
}

/* ---------------------------------------------------------
   CONTINUOUS SCROLL REVEAL / FADE EFFECT
--------------------------------------------------------- */
.reveal-on-scroll,
.info-card,
.pillar-card,
.stakeholder-card,
.lifecycle-card,
.platform-card,
.contact-info-wrapper,
.contact-form-card {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

    .reveal-on-scroll.is-visible,
    .info-card.is-visible,
    .pillar-card.is-visible,
    .stakeholder-card.is-visible,
    .lifecycle-card.is-visible,
    .platform-card.is-visible,
    .contact-info-wrapper.is-visible,
    .contact-form-card.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* Staggered transition delays */
.row > [class*="col-"]:nth-child(1) .pillar-card,
.row > [class*="col-"]:nth-child(1) .stakeholder-card,
.row > [class*="col-"]:nth-child(1) .lifecycle-card,
.row > [class*="col-"]:nth-child(1) .info-card,
.row > [class*="col-"]:nth-child(1) .platform-card {
    transition-delay: 0.05s;
}

.row > [class*="col-"]:nth-child(2) .pillar-card,
.row > [class*="col-"]:nth-child(2) .stakeholder-card,
.row > [class*="col-"]:nth-child(2) .lifecycle-card,
.row > [class*="col-"]:nth-child(2) .info-card,
.row > [class*="col-"]:nth-child(2) .platform-card {
    transition-delay: 0.15s;
}

.row > [class*="col-"]:nth-child(3) .pillar-card,
.row > [class*="col-"]:nth-child(3) .stakeholder-card,
.row > [class*="col-"]:nth-child(3) .lifecycle-card,
.row > [class*="col-"]:nth-child(3) .platform-card {
    transition-delay: 0.25s;
}

/* ---------------------------------------------------------
   Eco Cards Layout (Info, Pillars, Lifecycle, Stakeholders)
--------------------------------------------------------- */
.info-card,
.pillar-card,
.stakeholder-card,
.lifecycle-card,
.platform-card {
    background: var(--eco-card-bg);
    border-radius: 18px;
    border: 1px solid var(--eco-border);
    box-shadow: 0 4px 20px rgba(27, 50, 30, 0.04);
}

    .info-card:hover,
    .pillar-card:hover,
    .stakeholder-card:hover,
    .lifecycle-card:hover,
    .platform-card:hover {
        transform: translateY(-6px) !important;
        box-shadow: 0 14px 35px rgba(27, 50, 30, 0.1);
        border-color: var(--eco-border-hover);
    }

.icon-wrapper {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #eaf3eb;
    color: var(--eco-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.info-label, .pillar-label, .stakeholder-tag, .platform-tag {
    display: block;
    color: var(--eco-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.pillar-card, .stakeholder-card, .platform-card {
    position: relative;
    overflow: hidden;
}

    .pillar-card::before, .stakeholder-card::before, .platform-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--eco-primary), var(--eco-accent-light));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s ease;
    }

    .pillar-card:hover::before, .stakeholder-card:hover::before, .platform-card:hover::before {
        transform: scaleX(1);
    }

.pillar-icon, .platform-icon {
    width: 64px;
    height: 64px;
    background: #eaf3eb;
    color: var(--eco-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon,
.stakeholder-card:hover .pillar-icon,
.platform-card:hover .platform-icon {
    background: var(--eco-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.lifecycle-card {
    min-height: 145px;
}

    .lifecycle-card i {
        font-size: 1.5rem;
    }

/* ---------------------------------------------------------
   PLATFORMS & CONTACT US CUSTOM STYLES
--------------------------------------------------------- */
.contact-info-wrapper {
    background: var(--eco-card-bg);
    border-radius: 20px;
    border: 1px solid var(--eco-border);
    box-shadow: 0 4px 20px rgba(27, 50, 30, 0.04);
}

.contact-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: #eaf3eb;
    color: var(--eco-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-form-card {
    background: var(--eco-card-bg);
    border-radius: 20px;
    border: 1px solid var(--eco-border);
    box-shadow: 0 6px 25px rgba(27, 50, 30, 0.06);
}

.eco-input {
    border: 1.5px solid var(--eco-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    height: auto;
    transition: all 0.25s ease;
}

    .eco-input:focus {
        border-color: var(--eco-primary);
        box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.15);
        background-color: #fdfdfd;
    }

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eaf3eb;
    color: var(--eco-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

    .social-btn:hover {
        background: var(--eco-primary);
        color: #ffffff;
        transform: translateY(-2px);
    }

/* ---------------------------------------------------------
   Media Queries
--------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-carousel {
        margin-top: 65px;
    }

    .carousel-item {
        height: 32rem;
    }

    .carousel-caption h1 {
        font-size: 2.2rem;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 1.2rem;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 28rem;
    }

    .carousel-caption h1 {
        font-size: 1.7rem;
    }

    .section-intro h2 {
        font-size: 1.75rem;
    }
}
