/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.15;
    color: var(--primary-yellow);
    animation: float 25s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 209, 0, 0.4));
}

.floating-element.small {
    font-size: 1.5rem;
}

.floating-element.medium {
    font-size: 2.2rem;
}

.floating-element.large {
    font-size: 3rem;
}

/* Section Animations */
.section-title,
.hero-content,
.welcome-content,
.feature-card,
.specialty-item,
.menu-item,
.about-text,
.founders-section,
.reason-item,
.contact-wrapper {
    opacity: 1;
    animation: fadeInUp 0.8s ease forwards;
}

/* Stagger animations for grid items */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.specialty-item:nth-child(1) { animation-delay: 0.1s; }
.specialty-item:nth-child(2) { animation-delay: 0.2s; }
.specialty-item:nth-child(3) { animation-delay: 0.3s; }
.specialty-item:nth-child(4) { animation-delay: 0.4s; }

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }

.reason-item:nth-child(1) { animation-delay: 0.1s; }
.reason-item:nth-child(2) { animation-delay: 0.2s; }
.reason-item:nth-child(3) { animation-delay: 0.3s; }
.reason-item:nth-child(4) { animation-delay: 0.4s; }
.reason-item:nth-child(5) { animation-delay: 0.5s; }
.reason-item:nth-child(6) { animation-delay: 0.6s; }

/* Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.05;
    }
    90% {
        opacity: 0.05;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes borderGlow {
    0% { box-shadow: 0 0 5px rgba(255, 209, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 209, 0, 0.5); }
    100% { box-shadow: 0 0 5px rgba(255, 209, 0, 0.3); }
}

/* Interactive Element Animations */
.btn,
.nav-link,
.menu-item,
.feature-card,
.specialty-item,
.reason-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.menu-item:hover,
.feature-card:hover,
.specialty-item:hover,
.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Shine effect for cards */
.feature-card,
.specialty-item,
.menu-item,
.reason-item {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.specialty-item::before,
.menu-item::before,
.reason-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 209, 0, 0.05),
        transparent
    );
    transform: translateX(-100%);
    animation: shine 6s ease-in-out infinite;
    pointer-events: none;
}

/* Icon animations */
.feature-card i,
.reason-item i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover i,
.reason-item:hover i {
    transform: scale(1.15);
    color: var(--secondary-yellow);
}

/* Scroll-triggered animations */
.scroll-fade {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo pulse animation */
.logo-img {
    animation: pulse 3s ease-in-out infinite;
}

/* Border glow animation for sections */
.section {
    animation: borderGlow 4s ease-in-out infinite;
}

/* Fade-in class override */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-element {
        animation: none;
        display: none;
    }
    
    .feature-card::before,
    .specialty-item::before,
    .menu-item::before,
    .reason-item::before {
        animation: none;
    }
    
    .logo-img,
    .section {
        animation: none;
    }
} 