/* ============================================
   AgriTech Software Solutions - Main Styles
   ============================================ */

:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --accent: #81C784;
    --bg-light: #F5F9F5;
    --text-dark: #1A1A2E;
    --text-muted: #6C757D;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    transition: box-shadow 0.3s;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
}

/* Page content offset for fixed nav */
.page-content {
    padding-top: 80px;
    min-height: 60vh;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    padding: 6rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-image {
    position: relative;
    min-height: 75vh;
    overflow: hidden;
}

.hero-image .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-image .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(27, 94, 32, 0.92) 0%, rgba(46, 125, 50, 0.8) 40%, rgba(46, 125, 50, 0.3) 65%, transparent 80%);
    z-index: 1;
}

.hero-image .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p.lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Cards */
.feature-card {
    border: none;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h5 {
    font-weight: 600;
}

/* Stats */
.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Team / About */
.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

/* Footer */
footer a:hover {
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        min-height: auto;
    }

    .hero-image {
        min-height: 60vh;
    }

    .hero-image .hero-overlay {
        background: linear-gradient(to right, rgba(27, 94, 32, 0.95) 0%, rgba(46, 125, 50, 0.85) 60%, rgba(46, 125, 50, 0.7) 100%);
    }

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

    .section {
        padding: 3rem 0;
    }
}

/* Page transitions */
.page-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.fade-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-left {
    transform: translateX(40px);
}

.animate-on-scroll.fade-right {
    transform: translateX(-40px);
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

/* ============================================
   WhatsApp Section
   ============================================ */
.whatsapp-section {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.whatsapp-bg {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.whatsapp-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
    z-index: 0;
}

.whatsapp-bg .container {
    position: relative;
    z-index: 1;
}

.whatsapp-badge {
    background-color: #25D366;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.whatsapp-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.whatsapp-feature-item i {
    margin-top: 2px;
    font-size: 1rem;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    margin: 0 auto;
    background: #0b141a;
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.phone-notch {
    width: 100px;
    height: 6px;
    background: #222;
    border-radius: 3px;
    margin: 6px auto 8px;
}

.phone-screen {
    background: #0b141a;
    border-radius: 22px;
    overflow: hidden;
}

.wa-header {
    background: #1f2c34;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}

.wa-header-name {
    color: #e9edef;
    font-size: 0.8rem;
    font-weight: 600;
}

.wa-header-status {
    color: #8696a0;
    font-size: 0.65rem;
}

.wa-chat {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><rect fill="%23071a17" width="400" height="400"/></svg>');
    background-color: #071a17;
    padding: 10px 8px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wa-bubble {
    max-width: 90%;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    line-height: 1.45;
    position: relative;
    word-wrap: break-word;
    text-align: left;
}

.wa-bubble-out {
    background: #005c4b;
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.wa-bubble-in {
    background: #1f2c34;
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.wa-bubble-time {
    font-size: 0.5rem;
    color: #8696a0;
    text-align: right;
    margin-top: 2px;
}

.wa-bubble pre {
    margin: 0;
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 0.6rem;
    color: #e9edef;
    white-space: pre;
    line-height: 1.4;
}

.wa-bubble-link {
    background: transparent !important;
    border: 1px solid #2a3942;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    max-width: 70%;
}

.wa-link-text {
    color: #53bdeb;
    font-size: 0.65rem;
    font-weight: 500;
}

.wa-input-bar {
    background: #1f2c34;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-input-field {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    color: #8696a0;
    font-size: 0.65rem;
}

.wa-input-bar .fa-microphone {
    color: #8696a0;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .phone-mockup {
        width: 250px;
        margin-bottom: 2rem;
    }
    .wa-chat {
        min-height: 280px;
    }
}

/* ============================================
   Product Brands
   ============================================ */
.product-icon-macavation {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5D4037, #2E7D32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-icon-fruitlive {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF6F00, #E91E63, #7B1FA2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.badge-macavation {
    background: linear-gradient(135deg, #5D4037, #2E7D32) !important;
    color: white !important;
}

.badge-fruitlive {
    background: linear-gradient(135deg, #FF6F00, #E91E63) !important;
    color: white !important;
}

/* ============================================
   Parallax Image Banners
   ============================================ */
.parallax-banner {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.parallax-overlay {
    background: rgba(27, 94, 32, 0.75);
    padding: 5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images */
.rounded-4 {
    border-radius: 1rem !important;
}

@media (max-width: 768px) {
    .parallax-banner {
        background-attachment: scroll;
    }
}
