@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* navbar section  */

.navbar-toggler {
    margin-left: auto; /* Pushes the button to the right */
}

/* If the button still appears too low or too high */
.navbar-toggler {
    align-self: center; /* Aligns vertically within the navbar */
}


.navbar {
    padding: 20px;
    background: #2B547E;
}

.navbar .navbar-toggler {
    color: #fff !important;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    outline: none;
    border: none;
}

.navbar #navbarNav {
    text-align: center;
    width: 100%;
    margin-top: 0px;
}

/* Default (Desktop) */
.navbar .navbar-brand {
    color: #f1f1f1;
    font-size: 15px;
    margin-left: -8px;
    font-weight: 600;
}

.navbar .navbar-brand i {
    font-size: 25px;
    background: #088F8F;
    border-radius: 50%;
    padding: 10px 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar .navbar-brand {
        font-size: 13px;
        margin-left: -4px;
    }

    .navbar .navbar-brand i {
        font-size: 20px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .navbar .navbar-brand {
        font-size: 13px;
        margin-left: 0;
    }

    .navbar .navbar-brand i {
        font-size: 18px;
        padding: 6px 8px;
    }
}

.navbar .collapse {
    background: #2B547E;
}

.navbar .dropdown-menu {
    width: 100%;
}

.navbar .dropdown-menu li a {
    color: #1c456d;
    font-size: 14px;
    padding: 10px;
}

.navbar ul li .bi {
    background: #fff;
    color: #1c456d;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 50%;
}

.navbar ul li a {
    color: #f1f1f1;
    text-decoration: none;
    text-transform: capitalize;
    font-size: 18px;
    margin-right: 0;
}

.navbar ul li a:hover {
    color: #FFA500;
}

.name {
    font-size: 21px;
    background-color: #ffffff;
    color: #006faf;
    padding: 10px;
    text-align: center;
}


/* Navbar styles */
.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    margin-left: 15px;
    margin-right: 15px;
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-size: 0.9rem; /* relative unit for better scaling */
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s, border-bottom 0.3s;
}

/* Medium desktop (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .navbar-nav .nav-link {
        font-size: 1rem; /* slightly bigger for larger screens */
    }
}

/* Large desktop (>1366px) */
@media (min-width: 1367px) {
    .navbar-nav .nav-link {
        font-size: 1.1rem; /* bigger text for very large screens */
    }
}

/* Optional: smaller desktop/laptops (<1024px) */
@media (max-width: 1023px) {
    .navbar-nav .nav-link {
        font-size: 0.85rem; /* smaller text for smaller screens */
    }
}

.navbar-nav .nav-link:hover {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
}

.navbar-nav .nav-link.active {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
}


/* hero section  */

.hero-section {
    padding: 20px;
    background: #2B547E;
    text-align: center;
}

.hero-section .text-content {
    margin-top: 150px;
}

.hero-section h1 {
    font-size: 60px;
    color: #fff;
    text-transform: capitalize;
    font-weight: bold;
}

.hero-section p {
    margin-top: 30px;
    color: #d1d1d1;
}

.hero-section button {
    margin-top: 20px;
    border-radius: 30px;
    background-color: #FFA500;
    height: 50px;
    width: 170px;
}

.hero-section button:hover {
    border: 1px solid #FFA500;
    background: #2B547E;
}

.hero-section button a {
    text-decoration: none;
    color: #fff;
}

.hero-section img {
    max-width: 100%;
    height: auto;
}

/* services section  */

.services-section {
    padding: 100px 20px;
    background-color: #fbfbfb;
}

.services-section .services .row1 {
    margin-bottom: 40px;
}

.services-section .services .card {
    border: none;
    border-radius: 15px;
    width: 100%;
    max-width: 280px;
    height: 320px;
    padding: 10px;
    cursor: pointer;
    background: transparent;
    box-shadow: 8px 8px 25px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.services-section .services .card img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    padding: 10px;
    margin: 0 auto 30px auto;
    background: #f0f0f0;
}

.services-section .services .card:hover {
    background-color: #2B547E;
    color: #fff;
    transform: scale(1.1);
}

.services-section .services .card:hover h4 {
    color: #fff;
}

.services-section .services .card:hover p {
    color: #d1d1d1;
}

.services-section .services .card h4 {
    font-size: 20px;
    font-weight: bold;
    color: #555;
    margin-top: -26px;
    text-align: center;
}

.services-section .services .card p {
    font-size: 15px;
    color: #777;
    margin-top: -17px;
    text-align: center;
}

.services-section .text-content {
    margin-top: -14px;
    text-align: center;
}

.services-section .text-content hr {
    height: 5px;
    background-color: #333;
    border: none;
    margin: 0 auto;
}

.services-section .text-content h3 {
    font-size: 20px;
    text-transform: capitalize;
    color: #FFA500;
    font-weight: 600;
    margin-left: 0;
}

.services-section .text-content h1 {
    font-size: 43px;
    margin-top: 20px;
    font-weight: bold;
    margin-left: 0;
    color: #1c456d;
}

.services-section .text-content p {
    font-size: 17px;
    margin-top: 50px;
    margin-left: 0;
    color: #555;
}

.services-section .text-content button {
    margin-top: 20px;
    border-radius: 30px;
    color: #fff;
    background-color: #2B547E;
    height: 50px;
    width: 170px;
}

.services-section .text-content button:hover {
    background-color: #fff;
    border: 2px solid #2B547E;
    color: #2B547E;
}

/* about section  */

.about-section {
    padding: 100px 20px;
    text-align: center;
}

.about-section img {
    height: 450px;
  width: auto;
  margin-top: -40px;
  border-radius: 40px;
}



.about-section .text-content h3 {
    font-size: 20px;
    text-transform: capitalize;
    color: #FFA500;
    font-weight: 600;
    margin-left: 0;
    margin-top: 31px;
}

.about-section .text-content h1 {
    font-size: 50px;
    margin-top: 20px;
    font-weight: bold;
    margin-left: 0;
    color: #1c456d;
}

.about-section .text-content p {
    font-size: 17px;
    margin-top: 19px;
    margin-left: 0;
    color: #555;
}

.about-section .text-content button {
    margin-top: 20px;
    border-radius: 30px;
    color: #fff;
    border: none;
    background-color: #2B547E;
    height: 50px;
    width: 170px;
    text-transform: capitalize;
}

.about-section .text-content button:hover {
    background-color: #fff;
    border: 2px solid #2B547E;
    color: #2B547E;
}

/* project section  */

.services .card {
    border-radius: 5px; /* Adds consistent border radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}

@media (max-width: 576px) {
    .services .card {
        margin-bottom: 20px; /* Adds spacing between stacked cards */
    }
}


.project-section {
    background-color: #088F8F;
    padding: 90px 20px;
}

.project-section .text h3 {
    font-size: 20px;
    text-transform: capitalize;
    color: #FFA500;
    font-weight: 600;
    text-align: center;
}

.project-section .text h1 {
    font-size: 50px;
    font-weight: bold;
    color: #fff;
    text-transform: capitalize;
    text-align: center;
}

.project-section hr {
    height: 2px;
    background-color: #f1f1f1;
    border: none;
    margin: 0 auto;
}

.project-section .text p {
    font-size: 18px;
    color: #d1d1d1;
    text-align: center;
}

.project-section .project .card {
    height: auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px auto;
    border-radius: 20px;
    border: none;
    box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

.project-section .project .card:hover {
    transform: scale(1.2);
}

.project-section .project .card h4 {
    font-size: 20px;
    color: #1c456d;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

.project-section .project .card p {
    font-size: 15px;
    color: #555;
    margin-top: 10px;
    text-align: center;
}

.project-section .project .card button {
    margin-top: 10px;
    border-radius: 30px;
    color: #fff;
    border: none;
    background-color: #088F8F;
    height: 40px;
    width: 120px;
    text-transform: capitalize;
}

.project-section .project .card button:hover {
    background-color: #fff;
    border: 2px solid #088F8F;
    color: #088F8F;
}

/* contact section  */

.contact-section {
    background: #fbfbfb;
    padding: 100px 20px;
}

.contact-section h1 {
    margin-top: 50px;
    text-align: center;
    text-transform: capitalize;
    font-size: 50px;
    font-weight: bold;
    color: #1c456d;
    margin-bottom: 100px;
}

.contact-section .info-box {
    background-color: transparent;
    border: none;
    height: 200px;
    width: 100%;
    max-width: 230px;
    border-radius: 20px;
    padding: 25px;
    margin: 0 auto 20px auto;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.contact-section .info-box .bi {
    background: #088F8F;
    border-radius: 55%;
    padding: 15px 18px;
    color: #fff;
    font-size: 25px;
    text-align: center;
}

.contact-section .info-box h3 {
    font-size: 25px;
    margin-top: 30px;
    font-weight: 600;
    text-align: center;
}

.contact-section .info-box p {
    font-size: 13px;
    color: #777;
    text-align: center;
}

.contact-section .info-box:hover {
    background: #088F8F;
    color: #fff;
    transform: scale(0.9);
}

.contact-section .info-box:hover p {
    color: #f1f1f1;
}

.contact-section .info-box:hover .bi {
    background: #fff;
    color: #088F8F;
    font-size: 25px;
    text-align: center;
}

.contact-section .form {
    margin-top: 50px;
}

.contact-section form input,
.contact-section form textarea {
    margin-top: 10px;
    border: none;
    background: #f1f1f1;
    color: #1c456d;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
}

.contact-section form button {
    margin-top: 20px;
    border-radius: 30px;
    color: #fff;
    border: none;
    background-color: #088F8F;
    height: 50px;
    width: 170px;
    text-transform: capitalize;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-section form button:hover {
    background-color: #fff;
    border: 2px solid #088F8F;
    color: #088F8F;
}

/* footer section  */

footer {
    padding: 40px 20px;
    background: #1c456d;
    text-align: center;
}

footer .logo {
    font-size: 30px;
    color: #fff;
    font-weight: 600;
}

footer .logo i {
    font-size: 25px;
    background: #088F8F;
    border-radius: 50%;
    padding: 10px 15px;
}

footer ul li {
    list-style: none;
    margin-top: 20px;
}

footer ul li a {
    text-decoration: none;
    color: #d1d1d1;
    margin-left: 0;
    font-size: 15px;
    text-transform: capitalize;
    font-weight: 500;
}

footer ul li a:hover {
    color: #FFA500;
}

footer p {
    color: #fff;
    margin-top: 20px;
    font-size: 15px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;  /* Distance from the bottom of the viewport */
    right: 20px;   /* Distance from the right side of the viewport */
    background: #088F8F;
    height: 50px;
    width: 50px;
    color: #fff;
    border-radius: 50%;
    font-size: 30px; /* Adjusted for better visibility */
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 50px; /* Vertically center the icon */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Optional shadow */
    z-index: 1000; /* Ensure it is on top of other elements */
    cursor: pointer; /* Pointer cursor for better UX */
    transition: opacity 0.3s; /* Smooth transition */
}

/* Responsive adjustments */

@media (max-width: 700px) {
    .navbar ul li a {
        margin-right: 0;
        font-size: 16px;
    }

    .hero-section h1 {
        font-size: 40px;
        margin-top: -45%;
    }

    .hero-section button {
        width: 150px;
    }

    .services-section .services .card {
        width: 100%;
        max-width: none;
        margin: 0 auto 20px auto;
        margin-top: -11%;
    }

    .about-section img {
        height: 300px;
        width: auto;
    }

    .contact-section {
        padding: 50px 20px;
    }

    .contact-section form button {
        width: 100%;
    }

    footer {
        padding: 20px;
    }
}

/* Existing CSS code */

.dropdown-menu[data-bs-popper] {
    top: 100%;
    left: -57%;
    margin-top: var(--bs-dropdown-spacer);
    width: 167%;
}
