@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;1,100;1,300;1,400;1,500&display=swap');

*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all .2s linear;
    text-decoration: none;
    /* margin-bottom: 0; */
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    overflow-x: hidden;
}

/* --- HEADING STYLES --- */
.heading, .clients .section-header h2, .section-head h1{
    margin: 2rem;
    padding-top: 6rem;
    display: inline-block;
    font-size: 3.5rem;
    color: #002e5f;
    position: relative;
    letter-spacing: .2rem;
    text-transform: capitalize;
}

.heading::before, .heading::after, .clients .section-header h2::before, .clients .section-header h2::after, .section-head h1::before, .section-head h1::after{
    content: '';
    position: absolute;
    height: 2.5rem;
    width: 2.5rem;
    border-top: .4rem solid #002e5f;
    border-left: .4rem solid #002e5f;
}

.heading::before, .clients .section-header h2::before, .section-head h1::before{
    top: 5.8rem;
    left: -2rem;
}

.heading::after, .clients .section-header h2::after, .section-head h1::after{
    bottom: -.5rem;
    right: -2rem;
    transform: rotate(180deg);
}

.faq-heading {
    color: #00bfff;
    margin-top: -2rem;
}

.faq-heading::before, .faq-heading::after{
    border-top: .4rem solid #00bfff;
    border-left: .4rem solid #00bfff;
}

.faq-heading::before {
    left: auto;
    margin-left: -2.5rem;
}

.faq-heading::after {
    right: auto;
    margin-right: -2.5rem;
}

/* --- BUTTON STYLES --- */
.btn{
    outline: none;
    border: none;
    border-radius: 5rem;
    background: white;
    border-style: groove;
    border-color: #002e5f;
    font-size: 1.5rem;
    cursor: pointer;
    height: 3.5rem;
    width: 15rem;
    box-shadow: 0 .2rem .5rem rgba(0,0,0,.3);
    text-transform: capitalize;
}

.about .btn:hover{
    /* letter-spacing: .1rem; */
    opacity: .9;
    color: white;
    background: #002e5f;
    

}
.about .btn {
    width: 22rem;
    height: 4.5rem;
    font-size: 1.8rem;
    margin-top: 1rem;

}

.communicate .btn{
    width: 22rem;
    height: 4.5rem;
    font-size: 1.8rem;
    margin-top: 1rem;
}

.communicate .btn:hover{
    /* letter-spacing: .1rem; */
    opacity: .9;
    color: white;
    background: #00bfff;
}

/* --- HEADER / NAVBAR --- */
.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    
}

.header .logo img{
    width: 120%;
    height: 4rem;
}

.header .navbar ul{
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 0;

}

.header .navbar ul li{
    margin: 0 1.5rem;
}

.header .navbar ul li a{
    font-size: 2rem;
    color: #fff;
    text-transform: capitalize;
}

.header .navbar ul li a:hover{
    color: #00bfff;
    text-decoration: underline;
}

.header .fa-bars{
    color: #fff;
    cursor: pointer;
    font-size: 3rem;
    display: none;
}

/* --- HOME SECTION --- */
.home{
    min-height: 100vh;
    width: 100vw;
    background-image: url(../images/img1.jpg);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden !important;
}

.home h1{
    color: #fff;
    font-size: 5.5rem;
}

.home h2{
    color: #fff;
    font-size: 3rem;
}

.home .wave{
    position: absolute;
    bottom: -.5rem;
    left: 0;
    height: 11rem;
    width: 100%;
    background: url(../images/wave.png);
    background-size: 100rem 11rem;
    animation: waves 8s linear infinite;
    background-repeat: repeat-x;
}

.home .wave2{
    animation-direction: reverse;
    animation-duration: 6s;
    opacity: .3;
}

.home .wave3{
    animation-duration: 4s;
    opacity: .5;
}

@keyframes waves{
    0%{ background-position-x: 0; }
    100%{ background-position-x: 100rem; }
}

/* --- ABOUT SECTION --- */
.about{
    min-height: auto;
    width: 100vw;
    padding: 0 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about .row{
    line-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4rem;
}

.about .row .content{
    text-align: center;
    max-width: 750px; /* <--- FIX 1: Reduced width */
    margin: 0 auto; /* Ensures it stays centered */
}

.about .row .content h3{
    font-size: 3rem;
    color: black;
}

.about .row .content p{
    font-size: 2rem;
    color: #333;
    padding: 1rem 0;
}

/* --- SERVICES SECTION --- */
.services-wrapper {
    background-color: #fff;
    padding: 0rem 0 6rem;
}

.section-head{
    margin-bottom: 60px;
    text-align: center;
    margin-top: -2rem;
}
  .section-head p{
    font-size: 20px;
    line-height: 28px;
    text-align: center;
  }
  .item{
    background:#fff;
    text-align: center;
    padding:30px 25px;
    box-shadow: 0 0 25px rgba(0,0,0,0.07);
    border-radius: 20px;
    margin-bottom: 30px;
    border:5px solid rgba(0,0,0,0.07);
    transition:all 0.5s ease 0s;
    height: 100%;
  }
  .item:hover{
    background:#c8d8e4;
    box-shadow: 0 8px 20px 0 rgba(0,0,0,0.2);
  }
  .item:hover .item,
  .item:hover span.icon{
    background:#fff;
    border-radius: 10px;
  }
  .item h6{
      font-size: 2rem;
      text-transform: capitalize;
  }
  .item:hover h6,
  .item:hover p{
    color:#2b6777;
  }
  .item .icon{
    font-size:40px;
    margin-bottom: 25px;
    width:90px;
    height:90px;
    line-height: 90px;
    border-radius: 50%;
    background-color: rgba(0, 147, 38, 0.15);
    color: #52ab98;
    display: inline-block;
    text-align: center;
  }
  .item p{
    font-size: 15px;
    line-height: 26px;
  }
  .item h6{
    margin-bottom: 20px;
    color:#2f2f2f;
  }   

/* --- COUNTERS SECTION --- */
.counters {
	background-image: url(../images/img2.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
	color: #fff;
	padding: 40px 20px;
}

.counters .container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 30px;
	text-align: center;
}

.counters i {
	color: #fff;
	margin-bottom: 5px;
}

.counters .counter {
	font-size: 45px;
	margin: 10px 0;
}

.counters h3 {
    text-transform: capitalize;
}

/* --- COMMUNICATE (CTA) SECTION --- */
.communicate{
    background-image: url(../images/img3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    min-height: 40vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}  

.communicate h3{
    font-size: 4rem;
    margin-bottom: 0;
    line-height: 1.5;

}

.communicate p{
     font-size: 2.2rem;
    line-height: 1.4;
    margin: 2rem 0;
 }

/* --- CLIENTS SECTION --- */
.clients {
    position: relative;
    padding: 8rem 0 4rem; /* <--- FIX 2: Reduced bottom padding */
    text-align: center;
}

.clients .section-header p {
    padding-bottom: 10px;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 2rem;
    color: #333;
    padding: 1rem 0;
}
.clients-carousel img {
    width: 120px;
    height: 150px;
    object-fit: contain;
    margin: 0 10px;
    padding: 10px 0;
}

.clients img {
    max-width: 100%;
    opacity: 1;
    transition: 0.3s;
    padding: 25px 10px;
}

.clients img:hover {
    opacity: .5;
}

.clients .owl-nav,
.clients .owl-dots {
    margin-top: 5px;
    text-align: center;
}

.clients .owl-dot {
    display: inline-block;
    margin:  5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
}

.clients .owl-dot.active {
    background-color: #4F84C4;
}    

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 4rem 0 8rem; /* <--- FIX 2: Reduced top padding */
    background-color: #fff; 
}

.contact .heading{
    margin-bottom: 5rem;
}
.contact-in {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: auto auto 5rem auto;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 0px 10px 0px #666;
}
.contact-map {
    width: 100%;
    height: auto;
    flex: 50%;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
}
.contact-form {
    width: 100%;
    height: auto;
    flex: 50%;
    text-align: left;
    padding-left: 1rem;
}
.contact-form-txt, .contact-form-email, .contact-form-phone {
    width: 95%;
    height: 40px;
    color: #000;
    border: 1px solid #bcbcbc;
    border-radius: 50px;
    outline: none;
    margin-bottom: 20px;
    padding: 15px;
}
.contact-form-txt::placeholder, .contact-form-email::placeholder, .contact-form-phone::placeholder, .contact-form-txtarea::placeholder {
    color: #aaa;
    font-size: 1.5rem;
}
.contact-form-txtarea {
    width: 95%;
    height: 130px;
    color: #000;
    border: 1px solid #bcbcbc;
    border-radius: 10px;
    outline: none;
    margin-bottom: 20px;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
}
.contact-form-btn {
    outline: none;
    border: none;
    border-radius: 5rem;
    background: white;
    border-style: groove;
    border-color: #002e5f;
    font-size: 1.5rem;
    cursor: pointer;
    height: 3.5rem;
    width: 15rem;
    box-shadow: 0 .2rem .5rem rgba(0,0,0,.3);
}
.contact-form-btn:hover{
    letter-spacing: .1rem;
    opacity: .9;
    color: white;
    background: #002e5f;
}

/* --- FAQ SECTION --- */
.faq{
    min-height: 50vh;
    width: 100vw;
    text-align: center;
    padding: 0 2rem;
    background: url(../images/faq.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq .row{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.faq .accordion-container{
    width: 50%;
    text-align: left;
}

.faq .accordion{
    margin: 0 1rem;
}

.faq .accordion-header{
    background-color: #00bfff;
    margin: 1rem 0;
    padding: 0; /* <--- FIX 3: Ensures flexible height */
    box-shadow: .1rem .1rem .3rem rgba(0,0,0,.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 4rem; /* <--- FIX 3: Ensures it's at least as tall as the icon */
}

.faq .accordion-header span{
    display: inline-flex; /* <--- FIX 3: Better alignment */
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 4rem;
    width: 5rem;
    font-size: 2rem;
    background: #333;
    color: #fff;
    clip-path: polygon(0% 0%,75% 0%,100% 50%,75% 100%,0% 100%); 
    flex-shrink: 0;
}

.faq .accordion-header h3{
    display: inline;
    color: #333;
    font-weight: 400;
    padding-left: .5rem;
    font-size: 1.5rem;
    flex-grow: 1; /* <--- FIX 3: Allows text to take space and wrap */
    padding: 5px; /* Adds a little breathing room */
}

.faq .accordion-body{
    padding: 1.5rem;
    color: #444;
    box-shadow: .1rem .1rem .3rem rgba(0,0,0,.3);
    background-color: #fff;
    font-size: 1.3rem;
    display: none;
    margin: 0 1rem;
}

/* --- FOOTER --- */
.footer {
    position: relative;
    padding: 0 0 30px 0;
    background: #333;
}

.footer .footer-top {
    background: #002e5f;
    padding: 60px 0 30px 0;
}

.footer .footer-top .footer-info,
.footer .footer-top .footer-links,
.footer .footer-top .footer-contact,
.footer .footer-top .footer-newsletter {
    margin-bottom: 30px;
}

.footer .footer-top .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #ffffff;
    color: #00bfff;
    line-height: 1;
    padding: 9px 0;
    margin-right: 4px;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

.footer .footer-top .social-links a:hover {
    background: #00bfff;
    color: #ffffff;
}

.footer .footer-top h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer .footer-top h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 0;
    width: 50px;
    border-bottom: 2px solid #ffffff;
}

.footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-top .footer-links ul i {
    padding-right: 8px;
    color: #ffffff;
    font-size: 16px;
}

.footer .footer-top .footer-links ul li {
    border-bottom: 1px solid #ffffff;
    padding: 7px 0;
}

.footer .footer-top .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-top .footer-links ul a {
    font-size: 14px;
    color: #ffffff;
}

.footer .footer-top .footer-links ul a:hover {
    color: #00bfff;
}
.footer-contact {
    font-size: 1.5rem;
}
.footer .footer-top .footer-contact p {
    color: #ffffff;
    line-height: 26px;
}

.footer .footer-top .footer-newsletter input[type="email"] {
    padding: 6px 8px;
    width: 60%;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
}

.footer .footer-top .footer-newsletter input[type="submit"] {
    border: 0;
    width: 40%;
    padding: 6px 0;
    text-align: center;
    color: black;
    border: 1px solid #ffffff;
    background: #ffffff;
    transition: 0.3s;
    cursor: pointer;
}

.footer .footer-top .footer-newsletter input[type="submit"]:hover {
    color: #ffffff;
    background: #00bfff;
    border: 1px solid #00bfff;
    letter-spacing: .2rem;
}

.footer .footer-top .footer-newsletter p {
    color: #ffffff;
    font-size: 14px;
}

.footer .copyright {
    text-align: center;
    padding-top: 30px;
    color: #fff;
    font-size: 1.3rem;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    display: none;
    background-color: #00bfff;
    color: #ffffff;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 1;
    font-size: 44px;
    right: 15px;
    bottom: 15px;
    transition: background 0.3s;
    z-index: 9;
}

.back-to-top i { color: #ffffff; }
.back-to-top i:hover { color: black; }

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 1000px){
    html{ font-size: 50%; }

    .header .fa-bars{
        display: block;
        color: white;
        margin-right: 1rem;
        
    }

    .header .fa-bars:hover{ color: #00bfff; }

    .header .navbar{
        position: fixed;
        top: -120%;
        left: 0;
        height: auto;
        width: 100%;
        background-color: white;
        z-index: 1000;
        border-top: .1rem solid rgba(0,0,0,.3);
    }

    .header .navbar ul{
        height: 100%;
        width: 100%;
        flex-flow: column;
    }

    .header .navbar ul li{ margin: 1rem 0; }

    .header .navbar ul li a{
        color: grey;
        font-size: 2.4rem;
    }

    .header .fa-times{ transform: rotate(90deg); }

    .header .nav-toggle{ top: 5.8rem; }

    .home h1{ font-size: 4rem; }
    .home h2{ font-size: 2rem; }
    .about .row .content { max-width: 90%; }
    .clients { margin-bottom: 0; }
    .contact-in { flex-direction: column; }
    .contact-form { padding: 2rem 0 0 0; }
    .back-to-top { width: 30px; height: 30px; font-size: 30px; }
    .faq{ padding: 4rem 1rem; min-height: auto; }
    .faq .row{ flex-flow: column; }
    .faq .accordion-container{ width: 100%; }
}

@media (max-width: 768px) {
	.counters .container {
		grid-template-columns: repeat(2, 1fr);
	}

	.counters .container > div:nth-of-type(1),
	.counters .container > div:nth-of-type(2) {
		border-bottom: 1px lightskyblue solid;
		padding-bottom: 20px;
	}

    .footer .copyright, .footer .credit { text-align: center; }


}