/* JM Eventos - Main Stylesheet */

/* ===== EVENG-INSPIRED CSS VARIABLES FOR PREMIUM DESIGN ===== */
:root {
    /* Primary Brand Colors */
    --primary: #ef0000;
    --primary-dark: #c1272d;
    --primary-light: #ff3333;
    --primary-alpha: rgba(239, 0, 0, 0.1);
    --primary-shadow: rgba(239, 0, 0, 0.3);
    --primary-glow: rgba(239, 0, 0, 0.6);
    
    /* Secondary & Neutral Colors - Brand Consistent */
    --secondary: #2c3e50;
    --secondary-light: #34495e;
    --accent-gray: #6b7280;
    --accent-dark: #374151;
    
    /* Neutral Colors */
    --text-dark: #1a202c;
    --text-medium: #2d3748;
    --text-light: #718096;
    --text-lighter: #a0aec0;
    --bg-light: #f7fafc;
    --bg-medium: #edf2f7;
    --bg-dark: #1a202c;
    
    /* Glass & Blur Effects */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-bg-dark: rgba(0, 0, 0, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-strong: rgba(255, 255, 255, 0.15);
    
    /* Brand-Consistent Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-primary-light: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    --gradient-neutral: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-gray: linear-gradient(135deg, #6b7280 0%, #374151 100%);
    
    /* Typography - Modern Font Stack */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    
    /* Modern Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Sophisticated Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(239, 0, 0, 0.3);
    
    /* Smooth Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    --transition-premium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Layout & Spacing */
    --container-max-width: 1400px;
    --section-padding: 5rem;
    --section-padding-mobile: 3rem;
}

/* Enhanced Stats Section Animations */
@keyframes animate-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes animate-pulse-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes animate-bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes animate-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.animate-spin-slow {
    animation: animate-spin-slow 20s linear infinite;
}

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

.animate-bounce-slow {
    animation: animate-bounce-slow 4s ease-in-out infinite;
}

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

/* ===== EVENG-INSPIRED MODERN COMPONENTS ===== */

/* Premium Glass Effects */
.glass-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-premium);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(255,255,255,0.3);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Modern Button Styles */
.btn-modern {
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-premium);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    filter: brightness(1.1);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--bg-medium);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Premium Service Cards */
.service-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-premium);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bg-medium);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-alpha);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section Enhancements */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Statistics Counter Animation */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 0, 0, 0.6);
    }
}

/* Utility Classes */
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease-out; }
.animate-fadeInLeft { animation: fadeInLeft 0.6s ease-out; }
.animate-fadeInRight { animation: fadeInRight 0.6s ease-out; }
.animate-scaleIn { animation: scaleIn 0.6s ease-out; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .btn-modern {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

.glass-card::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 var(--transition-premium);
}

.glass-card:hover {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-premium);
}

.glass-card:hover::before {
    left: 100%;
}

/* Premium Hover Effects for Service Cards */
.service-card-premium {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-premium);
}

.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-alpha), transparent);
    opacity: 0;
    transition: opacity var(--transition-premium);
}

.service-card-premium:hover::before {
    opacity: 1;
}

.service-card-premium:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-premium);
}

/* Premium Button Effects */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-premium);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark), var(--primary-light), var(--primary));
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Custom Styles */
.hero-bg {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

/* Hero Slider Styles */
.hero-slider {
    height: 100vh;
    min-height: 600px;
    contain: layout; /* Improve performance and prevent layout shift */
    position: relative;
}

/* Loading placeholder styles to prevent layout shift */
.slider-loading-placeholder {
    background: var(--gradient-primary);
    z-index: 1;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slider-loading-placeholder .animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Prevent layout shift in slider container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Image aspect ratio constraints to prevent layout shift */
.img-responsive {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Additional layout shift prevention */
.flip-card {
    contain: layout style; /* Improve performance and prevent layout shifts */
}

.service-card, .post-card {
    contain: layout; /* Prevent layout shifts during animations */
}

/* Ensure images maintain dimensions during load */
img {
    max-width: 100%;
    height: auto;
}

img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.slider-nav {
    transition: all 0.3s ease;
}

.slider-nav:hover:not(:disabled) {
    transform: scale(1.1);
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topbar {
    background: linear-gradient(90deg, #333333 0%, #444444 100%);
}

.navbar-scroll {
    background: var(--light-overlay);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.service-card, .post-card {
    transition: all var(--transition-slow);
}

.service-card:hover, .post-card:hover {
    transform: translateY(-10px) scale(1.02);
}

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

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

.shadow-elegant {
    box-shadow: var(--shadow-md);
}

.shadow-elegant-hover {
    box-shadow: var(--shadow-lg);
}

.parallax {
    will-change: transform;
}

html {
    scroll-behavior: smooth;
}

/* Portfolio Gallery */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Contact Form */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-alpha);
}

/* Testimonials */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

/* Team Cards */
.team-card {
    position: relative;
    overflow: hidden;
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-card:hover .team-social {
    transform: translateY(0);
}

/* Page-specific styles */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

.breadcrumb {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: 0.5rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Service detail styles */
.service-feature {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Event styles */
.event-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Contact page styles */
.contact-info {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Map container */
.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Blog styles */
.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
}

.blog-category {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: white;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-30px,0); }
    70% { transform: translate3d(0,-15px,0); }
    90% { transform: translate3d(0,-4px,0); }
}

/* Responsive Design - Enhanced for Premium Experience */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 500px;
    }
    
    .slider-content h1 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .service-feature,
    .contact-info {
        margin-bottom: 2rem;
    }
    
    /* Disable premium hover effects on mobile for better performance */
    .service-card-premium:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .glass-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    /* Optimize floating cards for mobile */
    .animate-float {
        animation-duration: 4s;
    }
}

@media (max-width: 480px) {
    /* Further optimizations for small screens */
    .service-card-premium,
    .glass-card {
        transition: none;
    }
    
    .btn-premium::before {
        display: none;
    }
}

/* Additional Tailwind Animations and Effects */
@keyframes slideDown {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Additional Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* CTA Button Fix - Ensure visibility at all breakpoints */
.cta-button-container {
    display: none !important;
}

@media (min-width: 1024px) {
    .cta-button-container {
        display: block !important;
    }
}

/* Mobile CTA Button */
.mobile-cta-button {
    display: block;
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-top: 2rem;
}

.mobile-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--primary-shadow);
}

/* Desktop CTA Button */
.desktop-cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
}

.desktop-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--primary-shadow);
}

/* Modern Slider Integration */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

/* Screen Reader Only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Enhanced animations for slider content */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation delays */
.animation-delay-300 {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.animation-delay-600 {
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.animation-delay-900 {
    animation-delay: 0.9s;
    animation-fill-mode: both;
}

/* Event Types Tab Styles */
.event-tab {
    position: relative;
    border: 2px solid transparent;
    transition: all var(--transition-slow);
}

.event-tab:hover {
    background: rgba(249, 250, 251, 0.8);
    border-color: rgba(229, 231, 235, 0.5);
    transform: translateX(4px);
}

.event-tab.active,
.event-tab:focus {
    background: rgb(239, 246, 255);
    border-color: rgb(191, 219, 254);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateX(8px);
}

.event-tab .w-10 {
    transition: all var(--transition-normal);
}

.event-tab:hover .w-10 {
    transform: scale(1.05);
}

.event-tab.active .w-10 {
    transform: scale(1.1);
}

.event-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.event-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Image Gallery Styles */
.thumbnail-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.thumbnail-image:hover {
    transform: scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.thumbnail-image.active,
.thumbnail-image:focus {
    border-color: rgb(59, 130, 246);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.thumbnail-image img {
    transition: transform var(--transition-normal);
}

.thumbnail-image:hover img {
    transform: scale(1.1);
}

#main-image {
    transition: all var(--transition-normal);
}

/* Tab Animation States */
@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-tab {
    animation: tabSlideIn 0.4s ease-out;
}

.event-tab:nth-child(1) { animation-delay: 0.1s; }
.event-tab:nth-child(2) { animation-delay: 0.15s; }
.event-tab:nth-child(3) { animation-delay: 0.2s; }
.event-tab:nth-child(4) { animation-delay: 0.25s; }
.event-tab:nth-child(5) { animation-delay: 0.3s; }
.event-tab:nth-child(6) { animation-delay: 0.35s; }

/* Responsive Improvements for Event Types */
@media (max-width: 1024px) {
    .event-tab {
        transform: none !important;
    }
    
    .event-tab:hover,
    .event-tab.active {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .event-tab {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .event-tab .w-10 {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .thumbnail-image {
        margin-bottom: 0.5rem;
    }
}

/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}