.section-bentogrid {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    position: relative;
    background-color: #000000;
    min-height: 60vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
   
   
    
}

.section-bentogrid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    pointer-events: none;
}
.bento-text-container{
    overflow: visible;
    width: 550px;
}

.bento-text-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    z-index: 3;
}

.bento-text-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    opacity: 0.9;
    margin-bottom: 1rem;
}


.bento-grid-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    flex: 0 0 65%;
    height: 600px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    position: relative;
    z-index: 2;
}


.bento-grid-item {
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    background: #111111;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.bento-item-1 { grid-column: 1 / 2; grid-row: 1; }
.bento-item-2 { grid-column: 2 / 3; grid-row: 1; }
.bento-item-3 { grid-column: 3 / 4; grid-row: 1 / 3; }
.bento-item-4 { grid-column: 1 / 2; grid-row: 2; }
.bento-item-5 { grid-column: 2 / 3; grid-row: 2; }

.bento-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: all 0.3s ease;
}


.bento-grid-item h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.bento-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.bento-feature-header {
    margin-bottom: auto;
    color: #ffffff;
}

.bento-feature-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    color: #ffffff;
}

.bento-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.bento-feature-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.bento-feature-item p,
.bento-feature-item span,
.bento-feature-item div {
    color: #ffffff;
}

.bento-grid-item:hover {
    transform: translateY(-8px);
    border-color: rgba(242, 100, 49, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.bento-grid-item:hover img {
    transform: scale(1.15);
}

.bento-grid-item:hover .bento-overlay {
    opacity: 1;
}

/* Responsive Design */
/* Tablet Responsive */
@media (max-width: 1200px) {
    .section-bentogrid {
        flex-direction: column;
        padding: 60px 5%;
        margin-top: 0;
    }

    .bento-text-container,
    .bento-grid-container {
        flex: 0 0 100%;
    }

    .bento-grid-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 20px 0;
        height: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .bento-grid-container::-webkit-scrollbar {
        display: none;
    }

    .bento-grid-item {
        flex: 0 0 350px;
        height: 450px;
        scroll-snap-align: start;
        margin-right: 10px;
    }

    .bento-item-3 {
        flex: 0 0 350px;
        height: 450px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-bentogrid {
        padding: 1rem;
    }

    .bento-text-container {
        width: 100%;
        padding: 0 1rem;
    }

    .bento-text-container h2 {
        font-size: 2rem;
    }

    .bento-grid-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 0;
        margin: 0;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .bento-grid-container::-webkit-scrollbar {
        display: none;
    }

    .bento-grid-item {
        flex: 0 0 80%;
        height: 250px;
        scroll-snap-align: center;
        margin: 0;
    }

    .bento-item-3 {
        flex: 0 0 80%;
        height: 250px;
    }

    /* First and last items padding */
    .bento-grid-item:first-child {
        margin-left: 20px;
    }

    .bento-grid-item:last-child {
        margin-right: 20px;
        padding-right: 0;
    }

    /* Smooth scrolling */
    .bento-grid-container {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Enhance touch interaction */
    .bento-grid-item {
        touch-action: pan-x pinch-zoom;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s ease;
    }

    .bento-grid-item:active {
        transform: scale(0.98);
    }

    /* Adjust content for better mobile visibility */
    .bento-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(12, 20, 43, 0.95) 0%,
            rgba(12, 20, 43, 0.7) 100%
        );
    }

    .bento-grid-item h3 {
        font-size: 1.2rem;
    }

    .bento-content p {
        font-size: 0.9rem;
    }

    .bento-feature-tag {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .bento-header {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .services-container {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }
}

.bento-header {
   color: white;
   margin-bottom: 1rem;
   font-size: 2.8rem;
    background: none;
    padding: 0;
    box-shadow: none;
    z-index: 10;
    width: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.header-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.current-time {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* General styles for the sliding elements */
.slide-in-left,
.slide-in-up,
.slide-in-down,
.slide-in-right {
    opacity: 0;
    visibility: hidden;  /* Keep them hidden initially, but use opacity for visibility control */
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-500px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adding the animate class to trigger animation */
.slide-in-left.animate,
.slide-in-right.animate,
.slide-in-up.animate,
.slide-in-down.animate {
    visibility: visible;  /* Make sure visibility is set to visible when animated */
    animation-fill-mode: forwards; /* Keep the final state of the animation */
}

.slide-in-left.animate {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right.animate {
    animation: slideInRight 0.8s ease forwards;
}

.slide-in-up.animate {
    animation: slideInUp 0.8s ease forwards;
}

.slide-in-down.animate {
    animation: slideInDown 0.8s ease forwards;
}


.services-container {
    width: 100%;
    max-width: 300px;
    padding: 20px;
}

.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.service-item {
    padding: 12px 12px 12px 35px;
    border-radius: 6px;
    position: relative;
    font-size: 0.95rem;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.service-item:before {
    content: "✓";
    position: absolute;
    left: 12px;
    color: var(--primary-dark);
    font-weight: bold;
}

.service-item:hover {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-container {
        padding: 10px;
    }
    .bento-text-container{
        width: 85%;
    }
    .bento-header{
        font-size: 2rem;
    }
}

@media screen and (min-width: 1920px) {
    .bento-grid-container {
        flex: 0 0 65%;
        height: 800px;
        max-width: 1200px;
    }

    .bento-text-container {
        width: 700px;
    }

    .bento-text-container p {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .service-item {
        font-size: 1.3rem;
    }

    .bento-grid-item h3 {
        font-size: 1.8rem;
    }

    .bento-content p {
        font-size: 1.2rem;
    }

    .bento-header {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .header-content h1 {
        font-size: 4.5rem;
    }
}

@media screen and (min-width: 2560px) {
    .section-bentogrid {
        padding: 0 15%;
        gap: 80px;
    }

    .bento-grid-container {
        height: 1000px;
        max-width: 1500px;
    }

    .bento-text-container {
        width: 900px;
    }

    .bento-text-container p {
        font-size: 1.6rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .service-item {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .bento-grid-item h3 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .bento-content p {
        font-size: 1.4rem;
        line-height: 1.6;
    }

    .bento-grid-item img {
        object-fit: cover;
        height: 100%;
    }

    .bento-header {
        font-size: 4.2rem;
        margin-bottom: 3rem;
    }

    .header-content h1 {
        font-size: 5.5rem;
    }
}
