/* About Page Styles */
:root {
    --primary-color: #00325D;
    --secondary-color: #004975;
    --primary-rgb: 21, 87, 174;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --heading-color: #1A1A1A;
    --text-color: #1e1e1e;
    --light-bg: #F8F9FA;
    --border-color: #E9ECEF;
    --white: #fff;
    --accent-color: #004975;
}

/* Hero Section */
.about-hero {
    position: relative;
    padding: 120px 0;
    background: var(--gradient-primary);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 2;
}

.about-hero__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-hero__card {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.about-hero__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.about-hero__card:hover::before {
    transform: translateX(100%);
}

.about-hero__video {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.about-hero__video:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-10px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-hero__content {
    color: var(--white);
    text-align: center;
    padding: 20px 40px;
    position: relative;
}

.about-hero__content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.2s;
    position: relative;
    display: inline-block;
}

.about-hero__content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: lineGrowCenter 0.6s ease forwards 0.8s;
}

@keyframes lineGrowCenter {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

.about-hero__text {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero__text p {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.4s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 0 20px;
}

.about-hero__text p:last-child {
    margin-bottom: 0;
}

.about-hero__text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--accent-color);
    transform: translateY(-50%);
    animation: lineHeightCenter 0.6s ease forwards 1s;
}

@keyframes lineHeightCenter {
    to {
        height: 70%;
    }
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 991px) {
    .about-hero__card {
        padding: 30px;
    }

    .about-hero__content {
        padding: 20px;
    }

    .about-hero__content h1 {
        font-size: 2.8rem;
    }

    .about-hero__text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .about-hero {
        padding: 60px 0;
    }

    .about-hero__card {
        padding: 20px;
    }

    .about-hero__content {
        padding: 15px;
    }

    .about-hero__content h1 {
        font-size: 2.2rem;
    }

    .about-hero__text p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .video-container {
        margin-bottom: 20px;
    }
}

/* Motto Section */
.motto-section {
    position: relative;
    padding: 100px 0;
    background: var(--light-bg);
    overflow: hidden;
}

.motto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, 
            rgba(var(--primary-rgb), 0.03) 0%,
            rgba(var(--primary-rgb), 0.05) 100%);
    opacity: 1;
    z-index: 0;
}

/* Wavy Background Animation */
.motto-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%),
        repeating-linear-gradient(45deg, 
            rgba(var(--primary-rgb), 0.03) 0%, 
            rgba(var(--primary-rgb), 0.03) 2%, 
            transparent 2%, 
            transparent 4%
        );
    animation: waveMove 20s linear infinite;
    transform-origin: center center;
    z-index: 1;
}

/* Wave Animation */
@keyframes waveMove {
    0% {
        transform: rotate(0deg) scale(1.5);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1.5);
    }
}

/* Floating Particles */
.motto-section .particle {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, 
        rgba(var(--primary-rgb), 0.1) 0%,
        rgba(var(--primary-rgb), 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.motto-section .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: floatParticle 15s infinite;
}

.motto-section .particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation: floatParticle 20s infinite reverse;
}

.motto-section .particle:nth-child(3) {
    bottom: 10%;
    left: 30%;
    animation: floatParticle 18s infinite 2s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(50px, -30px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(0, -60px) scale(1);
        opacity: 0.5;
    }
    75% {
        transform: translate(-50px, -30px) scale(1.2);
        opacity: 0.8;
    }
}

/* Update container and content z-index */
.motto-section .container {
    position: relative;
    z-index: 2;
}

/* Update card styles for better visibility */
.motto-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.motto-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    background: rgba(var(--primary-rgb), 0.1);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
}

/* Glowing effect for icons */
.motto-card:hover .card-icon {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.5);
    }
}

.section-badge {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-subtitle {
    display: block;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.section-header h2 {
    color: var(--heading-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.2s;
}

.header-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.3s;
}

.header-line .line {
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    position: relative;
}

.header-line .line::before {
    content: '';
    position: absolute;
    top: -1px;
    width: 0;
    height: 4px;
    background: var(--accent-color);
    animation: lineGrow 1.5s ease-in-out infinite;
}

.header-line .line:first-child::before {
    left: 0;
}

.header-line .line:last-child::before {
    right: 0;
}

@keyframes lineGrow {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

.header-line .dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    position: relative;
}

.section-header .subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.4s;
}

.section-badge {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 73, 117, 0.2);
    z-index: 10;
    opacity: 0;
    animation: badgeAppear 0.5s ease forwards 0.5s;
}

.section-badge::before,
.section-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    transform: translateY(-50%);
}

.section-badge::before {
    left: -40px;
}

.section-badge::after {
    right: -40px;
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive Styles for Section Headers */
@media (max-width: 991px) {
    .section-header h2 {
        font-size: 2.4rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .header-line .line {
        width: 40px;
    }
}

@media (max-width: 767px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .section-badge {
        padding: 6px 20px;
        font-size: 0.8rem;
    }

    .header-line {
        gap: 10px;
    }

    .header-line .line {
        width: 30px;
    }
}

.motto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.motto-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.motto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.motto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.motto-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.motto-card:hover .card-icon {
    background: var(--primary-color);
    transform: rotateY(360deg);
}

.motto-card:hover .card-icon i {
    color: var(--white);
}

.motto-card h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.motto-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

@media (max-width: 991px) {
    .motto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .motto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .motto-card {
        padding: 30px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-icon i {
        font-size: 28px;
    }
}

/* Founders Section */
.founders-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.founders-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/circuit-pattern.png') repeat;
    opacity: 0.03;
    pointer-events: none;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.founder-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    cursor: pointer;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-wrapper:hover .video-placeholder img {
    transform: scale(1.05);
}

.play-btn {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border: none;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.founder-info {
    padding: 25px;
    text-align: center;
    background: var(--white);
}

.founder-info h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.founder-role {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.founder-quote {
    color: var(--text-color);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .founders-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .founders-section {
        padding: 80px 0;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .founders-section {
        padding: 60px 0;
    }

    .founders-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .founder-info h3 {
        font-size: 1.3rem;
    }

    .founder-role {
        font-size: 0.9rem;
    }

    .founder-quote {
        font-size: 0.9rem;
    }
}

/* Team Section */
.team-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* Engineering Background Art */
.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(30deg, rgba(var(--primary-rgb), 0.03) 12%, transparent 12.5%, transparent 87%, rgba(var(--primary-rgb), 0.03) 87.5%, rgba(var(--primary-rgb), 0.03)),
        linear-gradient(150deg, rgba(var(--primary-rgb), 0.03) 12%, transparent 12.5%, transparent 87%, rgba(var(--primary-rgb), 0.03) 87.5%, rgba(var(--primary-rgb), 0.03)),
        linear-gradient(30deg, rgba(var(--primary-rgb), 0.03) 12%, transparent 12.5%, transparent 87%, rgba(var(--primary-rgb), 0.03) 87.5%, rgba(var(--primary-rgb), 0.03)),
        linear-gradient(150deg, rgba(var(--primary-rgb), 0.03) 12%, transparent 12.5%, transparent 87%, rgba(var(--primary-rgb), 0.03) 87.5%, rgba(var(--primary-rgb), 0.03)),
        linear-gradient(60deg, rgba(var(--primary-rgb), 0.05) 25%, transparent 25.5%, transparent 75%, rgba(var(--primary-rgb), 0.05) 75%, rgba(var(--primary-rgb), 0.05)),
        linear-gradient(60deg, rgba(var(--primary-rgb), 0.05) 25%, transparent 25.5%, transparent 75%, rgba(var(--primary-rgb), 0.05) 75%, rgba(var(--primary-rgb), 0.05));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.3;
}

/* Team Leaders Grid */
.team-leaders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
    position: relative;
    z-index: 2;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* .team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
} */

.team-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.15);
}

.team-card:hover::before {
    opacity: 0.05;
}

.member-name {
    padding: 25px;
    text-align: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.member-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.member-name h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.role-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    color: var(--white);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.team-card:hover .role-badge {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.member-video {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: var(--light-bg);
}

.member-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .member-video iframe {
    transform: scale(1.02); /* Subtle zoom effect on hover */
}

.team-card:hover .member-video {
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15);
}

.member-content {
    padding: 30px;
    flex-grow: 1;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.member-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    transition: all 0.3s ease;
}

.team-card:hover .member-content p {
    color: var(--primary-color);
}

/* Team Content Box */
.team-content-box {
    max-width: 800px;
    margin: 80px auto;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.team-content-box:hover {
    transform: perspective(1000px) rotateX(2deg);
}

.content-wrapper {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.2);
    opacity: 1;
    z-index: 3;
}

.content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.team-content-box:hover .content-wrapper::before {
    transform: translateX(100%);
}

.quote-icon {
    position: absolute;
    top: -30px;
    right: -20px;
    font-size: 150px;
    opacity: 0.1;
    color: var(--white);
    transition: all 0.6s ease;
    z-index: 1;
}

.team-content-box:hover .quote-icon {
    transform: rotate(10deg) scale(1.1);
    opacity: 0.15;
}

.content-wrapper p {
    font-size: 1.2rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--white);
    opacity: 1;
    text-align: center;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Add animation for content box */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.team-content-box {
    animation: fadeInScale 0.6s ease-out forwards;
}

/* Add responsive padding for content box */
@media (max-width: 991px) {
    .content-wrapper {
        padding: 40px 30px;
    }
    
    .content-wrapper p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .team-content-box {
        margin: 60px auto;
    }
    
    .content-wrapper {
        padding: 30px 20px;
    }
    
    .content-wrapper p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .quote-icon {
        font-size: 100px;
        top: -20px;
        right: -10px;
    }
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.team-member {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.15);
}

.team-member:hover::before {
    opacity: 0.05;
}

.team-member .member-video {
    padding-top: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.team-member .member-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(var(--primary-rgb), 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover .member-video::after {
    opacity: 1;
}

.team-member h4 {
    color: var(--heading-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0 5px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.team-member:hover h4 {
    color: var(--primary-color);
}

/* Animation for team cards */
.team-card, .team-member {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.team-card:nth-child(2), .team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.team-card:nth-child(3), .team-member:nth-child(3) {
    animation-delay: 0.4s;
}

.team-member:nth-child(4) {
    animation-delay: 0.6s;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .team-leaders-grid,
    .team-grid {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .team-leaders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .member-name h3 {
        font-size: 1.3rem;
    }

    .content-wrapper {
        padding: 30px;
    }

    .content-wrapper p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 767px) {
    .team-leaders-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .member-name h3 {
        font-size: 1.3rem;
    }

    .content-wrapper {
        padding: 25px;
    }

    .content-wrapper p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .quote-icon {
        font-size: 100px;
        top: -20px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}
.member-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: var(--light-bg);
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .member-image img {
    transform: scale(1.1);
}

.team-member .member-image {
    padding-top: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.team-member .member-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(var(--primary-rgb), 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover .member-image::after {
    opacity: 1;
}