/* Ganga Resort - Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Smooth Transitions */
a,
button {
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px;
    color: white;
    text-align: center;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hero Slider Mobile Responsive */
.hero-mobile {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px) {

    /* Mobile hero section - use min-height instead of h-screen to show full image */
    .hero-mobile {
        min-height: 75vh;
        height: auto;
    }

    /* Carousel buttons - smaller on mobile */
    .carousel-item button {
        padding: 0.5rem;
        font-size: 1rem;
    }

    /* Carousel dots - smaller on mobile */
    .carousel-dot {
        height: 0.5rem;
        width: 0.5rem;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-mobile {
        min-height: 70vh;
        height: auto;
    }
}

/* Desktop - Full screen height */
@media (min-width: 1025px) {
    .hero-mobile {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-mobile>div {
        flex: 1;
        height: 100%;
    }

    /* Ensure hero images fill their hero container even if utility classes are missing */
    .hero-mobile > img {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Carousel item proper sizing */
.carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 20px;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    /* Hero text on tablet - optimize line breaks */
    h1 {
        word-break: break-word;
        hyphens: auto;
    }

    /* Ensure images load properly on touch devices */
    img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Mobile-first optimizations for carousel */
@media (max-width: 1024px) {
    .carousel-item {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ensure carousel images cover their slide and sit behind overlays/text */
.carousel-item {
    position: relative;
    overflow: hidden;
}
.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.carousel-item > .absolute.inset-0.bg-black, .carousel-item > div[style*="bg-black"] {
    z-index: 10;
}
.carousel-item .max-w-7xl {
    position: relative;
    z-index: 20;
}

/* Slightly increase overlay darkness for readability */
.hero-mobile .absolute.inset-0.bg-black.bg-opacity-50,
.hero-mobile .absolute.inset-0.bg-black[style],
.hero-mobile > div > .absolute.inset-0.bg-black {
    background-color: rgba(0,0,0,0.55) !important;
}

/* Header and nav positioning - sticky during scroll */
header,
nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1000 !important;
}

/* Prevent hero section from scrolling under header */
.hero-mobile {
    scroll-margin-top: 100px;
}

/* Ensure hero carousel text has proper spacing from top */
.carousel-item {
    scroll-snap-align: start;
}

/* Responsive top padding for mobile/tablet/desktop */
@media (max-width: 640px) {
    .hero-mobile {
        scroll-margin-top: 60px;
    }
    
    .pt-20 {
        padding-top: 3rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-mobile {
        scroll-margin-top: 80px;
    }
    
    .sm\:pt-24 {
        padding-top: 4rem;
    }
}

@media (min-width: 1025px) {
    .hero-mobile {
        scroll-margin-top: 100px;
    }
    
    .lg\:pt-32 {
        padding-top: 5rem;
    }
}