/* ==========================================
   HOME PAGE STYLES
   ========================================== */

/* Smooth animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: .8; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient text animation */
@keyframes gradient-x {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-x 3s ease infinite;
}

/* Hover effects */
.category-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   RESPONSIVE IMPROVEMENTS
   ========================================== */

/* Mobile optimizations */
@media (max-width: 640px) {
    /* Reduce animation intensity on mobile */
    .animate-pulse {
        animation: none;
    }

    /* Better spacing for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Optimize font sizes */
    h1 {
        line-height: 1.2;
    }

    /* Better touch targets */
    button, a, select, input {
        min-height: 44px;
    }

    /* Reduce blur effects for performance */
    .backdrop-blur-xl {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Grid adjustments */
    .grid {
        gap: 1.5rem;
    }

    /* Better card sizing */
    .category-card {
        padding: 1.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .hover\:scale-105:hover {
        transform: none;
    }

    .hover\:-translate-y-2:hover {
        transform: none;
    }

    /* Add active states instead */
    button:active,
    a:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* Menu mobile animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slideDown 0.2s ease-out;
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders */
    .border {
        border-width: 0.5px;
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    /* Reduce hero height in landscape */
    section[class*="min-h-"] {
        min-height: 70vh;
    }

    /* Compact padding */
    .py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Adjust colors for better contrast in dark mode if app supports it */
}
