/* 
 * Homepage-specific styles that can't be easily handled by Tailwind utility classes
 * For common properties like font-weight, font-size, margins, etc., use Tailwind's utility classes in the HTML
 */

/* Custom homepage styles that Tailwind doesn't provide */

/* Stats badge with gradient background */
.stats-badge {
    background: linear-gradient(270deg, rgba(255, 119, 215, 0.3) 0%, rgba(250, 108, 18, 0.3) 100%);
    border-radius: 10px;
}

/* Image card with shadow and position for label */
.image-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Button hover arrow animation */
.selector-btn {
    transition: padding-right 0.5s ease;
    overflow: hidden;
    padding-right: 24px !important; /* Default padding */
    border: 1px solid #D1D1D1 !important;
}

.selector-btn .arrow {
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: right 0.5s ease, opacity 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    right: 24px; /* Start farther left to increase travel distance */
    pointer-events: none; /* Don't interfere with button clicks */
}

.selector-btn .arrow img {
    width: 40px;
    height: 32px;
}

.selector-btn:hover {
    padding-right: 44px !important; /* Expand to make room for arrow + padding */
}

.selector-btn:hover .arrow {
    right: 4px; /* 4px padding from button edge */
    opacity: 1;
}

.selector-btn.btn-gradient .arrow img {
    filter: invert(0);
}

/* Active selector button - already selected */
.selector-btn.active {
    padding-right: 44px !important;
    background: #000 !important;
}

.selector-btn.active .arrow {
    right: 4px;
    opacity: 1;
}

.selector-btn.active .arrow img {
    filter: invert(0);
}

/* Tab indicator is now handled by JavaScript */
.tab-indicator {
    pointer-events: none; /* Make sure it doesn't interfere with clicks */
}

/* Navigation buttons should stay fixed while content scrolls */
.nav-btn {
    pointer-events: auto;
    background: rgba(243, 244, 246, 0.95); /* Slightly transparent gray-100 */
    backdrop-filter: blur(4px);
}

.nav-btn:hover {
    background: rgba(229, 231, 235, 0.95); /* Slightly transparent gray-200 */
}

/* Ensure tabs container doesn't overflow */
.tabs.tabs-boxed {
    background: white !important;
    display: flex;
    flex-flow: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* DaisyUI tabs customization for sliding indicator */
.tabs {
    overflow: visible !important;
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.tabs .tab {
    z-index: 1;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    margin: 0;
    white-space: nowrap;
    font-size: 0.875rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .tabs .tab {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

.tabs .tab.tab-active {
    background: #000 !important;
}

.tab-content {
    transition: opacity 0.3s ease;
}

.tab-pane {
    height: 10px;
    transition: opacity 0.3s ease;
}

/* Features list styling */

/* Image Grid Animation */
.image-grid-container {
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

.image-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.image-column-animated {
    animation: scrollImagesDown 30s linear infinite;
    animation-fill-mode: none;
}

.image-column-animated-delayed {
    animation: scrollImagesDown 30s linear infinite;
    animation-fill-mode: none;
    animation-delay: -10s; /* Start 10 seconds into the animation for staggered effect */
}

.restaurant-image {
    width: 100%;
    height: 280px;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.restaurant-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

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

.restaurant-image .location-tag {
    bottom: 12px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

/* Perfect seamless animations with optimized timing */
@keyframes scrollImagesDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-50%));
    }
}

/* Pause animation state */
.image-column.paused {
    animation-play-state: paused !important;
}

/* Fade effect for top and bottom */
.image-grid-container::before,
.image-grid-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 10;
    pointer-events: none;
}

.image-grid-container::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.image-grid-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .image-grid-container {
        height: 500px;
    }
    
    .restaurant-image {
        height: 220px;
    }
    
    .image-column-animated,
    .image-column-animated-delayed {
        animation-duration: 25s;
    }
}

@media (max-width: 768px) {
    .image-grid-container {
        height: 400px;
    }
    
    .restaurant-image {
        height: 180px;
    }
    
    .restaurant-image .location-tag {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .image-column-animated,
    .image-column-animated-delayed {
        animation-duration: 20s;
    }
    
    .image-grid-container::before,
    .image-grid-container::after {
        height: 30px;
    }
}

/* Custom extra large font size for main heading on desktop */
@media (min-width: 1024px) {
    .text-custom-large {
        font-size: 56px;
    }
}

@media (max-width: 1023px) {
    .text-custom-large {
        font-size: 42px;
    }
}

.mb-2 {
    margin-bottom: 8px;
}

/* Restaurant Navigation Styles */
.restaurant-nav-btn {
    transition: all 0.2s ease;
}

.restaurant-nav-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

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

@media (max-width: 640px) {
    
    /* Stack navigation controls vertically on small mobile */
    .flex.flex-col.sm\\:flex-row {
        gap: 16px;
    }
}


/* --- WHY SAPAAD SECTION STYLES STARTS --- */
/* Card Animation */
@keyframes scrollCards {
    from {
        transform: translateY(-50%) translateX(0);
    }
    to {
        transform: translateY(-50%) translateX(-50%);
    }
}

/* Dual Content Layers */
.card-others-side,
.card-sapaad-side {
    transition: clip-path 0.1s ease-out;
}

/* --- WHY SAPAAD SECTION STYLES ENDS --- */

/* Cloud Loader Bar Styles */
@keyframes fillBar {
    from { width: 0; }
    to { width: 100%; }
  }
  @keyframes cloudBarFill {
    from { width: 100%; }
    to { width: 0; }
  }
  .animate-cloud-bar-fill {
    animation: cloudBarFill 2s linear forwards;
    z-index: 1;
}

.cloud-loader-bar {
    background: linear-gradient(90deg, #f472b6 0%, #fb923c 100%);
    -webkit-mask: url('../images/homepage/loading.png') no-repeat center/contain;
    mask: url('../images/homepage/loading.png') no-repeat center/contain;
    overflow: hidden;
}

.faq-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.faq-left h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 24px;
  line-height: 1.1;
}
.faq-left p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 32px;
  max-width: 480px;
}
.faq-cta-btn {
  display: inline-block;
  padding: 18px 38px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #111;
  background: linear-gradient(90deg, #FF7A29 0%, #FF4ECD 100%);
  box-shadow: 0 2px 8px rgba(255, 122, 41, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
}
.faq-cta-btn:hover {
  background: linear-gradient(90deg, #FF4ECD 0%, #FF7A29 100%);
  color: #111;
  box-shadow: 0 4px 16px rgba(255, 122, 41, 0.16);
  text-decoration: none;
}
@media (max-width: 991px) {
  .faq-left {
    width: 100%;
    align-items: flex-start;
    margin-bottom: 32px;
  }
  .faq-left h2 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  .faq-left p {
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .faq-cta-btn {
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 10px;
  }
}