/* about-us.css */

/* About Us Video/Logo Section */
.aboutUsVideo {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Our Content section overrides pageContent flex to allow normal block flow for the slider */
#ourContent {
    display: block;
}

.aboutUsVideo video {
    width: 100%;
    display: block;
}

/* Team Section */
.teamSet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease;
}

/* Team Member Tiles */
.teamTile {
    text-align: center;
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.teamTile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(74, 109, 237, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.teamTile:hover::before {
    transform: translateX(100%);
}

.teamTile:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 109, 237, 0.3);
    box-shadow: 0 15px 40px rgba(74, 109, 237, 0.2);
    background: rgba(18, 18, 26, 0.8);
}

/* Team Member Images */
.frame {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.teamTile:hover .frame {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 109, 237, 0.4);
}

.frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
}

.teamTile:hover .frame::before {
    opacity: 1;
}

.teamImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-card);
}

/* Team Member Info */
.teamName {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.teamTile:hover .teamName {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teamRole {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.teamDescription {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 0.5rem;
}

.contributerGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    row-gap: 4.5rem;
    justify-items: center;
    align-items: center;
    margin: 3.5rem 15%;
}

.contributerGrid img {
    width: auto;
    max-width: 100%;
    min-width: 0;
    height: clamp(28px, 4vw, 55px);
    object-fit: contain;
}

/* Left column — left-aligned */
.contributerGrid img:nth-child(3n+1) {
    justify-self: start;
}

/* Center column — centered (already the grid default, explicit for clarity) */
.contributerGrid img:nth-child(3n+2) {
    justify-self: center;
}

/* Right column — right-aligned */
.contributerGrid img:nth-child(3n) {
    justify-self: end;
}

/* Social Links*/
.teamSocials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.teamTile:hover .teamSocials {
    opacity: 1;
    transform: translateY(0);
}

.teamSocials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.teamSocials a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}


/* FAQ Section Styles */
.faq-container {
    max-width: 800px;
    margin: 3rem auto;
}

.faq-item {
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    background: rgba(18, 18, 26, 0.8);
    border-color: rgba(74, 109, 237, 0.3);
    transform: translateX(5px);
}

.faq-question {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    padding-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Content Sections */
.content-section {
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-grow: 1;
}

.section-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* Animations */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Responsive Design */
@media (max-width: 980px) {
    .teamSet {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .teamTile {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .teamSet {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .teamTile {
        max-width: 400px;
        margin: 0 auto;
    }

    .faq-container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .teamTile {
        padding: 1.5rem 1rem;
    }

    .frame {
        width: 120px;
        height: 120px;
    }

    .teamName {
        font-size: 1.1rem;
    }

    .teamDescription {
        font-size: 0.9rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.875rem;
    }
}

/**********************
 * Slide Show Styling *
 **********************/

#slider {
    position: relative;
    width: 100%;
    height: 400px;
    margin: auto;
    max-width: 640px;
}

#slider img {
    transition: opacity 1.5s;
    position: absolute;
    top:0;
    left:0;
    opacity:0;
}

#slider img.fadeIn {
    opacity:1;
}

.slideshowImage {
  width: 100%;
  object-fit: cover;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
}