/* Ensure all cards in the flexible grid section have equal height */
.section-flexible-grid .flex-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

@media (max-width: 992px) {
    .section-flexible-grid .flex-card {
        min-height: 180px;
    }
}

@media (max-width: 576px) {
    .section-flexible-grid .flex-card {
        min-height: 140px;
    }
}
/* Professional Who We Serve Section Styling */
.whoserve-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.10);
    padding: 2.5rem 2rem;
    margin: 0 auto;
}

.whoserve-title {
    color: #1a365d;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.whoserve-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #64748b, #e2e8f0);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.whoserve-text {
    color: #334155;
    font-size: 1.15rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 1.2rem;
}

.flex-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flex-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 41, 59, 0.12);
}

.large-card {
    min-height: 200px;
}

.medium-card {
    min-height: 140px;
}

.flex-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a365d, #2563eb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.flex-card-icon-small {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2563eb, #64748b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
}

/* Square image for flexible grid cards */
.flex-card-square-img {
    max-width: 70px;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(30,41,59,0.10);
    background: #f8fafc;
    display: block;
}

/* Title alignment for medium cards next to image */
.flex-card-title-align {
    display: flex;
    align-items: center;
    height: 70px;
    font-size: 1.15rem;
    color: #1a365d;
    font-weight: 600;
    line-height: 1.2;
}

/* What Makes Us Different Section Styles */
.what-different-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.10);
}
.what-different-title {
    color: #1a365d;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.what-different-list {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    list-style: none;
}
.what-different-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 1em;
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.7;
}
.what-different-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.5em;
    height: 0.5em;
    background: linear-gradient(135deg, #2563eb, #64748b);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(30,41,59,0.10);
    display: inline-block;
}
.testimonial-ribbon {
    border-radius: 18px;
    background: linear-gradient(180deg, #2563eb 0%, #64748b 100%);
    min-height: 320px;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.testimonial-text {
    color: #fff;
    font-size: 1.15rem;
    font-style: italic;
    padding: 0.5rem 0;
}
.testimonial-author {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: #e2e8f0;
}

/* Add vertical space between left and right sections when stacked */
@media (max-width: 991.98px) {
    .section-flexible-grid .col-lg-7 {
        margin-bottom: 2rem;
    }
}

.flex-card h3 {
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.flex-card h4 {
    color: #1a365d;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Modern bullet list styling for flexible grid cards */
.flex-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    list-style: none;
}
.flex-card ul li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.4em;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Add extra top margin for first bullet in medium cards (right column) */
.medium-card ul li:first-child {
    margin-top: 1.1em;
}

.flex-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.5em;
    height: 0.5em;
    background: linear-gradient(135deg, #2563eb, #64748b);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(30,41,59,0.10);
    display: inline-block;
}

.flex-card p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .whoserve-card {
        padding: 1.5rem 1rem;
    }
    .whoserve-title {
        font-size: 1.5rem;
    }
    .whoserve-text {
        font-size: 1rem;
    }
    
    .flex-card {
        padding: 1.5rem;
    }
    
    .flex-card h3 {
        font-size: 1.3rem;
    }
    
    .flex-card h4 {
        font-size: 1.1rem;
    }
    
    .large-card {
        min-height: 160px;
    }
    
    .medium-card {
        min-height: 120px;
    }
}

@media (max-width: 576px) {
    .flex-card {
        padding: 1rem;
    }
    
    .flex-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .flex-card-icon-small {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .flex-card h3 {
        font-size: 1.2rem;
    }
    
    .flex-card h4 {
        font-size: 1rem;
    }
    
    .flex-card p {
        font-size: 0.9rem;
    }
}
/* Professional About Section Styling */
.about-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.10);
    padding: 2.5rem 2rem;
    margin: 0 auto;
}

.about-title {
    color: #1a365d;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.about-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a365d, #2563eb, #64748b, #e2e8f0);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.about-text {
    color: #334155;
    font-size: 1.15rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .about-card {
        padding: 1.5rem 1rem;
    }
    .about-title {
        font-size: 1.5rem;
    }
    .about-text {
        font-size: 1rem;
    }
}
/* Infrastructure Hero Section Styles */
.hero-section {
    position: relative;
    background-image: url("./res/city_night.jpg"); /* Infrastructure themed image */
    background-size: cover;
    background-position: center;
    height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    border-bottom: 10px solid #333;
    max-width: 100%;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: left;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

section {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 85%;
    margin: auto;
}

html,
body {
    overflow-x: hidden;
    box-sizing: border-box;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}

.section-6 img {
    width: 100%;
    border-radius: 20px;
    border: 2px solid #333;
    min-width: 120px;
    max-width: 200px;
}

.contact-info {
    text-align: center;
}

.contact-info .contact-item {
    font-size: clamp(0.9rem, 1vw, 1.3rem);
}

.section-2 img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
}

.section-text {
    max-width: 80%;
    margin: auto;
    margin-top: 20px;
}

.section-4 {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.section-4-banner {
    background-color: #005fa3; /* Infrastructure blue */
    padding: 10px;
    text-align: center;
    color: white;
}

.section-6 {
    margin-bottom: 25px;
    margin-top: 35px;
    max-width: 70%;
}

.section-tabs {
    max-width: 80%;
    margin-bottom: 35px;
    margin-top: 35px;
}

.tab-content {
    max-width: 90%;
    margin: auto;
    transition: height 0.5s ease;
    overflow: hidden;
    margin-top: 10px;
}

.nav-tabs .nav-link {
    font-weight: bold;
    padding-left: 50px;
    padding-right: 50px;
}

.nav-tabs .nav-link:not(.active) {
    color: #888;
}

.nav-tabs .nav-link.active {
    color: #005fa3; /* Infrastructure blue */
}

/* Image Link and Overlay Styles for Infrastructure Images Section */
.image-link {
    display: block;
    position: relative;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.image-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    transition: transform ease 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    display: block;
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    filter: brightness(60%);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    position: relative;
    z-index: 1;
}

.image-container:hover {
    transform: scale(1.12);
}

.image-container .over-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-size: clamp(1.2rem, 3vw, 2.4rem);
    line-height: 1.2;
    z-index: 10;
    pointer-events: none;
    width: 90%;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

@media (max-width: 1000px) {
    #circleDiagram {
        display: none;
    }
    .contact-info {
        padding-left: 55px;
    }
    .hero-section h1 {
        padding-top: 55px;
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 2rem 1rem;
        min-height: 420px;
    }
    .section-5 .row > .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hero-section h3 {
        font-size: 1.25rem;
        margin-top: -25px;
    }
    .hero-section h1{
        font-size: 2rem;
    }
    .section {
        max-width: 100% !important;
    }
    #bottomText {
        display: flex;
    }
    .contact-info {
        padding-left: 0;
    }
    .nav-tabs .nav-link {
        padding-left: 15px;
        padding-right: 15px;
    }
    .hero-section{
        height: 30vh !important;
    }
    .image-link,
    .image-container,
    .image-container img {
        max-width: 300px;
    }
    .image-container .over-img {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .section-6 .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .section-6 img {
        max-width: 70%;
        margin-bottom: 20px;
    }
    .tab-content {
        max-width: 100%;
    }
    .nav-tabs .nav-link {
        padding-left: 5px;
        padding-right: 5px;
    }
    .hero-section h5 {
        display: none;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    #navlogo {
        width: 40px;
        height: 40px;
    }
}

.tab1-container {
    display: flex;
}

.section-3 {
    max-width: 70%;
    text-align: center;
}

.section-1 {
    max-width: 70%;
    text-align: center;
}

.section-5 {
    max-width: 70%;
    text-align: center;
}

/* Services Cards */
.service-card {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #005a8d;
    text-align: center;
}

.service-card p {
    flex-shrink: 0;
    color: #333;
    text-align: center;
}

.service-card ul {
    padding-left: 1.2rem;
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    color: #555;
}

.service-card li {
    margin-bottom: 0.5rem;
}

.icon-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 90, 163, 0.1);
    color: #005a8d;
    padding: 0.6rem;
    border-radius: 50%;
    font-size: 2.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover .icon-tag {
    transform: translateY(-5px) rotate(-5deg);
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem 1rem;
        min-height: 360px;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 2rem 1rem;
        min-height: 380px;
    }
}