:root {
    --primary-green: #2d7d32;
    --secondary-green: #4caf50;
    --accent-green: #81c784;
    --light-green: #e8f5e8;
    --dark-green: #1b5e20;
    --earth-brown: #5d4037;
    --sky-blue: #4fc3f7;
    --sunset-orange: #ff8f65;
    --pure-white: #ffffff;
    --soft-gray: #f5f5f5;
    --text-dark: #2e2e2e;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
}

/* Section 1: Intro */
.intro-section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.intro-section {
    margin-top: 50px;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #e0f2e8, #f7fafc);
    border-radius: 1.2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.intro-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(90deg, #0d9488, #113d36);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 1100px;
    margin: 0 auto;
    color: #333;
    text-align: justify;
}

/* Scroll animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Containers */
.our-ai-models-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.our-ai-models-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.models-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.models-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green), var(--sky-blue));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.models-title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
    margin: 0 auto;
    border-radius: 2px;
}
.models-section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.7;
}

/* Section 2: Model cards */
.models-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.model-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px var(--shadow-light);
    transition: all 0.3s ease;
}
.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px var(--shadow-medium);
}
.model-card:nth-child(even) {
    grid-template-columns: 300px 1fr;
}
.model-card:nth-child(even) .card-content {
    order: 2;
    text-align: right;
}
.model-card:nth-child(even) .card-image {
    order: 1;
}

.card-background {
    position: absolute;
    inset: 0;
    opacity: 1;
    z-index: -1;
}
.cropintel-card .card-background {
    background: linear-gradient(135deg, #0d3d36, #197b60);
}
.agmachinex-card .card-background {
    background: linear-gradient(135deg, #113d4b, #1f6c85);
}
.agrifbi-card .card-background {
    background: linear-gradient(135deg, #2c4411, #5a7d2f);
}
.agriclinic-card .card-background {
    background: linear-gradient(135deg, #1a4c4d, #2f8c8f);
}
.nutritracker-card .card-background {
    background: linear-gradient(135deg, #142f4f, #2d5a99);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.card-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    flex: 1;
}

.card-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    margin-bottom: 2rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}
.feature-tag {
    background: var(--secondary-green);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(76,175,80,0.2);
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: white;
    color: var(--secondary-green);
}

.card-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 100%;
    border: 8px solid rgba(255,255,255,0.9);
    box-shadow: 0 15px 40px var(--shadow-medium);
    transition: all 0.3s ease;
}
.model-card:hover .card-image img {
    transform: scale(1.05);
    box-shadow: 0 20px 45px var(--shadow-heavy);
}

/* Button */
.view-solution-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-solution-btn:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}


/* Responsive */
@media (max-width: 1200px) {
    .intro-section {
        margin-top: 30px;
    }
    .model-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .model-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .model-card:nth-child(even) .card-content {
        order: 1;
        text-align: center;
    }
    .model-card:nth-child(even) .card-image {
        order: 2;
    }
}
@media (max-width: 768px) {
    .intro-section {
        margin-top: 25px;
    }
    .container {
        padding: 0 1rem;
    }
    .main-title {
        font-size: 2.5rem;
    }
    .section-2 {
        padding: 3rem 1rem;
    }
    .model-card {
        padding: 2rem;
    }
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .card-header h3 {
        font-size: 1.8rem;
    }
    .card-image img {
        width: 200px;
        height: 200px;
    }
}
@media (max-width: 480px) {
    .intro-section {
        margin-top: 25px;
    }
    .main-title {
        font-size: 2rem;
    }
    .model-card {
        padding: 1.5rem;
    }
    .card-image img {
        width: 150px;
        height: 150px;
    }
    .modern-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
