body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #f4f4f4;
}

html {
    scroll-padding-top: 100px;
}

header {
    background-color: #fff;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    width: 150px;
    height: auto;
    margin-right: 15px;
}

.tagline {
    font-size: 14px;
    color: #333;
    font-style: italic;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #3e8ca8;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: 'Exo', sans-serif;
    font-weight: 700;
}

.nav-links a:hover {
    background-color: #e8a170;
}

main {
    margin-top: 60px;
}

.slider {
    position: relative;
    height: 76vh;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 29%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(1, 1, 1, 0.7);
    color: #fff;
    padding: 20px;
    border-radius: 20px;
    max-width: 80%;
    text-align: center;
    font-family: 'Exo', sans-serif;
}

.slide-title {
    font-weight: bold;
    color: #00a8f2;
    font-size: 1.25em; /* Optimal size for large screens */
    margin-bottom: 0.35em;
}

.slide-description {
    display: block;
    color: #f0f0f0;
    font-size: 0.55em; /* Optimal size slightly larger than default for good readability */
}

.slider-button {
    background-color: #e8a170;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
    transition: background-color 0.3s;
}

.slider-button:hover {
    background-color: #c7e391;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 10px;
    user-select: none;
    background-color: rgba(0, 168, 242, 0.5);
}

.prev:hover, .next:hover {
    background-color: rgba(0, 168, 242, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dot-container {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

section {
    margin: 40px 0;
    padding: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #666566;
    font-family: 'Exo', sans-serif;
}

h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #00a8f2;
    font-family: 'Exo', sans-serif;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service h3 {
    color: #de8287;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-family: 'Exo', sans-serif;
}

.service p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.about-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about-text, .about-image {
    width: 100%;
    max-width: 48%;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.about-text ul li img {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

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;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

a {
    color: #00a8f2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #00a8f2;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#backToTop:hover {
    background-color: #e8a170;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 15px;
        background-color: #fff;
        position: absolute;
        top: 60px;
        right: 10px;
        width: 200px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .about-section {
        flex-direction: column;
    }

    .slider {
        height: 40vh;
    }

    .slide-title {
        font-size: 1.5em; /* Adjusted for smaller screens */
    }

    .slide-description {
        font-size: 1em; /* Adjusted for smaller screens */
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}