/* Enhanced animations and visual effects for Eli's Be Mitzvah website */

/* Page Transitions - Overlay Disabled */
/* The blue overlay has been removed as requested */

/* Page load animation - Disabled */
/* Body fade-in has been removed to prevent blue flash */
body {
    opacity: 1; /* Always fully visible */
    transition: none; /* No transitions */
}

body.page-loaded {
    /* No change needed as body is already fully visible */
}

/* Enhanced button animations */
.btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Enhanced card animations */
.info-card, .sport-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover, .sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Improved mobile navigation */
@media (max-width: 1024px) {
    nav {
        width: 260px; /* Slightly narrower */
        padding-top: 80px; /* Less top padding */
    }

    nav ul li a {
        padding: 14px 20px; /* Slightly smaller padding */
        font-size: 0.95rem; /* Slightly smaller font */
    }

    .menu-toggle {
        width: 26px; /* Slightly smaller hamburger */
        height: 18px;
    }

    .menu-toggle span {
        height: 2px; /* Thinner lines */
    }

    /* Improved animation for menu toggle */
    .menu-toggle span.enhanced {
        transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                    opacity 0.2s ease;
    }

    /* Improved overlay animation */
    .menu-overlay {
        backdrop-filter: blur(3px);
        transition: opacity 0.3s ease, visibility 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Fade-in animations for content sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered fade-in for lists and grids */
.stagger-fade-in > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-fade-in.visible > *:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-fade-in.visible > *:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-fade-in.visible > *:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-fade-in.visible > *:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-fade-in.visible > *:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-fade-in.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle pulse animation for CTA buttons */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.btn.primary-cta {
    animation: subtle-pulse 2s infinite;
}

/* Hero section with fixed background */
.hero, .rsvp-hero {
    background-attachment: scroll; /* Disable parallax effect */
    background-position: center center;
    position: relative;
    overflow: hidden;
}

/* Add a subtle gradient overlay to hero images */
.hero::after, .rsvp-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
                rgba(30, 136, 229, 0.3) 0%,
                rgba(255, 152, 0, 0.3) 100%);
    z-index: 1;
}

/* Improved spacing between sections */
section {
    padding: 4rem 0;
    position: relative;
}

section + section {
    margin-top: 1rem;
}

/* Consistent spacing for mobile */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    section + section {
        margin-top: 0.5rem;
    }
}

/* Improved focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Disabled smooth scrolling for better performance */
html {
    scroll-behavior: auto;
}

/* Vibrant accent color for highlights */
.accent-text {
    color: #FF5722; /* More vibrant orange */
}

.accent-bg {
    background-color: #FF5722;
    color: white;
}

/* Improved image hover effects */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

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