/********** Template CSS **********/
html, body {
  overflow-x: hidden; /* hide horizontal overflow only */
}

* {
  box-sizing: border-box; /* ensures elements don’t exceed width */
}

img, section, div {
  max-width: 100%; /* prevents images or divs from overflowing */
}
/* Preloader Start */

.preloader {
    background-color  : #f7f7f7;
    width             : 100%;
    height            : 100%;
    position          : fixed;
    top               : 0;
    left              : 0;
    z-index           : 999999;
    display           : flex;
    align-items       : center;
    justify-content   : center;
}

.preloader .preloader-img {
    width             : 100px; /* Adjust the image size */
    height            : 100px; /* Maintain proportions */
    animation         : smoothTwinBlink 3s infinite ease-in-out; /* Smooth blinking with twining animation */
}

.preloader .preloader-img img {
    width             : 100%;
    height            : 100%;
    object-fit        : contain;
}

/* Smooth blinking with twining animation */
@keyframes smoothTwinBlink {
    0%, 100% {
        opacity: 1; /* Fully visible */
        transform: scale(1); /* Normal size */
    }
    25% {
        opacity: 0.4; /* Dimmed */
        transform: scale(1.1); /* Slightly larger to give a "twining" feel */
    }
    50% {
        opacity: 0; /* Invisible */
        transform: scale(1.2); /* Slightly larger */
    }
    75% {
        opacity: 0.4; /* Dimmed again */
        transform: scale(1.1); /* Slightly larger */
    }
}

/* Preloader End */

:root {
    --primary: #F3525A;
    --secondary: #F6F6F6;
    --light: #FFFFFF;
    --dark: #152440;

}
h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 35px 20px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--dark);
    outline: none;
    transition: .5s;
}
.logo{
    width: 70px;
    height: 70px;
}
.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 30px 20px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {

    /* Allow the name to break and adjust logo */
    .navbar-brand{
        padding-right: 20px;
    }
    .navbar-brand h1 {
        font-size: 18px;
        line-height: 0.5;
        white-space: normal; /* Allow wrapping on small screens */
        text-align: center; /* Center align the name on smaller screens */
    }
    .logo{
        width: 40px;
        height: 40px;
    }
    .navbar-light .navbar-nav .nav-link  {
        padding: 10px 0;
    }
    
}
@media (max-width: 320px) {

    /* Allow the name to break and adjust logo */
    .navbar-brand{
        margin-right: 20px;
    }
    .navbar-toggler{
        margin-left: 200px;
        margin-top: -70px;
    }
    .navbar-brand h1 {
        font-size: 18px;
        line-height: 0.5;
        white-space: normal; /* Allow wrapping on small screens */
        text-align: center; /* Center align the name on smaller screens */
    }
    .logo{
        width: 40px;
        height: 40px;
    }
    .navbar-light .navbar-nav .nav-link  {
        padding: 10px 0;
    }
    
}
@media (min-width: 321px) and (max-width: 400px) {
    .navbar-toggler{
        margin-left: 240px;
        margin-top: -50px;
    }

}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 36, 64, .7);
    z-index: 1;
}

@media (max-width: 526px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.service-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50px;
    bottom: -50px;
    left: 0;
    background: var(--light);
    border-radius: 100% 100% 0 0;
    box-shadow: 0px -10px 5px #EEEEEE;
    transition: .5s;

}

.service-item:hover::after {
    bottom: -25px;
}

.service-item p {
    transition: .3s;
}

.service-item:hover p {
    margin-bottom: 25px !important;
}

.team-item img {
    transform: scale(1.15);
    margin-left: -30px;
    transition: .5s;
}

.team-item:hover img {
    margin-left: 0;
}

.team-item .team-text {
    left: -100%;
    transition: .5s;
}

.team-item .team-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 50%;
    right: -60px;
    margin-top: -30px;
    border: 30px solid;
    border-color: transparent transparent transparent var(--primary);
}

.team-item:hover .team-text {
    left: 0;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .owl-item img {
    width: 90px;
    height: 90px;
}

.blog-item img {
    transition: .5s;
}

.blog-item:hover img {
    transform: scale(1.1);
}

/* *Gallery Start* */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 320px;
    width: 480px;
}
@media screen and (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for medium screens */
        gap: 8px; /* Adjust gap for better spacing */
        padding: 15px; /* Adjust padding for medium screens */
    }
    .gallery-item {
        height: 200px; /* Adjust height for smaller screens */
        width: 100%; /* Use dynamic width within grid */
    }
}

@media screen and (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for smaller screens */
        gap: 6px; /* Reduce gap for compact layout */
        padding: 10px; /* Adjust padding for smaller screens */
    }
    .gallery-item {
        height: 180px; /* Adjust height for smaller screens */
        width: 100%; /* Use dynamic width within grid */
    }
}

@media screen and (max-width: 425px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for smallest screens */
        gap: 5px; /* Reduce gap for better fit */
        padding: 5px; /* Adjust padding for smallest screens */
    }
    .gallery-item {
        height: 150px; /* Adjust height for smallest screens */
        width: 100%; /* Use dynamic width within grid */
    }
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}
.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: end;
    flex-direction: column;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.5s;
}
.gallery-item:hover .gallery-content {
    background: rgba(19, 53, 123, 0.8);
}
.gallery-info {
    opacity: 0;
    transition: opacity 0.5s, margin-bottom 0.5s;
}
.gallery-item:hover .gallery-info {
    opacity: 1;
    margin-bottom: 0;
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox img {
    display: none;
}

.lightbox video {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 5px;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 10px;
    cursor: pointer;
}

.gallery .tab-class .nav-item {
    padding: 0 0 20px 0;
}
.gallery .tab-class .nav-item a.active {
    background: var(--bs-primary) !important;
}

.gallery .tab-class .nav-item a.active span {
    color: var(--bs-white) !important;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}


/* Animation for the checkmark and cross inside the circle */
@keyframes roundCheckmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes roundCross {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Style for the success and error messages */
#formStatus {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 20px;
}

/* Style for the success circle (green checkmark) */
.successMessage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    font-size: 2rem;
    animation: roundCheckmark 1s ease-out;
}

/* Style for the error circle (red cross) */
.errorMessage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    color: red;               /* Red text color */
    font-size: 2rem;
    border: 2px solid red;    /* Red border */
    /* color: white;
    font-size: 2rem; */
    animation: roundCross 1s ease-out;
}

#feedback{
    padding: 2%;
}
@media screen and (min-width:325) and (max-width:726) {
    #feedback{
        padding: 1%;
    }
}

/* Icon styles with colors */
.icon-email {
    color: #007BFF; /* Blue for email icon */
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  .icon-phone {
    color: #28A745; /* Green for phone icon */
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  .icon-location {
    color: #DC3545; /* Red for location icon */
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  /* Contact text styles */
  .contact-link {
    color: #333; /* Default text color */
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  /* Hover effects for icons and text */
  .icon-email:hover, 
  .contact-link:hover {
    transform: scale(1.2); /* Scale-up effect */
    color: #0056b3; /* Slightly darker blue for hover */
  }
  
  .icon-phone:hover {
    transform: scale(1.2);
    color: #1e7e34; /* Slightly darker green for hover */
  }
  
  .icon-location:hover {
    transform: scale(1.2);
    color: #bd2130; /* Slightly darker red for hover */
  }

  /* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 40px; /* Change from 'right' to 'left' */
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: bounce 2s infinite; /* Add bouncing animation */
}

/* Keyframes for Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.whatsapp-float a {
    color: white;
    font-size: 24px;
    text-decoration: none;
}


/* Form JS CSS */
/* Spinner Animation */
.loading-animation {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1); /* Light gray border */
    border-top: 4px solid #3498db; /* Blue color for the spinner */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

/* Spinner rotation animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success and error message styling */
.successMessage, .errorMessage {
    text-align: center;
    font-size: 16px;
}

.checkmark, .crossmark {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 50%;
}

.checkmark,.successMessage {
    color: green; /* Green checkmark */
    background-color: transparent; /* No background */
}

.crossmark,.errorMessage {
    background-color: transparent; /* Red background for the crossmark */
    color: red; /* White crossmark */
}

