/* ============================================
   Scotchstone Holdings – Master Stylesheet
   Fully optimized, no duplicates, mobile-first
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400..900&family=Roboto:wght@400;500;700&display=swap');

/* ---------- Global Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
body {
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
}
.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* ---------- Spinner ---------- */
#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 ---------- */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-secondary);
    color: var(--bs-white);
    border-radius: 15px !important;
    transition: 0.5s;
    z-index: 99;
}
.back-to-top:hover {
    background: var(--bs-primary);
}
@media (max-width: 767.98px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 44px;
        height: 44px;
    }
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 15px !important;
}
.btn-square, .btn-sm-square, .btn-md-square, .btn-lg-square, .btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }
.btn-xl-square { width: 66px; height: 66px; }

.btn.btn-primary {
    border: none;
}
.btn.btn-primary:hover {
    background: var(--bs-secondary);
}
.btn.btn-secondary {
    color: var(--bs-white);
    border: none;
}
.btn.btn-secondary:hover {
    background: var(--bs-primary);
}

/* Global button override */
button, input[type="button"], input[type="submit"], input[type="reset"] {
    border-radius: 15px !important;
}

/* ---------- Topbar (if used) ---------- */
.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary);
}

/* ---------- Navbar ---------- */
.sticky-top {
    transition: 1s;
}
.logo {
    border-radius: 10px;
    margin-right: 20px;
    height: 50px;
    width: auto;
}
.navbar {
    background: var(--bs-light) !important;
}
.navbar .navbar-brand h1 {
    font-size: 1.75rem;
    transition: font-size 0.3s ease;
    margin-bottom: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.navbar .navbar-nav .nav-link {
    position: relative;
    padding: 10px;
    font-weight: 400;
    font-family: "Playfair Display", serif;
    font-size: 17px;
    transition: .5s;
    z-index: 99;
    color: var(--bs-dark);
}
.navbar .navbar-nav .nav-item {
    margin: 0 5px;
}
.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    border: 2px solid var(--bs-secondary);
    opacity: 0;
    transition: 0.5s;
    z-index: 2 !important;
}
.navbar .navbar-nav .nav-item::before {
    top: 0;
    left: 0;
    border-bottom: 0;
    border-right: 0;
}
.navbar .navbar-nav .nav-item::after {
    bottom: 0;
    right: 0;
    border-top: 0;
    border-left: 0;
}
.navbar .navbar-nav .nav-item:hover::after,
.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before {
    width: 50%;
    height: 50%;
    opacity: 1;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}
.navbar .navbar-toggler {
    color: var(--bs-secondary);
    border: none;
    background: var(--bs-light);
    box-shadow: none !important;
    outline: none !important;
}
.navbar .navbar-toggler:focus,
.navbar .navbar-toggler:hover,
.navbar .navbar-toggler:active {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.navbar .navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(108, 117, 125, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar .nav-item .dropdown-menu {
    background: var(--bs-light);
    border-radius: 15px !important;
    transition: 0.5s;
}
.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    opacity: 1;
}
.dropdown .dropdown-menu .dropdown-item {
    transition: 0.5s;
}
.dropdown .dropdown-menu .dropdown-item:hover,
.dropdown .dropdown-menu .dropdown-item.active {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        margin-top: 15% !important;
        transform: rotateX(-75deg);
        transform-origin: 0 0;
        border: 0;
        opacity: 0;
        z-index: 9;
    }
}

/* ---------- Navbar Responsive ---------- */
@media (max-width: 991.98px) {
    .navbar-brand {
        display: flex;
        align-items: center;
        max-width: 70%;
    }
    .navbar-brand h1 {
        font-size: 1.5rem !important;
        white-space: normal;
        line-height: 1.2;
        max-width: 100%;
    }
    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 16px;
    }
    .navbar .navbar-nav .nav-item {
        margin: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .navbar .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .navbar .nav-item .dropdown-menu {
        border: none;
        background: rgba(255,255,255,0.8);
        padding-left: 15px;
    }
    .navbar .nav-item .dropdown-item {
        white-space: normal;
        padding: 8px 0;
    }
    .navbar .navbar-nav .nav-item::after,
    .navbar .navbar-nav .nav-item::before,
    .navbar .navbar-nav .nav-item:hover::after,
    .navbar .navbar-nav .nav-item:hover::before,
    .navbar .navbar-nav .nav-item.active::after,
    .navbar .navbar-nav .nav-item.active::before {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .navbar-brand h1 {
        font-size: 1.25rem !important;
    }
    .logo {
        height: 40px;
        margin-right: 10px;
    }
}
@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: 65%;
    }
    .navbar-brand h1 {
        font-size: 0 !important;
        white-space: normal;
        display: flex;
        align-items: center;
    }
    .navbar-brand h1::after {
        content: "SCOTCHSTONE HOLDINGS";
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--bs-secondary);
        margin-left: 8px;
        white-space: nowrap;
        line-height: 1.2;
    }
    .logo {
        height: 35px;
        margin-right: 8px;
    }
    .navbar .navbar-toggler {
        padding: 4px 8px;
    }
}

/* ---------- Modal Search ---------- */
#searchModal .modal-content {
    background: rgba(255, 255, 255, .6);
    border-radius: 15px !important;
}

/* ---------- Breadcrumb / Page Header ---------- */
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(30, 30, 31, 0.7), rgba(27, 27, 28, 0.7)), url(../img/carousel-2.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0;
}
.bg-breadcrumb .breadcrumb {
    position: relative;
}
.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}
.bg-breadcrumb .breadcrumb-item.active {
    color: var(--bs-secondary);
}

/* ---------- Carousel (fully fixed) ---------- */
.carousel .carousel-inner .carousel-item {
    position: relative;
    overflow: hidden;
    height: 100vh;
}
.carousel .carousel-inner .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: image-zoom 10s infinite alternate;
}
@keyframes image-zoom {
    0% { transform: scale(1); filter: blur(0px); opacity: 1; }
    25% { transform: scale(1.15); filter: blur(3px); opacity: 0.9; }
    50% { transform: scale(1.3); filter: blur(10px); opacity: 0.7; }
    75% { transform: scale(1.15); filter: blur(3px); opacity: 0.9; }
    100% { transform: scale(1); filter: blur(0px); opacity: 1; }
}
.carousel .carousel-inner .carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}
.carousel .carousel-inner .carousel-item .carousel-caption {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}
.carousel .carousel-indicators {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    z-index: 5;
}
.carousel .carousel-indicators li {
    margin-right: 30px !important;
    width: 10px;
    height: 10px;
    border: 6px solid var(--bs-secondary);
    background: var(--bs-white);
    transition: 0.5s;
    border-radius: 15px !important;
}
.carousel .carousel-indicators li.active {
    border: 10px solid var(--bs-primary);
}
.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    background: transparent;
}
.carousel .carousel-control-prev .carousel-control-prev-icon,
.carousel .carousel-control-next .carousel-control-next-icon {
    position: absolute;
    padding: 25px 30px;
    background: var(--bs-primary);
    border-radius: 15px !important;
}
.carousel .carousel-control-prev .carousel-control-prev-icon { left: 0; }
.carousel .carousel-control-next .carousel-control-next-icon { right: 0; }
.carousel .carousel-control-prev .carousel-control-prev-icon:hover,
.carousel .carousel-control-next .carousel-control-next-icon:hover {
    background: var(--bs-secondary);
}

/* ---------- Carousel Responsive ---------- */
@media (max-width: 991.98px) {
    .carousel .carousel-inner .carousel-item { height: 600px; }
    .carousel-item .carousel-caption { padding: 0 20px; }
}
@media (max-width: 767.98px) {
    .carousel .carousel-inner .carousel-item { height: 500px; }
    .carousel-item .carousel-caption h1.display-1 {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    .carousel-item .carousel-caption p.fs-4 { font-size: 1rem !important; }
    .carousel-item .carousel-caption p.fs-5 {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }
    .carousel .carousel-control-prev .carousel-control-prev-icon,
    .carousel .carousel-control-next .carousel-control-next-icon {
        padding: 15px 20px;
    }
    .carousel .carousel-control-prev .carousel-control-prev-icon i,
    .carousel .carousel-control-next .carousel-control-next-icon i {
        font-size: 1.2rem;
    }
}
@media (max-width: 575.98px) {
    .carousel .carousel-inner .carousel-item { height: 400px; }
    .carousel-item .carousel-caption h1.display-1 {
        font-size: 1.6rem !important;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    .carousel-item .carousel-caption p.fs-4 {
        font-size: 1rem !important;
        margin-bottom: 5px;
    }
    .carousel-item .carousel-caption p.fs-5 {
        display: block;
        font-size: 0.85rem !important;
        margin-bottom: 15px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .carousel .carousel-indicators {
        margin-bottom: 15px;
    }
    .carousel .carousel-indicators li {
        margin-right: 15px !important;
        width: 8px;
        height: 8px;
        border-width: 4px;
    }
    .carousel .carousel-indicators li.active { border-width: 8px; }
    .carousel-caption .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .carousel-caption .btn {
        width: 80%;
        max-width: 220px;
        margin: 0 !important;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem;
    }
    @keyframes image-zoom {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
}

/* ---------- About ---------- */
.about .about-item-content-img {
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-primary) var(--bs-primary) var(--bs-secondary);
    border-radius: 15px !important;
    overflow: hidden;
}
.about .about-item-image {
    position: relative;
    background: var(--bs-light);
    background-image: url(../img/about-bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    border-radius: 15px !important;
    overflow: hidden;
}
.about .about-item-image .img-1,
.about .about-item-image .img-2,
.about .about-item-image .about-item-image-content img {
    border-radius: 15px !important;
}
.about .about-item-image .img-1 {
    margin-bottom: 250px;
    margin-right: 0;
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-light) var(--bs-light) var(--bs-secondary);
    z-index: 3;
}
.about .about-item-image .img-2 {
    margin-top: 250px;
    margin-left: 0;
    border: 4px solid;
    border-color: var(--bs-light) var(--bs-secondary) var(--bs-secondary) var(--bs-light);
    z-index: 3;
}
.about .about-item-image::before {
    width: 80%;
    height: 80%;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dotted var(--bs-white);
    background: var(--bs-primary);
    z-index: 2;
    border-radius: 15px !important;
}
.about .about-item-image .about-item-image-content {
    width: 55%;
    height: 55%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bs-secondary);
    border: 4px solid var(--bs-primary);
    opacity: 0.9;
    z-index: 4;
    border-radius: 15px !important;
    overflow: hidden;
}
.about .about-item-image .about-item-image-effect {
    position: absolute;
    top: 0;
    right: 0;
}
@media (max-width: 767.98px) {
    .about .about-item-image {
        margin-bottom: 40px;
    }
    .about .about-item-image .img-1 { margin-bottom: 100px; }
    .about .about-item-image .img-2 { margin-top: 100px; }
    .about .about-item-image .about-item-image-content {
        width: 70%;
        height: 70%;
    }
    .about .about-item-content h2.display-4 {
        font-size: 1.8rem !important;
    }
}
@media (max-width: 575.98px) {
    .about .about-item-image .img-1 { margin-bottom: 50px; }
    .about .about-item-image .img-2 { margin-top: 50px; }
    .about .about-item-image .about-item-image-content {
        width: 80%;
        height: 80%;
    }
    .about .about-item-content h2.display-4 {
        font-size: 1.5rem !important;
    }
    .about .about-item-content .row.g-4 { row-gap: 1rem; }
    .about .about-item-content .d-flex h4 { font-size: 1.1rem; }
}

/* ---------- Features ---------- */
.feature .feature-item {
    position: relative;
    transition: 0.5s;
    border-radius: 15px !important;
    overflow: hidden;
    background: var(--bs-white);
}
.feature .feature-item:hover {
    background: var(--bs-white);
    border: 1px solid transparent;
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
}
.feature .feature-item:hover a { transition: 0.5s; }
.feature .feature-item:hover a:hover { color: var(--bs-secondary); }
.feature .feature-item .feature-img {
    border-radius: 15px !important;
    overflow: hidden;
}
.feature .feature-item .feature-img img {
    border: transparent;
    transition: 0.5s;
    border-radius: 15px !important;
}
.feature .feature-item:hover .feature-img img {
    border: 1px solid var(--bs-secondary);
}
@media (max-width: 767.98px) {
    .feature .feature-item { margin-bottom: 20px; padding: 1.5rem !important; }
    .feature .feature-item .h4 { font-size: 1.1rem; }
}

/* ---------- SERVICES – CLEAN HOVER OVERLAY (FIXED) ---------- */
.service .service-item {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.service .service-item .service-img {
    width: 100%;
    aspect-ratio: 16 / 12;
    overflow: hidden;
}
.service .service-item .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.service .service-item:hover .service-img img {
    transform: scale(1.05);
}
.service .service-item .service-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    pointer-events: none;
}
.service .service-item:hover .service-content {
    opacity: 1;
}
.service .service-item .service-content .btn-xl-square {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-secondary);
    border-radius: 15px;
    margin-bottom: 10px;
}
.service .service-item .service-content a.fs-4 {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
}
.service .service-item .service-content a.fs-4:hover {
    color: var(--bs-secondary);
}
.service .service-item .service-content p {
    color: #f0f0f0;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.service .service-item .service-content .btn {
    background: var(--bs-secondary);
    border: none;
    padding: 8px 20px;
    border-radius: 15px;
    color: white;
}
.service .service-item .service-tytle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: transform 0.3s ease;
    z-index: 2;
    border-radius: 0 0 15px 15px;
}
.service .service-item:hover .service-tytle {
    transform: translateX(100%);
}
.service .service-item .service-tytle .btn-xl-square {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-secondary);
    border-radius: 15px;
}
@media (max-width: 991.98px) {
    .service .service-item {
        aspect-ratio: auto;
        min-height: 400px;
    }
    .service .service-item .service-img {
        display: none;
    }
    .service .service-item .service-content {
        position: relative;
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.85);
        height: 100%;
        pointer-events: auto;
    }
    .service .service-item .service-tytle {
        display: none !important;
    }
}

/* ---------- Fact Counter ---------- */
.counter {
    background: linear-gradient(rgba(30, 30, 31, 0.9), rgb(30, 30, 30)), url(../img/counter.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}
.counter .counter-btn:hover {
    background: var(--bs-white);
    color: var(--bs-secondary);
}
.counter .counter-box {
    padding-right: 20px;
    padding-bottom: 20px;
    border-radius: 15px !important;
    overflow: hidden;
}
.counter .counter-item {
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}
.counter .counter-item .counter-item-style {
    position: absolute;
    width: calc(100% - 20px);
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    z-index: 2;
    border-radius: 15px !important;
}
.counter .counter-item .counter-item-inner {
    position: relative;
    top: 20px;
    left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    background: var(--bs-white);
    box-shadow: 20px 20px rgba(255, 94, 21, 1);
    z-index: 3;
    border-radius: 15px !important;
    overflow: hidden;
}
.counter .counter-item .counter-counting {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-primary);
    font-size: 30px;
    border-radius: 15px !important;
}
@media (max-width: 991.98px) {
    .counter .counter-box { padding-right: 10px; padding-bottom: 10px; }
}
@media (max-width: 767.98px) {
    .counter .counter-item .counter-item-inner {
        top: 15px;
        left: 15px;
        padding: 1.5rem !important;
        box-shadow: 10px 10px rgba(255, 94, 21, 0.8) !important;
    }
    .counter .counter-item .counter-counting span { font-size: 1.5rem !important; }
}
@media (max-width: 575.98px) {
    .counter .counter-item .counter-item-inner { padding: 1rem !important; }
    .counter .counter-item i { font-size: 2rem !important; }
    .counter .counter-item h4 { font-size: 1rem; margin: 0.8rem 0 !important; }
}

/* ---------- Projects ---------- */
.project .project-item {
    border-radius: 15px !important;
    overflow: hidden;
}
.project .project-item .project-img {
    position: relative;
    border-radius: 15px !important;
    overflow: hidden;
}
.project .project-item .project-img img {
    border-radius: 15px !important;
}
.project .project-item .project-img::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    z-index: -1;
    border-radius: 15px !important;
}
.project .project-item .project-content a.h4 { transition: 0.5s; }
.project .project-item:hover .project-content a.h4:hover { color: var(--bs-secondary); }
@media (max-width: 767.98px) {
    .project .project-item .row { flex-direction: column; }
    .project .project-item .col-md-4 { width: 100%; }
    .project .project-item .col-md-8 { width: 100%; padding-top: 15px; }
    .project .project-item .project-img { margin-bottom: 10px; }
    .project .project-item .project-img img { max-width: 80%; }
}
@media (max-width: 575.98px) {
    .project .project-item .project-img img { max-width: 100%; }
    .project .project-item .project-content a.h4 { font-size: 1.2rem; }
}

/* ---------- Team ---------- */
.team .team-item {
    position: relative;
    z-index: 1;
    border-radius: 15px !important;
    overflow: hidden;
}
.team .team-item .team-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px !important;
}
.team .team-item .team-img img { border-radius: 15px !important; }
.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .2);
    transition: 0.5s;
    z-index: 2;
}
.team .team-item:hover .team-img::after { height: 100%; }
.team .team-item .team-img .team-icon {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    transform: scale(-1);
    margin-bottom: 100%;
    background: transparent;
    transition: 0.5s;
    opacity: 0;
    z-index: 5;
}
.team .team-item:hover .team-img .team-icon {
    transform: scale(1);
    margin-bottom: 0;
    opacity: 1;
}
.team .team-item .team-border-style-1,
.team .team-item .team-border-style-2,
.team .team-item .team-border-style-3,
.team .team-item .team-border-style-4 {
    border-radius: 15px !important;
}
.team .team-item .team-border-style-1,
.team .team-item .team-border-style-2 {
    width: 50%;
    height: 50%;
    position: absolute;
    background: var(--bs-secondary);
    transition: 0.5s;
    z-index: -1;
}
.team .team-item .team-border-style-1 { top: 0; left: 0; }
.team .team-item .team-border-style-2 { right: 0; bottom: 0; }
.team .team-item .team-border-style-3,
.team .team-item .team-border-style-4 {
    width: 0;
    height: 0;
    position: absolute;
    background: var(--bs-secondary);
    transition: 0.5s;
    z-index: -1;
}
.team .team-item .team-border-style-3 { top: 0; right: 0; }
.team .team-item .team-border-style-4 { left: 0; bottom: 0; }
.team .team-item:hover .team-border-style-1,
.team .team-item:hover .team-border-style-2 { width: 0%; height: 0%; }
.team .team-item:hover .team-border-style-3,
.team .team-item:hover .team-border-style-4 { width: 50%; height: 50%; }

/* ---------- Blog ---------- */
.blog .blog-item {
    border-radius: 15px !important;
    overflow: hidden;
}
.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px !important;
}
.blog .blog-item .blog-img img {
    transition: 0.5s;
    border-radius: 15px !important;
}
.blog .blog-item:hover .blog-img img { transform: scale(1.2); }
.blog .blog-item .blog-content {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    border-radius: 15px !important;
    overflow: hidden;
}
.blog .blog-item .blog-content a { transition: 0.5s; }
.blog .blog-item:hover .blog-content a:hover { color: var(--bs-secondary); }
@media (max-width: 767.98px) {
    .blog .blog-item { margin-bottom: 20px; }
    .blog .blog-item .blog-content { padding: 1.2rem !important; }
    .blog .blog-item .blog-content a.h4 { font-size: 1.2rem; }
}
@media (max-width: 575.98px) {
    .blog .blog-item .blog-content a.h4 { font-size: 1.1rem; }
    .blog .blog-item .blog-content p { font-size: 0.9rem; }
}

/* ---------- Testimonial ---------- */
.testimonial .owl-nav .owl-prev,
.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    transition: 0.5s;
    border-radius: 15px !important;
}
.testimonial .owl-nav .owl-prev { right: 0; }
.testimonial .owl-nav .owl-next { right: 88px; }
.testimonial .owl-nav .owl-prev:hover,
.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-left: 20px;
    margin-top: 20px;
}
.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    border: 1px solid var(--bs-secondary);
    background: var(--bs-primary);
    transition: 0.5s;
    border-radius: 15px !important;
}
.testimonial-carousel .owl-dots .owl-dot.active {
    border: 1px solid var(--bs-primary);
    background: var(--bs-secondary) !important;
}
.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--bs-white);
}
.testimonial-item {
    border-radius: 15px !important;
    overflow: hidden;
}
.testimonial-item img {
    border-radius: 15px !important;
}
@media (max-width: 991.98px) {
    .testimonial .owl-nav { display: none; }
    .testimonial-carousel .owl-dots { margin-top: 30px; }
}
@media (max-width: 767.98px) {
    .testimonial-item .d-flex { flex-wrap: wrap; }
    .testimonial-item .me-4 { margin-right: 1rem !important; }
    .testimonial-item img { width: 70px !important; height: 70px !important; }
    .testimonial-item h4 { font-size: 1rem; }
}
@media (max-width: 575.98px) {
    .testimonial-item { padding: 1rem !important; }
    .testimonial-item .border-bottom {
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .testimonial-item p { font-size: 0.85rem; }
}

/* ---------- Contact ---------- */
.contact .contact-map {
    position: relative;
    overflow: hidden;
    padding: 20px;
    z-index: 1;
    border-radius: 15px !important;
}
.contact .contact-map::before {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--bs-primary);
    z-index: -1;
    border-radius: 15px !important;
}
.contact .contact-map::after {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bs-secondary);
    z-index: -1;
    border-radius: 15px !important;
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(rgba(29, 30, 30, 0.9), rgb(29, 29, 30)), url(../img/footer-img.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}
.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
    border-radius: 5px !important;
    padding: 2px 5px;
}
.footer .footer-item p { line-height: 35px; }
.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-secondary);
}
.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i { transition: 0.5s; }
.footer .footer-item .footer-btn a:hover { background: var(--bs-white); }
.footer .footer-item .footer-btn a:hover i { color: var(--bs-primary) !important; }
@media (max-width: 991.98px) {
    .footer .footer-item { margin-bottom: 30px; }
}
@media (max-width: 767.98px) {
    .footer .footer-item h4 { font-size: 1.2rem; margin-bottom: 1rem !important; }
    .footer .footer-item a { line-height: 30px; }
}
@media (max-width: 575.98px) {
    .footer .footer-item .position-relative { width: 100% !important; }
    .footer .footer-item input.form-control {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem;
    }
    .footer .footer-item button {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.8rem;
    }
}

/* ---------- Copyright ---------- */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}
.copyright span,
.copyright a { font-size: 14px; }
@media (max-width: 767.98px) {
    .copyright .row { text-align: center !important; }
    .copyright .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }
}
@media (max-width: 575.98px) {
    .copyright span,
    .copyright a { font-size: 12px; }
}

/* ---------- Global Border Radius (Consolidated) ---------- */
.feature-item,
.service-item,
.team-item,
.blog-item,
.testimonial-item,
.project-item,
.counter-box,
.about-item-image,
.about-item-content-img,
.feature-img,
.service-content,
.service-tytle,
.team-img,
.blog-img,
.project-img,
.carousel-caption,
.modal-content,
.dropdown-menu,
.carousel-indicators li,
.btn-xl-square,
.btn-md-square,
.btn-lg-square,
.btn-sm-square,
.btn-square,
.form-control,
.input-group-text,
.team-border-style-1,
.team-border-style-2,
.team-border-style-3,
.team-border-style-4,
.counter-item-inner,
.counter-item-style,
.counter-counting {
    border-radius: 15px !important;
    overflow: hidden;
}
.navbar,
.footer,
.copyright,
.topbar,
.bg-breadcrumb {
    border-radius: 0 !important;
}

/* ---------- Responsive Typography & Spacing ---------- */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: 1.8rem !important;
    }
    .fs-5 {
        font-size: 0.9rem !important;
    }
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ---------- HERO BUTTONS – SIDE BY SIDE ON MOBILE ---------- */
@media (max-width: 575.98px) {
    .carousel-caption .d-flex {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .carousel-caption .btn {
        width: auto !important;
        min-width: 160px;
        margin: 0 !important;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem;
        flex: 0 1 auto;
    }
}
@media (max-width: 359.98px) {
    .carousel-caption .d-flex {
        flex-direction: column !important;
        gap: 8px;
    }
    .carousel-caption .btn {
        width: 80% !important;
        max-width: 220px;
    }
}

/* ---------- Utility ---------- */
.wow {
    visibility: visible !important;
}