/* Mission Section */
.mission {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 5%;
    gap: 50px;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(76, 175, 80, 0.03) 50%, transparent 70%);
    animation: shimmer 15s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mission-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mission-content h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.mission-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    animation: underlineGrow 1s ease-out 0.8s forwards;
}

@keyframes underlineGrow {
    to { width: 100%; }
}

.mission-content .mission-subtitle {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 300;
    color: #4CAF50;
    background: linear-gradient(135deg, #4CAF50, #66BB6A, #81C784);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.mission-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    transition: color 0.3s ease;
}

.mission-content:hover p {
    color: #333;
}

.mission-icons {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.icon:hover::before {
    width: 200px;
    height: 200px;
}

.icon:hover {
    transform: translateY(-5px);
    color: #4CAF50;
}

.icon-circle {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.icon:hover .icon-circle {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.mission-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease-out 0.4s forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.large-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.large-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.small-images {
    display: flex;
    gap: 20px;
}

.small-images img {
    width: calc(50% - 10px);
    border-radius: 12px;
    object-fit: cover;
    height: 120px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.small-images img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Hero Below Section */
.hero-below {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url('../images/hero_image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-below::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    animation: heroShimmer 8s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-below-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-below h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 300;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-below .subtitle {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0;
    background: linear-gradient(45deg, #4CAF50, #66BB6A, #81C784, #A5D6A7);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 4s ease-in-out infinite;
    text-shadow: none;
}

@keyframes rainbowText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Our Story Section */
.our-story {
    padding: 80px 5%;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    position: relative;
}

.our-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.our-story-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.our-story-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 2px;
}

.story-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * 0.2s);
}

.story-block:nth-child(2) { --delay: 1; }
.story-block:nth-child(3) { --delay: 2; }
.story-block:nth-child(4) { --delay: 3; }

.story-block.reverse {
    flex-direction: row-reverse;
}

.story-video {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.story-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.story-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.story-video:hover::before {
    opacity: 1;
}

.story-video video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.story-video video:hover {
    filter: brightness(1.1);
}

/* Video play button enhancement */
.story-video video::-webkit-media-controls-play-button {
    background-color: rgba(76, 175, 80, 0.8);
    border-radius: 50%;
}

.story-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.story-text h3 {
    font-size: 1.75rem;
    color: #4CAF50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.story-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    transition: width 0.3s ease;
}

.story-text:hover h3::after {
    width: 100%;
}

.story-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    transition: all 0.3s ease;
    position: relative;
}

.story-text:hover p {
    color: #2c3e50;
    transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 992px) {
    .mission {
        flex-direction: column;
        padding: 50px 5%;
    }

    .mission-content {
        max-width: 100%;
    }

    .mission-images {
        margin-top: 40px;
        max-width: 100%;
    }

    .mission-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .mission-icons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-below {
        height: 50vh;
        background-attachment: scroll;
    }

    .hero-below h1 {
        font-size: 2rem;
    }

    .hero-below .subtitle {
        font-size: 2.2rem;
    }

    .story-block,
    .story-block.reverse {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .story-text,
    .story-video {
        width: 100%;
    }

    .story-text h3 {
        text-align: center;
    }

    .story-text p {
        text-align: justify;
    }

    .our-story-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .mission-content h2,
    .mission-content .mission-subtitle {
        font-size: 1.8rem;
    }

    .hero-below h1 {
        font-size: 1.6rem;
    }

    .hero-below .subtitle {
        font-size: 1.8rem;
    }

    .our-story-title {
        font-size: 1.8rem;
    }

    .story-text h3 {
        font-size: 1.5rem;
    }
}

/* Scroll animations trigger */
@media (prefers-reduced-motion: no-preference) {
    .mission-content,
    .mission-images,
    .hero-below-content,
    .our-story-title,
    .story-block {
        animation-play-state: paused;
    }
    
    .mission-content.animate,
    .mission-images.animate,
    .hero-below-content.animate,
    .our-story-title.animate,
    .story-block.animate {
        animation-play-state: running;
    }
}