/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #111827;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
}

/* Header */
#main-header .nav-link {
    color: #ffffff;
}

#main-header .text-3xl a {
    color: #ffffff;
}

#main-header #mobile-menu-button {
    color: #ffffff;
}

#main-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#main-header.header-scrolled .nav-link {
    color: #4B5563;
    /* gray-600 */
}

#main-header.header-scrolled .nav-link:hover {
    color: #4F46E5;
    /* indigo-600 */
}

#main-header.header-scrolled .text-3xl a {
    color: #1F2937;
    /* gray-800 */
}

#main-header.header-scrolled #mobile-menu-button {
    color: #1F2937;
    /* gray-800 */
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4F46E5;
    /* Indigo 600 */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Services Dropdown */
#services-dropdown {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transform-origin: top center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dropdown-hidden {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    visibility: hidden;
}

.dropdown-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
}

/* Mission and Values Section */
.mission-values-container {
    background-color: #f9fafb;
    overflow: hidden;
}

.mission-values-wrapper {
    position: relative;
    height: 400px; /* Adjust as needed */
    transition: transform 0.8s ease-in-out;
}

.mission-content,
.values-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    transition: transform 0.8s ease-in-out;
}

.mission-content {
    transform: rotateY(0deg);
    z-index: 2;
    background-color: #1a202c; /* Dark background for mission */
    color: white;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.mission-content::before, .mission-content::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, #4f46e5, #8b5cf6);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(50px);
    animation: glow-animation 10s infinite alternate;
}

.mission-content::before {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.mission-content::after {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

@keyframes glow-animation {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

.mission-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.mission-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.mission-content.is-visible h2,
.mission-content.is-visible p {
    opacity: 1;
    transform: translateY(0);
}

.values-content {
    transform: rotateY(180deg);
    z-index: 1;
    background-color: #f9fafb; /* Light background for values */
    color: #1a202c;
    padding: 2rem;
    box-sizing: border-box;
}

.mission-values-wrapper.show-values .mission-content {
    transform: rotateY(-180deg);
}

.mission-values-wrapper.show-values .values-content {
    transform: rotateY(0deg);
}

.values-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.value-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.value-card .icon {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.875rem;
    line-height: 1.25;
    color: #4b5563;
}


.journey {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 4rem;
    background-color: white;
}

.journey-item {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease-out;
}

.journey-item:hover {
    transform: translateY(-5px);
}

.journey-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: #4f46e5;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.journey-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.journey-text p {
    font-size: 1rem;
    line-height: 1.5;
    color: #4b5563;
}


/* Team Card */
.team-card {
    perspective: 1000px;
    height: 400px;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
}

.team-card-front {
    background-color: #bbb;
    color: black;
}

.team-card-back {
    background-color: #2c3e50;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}


/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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