/* --- Section Styling --- */
.tech-tabs-section {
       padding-top: 1rem;
    color: var(--tech-white);
    max-width: 1440px; /* Wide container to fit 4 cards */
    margin: 0 auto;

}

.tech-tabs-section .tech-container {
    margin: 0  2rem;
}

/* --- Navigation Tabs --- */
.tech-tabs-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    margin-left: 25px;
    flex-wrap: wrap;
}

.tech-tab-btn {
    background-color: var(--text-primary); /* Default white */
    color: var(--primary);
    border: none;
    padding: 15px 31px;
    border-radius: 50px;
    font-size: var(--p2 );
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tech-tab-btn img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.tech-tab-btn.active img {
    filter: none;
}
/* Active State (Gold Background) */
.tech-tab-btn.active {
    background-color: var(--secondary);
    color: var(--text-primary);
}

.tech-tab-btn:hover {
    transform: translateY(-2px);
}

/* --- Grid Layout --- */
.tech-cards-grid {
    display: grid;
    /* 4 Columns on Desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    transition: opacity 0.3s ease-in-out;
}

/* --- Card Styling --- */
.tech-card {
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    align-items: center;
    width: 330px;
    height: 460px;
    opacity: 1;
    border-radius: 16px;
    border-width: 1px;

    transition: transform 0.3s ease;
    }

  
.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* Image Area */
.-wrapper {
    
    overflow: hidden;
}

.card-img-wrapper img {
 width: 160px;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.tech-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Text Content */
.card-body {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-body h3 {
    font-size: var(--h3);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--border);
}

.card-body p {
    font-size: var(--p2);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
    margin: 0;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .tech-cards-grid {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
    }
    .tech-tabs-section .tech-container{
        margin: 0 1rem;
    }
    
    .tech-tabs-nav {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        margin: 1rem 0;
       padding: 0;
    }

    .tech-tab-btn {
       font-size: var(--p2);
       padding: 10px;
        justify-content: center;
       
    }
}

/* --- About us: Story & Expertise (clean + responsive) --- */
.story-expertise-section {
    padding: 20px 0;
}

.story-expertise-section .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 95%;
}

.story-expertise-section .section-header-center {
    text-align: center;
    margin-bottom: 32px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Left column */
.about-card {
    background: var(--secondary);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.about-card h3 {
    font-size: var(--h3);
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
}

.about-card p {
    font-size: var(--p1);
    line-height: 1.7;
    margin: 0 0 16px;
}

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

/* Right column */
.stats-column {
    display: grid;
    gap: 20px;
}

.stat-row {
    display: flex;
    align-items: center;
    flex-direction:column ;
    gap: 16px;
    padding: 15px;
    border-radius: 16px;
}

.stat-info {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.big-number {
    font-size: clamp(1.6rem, 2.4vw, 2.6rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.stat-label {
    font-size: var(--p2);
    font-weight: 600;
    color: var(--primary);
}

.experts-row {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #FFFFFF 0%, #999999 100%);

    gap: 5px;
}

.experts-row .stat-info {
    min-width: 0;
    max-width: 80%;
}

.experts-row .stat-title {
    font-size: var(--p2);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);

}

.experts-row .stat-desc {
    font-size: var(--p2);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
    text-align: center;
}
.team-container {
    display: grid;
    /* 6 is the magic number divisible by 3 and 2 */
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px;
}



.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.avatar-circle {
    width: clamp(80px, 10vw, 110px);
    height: clamp(80px, 10vw, 110px);  
    border-radius: 50%;
    background: var(--secondary);
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}


.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 992px) and (max-width: 1300px) {
    .team-container{
        gap: 10px;
    }
    .avatar-circle {
        width: clamp(75px, 8vw, 90px);
        height: clamp(75px, 8vw, 90px);
    }
    .about-card p{
        font-size: var(--p2);
    }

}
.member-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.tech-card-row {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--secondary) 100%);
}

.tech-grid-container {
    display: grid;
    grid-template-columns: repeat(6,  auto);
    gap: 10px;
    justify-items: center;
}

.tech-tile {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.tech-tile:hover {
    transform: translateY(-2px);
}

@media (max-width: 1300px) {
    .tech-tabs-section {
        padding-top: 0.5rem;
        transform: scale(0.95);
        transform-origin: top center;
    }

    .tech-cards-grid {
        grid-template-columns: repeat(4, auto);
        gap: 10px;
    }

    .tech-card {
        width: 100%;
        height: auto;
        padding: 0.75rem 0;
    }

    .card-img-wrapper img {
        width: 140px;
        height: 130px;
    }

    .card-body {
        padding: 15px 12px;
    }

    .card-body h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

   

    .tech-tab-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

   

}
/* --- Responsive --- */
@media (max-width: 768px) {
    .story-expertise-section .container{
        margin: 0 auto ;
    }
     .story-grid {
        grid-template-columns: 1fr;
    gap: 20px;
    }
        /* Tech row: keep stat-info and tech-grid-container in a single row, just reduce size */
        .tech-card-row {
            display: flex !important;
            flex-direction: row !important;
            align-items: center;
            gap: 5px;
            padding: 8px;
        }
        .tech-card-row .stat-info {
            min-width: 40px;
        }
        .tech-card-row .big-number {
            font-size: 20px;
        }
        .tech-card-row .stat-label {
            font-size: 11px;
        }
        .tech-cards-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
            justify-items: center;
            align-items: center;
        }
        .tech-card{
            width: 100%;
            height: auto;
        }
        .tech-card img{
            padding-bottom: 20px;
        }
        .tech-tile {
            width: 20px;
            height: 20px;
            font-size: 8px;
        }
    .feature-box h4{
        font-size: var(--p1);
    }
    .about-card h3{
        font-size: var(--p1);
    }
    .about-card p{
        font-size:var(--p2);
    }
}
@media (max-width: 896px) {
}

@media (max-width: 768px) {
    .story-expertise-section {
        padding: 3rem 0;
    }

    .about-card {
        padding: 24px;
        max-width: 98%;;
    }

    .tech-grid-container {
        grid-template-columns: repeat(5, minmax(32px, 1fr));
    }
     .stat-row  .team-container{
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .experts-row .stat-info{
        max-width: 100%;
    }
    .stat-row{
        max-width: 98%;
    }
}


@media (max-width: 600px) {

    

    .stat-row {
        padding: 16px;
    }
    

    .team-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .avatar-circle {
              width: clamp(65px, 5vw, 60px);
        height: clamp(65px, 5vw, 60px);
        margin-bottom: 0.4rem;
    }
    .tech-card-row{
        flex-direction: column;
        align-items: center;
    }

    .tech-grid-container {
        grid-template-columns:repeat(6, auto);
        gap: 8px;
    }

    .tech-tile {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* --- Contact Card Section --- */
.contact-us-container{
    padding: 0 2rem;
    margin: 0 auto;
    max-width: 1440px;
}
.contact-card-container {
  display: flex;
  gap: 32px;
  margin: 2rem 0;
}

.contact-card {
  position: relative;
  width: 432px;
  height: 445px;
  background: #477357;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.contact-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 5px 21px;
  width: 90%;
  height: auto;
  background: #fff;
  border-radius: 16px;
  margin: 20px 0 0 20px;
}

.country {
  font-weight: 400;
  font-size: var(--p2);
  line-height: 30px;
}

.chevron {
  font-size: 32px;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 29px;
  gap: 16px;
  width: 198px;
  height: 286px;
  margin-top: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: var(--p1);
  line-height: 30px;
  color: #fff;
}

.info-detail {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

@media (max-width: 1200px) {
  .contact-card-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .contact-card {
    width: 95vw;
    max-width: 432px;
    height: auto;
  }
  .contact-card-header, .contact-card-body {
    width: 90%;
    min-width: 220px;
  }
}

@media (max-width: 600px) {
  .contact-card-header {
    gap: 32px;
    width: 90%;
    padding: 12px 10px;
    font-size: 16px;
  }
  .contact-card-body {
    width: 90%;
    padding-left: 10px;
  }
}