@import url("./variables.css");

.mission-section {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(5, 150, 105, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ffffff 100%);
    padding: 8rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Organic flowing blob 1 */
.mission-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.06) 40%, transparent 70%);
    border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    animation: morphMission 20s ease-in-out infinite;
    filter: blur(50px);
    z-index: 0;
}

/* Organic flowing blob 2 */
.mission-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 70%);
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    animation: morphMission 25s ease-in-out infinite reverse;
    filter: blur(60px);
    z-index: 0;
}

@keyframes morphMission {

    0%,
    100% {
        border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
        transform: rotate(0deg) scale(1);
    }

    33% {
        border-radius: 60% 40% 45% 55% / 55% 45% 55% 45%;
        transform: rotate(120deg) scale(1.05);
    }

    66% {
        border-radius: 50% 50% 55% 45% / 45% 55% 45% 55%;
        transform: rotate(240deg) scale(0.95);
    }
}

/* DNA-inspired connection grid */
.mission-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background:
        repeating-linear-gradient(0deg,
            rgba(16, 185, 129, 0.08) 0px,
            transparent 1px,
            transparent 25px),
        repeating-linear-gradient(90deg,
            rgba(16, 185, 129, 0.08) 0px,
            transparent 1px,
            transparent 25px);
    border-radius: 50%;
    animation: rotateSlow 40s linear infinite;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateSlow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.mission-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.mission-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg,
            #065f46 0%,
            #059669 30%,
            #10b981 60%,
            #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    line-height: 1.25;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
}

/* Subtle glow on heading */
.mission-content h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            #10b981 50%,
            transparent 100%);
    border-radius: 2px;
    opacity: 0.5;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.mission-content p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #064e3b;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.mission-content p span {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.mission-content p span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 1px;
}

.mission-extra {
    background: rgba(236, 253, 245, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Organic gradient border */
.mission-extra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            #10b981 0%,
            #34d399 25%,
            #6ee7b7 50%,
            #34d399 75%,
            #10b981 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.mission-extra strong {
    color: #059669;
    font-weight: 700;
}

/* Mission highlights/icons section */
.mission-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.mission-highlight-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow:
        0 4px 20px rgba(16, 185, 129, 0.08),
        0 2px 8px rgba(5, 150, 105, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(16, 185, 129, 0.15);
    position: relative;
    overflow: hidden;
}

/* Gradient accent line */
.mission-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-highlight-card:hover::before {
    opacity: 1;
}

/* DNA dots in corner */
.mission-highlight-card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background:
        radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 70% 50%, rgba(52, 211, 153, 0.15) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-highlight-card:hover::after {
    opacity: 1;
}

.mission-highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(16, 185, 129, 0.15),
        0 6px 16px rgba(5, 150, 105, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.mission-highlight-card svg {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.08));
    border-radius: 16px;
    stroke: #059669;
    margin: 0 auto 1.5rem;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mission-highlight-card:hover svg {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.15));
    box-shadow:
        0 8px 20px rgba(16, 185, 129, 0.2),
        0 0 30px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.mission-highlight-card h3 {
    font-size: 1.2rem;
    color: #065f46;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mission-highlight-card p {
    font-size: 0.95rem;
    color: #064e3b;
    line-height: 1.7;
    margin: 0;
    opacity: 0.9;
}

/* Staggered animation on appearance */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.mission-highlight-card {
    animation: fadeInScale 0.6s ease-out backwards;
}

.mission-highlight-card:nth-child(1) {
    animation-delay: 0.1s;
}

.mission-highlight-card:nth-child(2) {
    animation-delay: 0.2s;
}

.mission-highlight-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mission-section {
        padding: 6rem 3rem;
    }

    .mission-content h2 {
        font-size: 2.2rem;
    }

    .mission-content p {
        font-size: 1.05rem;
    }

    .mission-section::before,
    .mission-section::after {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .mission-section {
        padding: 5rem 2rem;
    }

    .mission-content h2 {
        font-size: 1.9rem;
    }

    .mission-content p {
        font-size: 1rem;
    }

    .mission-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .mission-section::before,
    .mission-section::after {
        width: 400px;
        height: 400px;
    }

    .mission-extra {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .mission-section {
        padding: 4rem 1.5rem;
    }

    .mission-content h2 {
        font-size: 1.6rem;
    }

    .mission-content p {
        font-size: 0.95rem;
    }

    .mission-highlight-card {
        padding: 2rem 1.5rem;
    }

    .mission-section::before,
    .mission-section::after {
        display: none;
    }
}