/* Flip card layout */
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
}

.section { 
    padding: 40px; 
    text-align: center; 
}

.logo { 
    max-height: 100px; 
}

.values, .team { 
    margin-top: 20px; 
}

.team-member {
    margin: 10px 0; 
}

.footer { 
    background-color: #f2f2f2; 
    padding: 20px; 
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* force 3 columns */
    grid-auto-rows: auto;                  /* rows adjust based on content */
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner Flip Mechanism */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* Triggered Flip */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front & Back Faces */
.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Front Face */
.flip-card-front {
    background-color: #f9f9f9;
    color: #333;
}

/* Back Face */
.flip-card-back {
    background-color: #2196F3;
    color: white;
    transform: rotateY(180deg);
}

.team-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.service-gif-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: auto;
    display: block;
}

/*  */
/*  */
/*  team grid styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 0 180px;
    justify-items: center;
}

.team-card {
    width: 90%;                 /* Reduce width inside each grid cell */
    max-width: 220px;           /* Controls "slimness" */
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 14px;
}
.team-card:hover {
    transform: scale(1.05);
}
.team-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.team-card h3 {
    font-size: 16px;
    margin: 5px 0 2px 0;
}
.team-card h4 {
    font-size: 14px;
    color: #666;
    margin: 2px 0;
}
.team-card p {
    font-size: 13px;
    margin-top: 5px;
    color: #444;
}

/* Modal (namespaced) */
.team-modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease-in-out;
}
.team-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    animation: zoomIn 0.3s ease-in-out;
}
.team-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.team-close:hover,
.team-close:focus {
    color: black;
    text-decoration: none;
}

/* Animations */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.core-values-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* allows wrapping on small screens */
}

.core-value-card {
    border: 1px solid #cccccc;
    padding: 15px 83px;
    background-color: #f9f9f9;
    color: #333;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 2px 4px 6px rgb(0 0 0 / 10%);
    text-align: center;
    font-size: 16px;
    min-width: 120px;
    user-select: none;
    pointer-events: none;  /* disables any interaction */
}

.contact_us_h3 {
    text-align: center;
}

.footer-section {
    background-color: #f8f9fa;
    padding: 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

.footer-contact-info,
.footer-contact-form {
    flex: 1;
    min-width: 300px;
}

.footer-contact-form form {
    display: flex;
    flex-direction: column;
}

.footer-contact-form input,
.footer-contact-form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.footer-contact-form button {
    background-color: #2196F3;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.footer-contact-form button:hover {
    background-color: #1976D2;
}

.flash-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 10px;
    margin: 20px;
    border-radius: 5px;
    text-align: center;
}