/* ============================================
   TEAMS PAGE STYLES
   ============================================ */

:root {
    --primary-blue: #1E65A5;
    --primary-red: #E02A2A;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 30px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   TEAMS HERO SECTION WITH BACKGROUND IMAGE
   ============================================ */

.teams-hero {
    position: relative;
    height: 31.25em; /* 500px */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

/* Dark overlay for better text readability */
.teams-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Content */
.teams-hero-content {
    position: relative;
    z-index: 2;
    max-width: 50em;
    margin: 0 auto;
    padding: 0 1.25em;
}

/* Heading */
.teams-hero h1 {
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 0.5em;
    text-shadow: 0.125em 0.125em 0.25em rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
    text-transform: uppercase;
}

/* Paragraph */
.teams-hero p {
    font-size: 1.2em;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 62em) { /* 992px */

    .teams-hero {
        height: 26em;
        background-attachment: scroll;
    }

    .teams-hero h1 {
        font-size: 3em;
    }

    .teams-hero p {
        font-size: 1.05em;
        max-width: 35em;
    }

}

/* Mobile */
@media (max-width: 48em) { /* 768px */

    .teams-hero {
        height: 22em;
        padding: 0 1em;
    }

    .teams-hero h1 {
        font-size: 2.2em;
    }

    .teams-hero p {
        font-size: 0.95em;
        max-width: 30em;
    }

}

/* Small Mobile */
@media (max-width: 30em) { /* 480px */

    .teams-hero {
        height: 20em;
    }

    .teams-hero h1 {
        font-size: 1.8em;
    }

    .teams-hero p {
        font-size: 0.9em;
        max-width: 26em;
    }

}

/* ============================================
   SECTION HEADER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

/* ============================================
   FOUNDER SECTION
   ============================================ */
.founder-section {
    padding: 80px 0 60px;
    background: white;
}

.founder-card {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(30, 101, 165, 0.1);
    transition: var(--transition);
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-red);
}

.founder-image {
    flex: 1;
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.founder-card:hover .founder-image img {
    transform: scale(1.05);
}

.founder-image .badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--primary-red);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(224, 42, 42, 0.3);
    z-index: 2;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.founder-content {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-content h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.founder-content .title {
    font-size: 1.3rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.founder-content .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.founder-content .experience {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(30, 101, 165, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
}

.founder-content .experience i {
    font-size: 2rem;
    color: var(--primary-red);
}

.founder-content .experience div {
    line-height: 1.4;
}

.founder-content .experience span {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.founder-content .experience strong {
    color: var(--primary-blue);
    font-size: 1.3rem;
    display: block;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.founder-content .bio {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--dark-gray);
    margin-bottom: 25px;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.founder-content .bio p {
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.founder-content .signature {
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px dashed rgba(224, 42, 42, 0.3);
    border-bottom: 1px dashed rgba(224, 42, 42, 0.3);
}

.founder-content .signature img {
    max-height: 60px;
    width: auto;
}

.founder-social {
    display: flex;
    gap: 15px;
}

.founder-social a {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.founder-social a:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

/* ============================================
   LEADERSHIP TEAM SECTION
   ============================================ */
.leadership-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.leadership-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(30, 101, 165, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(224, 42, 42, 0.05) 0%, transparent 30%);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.leader-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(30, 101, 165, 0.1);
}

.leader-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-red);
}

.leader-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.leader-card:hover .leader-image img {
    transform: scale(1.1);
}

.leader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 101, 165, 0.95), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.leader-card:hover .leader-overlay {
    opacity: 1;
}

.leader-social {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.leader-social a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
}

.leader-card:hover .leader-social a {
    transform: translateY(0);
    opacity: 1;
}

.leader-social a:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-5px) !important;
}

.leader-social a:nth-child(1) { transition-delay: 0.1s; }
.leader-social a:nth-child(2) { transition-delay: 0.2s; }
.leader-social a:nth-child(3) { transition-delay: 0.3s; }

.leader-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.leader-info {
    padding: 25px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
}

.leader-info h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 700;
}

.leader-info .position {
    font-size: 1rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 12px;
}

.leader-info .qualification {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.leader-info .expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.leader-info .expertise span {
    background: rgba(30, 101, 165, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* ============================================
   MANAGEMENT TEAM SECTION
   ============================================ */
.management-section {
    padding: 80px 0;
    background: white;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.management-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(30, 101, 165, 0.1);
    text-align: center;
}

.management-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-red);
}

.management-image {
    width: 120px;
    height: 120px;
    margin: 30px auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
    transition: var(--transition);
}

.management-card:hover .management-image {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.management-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.management-info {
    padding: 0 20px 25px;
}

.management-info h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 700;
}

.management-info .position {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 12px;
}

.management-info .department {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    background: rgba(30, 101, 165, 0.05);
    padding: 5px 10px;
    border-radius: 50px;
    display: inline-block;
}

.management-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.management-social a {
    width: 32px;
    height: 32px;
    background: rgba(30, 101, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.management-social a:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   ENGINEERING TEAM SECTION
   ============================================ */
.engineering-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.engineering-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.engineering-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.engineering-grid:last-child {
    margin-bottom: 0;
}

.engineer-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 101, 165, 0.1);
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.engineer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(224, 42, 42, 0.15);
    border-color: #E02A2A;
}

.engineer-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.engineer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.engineer-card:hover .engineer-image img {
    transform: scale(1.1);
}

.engineer-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #E02A2A;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.engineer-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.engineer-info h3 {
    font-size: 1.1rem;
    color: #1E65A5;
    margin-bottom: 3px;
    font-weight: 700;
}

.engineer-info .position {
    font-size: 0.85rem;
    color: #E02A2A;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 40px;
}

.engineer-info .specialization {
    font-size: 0.8rem;
    color: #6c757d;
    background: rgba(30, 101, 165, 0.05);
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
}

.engineer-contact {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.engineer-contact p {
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    word-break: break-all;
}

.engineer-contact p i {
    color: #1E65A5;
    width: 14px;
    font-size: 0.75rem;
}

.engineer-contact p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .engineering-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .engineering-section {
        padding: 60px 0;
    }
    
    .engineering-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .engineer-image {
        height: 180px;
    }
    
    .engineer-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .engineering-section {
        padding: 40px 0;
    }
    
    .engineering-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .engineer-image {
        height: 200px;
    }
    
    .engineer-info h3 {
        font-size: 1rem;
    }
    
    .engineer-info .position {
        font-size: 0.8rem;
        min-height: auto;
    }
    
    .engineer-contact p {
        font-size: 0.75rem;
    }
}

/* ============================================
   TEAM STATS SECTION
   ============================================ */
.team-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-blue), #0d4a7a);
    color: white;
    position: relative;
    overflow: hidden;
}

.team-stats:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(224,42,42,0.2) 0%, transparent 30%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--primary-red);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
    background-color:lightgray;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
}

/* ============================================
   CTA SECTION
   ============================================ */
.team-cta {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.team-cta h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.team-cta p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-btn:hover {
    background: transparent;
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(224, 42, 42, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .management-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .engineering-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .teams-hero h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    .founder-card {
        flex-direction: column;
    }
    
    .founder-image {
        min-height: 400px;
    }
    
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .engineering-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .teams-hero {
        padding: 70px 0;
    }
    
    .teams-hero h1 {
        font-size: 2.2rem;
    }
    
    .teams-hero p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .founder-content {
        padding: 35px 25px;
    }
    
    .founder-content h2 {
        font-size: 1.8rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .management-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .engineering-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .team-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .teams-hero h1 {
        font-size: 1.8rem;
    }
    
    .founder-image {
        min-height: 300px;
    }
    
    .founder-content .experience {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-social {
        justify-content: center;
    }
    
    .leader-image {
        height: 250px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}