/* Team Page Styling */

/* Success Stories Section */
.success-stories-area {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.success-stories-wrapper {
    padding: 20px;
    border-radius: 30px;
    background: #eefdff;
    position: relative;
    /* width: 100%; */
    height: 100%;
    padding: 32px 18px;
    margin: 30px;
    box-shadow: 0 0 18px 3px rgba(0, 0, 0, .1);
}
.success-stories-wrapper::after {
    background-color: rgba(195, 195, 195, .1);
  bottom: 10px;
  content: '';
  filter: blur(32px);
  left: 10px;
  opacity: .5;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: -1;
}

/* Floating Profile Images */
.floating-profiles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.profile-img {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img:hover {
    transform: scale(1.1);
    border-color: rgba(112, 191, 84, 0.6);
    box-shadow: 0 12px 40px rgba(112, 191, 84, 0.3);
}

/* Positioning for floating profiles */
.profile-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.profile-2 {
    top: 8%;
    left: 30%;
    animation-delay: 1s;
}

.profile-3 {
    top: 25%;
    left: 15%;
    animation-delay: 2s;
}

.profile-4 {
    top: 45%;
    left: 5%;
    animation-delay: 3s;
}

.profile-5 {
    top: 12%;
    right: 8%;
    animation-delay: 4s;
}

.profile-6 {
    top: 8%;
    right: 25%;
    animation-delay: 5s;
}

.profile-7 {
    top: 35%;
    right: 15%;
    animation-delay: 6s;
}

.profile-8 {
    top: 55%;
    right: 8%;
    animation-delay: 7s;
}

/* Container wrapping the icon to position the popup */
.icon-wrapper {
    /* position: relative; */
    display: inline-block;
    cursor: pointer;
}

/* Cloud popup styling */
.cloud-popup {
    position: relative;
    bottom: 120%; /* position above the icon */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    color: #6b7280; /* neutral gray */
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    width: 220px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: normal;
    z-index: 1000;
}

/* Cloud "tail" under the popup shaped as a cloud puff */
.cloud-popup::before {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 18px;
    background: #ffffff;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow:
        12px -8px 0 #ffffff,
        24px 0 0 #ffffff;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
    z-index: -1;
}

/* Show popup on hover */
.icon-wrapper:hover .cloud-popup,
.icon-wrapper:focus-within .cloud-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Optional: smooth scale up on popup appear */
.icon-wrapper:hover .cloud-popup {
    animation: popupScaleUp 0.3s ease forwards;
}

@keyframes popupScaleUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}


/* Central Content */
.success-stories-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.success-stories-content .section-title h2 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* Main Testimonial Card */
.main-testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.quote-text {
    margin-bottom: 2rem;
}

.quote-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    font-style: italic;
    margin: 0;
    position: relative;
}

.quote-text p::before {
    content: '"';
    font-size: 4rem;
    color: #70BF54;
    position: absolute;
    top: -20px;
    left: -30px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #70BF54;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4ad991;
}

.author-details span {
    color: #333333;
    font-weight: bold;
    font-size: 0.9rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #f39c12;
    font-size: 1.1rem;
}

.rating-text {
    font-weight: 600;
    color: #B7DFA9;
    font-size: 0.9rem;
}

/* Detailed Team Section */
.detailed-team-area {
    padding: 80px 0;
}

.detailed-team-area .section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.detailed-team-area .section-title p {
    display:contents;
    text-align: center;
    font-size: 1.6rem;
    color: #7f8c8d;
    margin: 0;
}

/* Founder Profile Card */
.founder-profile-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.founder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem auto;
    border: 5px solid #70BF54;
    box-shadow: 0 15px 40px rgba(112, 191, 84, 0.3);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.founder-content h5 {
    font-size: 1.3rem;
    color: #70BF54;
    font-weight: 600;
    margin-bottom: 2rem;
}

.founder-description {
    text-align: left;
    margin-bottom: 2.5rem;
}

.founder-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 1.5rem;
}

/* Founder Achievements */
.founder-achievements {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.achievement-item {
    text-align: center;
}

.achievement-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #70BF54;
    margin-bottom: 0.5rem;
}

.achievement-item span {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-img {
        width: 70px;
        height: 70px;
    }
    
    .success-stories-content .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .floating-profiles {
        display: none;
    }
    
    .success-stories-content .section-title h2 {
        font-size: 2rem;
    }
    
    .main-testimonial-card {
        padding: 2rem;
    }
    
    .founder-achievements {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .success-stories-area {
        padding: 60px 0;
    }
    
    .success-stories-content .section-title h2 {
        font-size: 1.8rem;
    }
    
    .main-testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-profile-card {
        padding: 2rem;
    }
    
    .founder-image {
        width: 150px;
        height: 150px;
    }
    
    .founder-content h3 {
        font-size: 1.8rem;
    }
    
    .founder-achievements {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .achievement-item h4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .success-stories-content .section-title h2 {
        font-size: 1.5rem;
    }
    
    .main-testimonial-card {
        padding: 1.2rem;
    }
    
    .quote-text p {
        font-size: 1rem;
    }
    
    .quote-text p::before {
        font-size: 3rem;
        top: -15px;
        left: -20px;
    }
    
    .founder-profile-card {
        padding: 1.5rem;
    }
    
    .founder-content h3 {
        font-size: 1.5rem;
    }
    
    .founder-content h5 {
        font-size: 1.1rem;
    }
}

/* Enhanced Team Page Styling */

/* Leadership Section */
.leadership-section {
    padding: 120px 0;
    background: #f8f9fa;
}

.leadership-section .section-title h2 {
    font-size: 48px;
    color: #040021;
    font-weight: 700;
}

.leadership-section .section-title p {
    font-size: 18px;
    color: #8f98a8;
}

.team-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.team-card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 5px solid #6639ff;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content h3 {
    font-size: 24px;
    color: #040021;
    margin-bottom: 5px;
    font-weight: 700;
}

.team-card-content h5 {
    font-size: 16px;
    color: #6639ff;
    font-weight: 600;
    margin-bottom: 20px;
}

.team-card-content p {
    font-size: 15px;
    color: #8f98a8;
    line-height: 1.7;
    text-align: justify;
}

.team-achievements {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.achievement-item {
    text-align: center;
}

.achievement-item h4 {
    font-size: 28px;
    color: #6639ff;
    font-weight: 700;
    margin-bottom: 5px;
}

.achievement-item span {
    font-size: 14px;
    color: #8f98a8;
}

@media (max-width: 767px) {
    .leadership-section .section-title h2 {
        font-size: 32px;
    }
    .team-card {
        padding: 30px;
    }
} 