/* Combined CSS Variables */
:root {
    /* Our Story Variables */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    
    /* Meet Team Variables */
    --primary: #104ea9;
    --secondary: #1478F1;
    --dark: #18191f;
    --light: #fafafa;
    --accent: #ff6b35;
    --text: #4f4f4f;
}

/* Common Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* Hero Sections */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
}

/* Meet Team Hero Override */
body:has(.meet-team-hero) .hero-section,
.meet-team-hero {
    background: linear-gradient(135deg, rgba(16, 78, 169, 0.9), rgba(20, 120, 241, 0.8)), 
                url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat !important;
    padding: 150px 0 100px !important;
    text-align: center;
}

body:has(.meet-team-hero) .hero-section::before,
.meet-team-hero::before {
    display: none;
}

.meet-team-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.meet-team-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Certifications Hero Override */
.certifications-hero {
    background: linear-gradient(135deg, rgba(16, 78, 169, 0.9), rgba(20, 120, 241, 0.8)), 
                url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat !important;
    padding: 150px 0 100px !important;
    text-align: center;
}

.certifications-hero::before {
    display: none;
}

.certifications-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.certifications-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Meet Team Section Title Override */
body:has(.meet-team-section) .section-title,
.meet-team-section .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

body:has(.meet-team-section) .section-title::after,
.meet-team-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    background: var(--primary);
}

body:has(.meet-team-section) .section-title h2,
.meet-team-section .section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

body:has(.meet-team-section) .section-title p,
.meet-team-section .section-title p {
    color: var(--text);
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

/* Certifications Section Title Override */
.certifications-section .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.certifications-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    background: var(--primary);
}

.certifications-section .section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.certifications-section .section-title p {
    color: var(--text);
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Service Cards */
.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Office Comparison */
.office-comparison {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.office-img {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.old-office {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80');
    color: white;
}

.new-office {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80');
    color: white;
}

/* Stats Sections */
.stats-section {
    background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: white;
    padding: 80px 0;
}

/* Meet Team Stats Override */
body:has(.meet-team-stats) .stats-section,
.meet-team-stats {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    padding: 100px 0 !important;
    text-align: center;
}

/* Certifications Stats Override */
.certifications-stats {
    /*background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;*/
    padding: 100px 0 !important;
    text-align: center;
}

.stat-item {
    background:#007bff;
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Meet Team Stat Number Override */
body:has(.meet-team-stats) .stat-number,
.meet-team-stats .stat-number {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

body:has(.meet-team-stats) .stat-text,
.meet-team-stats .stat-text {
    font-size: 1.2rem !important;
    opacity: 0.9;
}

/* Certifications Stat Number Override */
.certifications-stats .stat-number {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    color: white;
}

.certifications-stats .stat-text {
    font-size: 1.2rem !important;
    opacity: 0.9;
    color: white;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    position: relative;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-img img {
    border-radius:15px 40px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.team-card:hover .team-overlay {
    transform: translateY(0);
}

.team-content {
    padding: 25px;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.team-location {
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-location i {
    margin-right: 8px;
    color: var(--secondary);
}

.team-expertise {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Certifications Cards */
.cert-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    position: relative;
}

.cert-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cert-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img i {
    font-size: 4rem;
    color: var(--primary);
}

.cert-content {
    padding: 25px;
}

.cert-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.cert-issuer {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.cert-description {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.cert-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Category Sections */
.team-category {
    margin-bottom: 80px;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.category-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.1;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.category-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Final Statement */
.final-statement {
    background: var(--light);
    padding: 100px 0;
    text-align: center;
}

.final-statement h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.final-statement p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.highlight-text {
    background: var(--primary);
    color: white;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(16, 78, 169, 0.3);
}

/* Filter Buttons */
.team-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Certifications Filter Buttons */
.cert-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-animation.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation.visible > *:nth-child(6) { transition-delay: 0.6s; }

/* Responsive Styles */
@media (max-width: 992px) {
    .meet-team-hero h1,
    .certifications-hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .meet-team-hero,
    .certifications-hero {
        padding: 120px 0 80px !important;
    }
    
    .meet-team-hero h1,
    .certifications-hero h1 {
        font-size: 2.2rem;
    }
    
    .meet-team-hero p,
    .certifications-hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }

    .timeline-dot {
        left: 30px;
    }
}