body {
    font-family: 'DM Sans', sans-serif;
    scroll-behavior: smooth;
}

/* Set max-width for container */
.container {
    max-width: 1400px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    height: 500px;
}

.image-grid>div {
    overflow: hidden;
    border-radius: 15px;
}

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

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

.image-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.image-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.image-3 {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

.image-4,
.image-5,
.image-6 {
    grid-row: 3 / 4;
}

/* Enhanced mobile responsiveness */
@media (max-width: 1024px) {
    .image-grid {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .image-grid {
        height: 300px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 8px;
    }
    
    .image-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .image-2 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .image-3 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .image-4 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .image-5 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .image-6 {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
    }
    
    /* Improve mobile navigation button */
    #menu-toggle, #menu-close {
        padding: 0.5rem;
        border-radius: 0.375rem;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .image-grid {
        height: 250px;
    }
    
    h1.text-5xl {
        font-size: 2.5rem;
    }
    
    h2.text-3xl {
        font-size: 1.75rem;
    }
    
    .social-icons {
        transform: scale(0.9) translateY(-50%);
    }
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.counter-value {
    transition: all 0.5s ease;
}

/* Testimonial Slider */
.testimonial-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    scroll-snap-align: center;
    padding: 0.5rem;
    min-width: 85%;
}

@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 45%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        min-width: 30%;
    }
}

/* Testimonial Navigation Buttons */
#prev-testimonial,
#next-testimonial {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

#prev-testimonial:hover,
#next-testimonial:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.social-icons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

/* Individual social icon styling */
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    margin: 5px 0;
}

/* Background colors for each icon */
.social-icons a.facebook {
    background-color: #1877f2;
}

.social-icons a.instagram {
    background-color: #e4405f;
}

.social-icons a.messenger {
    background-color: #0099ff;
}

.social-icons a.whatsapp {
    background-color: #25D366;
}

/* Simple opacity hover effect */
.social-icons a:hover {
    opacity: 1;
}

.messenger-chat {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 100;
}

/* Mobile Menu Overlay Styles */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#mobile-menu .bg-white {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#mobile-menu:not(.hidden) .bg-white {
    transform: translateX(0);
}

/* Hide scrollbar for testimonial slider */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}