/* Mission Section */
.mission-section {
    position: relative;
    min-height: 500px;
    padding: 60px 60px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll Animation Initial States */
.mission-header {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mission-header.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.accordion-card {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation delays for cards */
.accordion-card:nth-child(1) {
    transition-delay: 0.2s;
}

.accordion-card:nth-child(2) {
    transition-delay: 0.4s;
}

.accordion-card:nth-child(3) {
    transition-delay: 0.6s;
}

/* Decorative Faucet at Top */
.torneira-top {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #4169b3 0%, #5a7ec4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 5px solid white;
}

.torneira-top i {
    font-size: 50px;
    color: white;
}

/* Background Image */
.mission-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c4a7f 0%, #4169b3 100%);
    z-index: 0;
    overflow: hidden;
}

.mission-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/water.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 1;
}

.mission-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 74, 127, 0.45) 0%, rgba(65, 105, 179, 0.4) 100%);
    z-index: 2;
}

.mission-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Mission Header Layout */
.mission-section .mission-header {
    text-align: center;
    margin-bottom: 50px;
}

.mission-icon {
    width: 120px;
    height: 120px;
    background-color: rgba(141, 168, 217, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mission-icon i {
    color: white;
    font-size: 55px;
}

.mission-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
}

.mission-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

/* Accordion Container */
.accordion-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    align-items: start;
}

/* Accordion Card */
.accordion-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.accordion-card.animate-in {
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-card.animate-in:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Accordion Header */
.accordion-header {
    background-color: #4169b3;
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.accordion-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.accordion-toggle {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-toggle i {
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.accordion-card.active .accordion-toggle {
    background-color: white;
}

.accordion-card.active .accordion-toggle i {
    color: #4169b3;
    transform: rotate(45deg);
}

.accordion-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.accordion-card.active .accordion-toggle:hover {
    background-color: #f0f0f0;
}

/* Accordion Content - Default Hidden State */
.mission-section .accordion-card .accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    margin: 0;
    background-color: white;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease-out,
                opacity 0.3s ease-out,
                padding 0.4s ease-out,
                transform 0.3s ease-out;
}

/* Accordion Content - Active/Open State */
.mission-section .accordion-card.active .accordion-content {
    max-height: 500px;
    padding: 30px 25px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.4s ease-in,
                opacity 0.3s ease-in 0.1s,
                padding 0.4s ease-in,
                transform 0.3s ease-in 0.1s;
}

.accordion-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Water Drop Decoration */
.water-drop {
    position: absolute;
    bottom: 50px;
    right: 80px;
    width: 100px;
    height: 100px;
    background-color: rgba(141, 168, 217, 0.4);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.water-drop i {
    color: white;
    font-size: 40px;
    transform: rotate(45deg);
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .mission-section {
        padding: 80px 40px;
        min-height: 650px;
    }

    .mission-header {
        margin-bottom: 60px;
    }

    .mission-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 30px;
    }

    .mission-icon i {
        font-size: 48px;
    }

    .mission-title {
        font-size: 42px;
    }

    .mission-subtitle {
        font-size: 17px;
    }

    .accordion-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .accordion-card:last-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .accordion-header h3 {
        font-size: 20px;
    }

    .water-drop {
        width: 85px;
        height: 85px;
        bottom: 40px;
        right: 60px;
    }

    .water-drop i {
        font-size: 35px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mission-section {
        padding: 60px 25px;
        min-height: auto;
    }

    .torneira-top {
        width: 90px;
        height: 90px;
        top: -45px;
    }

    .torneira-top i {
        font-size: 38px;
    }

    .mission-header {
        margin-bottom: 50px;
    }

    .mission-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
    }

    .mission-icon i {
        font-size: 42px;
    }

    .mission-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .mission-title br {
        display: inline;
    }

    .mission-subtitle {
        font-size: 16px;
    }

    .accordion-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .accordion-card {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }

    .accordion-header {
        padding: 25px 20px;
    }

    .accordion-header h3 {
        font-size: 20px;
    }

    .accordion-toggle {
        width: 38px;
        height: 38px;
    }

    .accordion-content p {
        font-size: 15px;
    }

    .accordion-card.active .accordion-content {
        padding: 25px 20px !important;
    }

    .water-drop {
        width: 75px;
        height: 75px;
        bottom: 30px;
        right: 30px;
    }

    .water-drop i {
        font-size: 30px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .mission-section {
        padding: 50px 20px;
    }

    .mission-header {
        margin-bottom: 40px;
    }

    .mission-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .mission-icon i {
        font-size: 38px;
    }

    .mission-title {
        font-size: 26px;
    }

    .mission-subtitle {
        font-size: 15px;
    }

    .accordion-card {
        max-width: 100%;
    }

    .accordion-header {
        padding: 20px 18px;
    }

    .accordion-header h3 {
        font-size: 18px;
    }

    .accordion-toggle {
        width: 36px;
        height: 36px;
    }

    .accordion-toggle i {
        font-size: 14px;
    }

    .accordion-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .accordion-card.active .accordion-content {
        padding: 20px 18px !important;
    }

    .water-drop {
        width: 65px;
        height: 65px;
        bottom: 20px;
        right: 20px;
    }

    .water-drop i {
        font-size: 26px;
    }
}
