/* ==========================================================================
   1. GLOBAL STYLES & RESET
   ========================================================================== */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Urbanist", sans-serif;
    color: #333333;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
}

/* ==========================================================================
   2. UNIFIED UNIFORM NAVIGATION BAR (MATCHED TO HOME PAGE)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    box-shadow: none;
    padding: 0 80px;
    z-index: 1000;
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

#colab-logo {
    width: 150px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff; 
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.navbar.scrolled .nav-links a {
    color: #2b4c7e;
}

.nav-links a:hover {
    color: #7ca852 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar.scrolled .hamburger span {
    background-color: #333333;
}

/* ==========================================================================
   3. PARALLAX TEXT CONTAINER COVERS
   ========================================================================== */
.parallax {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    padding: 100px 40px 0 40px;
    background-image: linear-gradient(rgba(43, 76, 126, 0.55), rgba(43, 76, 126, 0.55)), url('../UpdatePhotos/ServiceBackground.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    z-index: 1;
}

.parallax p {
    color: #ffffff;
    font-weight: 600;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    max-width: 850px;
    margin: 0;
}

/* ==========================================================================
   4. TAB PANEL HOUSINGS (IMAGE UI TOP ACCENT ALIGNED)
   ========================================================================== */
.tab-container {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 1150px;
    margin: -60px auto 80px auto; /* Overlaps header backdrop gracefully */
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.tab-navigation {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid #eeeeeef5;
    padding-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tab-item span {
    font-size: 13px;
    font-weight: 700;
    color: #777777;
    margin-top: 10px;
    transition: color 0.3s;
}

.icon-wrapper-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b4c7e;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* Active and Hover States exactly tracking design elements */
.tab-item:hover .icon-wrapper-circle,
.tab-item.active .icon-wrapper-circle {
    background-color: #7ca852;
    border-color: #7ca852;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 168, 82, 0.3);
}

.tab-item.active span {
    color: #7ca852;
}

/* Tab Pane Structural Controls */
.tab-content-wrapper {
    padding: 40px 10px 10px 10px;
}

.tab-pane {
    display: none;
    align-items: center;
    gap: 50px;
    animation: tabFadeIn 0.5s ease-in-out forwards;
}

.tab-pane.active {
    display: flex;
}

.tab-image {
    flex: 1.1;
}

.tab-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    box-shadow: -15px 15px 0px rgba(124, 168, 82, 0.15); /* Soft premium shadow match */
    display: block;
}

.tab-text-content {
    flex: 1.5;
}

.tab-text-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #555555;
    font-weight: 500;
    margin: 0 0 25px 0;
}

/* Styled Green Checkmarks from Image Layout */
.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkmark-list li {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkmark-list li i {
    color: #7ca852;
    font-size: 18px;
}

/* ==========================================================================
   5. CORE SERVICES BOTTOM SECTION (BLUE ACCENT OVERLAY PANEL STYLE)
   ========================================================================== */
.page-background-wrapper {
    background: linear-gradient(to bottom, #f0f6fb, #ffffff);
    padding: 90px 0;
}

.services-section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.services-section h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1d4477;
    text-align: center;
    margin: 0 0 50px 0;
}

.services-navigation {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
}

.services-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    max-width: 160px;
    text-align: center;
}

.services-tab-item span {
    font-size: 13px;
    font-weight: 700;
    color: #666666;
    margin-top: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.service-circle-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b4c7e;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Lower Section Active Blue States mapping layout specs */
.services-tab-item:hover .service-circle-icon,
.services-tab-item.active .service-circle-icon {
    background-color: #2b4c7e;
    border-color: #2b4c7e;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(43, 76, 126, 0.25);
}

.services-tab-item.active span {
    color: #2b4c7e;
}

/* Content Area Presentation Layout */
.services-content-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(43, 76, 126, 0.05);
    min-height: 380px;
}

.services-tab-pane {
    display: none;
    align-items: center;
    gap: 60px;
    animation: tabFadeIn 0.5s ease-in-out forwards;
}

.services-tab-pane.active {
    display: flex;
}

.services-text-box {
    flex: 1.4;
    text-align: left;
}

.services-text-box p {
    font-size: 17px;
    line-height: 1.8;
    color: #444444;
    font-weight: 500;
    margin: 0 0 35px 0;
}

.services-button {
    display: inline-block;
    padding: 14px 35px;
    background-color: #2b4c7e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 6px 15px rgba(43, 76, 126, 0.2);
}

.services-button:hover {
    background-color: #1d4477;
    transform: translateY(-2px);
}

.services-image-box {
    flex: 1;
}

.services-image-box img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 12px;
    box-shadow: 15px 15px 0px rgba(43, 76, 126, 0.08);
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. UNIFIED SUB-FOOTER & MAIN FOOTER
   ========================================================================== */
.sub-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    padding: 80px 40px;
    gap: 50px;
    border-top: 1px solid #eeeeee;
}

.footer-logo-side img {
    width: 240px;
    height: auto;
}

.footer-divider {
    width: 1px;
    height: 140px;
    background-color: #dddddd;
}

.foot-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 650px;
}

.info-row {
    display: flex;
    align-items: center;
    color: #444444;
}

.info-row p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.address-row {
    align-items: flex-start;
    gap: 12px;
}

.icon-marker {
    color: #333333;
    font-size: 20px;
    margin-top: 2px;
}

.connect-row {
    gap: 40px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    color: #111111;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #1d4477;
}

.mail-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-mail {
    color: #555555;
    font-size: 18px;
}

.phones-row {
    gap: 30px;
}

.phones-row p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-phone, .icon-globe {
    color: #2b4c7e;
    font-size: 16px;
}

footer {
    background-color: #1a4273;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   7. SEAMLESS RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .navbar { padding: 0 40px; }
    .tab-pane, .services-tab-pane { gap: 30px; }
    .parallax p { font-size: 18px; max-width: 700px; }
}

@media (max-width: 768px) {
    .navbar { height: 80px; padding: 0 20px; }
    #colab-logo { width: 120px; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        padding-top: 60px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 10px rgba(0,0,0,0.05);
    }
    
    .nav-links a { color: #2b4c7e !important; }
    .nav-links.active { right: 0; }
    .hamburger { display: flex; }
    
    .hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .parallax { height: 50vh; background-attachment: scroll; }
    .parallax p { font-size: 16px; }
    
    .tab-container { margin-top: -30px; padding: 20px; }
    .tab-navigation, .services-navigation { gap: 20px; display: flex; flex-wrap: wrap; justify-content: left; }
    
    .tab-pane { flex-direction: column; text-align: center; }
    .tab-image img { margin: 0 auto; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
    .checkmark-list li { justify-content: center; }
    
    .services-content-container { padding: 30px; }
    .services-tab-pane { flex-direction: column-reverse; text-align: center; }
    .services-text-box { text-align: center; }
    .services-image-box img { margin: 0 auto 30px auto; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
    
    .sub-footer { flex-direction: column; text-align: center; padding: 50px 24px; gap: 30px; }
    .footer-divider { display: none; }
    .foot-info-side { align-items: center; }
    .info-row { flex-direction: column; align-items: center; gap: 10px; }
    .connect-row, .phones-row { gap: 20px; }
}

@media (max-width: 480px) {
    .tab-item, .services-tab-item { width: 45%; }
    .icon-wrapper-circle { width: 50px; height: 50px; font-size: 18px; }
    .service-circle-icon { width: 55px; height: 55px; font-size: 18px; }
    .services-section h2 { font-size: 26px; }
}