/********** Template CSS **********/
/********** Template CSS **********/
:root {
    --yellow: #d1a300 !important;
    --white: #FFFFFF !important;
    --black: #000000 !important;
}

/* Prevent Horizontal Scrollbar */
body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

/* Custom Cursor Styles */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: pulse-cursor 1.5s ease-in-out infinite; /* Continuous pulse effect */
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

/* Outer ring for trail effect */
.custom-cursor::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 1.5s ease-in-out infinite;
    opacity: 0.5;
}

.custom-cursor.hover {
    width: 24px;
    height: 24px;
    background: var(--black);
    opacity: 0.9;
    animation: none; /* Stop pulse on hover for a cleaner effect */
}

.custom-cursor.hover::before {
    width: 32px;
    height: 32px;
    border-color: var(--black);
    animation: none; /* Stop ring pulse on hover */
}

/* Pulse animation for cursor */
@keyframes pulse-cursor {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Pulse animation for outer ring */
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

/* Footer Styling */
.footer-main {
    margin-top: 0 !important;
}
.footer-bottom {
    background: rgb(5 18 37) !important;
    padding: 20px 0;
}

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;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-yellow {
    color: var(--black);
    background: var(--yellow);
    border-color: var(--yellow);
}

.btn-yellow:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.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;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background: var(--yellow);
    color: var(--black);
}

.back-to-top:hover {
    background: var(--black);
    color: var(--white);
    transform: scale(1.2);
}

.top-shape {
    position: relative;
    overflow: hidden; /* Contain pseudo-element overflow */
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: 0; /* Adjusted to prevent overflow */
    background: var(--yellow);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 16px 4px;
    font-size: 14px;
    color: var(--black);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 10px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--white);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ca8f0e75;
    z-index: 1;
}

@media (max-width: 576px) {
    .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;
    border-radius: 3px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--yellow);
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
}

.section-title h5::before {
    position: absolute;

    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--yellow);
}

.section-title h5::after {
    position: absolute;
   
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--black);
}

.twentytwenty-wrapper {
    height: 100%;
}

.hero-header {
    background: linear-gradient(#ca8f0e91, rgba(0, 0, 0, 0.85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.bg-appointment {
    background: linear-gradient(#ca8f0e91, rgba(0, 0, 0, 0.85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.appointment-form {
    background: rgba(209, 163, 0, 0.7);
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.15);
}

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius: 100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

.service-item:hover,
.team-item:hover,
.price-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.bg-offer {
    background: url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgba(209, 163, 0, 0.85);
}

.price-carousel {
    overflow: hidden; /* Contain owl-nav */
}

.price-carousel .owl-nav {
    position: absolute;
    width: 100%; /* Adjusted to fit within container */
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0; /* Removed negative offset */
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity .5s ease;
}

.price-carousel:hover .owl-nav {
    opacity: 1;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    background: var(--yellow);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    background: var(--black);
    color: var(--white);
}

.bg-testimonial {
    background: url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgba(209, 163, 0, 0.85);
    overflow: hidden; /* Contain owl-nav */
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%; /* Adjusted to fit within container */
    height: 46px;
    top: calc(50% - 23px);
    left: 0; /* Removed negative offset */
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    background: var(--yellow);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--black);
    color: var(--white);
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}

.pulse-animation {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(209, 163, 0, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(209, 163, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(209, 163, 0, 0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--black);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Topbar */
.topbar {
    background: var(--white);
    padding: 10px 0;
}

.topbar .top-shape {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--black) 100%);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.topbar p {
    margin: 0;
    font-size: 0.9rem;
}

.topbar a {
    color: var(--black);
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
    color: var(--yellow);
}

/* Navbar */
.navbar {
    background: whitesmoke;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    line-height: 1.5;
}

.navbar.sticky-top {
    background: var(--yellow);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    max-width: 150px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--black);
    padding: 6px 12px; /* Adjusted padding for better spacing */
    margin: 0 4px; /* Added margin to prevent overlap */
    position: relative;
    transition: all 0.3s ease;
    
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--yellow);
    color: var(--black);
    transform: scale(1.0); /* Removed scaling to prevent overlap */
}

.navbar-nav .nav-link:focus {
    outline: none; /* Remove default outline */
    background: var(--yellow); /* Match hover/active background */
    color: var(--black); /* Match hover/active color */
    box-shadow: 0 0 0 2px rgba(209, 163, 0, 0.5); /* Subtle focus ring */
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background: var(--white);
    margin-top: 4px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-item {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--black);
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--yellow);
    color: var(--black);
    transform: translateX(1px);
}

.dropdown-item:focus {
    outline: none; /* Remove default outline */
    background: var(--yellow); /* Match hover/active background */
    color: var(--black); /* Match hover/active color */
    box-shadow: 0 0 0 2px rgba(209, 163, 0, 0.5); /* Subtle focus ring */
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 10px; /* Add space above nav items in mobile menu */
    }

    .navbar-nav .nav-link {
        padding: 10px 15px; /* Increased padding for better touch targets */
        font-size: 1rem; /* Slightly larger font for mobile */
        margin: 5px 0; /* Better vertical spacing */
        text-align: left; /* Align left for vertical menu */
    }

    .dropdown-menu {
        margin-top: 0; /* Remove top margin for seamless integration */
        box-shadow: none; /* Remove shadow for flat mobile look */
        border-radius: 0; /* Remove border radius for consistency */
        background: transparent; /* Make background transparent to blend with menu */
        position: static; /* Change position to static for inline display */
        float: none; /* Ensure it doesn't float */
        padding: 0 0 0 20px; /* Indent dropdown items */
        transition: none; /* Remove transition for instant display */
    }

    .dropdown-item {
        font-size: 0.95rem; /* Adjust font size for mobile */
        padding: 10px 15px; /* Better padding for touch */
        color: var(--black); /* Ensure visibility */
    }

    .dropdown-item:hover,
    .dropdown-item.active {
        background: var(--yellow); /* Keep hover effect */
        transform: none; /* Remove transform for simplicity */
    }

    .navbar-collapse {
        background: var(--white); /* Ensure mobile menu has a background */
        padding: 15px; /* Add padding to collapsed menu */
        border-top: 1px solid rgba(0, 0, 0, 0.1); /* Subtle separator */
    }

    .navbar-toggler {
        border: none; /* Remove border if present */
        padding: 10px; /* Better touch area */
    }

    .dropdown.show .dropdown-menu {
        display: block; /* Ensure dropdown is visible when shown */
    }

    .navbar-brand img {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-header {
        padding: 80px 0;
    }

    .service-section {
        padding: 40px 15px;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h2 {
        font-size: 1.8rem;
    }

    .related-service img {
        height: 180px;
    }

    .cta-section {
        padding: 30px;
    }

    .navbar-brand img {
        max-width: 200px;
    }

    .custom-cursor {
        width: 10px;
        height: 10px;
    }

    .custom-cursor::before {
        width: 18px;
        height: 18px;
    }

    .custom-cursor.hover {
        width: 20px;
        height: 20px;
    }

    .custom-cursor.hover::before {
        width: 28px;
        height: 28px;
    }

    /* Additional overall responsiveness fixes */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .col-md-6, .col-lg-4 { /* Stack columns earlier if needed */
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-header {
        padding: 60px 0;
    }

    .service-content h2 {
        font-size: 1.5rem;
    }

    .related-service img {
        height: 160px;
    }

    .cta-section {
        padding: 20px;
    }

    .navbar-brand img {
        max-width: 180px;
    }

    .navbar {
        padding: 4px 0;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem; /* Adjusted for smaller screens */
        padding: 8px 15px;
        margin: 3px 0;
    }

    .dropdown-item {
        font-size: 0.85rem;
        padding: 8px 20px;
    }

    .custom-cursor {
        width: 8px;
        height: 8px;
    }

    .custom-cursor::before {
        width: 16px;
        height: 16px;
    }

    .custom-cursor.hover {
        width: 16px;
        height: 16px;
    }

    .custom-cursor.hover::before {
        width: 24px;
        height: 24px;
    }

    /* Additional overall responsiveness fixes */
    .btn {
        width: 100%; /* Make buttons full-width on small screens */
        margin-bottom: 10px;
    }

    .form-control {
        margin-bottom: 15px;
    }
}

/* Accessibility */
.navbar-nav .nav-link:focus,
.dropdown-item:focus {
    outline: none; /* Override previous outline */
    box-shadow: 0 0 0 2px rgba(209, 163, 0, 0.5); /* Consistent focus ring */
}

a:focus,
button:focus {
    outline: none; /* Remove default outline */
    box-shadow: 0 0 0 2px rgba(209, 163, 0, 0.5); /* Consistent focus ring */
}

img {
    max-width: 100%;
    height: auto;
}

/* Parallax Fix */
.hero-header[data-parallax] {
    background-attachment: fixed;
    background-position: center;
}

/* Service Section */
.service-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--yellow) 100%), url('../img/wave-pattern.svg');
    background-size: cover;
    border-radius: 15px;
    padding: 60px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Service Content */
.service-content {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--black);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.service-content ul {
    list-style: none;
    padding: 0;
}

.service-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.service-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--yellow);
    position: absolute;
    left: 0;
    top: 5px;
}

/* Related Services */
.related-service {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.related-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.related-service img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.5s ease;
}

.related-service:hover img {
    transform: scale(1.1);
}

.related-service .service-content {
    padding: 20px;
}

.related-service h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--black);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--black) 100%);
    border-radius: 15px;
    padding: 40px;
    color: var(--white);
    text-align: center;
}

.cta-section .btn {
    background: var(--white);
    color: var(--black);
    border-radius: 50px;
    padding: 12px 30px;
    transition: transform 0.3s ease;
}

.cta-section .btn:hover {
    transform: scale(1.15);
    background: var(--black);
    color: var(--white);
}

/* Newsletter Section */
#newsletter {
    background: var(--white);
    padding: 40px 0;
}

#newsletter .bg-yellow {
    border-radius: 15px;
    padding: 30px;
    background: var(--yellow);
}

#newsletter .form-control {
    border-radius: 50px 0 0 50px;
    padding: 15px;
}

#newsletter .btn-yellow {
    border-radius: 0 50px 50px 0;
    padding: 15px 20px;
}

/* Sticky Appointment Button */
.sticky-appointment {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 1.5rem;
    padding: 15px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50px;
}

.sticky-appointment:hover {
    transform: scale(1.2);
    background: var(--black);
    color: var(--white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    font-size: 1.5rem;
    padding: 10px;
    background: var(--yellow);
    color: var(--black);
}

.back-to-top:hover {
    background: var(--black);
    color: var(--white);
}

/* Tilt and Parallax Support */
[data-tilt] {
    transform-style: preserve-3d;
}

[data-tilt] img {
    transform: translateZ(20px);
}

[data-parallax] {
    background-attachment: fixed;
    background-position: center;
}