/* Custom Styles for Intelia - Responsive Design with Light/Dark Mode */

/* Reducir espacios vacíos */
#content-area {
    padding-bottom: 1rem !important;
}

@media (max-width: 768px) {
    #content-area {
        padding-bottom: 0.5rem !important;
        margin-bottom: 60px; /* Espacio para el mini player */
    }
}

/* Font Family Override - Ubuntu */
body, 
button, 
input, 
select, 
textarea {
    font-family: 'Ubuntu', system-ui, -apple-system, sans-serif !important;
}

/* Ensure headings use Ubuntu */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', system-ui, -apple-system, sans-serif !important;
    font-weight: 500;
}

/* Theme Toggle Icons */
body.dark .dark\:block {
    display: block !important;
}

body.dark .dark\:hidden {
    display: none !important;
}

body.light .dark\:block {
    display: none !important;
}

body.light .dark\:hidden {
    display: block !important;
}

/* Intelia Brand Colors */
:root {
    --intelia-ice: #E0E0E0;
    --intelia-hyacinth: #A07DF1;
    --intelia-purple: #6200DF;
    --intelia-electric: #3836FB;
    --intelia-bellwether: #24234F;
}

/* Light Mode Styles */
body.light {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, rgba(224, 224, 224, 0.3) 100%);
    color: var(--intelia-bellwether);
}

body.light .bg-black {
    background-color: #ffffff;
}

body.light .bg-black\/90 {
    background-color: rgba(255, 255, 255, 0.95);
}

body.light .bg-black\/70 {
    background-color: rgba(255, 255, 255, 0.7);
}

body.light .bg-gradient-to-b {
    background: linear-gradient(to bottom, #ffffff, #fafafa, rgba(160, 125, 241, 0.05));
}

body.light .text-white {
    color: var(--intelia-bellwether);
}

body.light .text-gray-400 {
    color: #6b7280;
}

body.light .text-gray-300 {
    color: #9ca3af;
}

body.light .text-gray-500 {
    color: #6b7280;
}

body.light .bg-gray-800 {
    background-color: rgba(160, 125, 241, 0.08);
}

body.light .bg-gray-900 {
    background-color: #fafafa;
}

body.light .bg-gray-700 {
    background-color: rgba(160, 125, 241, 0.12);
}

body.light .border-gray-800 {
    border-color: rgba(160, 125, 241, 0.15);
}

body.light .hover\:bg-gray-800:hover {
    background-color: rgba(160, 125, 241, 0.15);
}

body.light .hover\:bg-gray-700:hover {
    background-color: rgba(160, 125, 241, 0.2);
}

body.light .bg-gradient-to-br {
    background: linear-gradient(135deg, var(--intelia-hyacinth), var(--intelia-electric));
}

body.light .from-purple-500 {
    --tw-gradient-from: var(--intelia-hyacinth);
}

body.light .to-pink-500 {
    --tw-gradient-to: var(--intelia-electric);
}

body.light .from-intelia-purple {
    --tw-gradient-from: var(--intelia-purple);
}

body.light .to-intelia-electric {
    --tw-gradient-to: var(--intelia-electric);
}

body.light .bg-gray-800\/50 {
    background-color: rgba(160, 125, 241, 0.05);
}

body.light .bg-gray-800\/30 {
    background-color: rgba(160, 125, 241, 0.03);
}

body.light .bg-black\/40 {
    background-color: rgba(255, 255, 255, 0.9);
}

body.light .bg-black\/60:hover {
    background-color: rgba(160, 125, 241, 0.08);
}

body.light .bg-black\/20 {
    background-color: rgba(255, 255, 255, 0.98);
}

body.light .sidebar-desktop {
    background: linear-gradient(to bottom, #ffffff, rgba(160, 125, 241, 0.03));
    border-right: 1px solid rgba(160, 125, 241, 0.1);
    box-shadow: 2px 0 10px rgba(160, 125, 241, 0.05);
}

body.light .player-bar {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(160, 125, 241, 0.05), rgba(255, 255, 255, 0.98));
    border-top: 1px solid rgba(160, 125, 241, 0.1);
}

body.light .bg-white {
    background-color: var(--intelia-purple);
}

body.light .bg-green-500 {
    background-color: var(--intelia-hyacinth);
}

body.light .focus\:ring-purple-500:focus {
    --tw-ring-color: var(--intelia-purple);
}

body.light input::placeholder {
    color: #9ca3af;
}

body.light .border-purple-500\/20 {
    border-color: rgba(160, 125, 241, 0.2);
}

body.light .bg-purple-500\/20 {
    background-color: rgba(160, 125, 241, 0.08);
}

body.light .text-purple-300 {
    color: var(--intelia-purple);
}

/* Resource cards gradients in light mode */
body.light .from-purple-600\/20 {
    background: linear-gradient(135deg, rgba(160, 125, 241, 0.1), rgba(98, 0, 223, 0.1));
}

body.light .from-indigo-600\/20 {
    background: linear-gradient(135deg, rgba(98, 0, 223, 0.1), rgba(160, 125, 241, 0.1));
}

body.light .from-pink-600\/20 {
    background: linear-gradient(135deg, rgba(160, 125, 241, 0.1), rgba(56, 54, 251, 0.1));
}

body.light .from-violet-600\/20 {
    background: linear-gradient(135deg, rgba(98, 0, 223, 0.1), rgba(56, 54, 251, 0.1));
}

body.light .from-fuchsia-600\/20 {
    background: linear-gradient(135deg, rgba(160, 125, 241, 0.1), rgba(98, 0, 223, 0.1));
}

body.light .from-red-600\/20,
body.light .from-orange-600\/20,
body.light .from-yellow-600\/20,
body.light .from-rose-600\/20,
body.light .from-amber-600\/20 {
    background: linear-gradient(135deg, rgba(56, 54, 251, 0.1), rgba(160, 125, 241, 0.1));
}

body.light .from-blue-600\/20,
body.light .from-cyan-600\/20,
body.light .from-teal-600\/20,
body.light .from-green-600\/20,
body.light .from-emerald-600\/20 {
    background: linear-gradient(135deg, rgba(98, 0, 223, 0.1), rgba(56, 54, 251, 0.1));
}

/* Mobile specific light mode styles */
body.light .mini-player {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(160, 125, 241, 0.08), rgba(255, 255, 255, 0.98)) !important;
    border-top: 1px solid rgba(160, 125, 241, 0.15);
    color: var(--intelia-bellwether);
}

body.light .full-player {
    background: linear-gradient(to bottom, #ffffff, rgba(160, 125, 241, 0.02), #ffffff) !important;
    color: var(--intelia-bellwether);
}

/* Fix player bar text in light mode */
body.light .mini-player .text-white {
    color: var(--intelia-bellwether) !important;
}

body.light .full-player .text-white {
    color: var(--intelia-bellwether) !important;
}

/* Fix button colors in light mode */
body.light .bg-white\/10 {
    background-color: rgba(160, 125, 241, 0.1);
}

body.light .bg-white {
    background: linear-gradient(135deg, var(--intelia-hyacinth), var(--intelia-purple)) !important;
    color: white !important;
}

body.light .text-black {
    color: white !important;
}

/* Header mobile light mode */
body.light header {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom-color: rgba(160, 125, 241, 0.1) !important;
    box-shadow: 0 2px 10px rgba(160, 125, 241, 0.05);
}

/* Dark Mode Enhancements with Intelia Colors */
body.dark .bg-gradient-to-br {
    background: linear-gradient(135deg, var(--intelia-purple), var(--intelia-electric));
}

body.dark .from-purple-500 {
    --tw-gradient-from: var(--intelia-purple);
}

body.dark .to-pink-500 {
    --tw-gradient-to: var(--intelia-electric);
}

body.dark .from-purple-600 {
    --tw-gradient-from: var(--intelia-purple);
}

body.dark .to-pink-600 {
    --tw-gradient-to: var(--intelia-hyacinth);
}

body.dark .sidebar-desktop {
    background: linear-gradient(to bottom, var(--intelia-bellwether), #1a1a2e);
}

body.dark .bg-gradient-to-b {
    background: linear-gradient(to bottom, #1a1a2e, #0f0f1e, #000000);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(107, 114, 128, 0.5);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.7);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
    }
}

/* Content card hover effects */
.content-card {
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .content-card {
        padding: 12px;
    }
}

.content-card:hover {
    transform: translateY(-4px);
    background-color: rgba(55, 65, 81, 0.3);
}

/* Mobile touch feedback */
@media (max-width: 1024px) {
    .content-card:active {
        transform: scale(0.98);
        background-color: rgba(55, 65, 81, 0.4);
    }
}

/* Play button animation */
.play-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .play-button {
        width: 48px;
        height: 48px;
    }
}

/* Mobile: Always show play button */
@media (max-width: 768px) {
    .play-button {
        opacity: 1;
        transform: translateY(0);
        width: 36px;
        height: 36px;
    }
}

.group:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Navigation active state */
.nav-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    color: white;
    position: relative;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 0 3px 3px 0;
}


/* Gradient text effect with Intelia colors */
.gradient-text {
    background: linear-gradient(135deg, var(--intelia-hyacinth), var(--intelia-electric));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button gradients with Intelia colors */
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--intelia-purple), var(--intelia-electric));
}

.from-purple-500.to-pink-500 {
    background: linear-gradient(135deg, var(--intelia-purple), var(--intelia-hyacinth));
}

/* Category button colors */
.podcast-category-btn,
.resource-category-btn {
    transition: all 0.3s ease;
}

/* Light mode buttons with Intelia colors */
body.light .podcast-category-btn:not(.bg-gradient-to-r),
body.light .resource-category-btn:not(.bg-gradient-to-r) {
    background-color: rgba(160, 125, 241, 0.08);
    color: var(--intelia-purple);
    border: 1px solid rgba(160, 125, 241, 0.2);
}

body.light .podcast-category-btn:not(.bg-gradient-to-r):hover,
body.light .resource-category-btn:not(.bg-gradient-to-r):hover {
    background-color: rgba(160, 125, 241, 0.15);
    border-color: rgba(160, 125, 241, 0.3);
}

/* Active category buttons in light mode */
body.light .bg-gradient-to-r {
    background: linear-gradient(135deg, var(--intelia-purple), var(--intelia-hyacinth));
    color: white;
    border: none;
}

/* Navigation items in light mode */
body.light .nav-item {
    color: var(--intelia-bellwether);
}

body.light .nav-item:hover {
    background-color: rgba(160, 125, 241, 0.08);
}

body.light .nav-item.active {
    background: linear-gradient(135deg, rgba(160, 125, 241, 0.1), rgba(56, 54, 251, 0.1));
    color: var(--intelia-purple);
}

body.light .nav-item.active::before {
    background: linear-gradient(135deg, var(--intelia-purple), var(--intelia-electric));
}

/* Play button in light mode */
body.light .play-button {
    background: linear-gradient(135deg, var(--intelia-hyacinth), var(--intelia-purple));
    box-shadow: 0 4px 12px rgba(160, 125, 241, 0.3);
}

body.light .play-button:hover {
    box-shadow: 0 6px 20px rgba(160, 125, 241, 0.4);
}

/* Content cards in light mode */
body.light .content-card:hover {
    background-color: rgba(160, 125, 241, 0.05);
}

/* Search input in light mode */
body.light input[type="text"] {
    background-color: rgba(160, 125, 241, 0.05);
    border: 1px solid rgba(160, 125, 241, 0.1);
}

body.light input[type="text"]:focus {
    background-color: white;
    border-color: var(--intelia-purple);
    box-shadow: 0 0 0 3px rgba(160, 125, 241, 0.1);
}

/* Smooth section transitions */
.content-section {
    animation: fadeIn 0.5s ease;
}

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

/* Mobile sidebar styles */
.sidebar-desktop {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1023px) {
    .sidebar-desktop {
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
}

/* Enhanced category buttons */
.category-btn {
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.category-btn:hover::before {
    left: 100%;
}

/* Audio player progress bar enhancement */
.progress-bar {
    position: relative;
    cursor: pointer;
}

.progress-bar:hover .progress-thumb {
    opacity: 1;
}

.progress-thumb {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Loading animation */
.loading-spinner {
    border: 3px solid rgba(168, 85, 247, 0.1);
    border-top-color: #a855f7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for playing indicator */
.playing-indicator {
    display: flex;
    align-items: center;
    gap: 2px;
}

.playing-indicator span {
    width: 3px;
    height: 12px;
    background: #10b981;
    border-radius: 3px;
    animation: pulse 1s ease-in-out infinite;
}

.playing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
    height: 16px;
}

.playing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    height: 10px;
}

@keyframes pulse {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Animación para el botón de instalación PWA */
@keyframes pulse-install {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(168, 85, 247, 0);
    }
}

.install-pulse {
    animation: pulse-install 2s infinite;
}

/* Glassmorphism effect */
.glass {
    background: rgba(31, 41, 55, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 114, 128, 0.1);
}

/* Glow effect on hover */
.glow-hover {
    transition: all 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3),
                0 0 60px rgba(236, 72, 153, 0.2);
}

/* Player bar visibility */
.player-bar {
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-bar.visible {
    transform: translateY(0);
}

/* Mobile Mini Player Styles */
.mini-player {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 50;
}

.mini-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Full Screen Player */
.full-player {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
}

.full-player::-webkit-scrollbar {
    display: none;
}

/* Ensure full player is always on top when expanded */
.full-player.translate-y-0 {
    transform: translateY(0) !important;
}

.full-player.translate-y-full {
    transform: translateY(100%) !important;
}

/* Mobile Player Animations */
@media (max-width: 1024px) {
    .mini-player {
        animation: slideUp 0.3s ease-out;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Glassmorphism for mini player */
    .mini-player {
        background: rgba(17, 24, 39, 0.85) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
    
    /* Album art shadow */
    #player-cover-mobile {
        box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    }
    
    /* Full player background */
    .full-player {
        background: linear-gradient(
            to bottom,
            rgba(88, 28, 135, 0.9) 0%,
            rgba(17, 24, 39, 0.95) 30%,
            #000 100%
        ) !important;
    }
    
    /* Album art in full player */
    #player-cover-full {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                    0 0 100px rgba(168, 85, 247, 0.2);
        transform: perspective(1000px) rotateX(5deg);
        transition: transform 0.3s ease;
    }
    
    #player-cover-full:active {
        transform: perspective(1000px) rotateX(0deg) scale(0.98);
    }
}

/* Currently playing card */
.content-card.playing {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Favorite button animation */
.favorite-button i {
    transition: all 0.2s ease;
}

.favorite-button:hover i {
    transform: scale(1.2);
}

/* Mobile favorite button */
@media (max-width: 768px) {
    .favorite-button {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
}

/* Search results highlight */
.search-highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    padding: 2px 6px;
    border-radius: 4px;
}

/* Volume slider enhancement */
#volume-bar:hover .bg-white {
    height: 3px;
}

#player-progress:hover .bg-white {
    height: 3px;
}

/* Smooth main content transition when player appears */
main {
    transition: padding-bottom 0.3s ease;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Smaller text sizes */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    /* Compact cards */
    .content-card h3 {
        font-size: 0.75rem;
    }
    
    .content-card p {
        font-size: 0.625rem;
    }
    
    /* Mobile player adjustments */
    #player-bar {
        padding: 0.5rem;
    }
}

/* Touch-friendly buttons */
@media (max-width: 1024px) {
    button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-item {
        padding: 0.75rem 1rem;
    }
}

/* Safe area insets for mobile devices */
@supports (padding: max(0px)) {
    #player-bar {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    
    .mini-player {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* Swipe hint animation */
@media (max-width: 1024px) {
    .swipe-hint {
        position: fixed;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: rgba(168, 85, 247, 0.3);
        border-radius: 50%;
        animation: swipeHint 2s ease-in-out infinite;
        pointer-events: none;
        z-index: 100;
    }
}

@keyframes swipeHint {
    0%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(20px);
    }
}

/* Responsive grid adjustments */
@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .content-card {
        padding: 10px;
    }
    
    .play-button {
        width: 42px;
        height: 42px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .content-card {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .player-bar {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    body {
        background: #000;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #player-bar {
        padding: 0.25rem 0.5rem;
    }
    
    .mini-player {
        padding: 0.25rem 0.5rem;
    }
    
    #player-cover-mobile {
        width: 40px;
        height: 40px;
    }
}

/* Minimalist Typography Animations */
@keyframes fadeInSlow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes letterSpacing {
    0% {
        letter-spacing: 0.5em;
        opacity: 0;
    }
    100% {
        letter-spacing: 0.3em;
        opacity: 1;
    }
}

@keyframes letterFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle Pulse Animations for Premium Effect */
@keyframes pulseSubtle {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.01);
    }
}

@keyframes pulseSubtleDelayed {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.01);
    }
}

@keyframes pulseSubtleDelayed2 {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.01);
    }
}

/* Animation Classes */
.animate-fadeInSlow {
    animation: fadeInSlow 2s ease-out forwards;
}

.letter-spacing-animation {
    animation: letterSpacing 1.5s ease-out forwards;
}

.letter-fade-in {
    animation: letterFadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.animate-pulse-subtle {
    animation: pulseSubtle 3s ease-in-out infinite;
}

.animate-pulse-subtle-delayed {
    animation: pulseSubtleDelayed 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

.animate-pulse-subtle-delayed-2 {
    animation: pulseSubtleDelayed2 3s ease-in-out infinite;
    animation-delay: 0.4s;
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* Minimalist Hover Effects */
.hover\:tracking-widest:hover {
    letter-spacing: 0.2em;
}

/* Clean Typography */
.font-thin {
    font-weight: 100;
}

.font-light {
    font-weight: 300;
}

/* Remove all previous Apple-style animations that were too busy */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Animation Delays */
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-700 { animation-delay: 0.7s; }
.animation-delay-800 { animation-delay: 0.8s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-1500 { animation-delay: 1.5s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-3000 { animation-delay: 3s; }

/* Initial state for animations */
.animate-fadeIn,
.animate-fadeInSlow {
    opacity: 0;
}

/* Incredible Rotating Wave Effects - Intelia Branding */
.wave-container-purple,
.wave-container-blue,
.wave-container-pink,
.wave-container-gray {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.group:hover .wave-container-purple,
.group:hover .wave-container-blue,
.group:hover .wave-container-pink,
.group:hover .wave-container-gray {
    opacity: 1;
}

/* Rotating Wave Base */
.wave-rotate {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    border-radius: 40%;
    animation: waveRotate 8s linear infinite;
    filter: blur(40px);
}

/* Purple Gradient Waves - Intelia Purple */
.wave-gradient-purple {
    background: radial-gradient(circle at 30% 30%, 
        var(--intelia-purple) 0%, 
        transparent 40%),
        radial-gradient(circle at 70% 70%, 
        var(--intelia-hyacinth) 0%, 
        transparent 40%);
    opacity: 0.3;
}

.wave-gradient-purple-2 {
    background: radial-gradient(circle at 60% 40%, 
        var(--intelia-hyacinth) 0%, 
        transparent 35%),
        radial-gradient(circle at 40% 60%, 
        var(--intelia-purple) 0%, 
        transparent 35%);
    opacity: 0.2;
    animation-direction: reverse;
    animation-duration: 12s;
}

/* Blue Gradient Waves - Intelia Electric */
.wave-gradient-blue {
    background: radial-gradient(circle at 30% 30%, 
        var(--intelia-electric) 0%, 
        transparent 40%),
        radial-gradient(circle at 70% 70%, 
        #3836FB 0%, 
        transparent 40%);
    opacity: 0.3;
}

.wave-gradient-blue-2 {
    background: radial-gradient(circle at 60% 40%, 
        #3836FB 0%, 
        transparent 35%),
        radial-gradient(circle at 40% 60%, 
        var(--intelia-electric) 0%, 
        transparent 35%);
    opacity: 0.2;
    animation-direction: reverse;
    animation-duration: 12s;
}

/* Pink Gradient Waves - Intelia Hyacinth */
.wave-gradient-pink {
    background: radial-gradient(circle at 30% 30%, 
        var(--intelia-hyacinth) 0%, 
        transparent 40%),
        radial-gradient(circle at 70% 70%, 
        #ec4899 0%, 
        transparent 40%);
    opacity: 0.3;
}

.wave-gradient-pink-2 {
    background: radial-gradient(circle at 60% 40%, 
        #ec4899 0%, 
        transparent 35%),
        radial-gradient(circle at 40% 60%, 
        var(--intelia-hyacinth) 0%, 
        transparent 35%);
    opacity: 0.2;
    animation-direction: reverse;
    animation-duration: 12s;
}

/* Gray Gradient Waves */
.wave-gradient-gray {
    background: radial-gradient(circle at 30% 30%, 
        #6b7280 0%, 
        transparent 40%),
        radial-gradient(circle at 70% 70%, 
        #9ca3af 0%, 
        transparent 40%);
    opacity: 0.2;
}

.wave-gradient-gray-2 {
    background: radial-gradient(circle at 60% 40%, 
        #9ca3af 0%, 
        transparent 35%),
        radial-gradient(circle at 40% 60%, 
        #6b7280 0%, 
        transparent 35%);
    opacity: 0.15;
    animation-direction: reverse;
    animation-duration: 12s;
}

/* Wave Rotation Animation */
@keyframes waveRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Icon and Text Glow Effects */
.group:hover .icon-glow-purple {
    filter: drop-shadow(0 0 20px rgba(160, 125, 241, 0.6));
}

.group:hover .text-glow-purple {
    text-shadow: 0 0 20px rgba(160, 125, 241, 0.4);
}

.group:hover .icon-glow-blue {
    filter: drop-shadow(0 0 20px rgba(56, 54, 251, 0.6));
}

.group:hover .text-glow-blue {
    text-shadow: 0 0 20px rgba(56, 54, 251, 0.4);
}

.group:hover .icon-glow-pink {
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.6));
}

.group:hover .text-glow-pink {
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.group:hover .icon-glow-gray {
    filter: drop-shadow(0 0 15px rgba(156, 163, 175, 0.4));
}

.group:hover .text-glow-gray {
    text-shadow: 0 0 15px rgba(156, 163, 175, 0.3);
}

/* Responsive Wave Adjustments */
@media (max-width: 768px) {
    .wave-rotate {
        filter: blur(30px);
        animation-duration: 10s;
    }
    
    .wave-gradient-purple,
    .wave-gradient-blue,
    .wave-gradient-pink,
    .wave-gradient-gray {
        opacity: 0.25;
    }
    
    .wave-gradient-purple-2,
    .wave-gradient-blue-2,
    .wave-gradient-pink-2,
    .wave-gradient-gray-2 {
        opacity: 0.15;
    }
    
    /* Reduced glow on mobile for performance */
    .group:hover .icon-glow-purple,
    .group:hover .icon-glow-blue,
    .group:hover .icon-glow-pink,
    .group:hover .icon-glow-gray {
        filter: drop-shadow(0 0 10px rgba(160, 125, 241, 0.4));
    }
    
    .group:hover .text-glow-purple,
    .group:hover .text-glow-blue,
    .group:hover .text-glow-pink,
    .group:hover .text-glow-gray {
        text-shadow: 0 0 10px rgba(160, 125, 241, 0.3);
    }
}

/* Light mode wave adjustments */
body.light .wave-gradient-purple,
body.light .wave-gradient-purple-2 {
    opacity: 0.2;
}

body.light .wave-gradient-blue,
body.light .wave-gradient-blue-2 {
    opacity: 0.2;
}

body.light .wave-gradient-pink,
body.light .wave-gradient-pink-2 {
    opacity: 0.2;
}

body.light .wave-gradient-gray,
body.light .wave-gradient-gray-2 {
    opacity: 0.15;
}

body.light .wave-rotate {
    filter: blur(50px);
}