/* Introduction Section Styles */
.intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(to right, #1c1c1d, #000000);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text-container {
    text-align: center;
    margin-bottom: 3rem;
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.spec-item {
    color: black;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
}

.spec-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.mission-statement {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

/* Animations */
.animate-text {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.animate-text-delay-1 {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.animate-text-delay-2 {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.animate-text-delay-3 {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-section {
        padding: 2rem 1rem;
    }
    
    .specialization-grid {
        grid-template-columns: 1fr;
    }
}



.management-team {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.management-team h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member-card {
    perspective: 1000px;
    height: 350px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.team-member-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: white;
    padding: 1.5rem;
}

.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-front img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #3498db;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #2c3e50;
    color: white;
}

.member-details {
    margin-top: 1rem;
    padding: 1rem;
}

.member-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.card-front h3, .card-back h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.card-front p, .card-back p {
    margin: 0.3rem 0;
    color: #666;
}

.card-back p {
    color: #ecf0f1;
}

/* Animation for smooth flip */
@keyframes flipIn {
    from {
        transform: rotateY(180deg);
    }
    to {
        transform: rotateY(0deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .team-member-card {
        height: 320px;
    }
}
