body {
    font-family: Raleway, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #dddbdb;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

#wrapper {
    width: 100%;
    background-color: #716b6b0b;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 1200px;
}

p, h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}

body {
    font-family: 'Roboto', sans-serif;
}

header {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px; /* Reduced padding to minimize space */
    border-bottom: 2px solid #000000;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px; /* Reduced gap to minimize space */
    text-align: center;
}

.banner {
    text-align: center;
}

.banner img {
    max-height: 75px;
    vertical-align: middle;
    padding: 0px 1px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 1px;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 10px;
    border: 2px solid #a7a7a7;
    border-radius: 15px;
    transition: background 0.5s ease;
}

nav ul li a:hover {
    background-image: linear-gradient(90deg, #00C0FF 0%, #FFCF00 49%, #FC4F4F 80%, #00C0FF 100%);
    animation: slidebg 7s linear infinite;
    color: #ffffff;
}

@keyframes slidebg {
    to {
        background-position: 20vw;
    }
}

#TopLinks {
    margin: 10px 0; /* Reduced margin to minimize space */
}

.social-icons {
    display: flex;
    gap: 5px; /* Reduced gap to minimize space */
    justify-content: center;
    margin-top: 10px; /* Reduced margin to minimize space */
}

.social-icons a img {
    display: block;
}

section {
    padding: 20px;
    background-color: #fff;
    margin: 20px auto;
    width: 100%; /* Ensure full width */
    max-width: 80%; /* Set a maximum width */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/_images/home_background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#home .text-Background{
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    padding: 20px;
}

#home .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #efa166, #ff3300); /* Unique gradient color */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#home .btn:hover {
    transform: scale(1.05); /* Scale-up effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Soft shadow */
}
.welcome-underline {
    display: inline-block;
    position: relative;
    font-size: 2em;
    font-weight: bold;
    color: rgb(243, 243, 243);
}

.welcome-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: linear-gradient(to left, #ff3300, #feb47b);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 1s ease;
}

.welcome-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

#services {
    padding: 20px;
    background-color: #fff;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.service-physical-skills {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #f9f3f3;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    height: auto;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),url('_images/foundation_background.jpg');
    background-size: cover;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    height: 100%;
}

.service-social-skills {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #f9f3f3;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),url('_images/social_background.jpg');
    background-size: cover;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.service-sensory-skills {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #f9f3f3;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),url('_images/sensory_background.jpg');
    background-size: cover;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.service-confidence-skills {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #f9f3f3;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),url('_images/confidence_background.jpg');
    background-size: cover;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.service-heading {
    text-align: center;
    margin-bottom: 10px;
}

.service.right .service-heading {
    text-align: right;
}

.service-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.service.right .service-content {
    flex-direction: row;
    text-align: left;
}

.service.left .service-content {
    flex-direction: row-reverse;
    text-align: right;
}

.service img {
    width: 150px;
    height: auto;
    border-radius: 8px;
}

.social-icons-contact {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    padding: 10px 20px;
    justify-content: center;
}

.social-icons-contact img {
    padding: 0px 8px;
}

.location {
    display: flex;
    flex-direction: column;
    align-items: center;
}

iframe {
    width: 100%;
    max-width: 1024px;
    border: none;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 10px 0 5px;
}

form input,
form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

footer {
    text-align: center;
    font-size: .9em;
    padding-top: 10px;
    padding-bottom: 5px;
    background-color: #333;
    color: #fff;
    font-family: 'Raleway', sans-serif;
}

#message {
    padding: 20px;
    background-color: #ffffff;
    border: 3px solid;
    border-width: 0 3px;
    border-image: linear-gradient(to bottom, red, orange, yellow, green, blue, indigo, violet) 1;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#image-carousel {
    margin: 10px auto;
    max-width: 90%; /* Adjust according to your layout */
    padding: 0; /* Remove padding for a tighter look */
}

.carousel-container {
    position: relative;
    overflow: hidden; /* Hide overflow for neat appearance */
    border-radius: 8px; 
    height: 100%;
    object-fit: fill;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease; /* Smooth transition */
}

.carousel-item {
    min-width: 100%; /* Each item takes full width */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    display: flex; /* Enable flexbox for centering */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
}

.carousel img {
    width: 100%;           /* Make the image take the full width of the container */
    height: auto;          /* Maintain the aspect ratio */
    object-fit: contain; 
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 1); /* Full opacity on hover */
}

.prev {
    left: 10px; /* Position left button */
}

.next {
    right: 10px; /* Position right button */
}




@keyframes celestialAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.celestial {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1em;
    font-weight: bold;
    background: linear-gradient(270deg, #3559bf, #f4af72, #7d7bc0, #f29c87, #86a8e7);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: celestialAnimation 5s ease infinite;
    display: inline-block;
    padding: 0 5px;
}

/* Media Queries */
@media (max-width: 768px) {
    #wrapper {
        padding: 10px;
    }

    header {
        padding: 10px;
    }

    .header-content {
        gap: 5px; /* Reduced gap to minimize space */
    }

    .banner img {
        max-height: 50px;
    }

    nav ul {
        flex-direction: column;
        display: none; /* Hide the navigation links on mobile */
    }

    nav ul li {
        margin: 5px 0;
    }

    section {
        width: 95%;
        padding: 10px;
    }

    .service-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    #services {
        padding: 20px 10px;
    }

    #home .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .welcome-underline {
        font-size: 1.5em;
    }
    footer{
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    nav ul li a {
        padding: 5px 8px;
    }

    .banner img {
        max-height: 40px;
    }

    .service img {
        width: 100px;
    }

    #message {
        padding: 5px;
    }

    #home {
        padding: 20px 10px;
    }

    .welcome-underline {
        font-size: 1.2em;
    }

    #services {
        padding: 20px 10px;
    }

    footer{
        max-width: 100%;
    }
}
