/* Base Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f5;
    color: #333;
}
.section::before {
    content: '';
    display: block;
    height: 100px;
    margin-top: -100px; 
}

h1, h2, h3 {
    font-weight: 500;
}

h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
    color: #0073e6;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Header */
.merged-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

header img {
    height: 80px;
}

header h1 {
    margin-left: 20px;
    color: #555;
    font-size: 1.2em;
}

.fixed-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.fixed-nav a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
    position: relative;
}

.fixed-nav a:after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #00a8f2;
    transition: width .3s;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.fixed-nav a:hover:after {
    width: 100%;
}

.fixed-nav a:hover {
    color: #00a8f2;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .fixed-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .fixed-nav.responsive {
        display: flex;
    }

    .fixed-nav a {
        padding: 15px;
        text-align: left;
    }

    .icon {
        display: block;
        cursor: pointer;
    }
}

/* Section */
.section {
    margin: 0; /* Remove any default margin */ 
	padding: 20px 20px 60px;
    text-align: center;
    background-color: #fff;
    border-bottom: 2px solid #00a8f2;
    position: relative;
    scroll-margin-top: 100px;
}

/* Landing Section */
.landing {
    position: relative;
    height: 20vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding-top: 140px;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;

}

.slides {
    
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	width: 100%; /* Make sure images fit the container */
}

.slide img {
    width: 100%; /* Make sure images fit the container */
}

.slide.active {
    display: block; /* Show only the active slide */
}

/* Enhanced Slide Text Styling */
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 129, 50, 0.7);
    padding: 30px;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    background-image: linear-gradient(60deg, rgba(30, 30, 55, 0.8), rgba(100, 150, 175, 1.9));
}

.slide-text h2 {
    margin: 0 0 10px;
    font-size: 1.70em;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text p {
    margin: 0;
    font-size: 1.4em;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 300;
    color: #f3f3f3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.learn-more {
    margin-top: 15px;
    padding: 15px 30px;
    background-color: #00a8f2;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0px 4px 6px -1px rgba(0,0,0,0.1), 0px 2px 4px -1px rgba(0,0,0,0.06);
}

.learn-more:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.navigation .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.navigation .prev, .navigation .next {
    cursor: pointer;
    color: white;
    font-size: 18px;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}


.prev, .next {
    cursor: pointer;
    color: white;
    font-size: 25px;
    padding: 8px 16px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s;
	margin: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.5s ease;
}

.dot.active {
    background-color: #717171;
}

/* About Section */
.about {
    background-color: #f9f9fb;
	padding: 60px 20px;
    border-bottom: none;
	scroll-margin-top: 80px;
}

.about .content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #333;
}

.about-text {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.2em;
    color: #555;
}

.about-text h3 {
    margin-top: 10px;
    font-size: 2em;
    color: #0073e6;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Services List */
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    width: calc(32% - 40px);
    box-sizing: border-box;
    text-align: left;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.services ul {
    list-style: none;
    padding: 0;
}

.services ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    color: #444;
}

.services ul li i {
    color: #00a8f2;
    margin-right: 10px;
}

/* Portfolio Section */
.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

#portfolio {
    background-color: #fff; /* Ensure consistent background color */
    padding: 40px 20px;
    margin: 0;
}


.category {
    flex: 1 1 calc(33% - 20px); /* Flex grow, shrink, and basis */
    box-sizing: border-box;
    margin: 10px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.category:hover {
    transform: translateY(-3px);
}

.buttons {
    display: flex;
    flex-direction: column;
}

.btn {
    background-color: #00a8f2;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
}


footer div {
    margin-top: 15px;
    text-align: center; /* Center the counter under your footer text */
}


/* Contact Us Section */
#contact {
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* margin-top: 40px; */
    scroll-margin-top: 80px; /* Adjust this value based on your header's height */
}

form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

form input, 
form select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    min-width: 180px;
    margin-bottom: 20px; /* Add margin at the bottom to create space */
}

form input, form textarea, form select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    min-width: 180px;
}

form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    line-height: 1.5; /* Adding this too if needed; you can adjust if necessary */
}

form button {
    background-color: #00a8f2;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 4px;
    transition: 0.3s;
}

form button:hover {
    background-color: #c7e391;
}

address {
    margin-top: 30px;
    color: #555;
    font-size: 1em;
}

address p {
    margin-bottom: 10px;
}

address a {
    color: #00a8f2;
    text-decoration: none;
}

address a:hover {
    text-decoration: underline;
}

iframe {
    border-radius: 8px;
    border: 0;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9em;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 30px;
    color: #00a8f2;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1000;
}

#backToTop:hover {
    color: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#document-frame {
    width: 100%;
    height: 500px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .fixed-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .fixed-nav.responsive {
        display: flex;
    }

    .fixed-nav a {
        padding: 15px;
        text-align: left;
    }

    .icon {
        display: block;
        cursor: pointer;
        color: #333;
        font-size: 24px;
    }

    .service-item {
        width: calc(100% - 40px);
    }

    .portfolio-container {
        flex-direction: column; /* Stack portfolio items on small screens */
    }

    .category {
        flex: 1 1 100%; /* Full width on small screens */
    }

    .form-row {
        flex-direction: column;
    }

    .slider {
        height: 40vh;
    }

    .about-section {
        flex-direction: column;
    }
}