/********** Template CSS **********/
:root {
    --primary: #FFE468;
    --secondary: #8CC641;
    --light: #F2F2F2;
    --dark: #272630;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn.btn-secondary {
    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: 30px;
    bottom: 30px;
    z-index: 99;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 30px;
    padding: 35px 0;
    font-size: 18px;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.bg-hero {
    background: url(../img/hero.jpg) top left no-repeat;
    background-size: contain;
}

/* Form Container */
/* .form-container {
    max-width: 400px;
    width: 100%;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);  
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  
}

// Form Input Fields 
.form-input {
    height: 50px;
    font-size: 1rem;
    padding: 0.5rem 1rem;
} */

.form-container {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Input fields and text styling */
.form-input {
    height: 50px;
    font-size: 16px;
}

/* Textarea */
.form-input[rows="3"] {
    resize: none;
}


.display-1{
    font-size: 4em!important;
}

/* Typewriter Text Styling */
#typewriter-line1,
#typewriter-line2 {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    border-right: 3px solid #000; /* Cursor effect */
    animation: blink 0.5s step-end infinite;
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Blinking Cursor Animation */
@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #000;
    }
}

/* Hide the Cursor */
.hidden-cursor {
    border-right: none !important;
}

.responsive-subheading {
    font-size: 24px; /* Default size */
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Custom Class for the Heading */
.custom-heading {
    color: #ffffff; /* White color for headings in this section */
    margin-bottom: 5px;
}

/* Icon Box Styling */
.icon-box {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    text-align: left; /* Align text to the left */
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.custom-p {
    color: #cccccc; /* Light gray for the paragraph text */
    margin-bottom: 0;
}

/* Service Item Styling */
.service-item {
    overflow: hidden;
    border-radius: 10px;
    height: 250px; /* Set specific height */
    position: relative;
}

.service-img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Ensures image fits within the container */
    transition: transform 0.3s ease;
}

/* Text Overlay Styling */
.service-text {
    position: absolute;
    bottom: 0; /* Aligned at the bottom of the image */
    left: 0;
    width: 100%;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.03)); /* Gradient effect */
    color: #ffffff; /* White text for contrast */
    padding: 20px 0;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.service-text >h5{
    color: #ffffff;
}

/* Hover Effects */
.service-item:hover .service-img {
    transform: scale(1.1); /* Slight zoom on hover */
}

.service-item:hover .service-text {
    background: rgba(255, 165, 0, 0.8); /* Orange background on hover */
    color: #000; /* Black text on hover */
}

.service-item:hover h5 {
    color: #000; /* Black text on hover */
}

/* Remove gaps between columns */
.no-gap-row > [class^="col-"] {
    padding: 0 !important; /* Remove padding from columns */
}

/* Rounded corners for first and last div */
.service-item.rounded-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.service-item.rounded-right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Ensure images fill the divs without gaps */
.service-img {
    height: 100%; /* Maintain full height */
    width: 100%; /* Maintain full width */
    object-fit: cover; /* Crop to fit container */
}

/* Add margin to ensure the row doesn't touch the viewport edges */
.no-gap-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}



/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .form-container {
        padding: 15px; /* Reduce padding for smaller screens */
        width: 90%; /* Center the form and give some margin on both sides */
        margin: 0 auto; /* Center alignment */
    }

    #typewriter-line1, 
    #typewriter-line2 {
        font-size: 30px; /* Smaller font size for tablets and smaller screens */
    }

    .form-input {
        height: 40px; /* Adjust input height */
        font-size: 14px; /* Smaller font for inputs */
    }

    h3 {
        font-size: 20px; /* Smaller heading font size */
    }

    p {
        font-size: 14px; /* Smaller paragraph font size */
    }

    button {
        padding: 8px 20px; /* Adjust button padding */
        font-size: 14px; /* Smaller button font size */
    }

    .responsive-subheading {
        font-size: 18px; /* Smaller font size for tablets */
    }
}

@media (max-width: 576px) {
    #typewriter-line1, 
    #typewriter-line2 {
        font-size: 29px; /* Further reduction for mobile screens */
    }

    .responsive-subheading {
        font-size: 14px; /* Smaller font size for mobile screens */
    }
}

/* Ensure form fits on the screen without scrolling */
@media (max-height: 800px) {
    .form-container {
        max-height: 90vh; /* Ensure form height stays within the viewport */
        overflow-y: auto; /* Add scroll if content exceeds viewport height */
    }
}


@media (max-width: 991.98px) {
    .bg-hero {
        background-size: cover;
    }
}

.about-start,
.about-end {
    background: url(../img/about-bg.jpg) center center no-repeat;
    background-size: contain;
}

@media (min-width: 992px) {
    .about-start {
        position: relative;
        margin-right: -90px;
        z-index: 1;
    }

    .about-end {
        position: relative;
        margin-left: -90px;
        z-index: 1;
    }
}

.service-item,
.contact-item {
    background: url(../img/service.jpg) top center no-repeat;
    background-size: cover;
    transition: .5s;
}

.service-item:hover,
.contact-item:hover {
    background: url(../img/service.jpg) bottom center no-repeat;
    background-size: cover;
}

.service-item .service-icon,
.contact-item .contact-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    color: var(--secondary);
    background: #FFFFFF;
    transform: rotate(-45deg);
}

.service-item .service-icon div,
.contact-item .contact-icon div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transition: .5s;
}

.service-item .service-icon i,
.contact-item .contact-icon i {
    transform: rotate(45deg);
    transition: .5s;
}

.service-item:hover .service-icon div,
.contact-item:hover .contact-icon div {
    background: var(--secondary);
}

.service-item:hover .service-icon i,
.contact-item:hover .contact-icon i {
    color: var(--primary);
}

.service-item a.btn {
    position: relative;
    bottom: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: 0;
    opacity: 1;
}

.bg-quote {
    background: url(../img/quote.jpg) top right no-repeat;
    background-size: contain;
}

@media (max-width: 991.98px) {
    .bg-quote {
        background-size: cover;
    }
}

.team-item {
    position: relative;
    margin-bottom: 45px;
}

.team-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url(../img/team.jpg) bottom center no-repeat;
    background-size: cover;
    height: 90px;
    padding: 0 30px;
    right: 45px;
    left: 45px;
    bottom: -45px;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    height: 100%;
    bottom: 0;
}

.team-social {
    position: absolute;
    transition: .1s;
    transition-delay: .0s;
    opacity: 0;
}

.team-item:hover .team-social {
    transition-delay: .3s;
    opacity: 1;
}

.bg-testimonial {
    background: url(../img/testimonial.jpg) top left no-repeat;
    background-size: contain;
}

@media (max-width: 991.98px) {
    .bg-testimonial {
        background-size: cover;
    }
}

.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(--secondary);
    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: 60px;
    height: 60px;
}

.bg-call-to-action {
    background: url(../img/call-to-action.jpg) top right no-repeat;
    background-size: contain;
}

.bg-footer {
    background: url(../img/footer.jpg) center center no-repeat;
    background-size: contain;
}

@media (max-width: 991.98px) {
    .bg-call-to-action,
    .bg-footer {
        background-size: cover;
    }
}