/* gallery css start */
.gallery {
    padding: 10px;
    max-width: 95%;
    margin: 0 auto;
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
}

.v-stretch {
    grid-row: span 2;
}

.h-stretch {
    grid-column: span 2;
}

.big-stretch {
    grid-row: span 2;
    grid-column: span 2;
}

.gallery div img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery div {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.image-container .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.4s ease;

    color: #fff;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.image-container:hover img {
    transform: scale(1.1);
}

.image-container:hover .overlay {
    opacity: 1;
    bottom: 0px;
}

.overlay p {
    margin: 5px 0;
    font-size: 11px;
}

/*** top overlay effect start ***/
.image-container .top-overlay {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.5s ease, top 0.4s ease;
    color: #fff;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.image-container:hover .top-overlay {
    opacity: 1;
    top: 0;
}

.top-overlay p {
    margin: 5px 0;
    font-size: 13px;
}

/*** top overlay effect end ***/

.checkerboard-bg {
    background-color: #f0f0f0;
    background-image: linear-gradient(45deg, #cccccc 25%, transparent 25%),
        linear-gradient(-45deg, #cccccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #cccccc 75%),
        linear-gradient(-45deg, transparent 75%, #cccccc 75%);
    background-size: 10px 10px;
    /* Size of the checkerboard squares */
    background-position: 0 0, 5px 0, 5px -5px, 0px 5px;
    /* Positioning for the pattern */
    border: 1px solid #ccc;
    /* Optional: border to better visualize the container */
    padding: 5px;
}

/** responsive code*/
@media (max-width: 560px) {
    .v-stretch {
        grid-row: span 1;
    }

    .h-stretch {
        grid-column: span 1;
    }

    .big-stretch {
        grid-row: span 1;
        grid-column: span 1;
    }

    .gallery {
        max-width: 100%;
    }
}

/* gallery css end */

/* CATEGORY BUTTON HOME PAGE START */
.category_wrapper {
    position: relative;
    background: #fff;
    width: 100%;
    border-radius: 13px;
    overflow-x: hidden;
}

.category_wrapper .icon {
    position: absolute;
    top: 0;
    height: 100%;
    width: 60px;
    display: flex;
    align-items: center;
}

.category_wrapper .icon:first-child {
    left: 0;
    background: linear-gradient(90deg, white, transparent);
    display: none;
    justify-content: flex-start;
}

.category_wrapper .icon:last-child {
    right: 0;
    justify-content: flex-end;
    background: linear-gradient(-90deg, white, transparent);
}

.icon i {
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
}

.icon i:hover {
    background: #efedfb;
}

.icon:first-child i {
    margin-left: 10px;
}

.icon:last-child i {
    margin-right: 10px;
}

.category_wrapper .tabs-box {
    display: flex;
    gap: 10px;
    list-style: none;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.category_wrapper .tabs-box.dragging {
    scroll-behavior: auto;
    cursor: grab;
}

.category_wrapper .tabs-box .tab {
    font-size: 1rem;
    white-space: nowrap;
    background: #f5f4fd;
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid #d8d5f2;
    user-select: none;
}

.tabs-box.dragging .tab {
    user-select: none;
    pointer-events: none;
}

.tabs-box .tab a {
    color: rgba(0, 0, 0, 0.744);
    text-decoration: none;
}

.tabs-box .tab:hover {
    border: 1px solid #9c9aac;
}

.tabs-box .tab:hover>a {
    color: #000;
}

.tabs-box .tab.active,
.tabs-box .tab.active>a {
    color: white;
    background: #3155e4;
    border-color: transparent;
}

/* CATEGORY BUTTON HOME PAGE END */

/* Custom Scrollbar Styling */
/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #bee4f9;
}

::-webkit-scrollbar-thumb {
    background: #ff5858;
}

::-webkit-scrollbar-thumb:hover {
    background: #f45b5b;
}

/* hero section css start */
.hero-section {
    background-image: url("../img/hero2.png");
    background-repeat: no-repeat;
    background-size: cover;
    /* min-height: 95vh; */
    height: auto;
    /* background-attachment: fixed; */
}

.hero-img-box img {
    /* border-radius: 50%; */
    width: 500px;
    height: 500px;
    /* border: 5px solid var(--main-color); */
}

@media (max-width: 767.98px) {
    .hero-img-box img {
        width: 300px;
        height: 300px;
    }
}

/* Smaller font size for mobile devices */
@media (max-width: 480px) {
    .display-3 {
        font-size: 2.1rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }
}

/* hero section css end */

/* service css start */
.service-box {
    position: relative;
    padding: 70px 15px 20px 15px;
    cursor: pointer;
    height: 100%;
    transition: all 0.5s;
    background: linear-gradient(-20deg, #f3d7d7, transparent);
    flex-direction: column;
    position: relative;
    text-align: center;
}

.service-box .img-box {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid white;
    border-radius: 50%;
}

.service-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--main-color);
    object-fit: cover;
    transition: border-color 0.5s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px,
        rgba(0, 0, 0, 0.22) 0px 12px 9px;
}

.service-box:hover img {
    border: 4px solid #10ab96;
}

/* service css end */

/* posts css start */
.text-teal {
    color: var(--teal);
}

/* posts css end */

/* projects css start */
.rating-star-css {
    font-size: 10px;
    color: #ffca00;
}

/* projects css end */

body {
    overflow-x: hidden;
}
.display-5 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}
.feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffd2d3;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    margin-bottom: 12px;
    max-width: 350px;
}

.feature-pill span {
    color: #111;
}

.project-image-wrapper {
    overflow: hidden;
}

.project-image-wrapper img {
    transition: transform 0.4s ease;
}

.project-image-wrapper:hover img {
    transform: scale(1.05);
}


.video-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-image-wrapper:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 4rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.video-overlay:hover i {
    transform: scale(1.15);
}

.video-modal {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}

.video-modal .modal-content {
    background: #0f0f0f;
    border-radius: 18px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.video-modal .modal-dialog {
    transform: scale(0.9);
    transition: 0.35s ease;
}

.video-modal.show .modal-dialog {
    transform: scale(1);
}


.video-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.video-close-btn:hover {
    background: #ff4d4d;
    transform: rotate(90deg);
}


#videoFrame {
    border: none;
}

@media (max-width: 768px) {
    .video-modal .modal-dialog {
        margin: 8px;
    }

    .video-close-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}
