body {
    overflow-x: hidden;
}

@font-face {
    font-family: JosefinSans;
    src: url(./assets/fonts/JosefinSans-Regular.ttf);
}

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: JosefinSans;
}

p {
    font-family: "Public Sans", sans-serif;
    text-align: justify;
}

.bg-main {
    background-color: #3498db;
}

/* navigation start */
.nav-link {
    color: #000 !important;
    font-weight: 500 !important;
    font-size: 17px !important;
}

.nav-link:hover {
    color: #e54f40 !important;
}

.nav-item .nav-link {
    color: #e54f40;
    font-size: 25px;
    font-family: JosefinSans;
}

.navbar-nav .nav-link:hover {
    color: #e54f40 !important;
    font-family: JosefinSans;
}

.nav-link {
    font-weight: 500;
    position: relative;
    font-family: JosefinSans;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    width: 0;
    height: 3px;
    background-color: #e54f40;
    visibility: hidden;
    transition: 0.3s ease-in-out;
    font-family: JosefinSans;
}


.navbar-nav .nav-link:hover::before {
    width: 100%;
    visibility: visible;
    color: #FF7D6D !important;
    font-family: JosefinSans;
}

.navbar-nav .nav-link.active::before {
    width: 100%;
    visibility: visible;
    color: orangered !important;
    font-family: JosefinSans;
}

.navbar-nav .nav-link.active {
    color: #000 !important;
    font-family: JosefinSans;
}


/* Carousel Section */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 1s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.664);
   
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
  
    opacity: 0;
   
    animation: fadeInUp 2s forwards;
   
}


.overlay h2,
.overlay h1,
.overlay button {
    opacity: 0;
    
    transform: translateY(20px);
  
    animation: slideUp 1s forwards;
     
}


.overlay h2:nth-child(1) {
    animation-delay: 0.5s;

}

.overlay h1 {
    animation-delay: 1s;

}

.overlay button {
    animation-delay: 1.5s;

}


@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


@media screen and (max-width: 768px) {
    .overlay {
        font-size: 1.5em;
       
    }
}


/* .welcome-heading {
    color: #fff;
    font-size: 40px;  
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.website-name {
    color: #2995bc;
    font-size: 60px;  
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.main-contact-button {
    background-color: #2995bc;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
}


.main-contact-button {
    background-color: #2995bc;
    color: #fff;
    padding: 15px 30px;  
    border: none;
    border-radius: 5px;
    font-size: 18px;  
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: background-color 0.3s ease;
    max-width: 300px;  
}

.main-contact-button:hover {
    background-color: #217a99;
}


.emergency-content {
    font-size: 18px; 
    line-height: 1.6;
    max-width: 800px; 
 
    padding: 0 15px;
}


@media (max-width: 992px) {
    .emergency-content {
        font-size: 16px;
        max-width: 700px;
    }
}


@media (max-width: 768px) {
    .emergency-content {
        font-size: 13px; 
        max-width: 90%; 
    }
}


@media (max-width: 992px) {
    .main-contact-button {
        padding: 12px 25px; 
        font-size: 16px;
        max-width: 250px;  
    }
}

@media (max-width: 768px) {
    .main-contact-button {
        padding: 10px 20px;  
        font-size: 14px;
        width: 90%;  
        margin: 15px auto;
        max-width: none;  
    }
}



@media (max-width: 992px) {
    .welcome-heading {
        font-size: 32px;  
    }

    .website-name {
        font-size: 48px;
    }

}


@media (max-width: 768px) {
    .welcome-heading {
        font-size: 24px;  
        text-align: center;
        margin: 15px 0;
    }

    .website-name {
        font-size: 25px; 
        text-align: center;
        margin: 10px 0;
    }

}



.main-contact-button {
    padding: 12px 20px;
    font-size: 1.2em;
    background-color: #e54f40;

    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.5s ease, transform 0.3s ease;
   
    font-weight: bold;
}


.main-contact-button:hover {
    background-color: #2995bc;
   
    transform: scale(1.1);
 
}


.main-contact-button:focus {
    outline: none;
   
    box-shadow: 0 0 0 3px #e54f40;
    
} */


.main-banner-image{
    background-image: url(./assets/img/banner-img-7.jpg);
    height: 80vh;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.main-banner-image-overlay{
    background-color: rgba(0, 0, 0, 0.644);
    height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.welcome-bg{
    box-shadow: 0px 0px 5px 2.5px #ffff;
    padding: 30px 20px;
}

.welcome-heading{
    color: #fff;
    font-size: 40px;
    font-weight: bold;
}

.annai-name{
    color: #3498db;
    font-weight: bold;
    font-size: 50px;
}

@media (max-width:426px) {
    .annai-name{
        font-size: 28px;
    }

    .welcome-heading{
        font-size: 28px;
    }

    .annai-button{
        font-size: 20px;
    }
}

.annai-button{
    background-color: #e54f40;
    width: 200px;
    font-weight: bold;
    font-size: 20px;
}

.about-heading{
    color: #000;
    text-align: center;
    font-weight: bold;
    font-size: 23px;
}

.services-heading {
    font-size: 30px;
    text-align: center;
    color: #000;
    font-weight: bold;
}


.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
   
    font-family: JosefinSans;
}

.tab {
    padding: 12px 25px;
    
    font-size: 1.2em;
    border: 2px solid #3498db;
    color: #e54f40;
    border: none;
    border-radius: 5px;
    transition: border 0.3s ease, transform 0.2s ease;
   
    text-align: center;
    flex: 1;
    box-sizing: border-box;
    min-width: 180px;
   
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.5s;
}

.tab:hover{
    border: 2px solid #3498db;
    transform: scale(1.04);
}


.tab.active {
    border: 2px solid #e54f40;
    transform: scale(1.1);
}


.tab-content {
    display: none;
    padding: 20px;
    border-radius: 5px;
    margin-top: 15px;
}

.tab-content.active {
    display: block;
}


.img-fluid {
    width: 100%;
    height: auto;
    border-radius: 5px;
}


/* @media (max-width: 768px) {

   
    .tabs {
        flex-direction: column;
    }

   
    .tab {
        padding: 10px;
        font-size: 1.1em;
    }

   
    .about-heading {
        font-size: 1.8em;
        text-align: center;
    }

    
    .row {
        flex-direction: column;
        align-items: center;
    }

   
    .col-12 {
        margin-bottom: 15px;
    }

    .col-12 img {
        max-width: 100%;
        margin-bottom: 15px;
    }
} */

@media (max-width: 480px) {

    .tab {
        font-size: 1em;
        padding: 8px 15px;
    }

    
    .about-heading {
        font-size: 1.5em;
    }

   
    .col-12 {
        width: 100%;
        margin-bottom: 10px;
    }

  
    .img-fluid {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
    }
}


@media (min-width: 1024px) {

 
    .tabs {
        flex-direction: row;
        justify-content: space-between;
    }

    .tab {
        font-size: 1.5em;
        padding: 15px 30px;
        min-width: 180px;
        margin: 0 10px;
    }

   
    .row {
        flex-direction: row;
    }

    
    .col-12.col-sm-10.col-md-6.col-lg-6.col-xl-6 {
        margin-bottom: 30px;
    }

    
    .about-heading {
        font-size: 2.5em;
        text-align: center;
    }
    
}

.services-banner-image{
    background-image: url(./assets/img/services-banner-img-1.jpg);
    height: 70vh;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.services-banner-image-overlay{
    background-color: rgba(0, 0, 0, 0.664);
    height: 70vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.services-bg {
    background-color: #3498db;
    padding: 8px;
    border-radius: 50px;
    transition: 0.6s;
}

.services-bg:hover {
    margin-top: -10px;
}

.our-photo-heading{
    text-align: center;
    color: #000;
    font-family: JosefinSans;
}

.our-clients{
    text-align: center;
    color: #000;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
button {
    background-color: #e54f40;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}
/* button:hover {
    background-color: #3498db;
} */
.error {
    color: red;
    font-size: 14px;
    display: none;
}

.contact-icon-style{
    background-color: #e54f40;
    height: 50px;
    width: 50px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 25px;
}

.contact-icon-one{
    background-color: #e54f40;
    height: 40px;
    width: 40px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 21px;
}

.mds-style{
    font-family: JosefinSans;
}


.card-slider {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: thin;
}

/* Cards styling */
.card-one {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: 200px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.card-one:hover {
    transform: scale(1.05);
}

/* Active card styling */
.card-one.active {
    background-color: #f1c40f;  /* Highlight active card */
    transform: scale(1.05);
}

/* Service details */
.service-details {
    display: none;
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Show the active service detail */
.service-details.active {
    display: block;
}

/* Hide the scrollbar but still allow scroll on mobile */
.card-slider::-webkit-scrollbar {
    display: none;
}

/* For mobile view: enable scroll */
@media (max-width: 767px) {
    .card-slider {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .card-one {
        flex-shrink: 0;
        width: 200px;
    }
}


.services-style{
    cursor: pointer;
    transition: 0.6s;
}
.services-style:hover{
    margin-top: -10px;
}

/* Bottom background color when hovered */
.services-style::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    /* Initial height is 0 */
    background-color: #e54f40;
    transition: height 0.3s ease;
    /* Smooth transition */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    
}

/* When hovered, bottom background color will appear */
.services-style:hover::before {
    height: 8px;
    /* 30px height will appear on hover */
    margin-top: -10px;
}

.resuce-team{
    background-color: #3498db;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.6s;
}

.resuce-team:hover{
    background-color: #000;
    color: #e54f40;
}

.numbers{
    background-color: #fff;
    height: 40px;
    width: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;  
}