﻿/* File: Content/css/WhatWeDo.css */
/* Fixed hover vanishing issue - Simplified approach */

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== MAIN CONTAINER ===== */
.what-we-do-container {
    padding: 80px 20px;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== SECTION INTRO ===== */
.section-intro {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    width: 100%;
}

.section-heading {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

    .section-heading::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 4px;
        background: linear-gradient(90deg, #10b981, #3b82f6);
        border-radius: 2px;
    }

.section-description {
    font-size: 1.3rem;
    color: #475569;
    margin-top: 30px;
    line-height: 1.7;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ===== SERVICES WRAPPER ===== */
.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

/* ===== SERVICE BOX ===== */
.service-box {
    position: relative;
    border-radius: 20px;
    background: white;
    min-height: 320px;
    overflow: visible !important; /* CRITICAL FIX: No overflow hidden */
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

    /* FIXED: Content stays stable on hover */
    .service-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

/* Background color element */
.service-bg-color {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

/* ===== SERVICE CONTENT ===== */
.service-content {
    position: relative;
    padding: 30px;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
}

/* Service Badge */
.service-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Service Icon */
.service-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

    .service-icon-box::before {
        content: '';
        position: absolute;
        inset: -5px;
        border-radius: 25px;
        opacity: 0.2;
        z-index: 1;
    }

.service-emoji {
    font-size: 2.8rem;
    z-index: 2;
    position: relative;
}

/* Service Heading */
.service-heading {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    padding-bottom: 15px;
}

    .service-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        border-radius: 2px;
    }

/* Service Points */
.service-points {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.point {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    transition: transform 0.3s ease;
}

    .point:hover {
        transform: translateX(5px);
    }

.point-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.point-text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
}

/* ===== INDIVIDUAL SERVICE COLORS ===== */

/* Service 1: Seed Development & Production - Green */
.service-box:nth-child(1) .service-bg-color {
    background: linear-gradient(135deg, #10b981, #059669);
}

.service-box:nth-child(1) .service-icon-box::before {
    background: #10b981;
}

.service-box:nth-child(1) .service-heading::after {
    background: #10b981;
}

.service-box:nth-child(1) .point-marker {
    background: #10b981;
}

/* Service 2: Processing & Quality Control - Blue */
.service-box:nth-child(2) .service-bg-color {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.service-box:nth-child(2) .service-icon-box::before {
    background: #3b82f6;
}

.service-box:nth-child(2) .service-heading::after {
    background: #3b82f6;
}

.service-box:nth-child(2) .point-marker {
    background: #3b82f6;
}

/* Service 3: Storage & Logistics - Purple */
.service-box:nth-child(3) .service-bg-color {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.service-box:nth-child(3) .service-icon-box::before {
    background: #8b5cf6;
}

.service-box:nth-child(3) .service-heading::after {
    background: #8b5cf6;
}

.service-box:nth-child(3) .point-marker {
    background: #8b5cf6;
}

/* Service 4: Marketing & Distribution - Orange */
.service-box:nth-child(4) .service-bg-color {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.service-box:nth-child(4) .service-icon-box::before {
    background: #f59e0b;
}

.service-box:nth-child(4) .service-heading::after {
    background: #f59e0b;
}

.service-box:nth-child(4) .point-marker {
    background: #f59e0b;
}

/* Service 5: Technical Advisory - Teal */
.service-box:nth-child(5) .service-bg-color {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.service-box:nth-child(5) .service-icon-box::before {
    background: #06b6d4;
}

.service-box:nth-child(5) .service-heading::after {
    background: #06b6d4;
}

.service-box:nth-child(5) .point-marker {
    background: #06b6d4;
}

/* Service 6: Government Programme Support - Red */
.service-box:nth-child(6) .service-bg-color {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.service-box:nth-child(6) .service-icon-box::before {
    background: #ef4444;
}

.service-box:nth-child(6) .service-heading::after {
    background: #ef4444;
}

.service-box:nth-child(6) .point-marker {
    background: #ef4444;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-box {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

    .service-box:nth-child(1) {
        animation-delay: 0.1s;
    }

    .service-box:nth-child(2) {
        animation-delay: 0.2s;
    }

    .service-box:nth-child(3) {
        animation-delay: 0.3s;
    }

    .service-box:nth-child(4) {
        animation-delay: 0.4s;
    }

    .service-box:nth-child(5) {
        animation-delay: 0.5s;
    }

    .service-box:nth-child(6) {
        animation-delay: 0.6s;
    }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .what-we-do-container {
        padding: 60px 15px;
    }

    .section-heading {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1.2rem;
        padding: 18px;
    }

    .services-wrapper {
        gap: 25px;
    }

    .service-content {
        padding: 25px;
    }

    .service-icon-box {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .service-emoji {
        font-size: 2.2rem;
    }

    .service-heading {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .services-wrapper {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .section-heading {
        font-size: 2.2rem;
    }

        .section-heading::after {
            width: 100px;
        }

    .section-description {
        font-size: 1.1rem;
        padding: 15px;
        margin-top: 20px;
    }

    .service-box {
        min-height: 300px;
    }

    .service-badge {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        top: -12px;
        right: -12px;
    }
}

@media (max-width: 480px) {
    .what-we-do-container {
        padding: 40px 10px;
    }

    .section-intro {
        margin-bottom: 40px;
    }

    .section-heading {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }

    .section-description {
        font-size: 1rem;
        padding: 12px;
        margin-top: 15px;
    }

    .services-wrapper {
        gap: 20px;
    }

    .service-box {
        border-radius: 15px;
        min-height: 280px;
    }

    .service-bg-color {
        height: 100px;
        border-radius: 15px 15px 0 0;
    }

    .service-content {
        padding: 20px;
        border-radius: 15px;
    }

    .service-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -10px;
        right: -10px;
    }

    .service-icon-box {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        margin-bottom: 15px;
    }

        .service-icon-box::before {
            border-radius: 20px;
        }

    .service-emoji {
        font-size: 1.8rem;
    }

    .service-heading {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

        .service-heading::after {
            width: 50px;
            height: 2px;
        }

    .point {
        margin-bottom: 12px;
        padding: 6px 0;
    }

    .point-marker {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        margin-right: 12px;
    }

    .point-text {
        font-size: 0.95rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .service-box,
    .point,
    .service-box:hover {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Focus styles for keyboard navigation */
.service-box:focus-within {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .what-we-do-container {
        background: white !important;
        padding: 20px !important;
    }

    .service-box {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

        .service-box:hover {
            transform: none !important;
        }

    .service-badge {
        background: #333 !important;
        color: white !important;
    }
}

/* ===== HOVER STABILITY FIXES ===== */
/* Ensure all content stays visible */
.service-box * {
    position: relative;
    z-index: inherit;
}

/* Prevent any overflow hiding */
.service-box,
.service-content,
.service-points {
    overflow: visible !important;
}

/* Smooth transitions */
.service-box,
.service-badge,
.service-icon-box,
.service-emoji,
.service-heading,
.point,
.point-marker {
    transition: all 0.3s ease;
}

    /* Hover effects */
    .service-box:hover .service-badge {
        transform: scale(1.1) rotate(5deg);
    }

    .service-box:hover .service-emoji {
        transform: scale(1.1);
    }

    .service-box:hover .point-marker {
        transform: scale(1.1);
    }
