html {
    overflow-x: hidden;
    font-family: 'Anek Gujarati', sans-serif;
}

body {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: 'Anek Gujarati', sans-serif;
}

* {
    box-sizing: border-box;
    font-family: 'Anek Gujarati', sans-serif;
}

.contain-p p 
{
    margin-top: 10px !important;
}

/* Prevent overflow on all containers */
.container,
section,
div {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.animate-slideUp {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-shimmer {
    animation: shimmer 3s infinite;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    background-size: 1000px 100%;
}

.delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.gradient-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.hover-scale {
    transition: transform 0.4s ease;
    overflow: hidden;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.image-zoom {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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


/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .hover-scale:hover {
        transform: scale(1.01);
    }
    
    .hover-scale:hover .image-zoom {
        transform: scale(1.05);
    }
    
    /* Reduce animation intensity on mobile */
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}



@media (max-width: 640px) {
    .animate-slideUp,
    .animate-fadeIn {
        animation-duration: 0.5s;
    }
    
    .hover-scale {
        transition: transform 0.3s ease;
    }
    
    .image-zoom {
        transition: transform 0.4s ease;
    }
}

/* Prevent horizontal scroll issues */
.overflow-x-hidden {
    overflow-x: hidden !important;
}

/* Ensure cards don't break layout */
.card-container {
    width: 100%;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 640px) {
    .card-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}