/* ==========================================
   ABOUT US PAGE STYLES
   Modern, Responsive Team & Values Design
   ========================================== */

/* ==========================================
   TEAM SECTION STYLES
   ========================================== */

.team-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f7 100%);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23549076" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23549076" opacity="0.02"/><circle cx="50" cy="50" r="0.5" fill="%23549076" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
    z-index: 1;
}

.team-section .container {
    position: relative;
    z-index: 2;
}

.team-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.team-section .header-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #549076, #467a63);
    margin: 0 auto 3rem;
    border-radius: 2px;
    position: relative;
}

.team-section .header-underline::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: #f39c12;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Team Member Cards */
.team-member {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(84, 144, 118, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(84, 144, 118, 0.1);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(84, 144, 118, 0.05) 50%, transparent 100%);
    transition: left 0.6s ease;
    z-index: 1;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(84, 144, 118, 0.2);
    border-color: #549076;
}

/* Member Photo */
.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #549076;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 0 rgba(84, 144, 118, 0);
}

.team-member:hover .member-photo {
    box-shadow: 0 0 0 8px rgba(84, 144, 118, 0.1),
                0 0 20px rgba(84, 144, 118, 0.3);
    transform: scale(1.02);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1) saturate(1);
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.photo-overlay {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #549076, #f39c12, #549076) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    opacity: 0;
    transform: rotate(0deg);
    transition: all 0.6s ease;
}

.team-member:hover .photo-overlay {
    opacity: 1;
    transform: rotate(360deg);
}

/* Member Info */
.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.member-title {
    color: #549076;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ==========================================
   VALUES SECTION STYLES
   ========================================== */

.values-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, #f8fffe 0%, #ffffff 100%);
    pointer-events: none;
}

.values-section .container {
    position: relative;
    z-index: 2;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ffffff;
    border: 2px solid #549076;
    color: #549076;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #549076, #467a63);
    transition: left 0.4s ease;
    z-index: 1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    left: 0;
}

.tab-btn i,
.tab-btn span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 144, 118, 0.3);
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
    max-width: 800px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Content Card */
.content-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(84, 144, 118, 0.1);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #549076, #467a63, #f39c12);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #549076, #467a63);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 25px rgba(84, 144, 118, 0.3);
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(84, 144, 118, 0.2);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.card-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    text-align: center;
    margin: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .team-section {
        padding: 60px 0;
    }
    
    .team-section .section-header h2 {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem 1rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .values-section {
        padding: 60px 0;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .tab-btn {
        min-width: 200px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
    }
    
    .card-icon i {
        font-size: 1.8rem;
    }
    
    .card-content h3 {
        font-size: 1.5rem;
    }
    
    .card-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .team-member {
        padding: 1rem;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-title {
        font-size: 0.85rem;
    }
    
    .tab-btn {
        min-width: 180px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .content-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.fade-in {
    animation: fadeInUp 0.6s ease;
}

.scale-hover {
    transition: transform 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* Team member hover effects */
.team-member:nth-child(even) {
    animation-delay: 0.1s;
}

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

/* Custom scrollbar for tab content if needed */
.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #549076;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #467a63;
} 