body, html {
    margin: 0;
    padding: 0;
    font-family: "Urbanist", sans-serif;
}
* {
    font-family: "Urbanist", sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgb(255, 255, 255);
    box-shadow: 0 0 5px;
    padding: 0 20px;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

#colab-logo {
    width: 150px;
    height: 100px;
    background: rgb(255, 255, 255);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-right: 80px;
    text-decoration: none;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
}

.nav-links a:hover {
    color: #4f82ae;
    font-size: 20px;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.parallax {
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

#page3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-image: url('../UpdatePhotos/ServiceBackground.png');
    background-size: cover;
}

#page3 p {
    font-weight: bold;
    display: flex;
    align-items: center;
    text-align: center;
    width: 800px;
    margin-left: 80px;
    margin-top: 100px;
    font-style: italic;
    font-size: 18px;
    max-width: 800px;
}

.tab-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 150px;
    margin-left: 200px;
}

a {
    text-decoration: none;
}

.tab-navigation {
    display: flex;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
}

.tab-navigation div {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    position: relative;
    transition: color 0.3s ease;
}

.tab-navigation div:hover {
    color: #80a158;
}

.tab-navigation div.active {
    color: #80a158;
    font-weight: bold;
}

.tab-navigation div.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 10px;
    background-color: #6B8E23;
    border-radius: 25px;
}

.tab-content-wrapper {
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.tab-image {
    flex: 1;
    min-width: 250px;
}

.tab-image img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: -20px 19px 5px rgba(128, 161, 88, 0.5);
}

#text {
    font-weight: bold;
}

.tab-text-content {
    flex: 2;
}

.tab-text-content p {
    font-weight: bold;
}

.tab-text-content h3 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 15px;
}

.tab-text-content ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.tab-text-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-background-wrapper {
    background-color: #e6f0fa;
    padding-top: 20px;
    padding-bottom: 40px;
}

.services-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #e6f0fa;
    margin: 0 auto;
    width: 100%;
    max-width: 2000px;
    box-sizing: border-box;
    margin-right: 80px;
}

.services-section h2 {
    font-size: 2.5em;
    color: #444;
    margin-bottom: 50px;
    display: inline-block;
    font-weight: bold;
}

.services-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.services-navigation div {
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.services-navigation div:hover {
    color: #405A7B;
}

.services-navigation div.active {
    color: #4f82ae;
    font-weight: bold;
    font-size: 18px;
}

.services-navigation div.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 6px;
    background-color: #4f82ae;
    border-radius: 3px;
}

.services-content-wrapper {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: -40px;
}

.services-text-box {
    display: flex;
    flex-direction: column;
    flex: 2;
    text-align: right;
    padding-right: 20px;
    justify-content: flex-end;
}

.services-text-box p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: black;
    font-weight: bold;
}

.services-button {
    padding: 15px 30px;
    background-color: #79A0C3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: fit-content;
    margin-left: auto;
}

.services-button:hover {
    background-color: #5D80A0;
}

.services-image-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.services-image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 20px 20px 5px rgba(62, 115, 160, 0.5);
}

.services-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.services-tab-pane.active {
    display: flex;
}

.sub-footer {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    margin-top: 150px;
    padding: 50px 20px;
    gap: 40px;
}

.sub-footer img {
    width: 350px;
    height: 250px;
}

.sub-footer p {
    width: 500px;
    text-align: center;
}

.sub-footer h2 {
    border: solid black 1px;
    border-top: -50px;
}

.foot {
    display: flex;
    flex-direction: column;
}

.footer-social {
    display: flex;
    margin-top: 20px;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.social-icon {
    font-size: 30px;
    color: #333;
    text-decoration: none;
}

.social-icon:hover {
    color: #007bff;
}

.contact {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 80px;
    align-items: center;
}

.mail {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    gap: 10px;
}

.mail img {
    width: 70px;
    height: 40px;
    display: flex;
}

.mail p {
            margin: 0;
            min-width: 200px;
            display: flex;

}

footer {
    background-color: #3e73a0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    color: white;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
        padding: 0 15px;
    }
    
    #colab-logo {
        width: 120px;
        height: 70px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        padding-top: 50px;
        margin-right: 0;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
        height: 300px;
    }
    
    .nav-links li {
        font-size: 18px;
    }
    
    .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);
    }
    
    .tab-pane.active {
        flex-direction: column;
    }
    
    .tab-image, .tab-text-content {
        flex: none;
        width: 100%;
    }
    
    .tab-image {
        margin-bottom: 20px;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .services-tab-pane.active {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .tab-container {
        margin-left: 0;
        margin-top: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 30px;
    }
    
    .tab-text-content p {
        text-align: center;
    }
    
    .tab-navigation div {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    #page3 {
        align-items: center;
        padding: 20px;
    }

    #page3 p {
        display: flex;
        align-items: center;
        width: 90%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        font-size: 16px;
        line-height: 1.5;
        margin-top: 50px;
    }
    
    .parallax {
        background-attachment: scroll;
        min-height: 300px;
    }
    
    .sub-footer {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        margin-top: 50px;
    }
    
    .sub-footer img {
        width: 250px;
        height: 180px;
    }
    
    .sub-footer p {
        width: 100%;
        font-size: 16px;
    }
    
    .contact {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .mail {
        max-width: 100%;
        justify-content: center;
    }
    
    .mail p {
        font-size: 14px;
        min-width: auto;
    }
    
    .services-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        width: 95%;
        margin-top: 20px;
    }
    
    .services-text-box {
        padding-right: 0;
        text-align: center;
    }
    
    .services-image-box {
        min-width: unset;
        width: 100%;
        margin-top: 20px;
    }
    
    .services-text-box p {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .services-section {
        padding: 30px 10px;
        margin-right: 0;
    }
    
    .services-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .services-navigation {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .services-navigation div {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .services-navigation div.active {
        font-size: 16px;
    }
    
    .services-button {
        margin: 20px auto 0 auto;
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .tab-image img {
        width: 100%;
        max-width: 300px;
    }
    
    .tab-content-wrapper {
        padding: 20px;
    }
    
    .tab-container {
        width: 95%;
        margin: 50px auto;
    }
    
    .page-background-wrapper {
        padding-top: 10px;
        padding-bottom: 20px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .navbar {
        height: 60px;
        padding: 0 10px;
    }
    
    #colab-logo {
        width: 100px;
        height: 60px;
    }
    
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .services-section h2 {
        font-size: 1.8em;
    }
    
    .services-navigation div {
        font-size: 12px;
    }
    
    .services-navigation div.active {
        font-size: 14px;
    }
    
    .services-text-box p {
        font-size: 1em;
    }
    
    .tab-navigation div {
        padding: 8px 10px;
        font-size: 0.8em;
    }
    
    #page3 p {
        font-size: 14px;
        width: 95%;
    }
    
    .sub-footer img {
        width: 200px;
        height: 150px;
    }
    
    .services-content-wrapper {
        padding: 15px;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-content-wrapper {
        width: 90%;
        padding: 30px;
    }
    
    .services-navigation {
        gap: 30px;
    }
    
    .tab-container {
        margin-left: 5%;
        width: 90%;
    }
    
    #page3 p {
        width: 80%;
        margin-left: 10%;
    }
    
    .nav-links {
        margin-right: 40px;
        gap: 20px;
    }
}