/* Professional Enhanced Style.css - Balkan Airsports Federation */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Enhanced */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #f9fafb;
    --surface-color: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Enhanced gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    
    /* Animation variables */
    --animation-speed: 0.3s;
    --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode variables */
:root.dark {
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-feature-settings: 'kern' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--animation-speed) ease, color var(--animation-speed) ease;
     min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Visually crop extra whitespace from the header logo without editing the image */
.logo-crop {
    display: block;              /* remove inline-image baseline gap */
    clip-path: inset(4% 0 20% 0); /* top right bottom left - tweak bottom crop */
}

@media (max-width: 1024px) {
    .logo-crop { clip-path: inset(3% 0 16% 0); }
}

@media (max-width: 640px) {
    .logo-crop { clip-path: inset(2% 0 10% 0); }
}
main {
    flex: 1;
}
/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

/* Hero Section - Enhanced */
.hero-section {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero .hero-bg {
  /* Desktop defaults - will be overridden by inline styles */
  background-size: cover !important;
  background-position: center 20% !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  filter: brightness(0.8);
  transition: transform 0.1s ease-out;
}

@media (max-width: 640px) {
  #hero .hero-bg {
    /* Mobile overrides - will be overridden by inline styles */
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }
}


.hero-overlay {
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.7) 0%, 
        rgba(147, 51, 234, 0.6) 50%, 
        rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    z-index: 10;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-actions {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Enhanced Buttons */
.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all var(--animation-speed) var(--animation-easing);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

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

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

.btn-hero-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #4f46e5;
    border: 2px solid transparent;
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.05);
}

/* Hero Statistics */
.hero-stats {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.stat-card {
    transition: all var(--animation-speed) var(--animation-easing);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Morphism */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Floating Elements */
.hero-elements {
    overflow: hidden;
}

.floating-cloud {
    position: absolute;
    opacity: 0.1;
    filter: blur(1px);
    width: 80px;
    height: 50px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50px;
}

.cloud-1 {
    top: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.cloud-2 {
    top: 15%;
    right: 15%;
    width: 100px;
    height: 60px;
    animation: float 10s ease-in-out infinite reverse;
}

.cloud-3 {
    bottom: 30%;
    left: 20%;
    width: 60px;
    height: 40px;
    animation: float 12s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    animation: pulse 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
}

/* Section Styles */
.section-spacing {
    scroll-margin-top: 2rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.section-divider {
    width: 4rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-weight: 400;
    opacity: 0.8;
}

/* Enhanced Card Design */
.card-modern {
    background: var(--surface-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--animation-speed) var(--animation-easing);
    position: relative;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--animation-speed) ease;
}

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

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* About Section */
.about-content {
    transition: all var(--animation-speed) var(--animation-easing);
}

.about-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-icon-header {
    margin-bottom: 1rem;
}

.icon-wrapper {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* Sports Section */
.sports-grid {
    gap: 1.5rem;
}

.sport-card {
    position: relative;
    overflow: hidden;
}

.card-bg-pattern {
    position: absolute;
    pointer-events: none;
}

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

.sport-icon-wrapper {
    margin-bottom: 1rem;
}

.sport-icon {
    transition: all var(--animation-speed) var(--animation-easing);
    margin: 0 auto;
}

.sport-title {
    margin-bottom: 0.5rem;
}

.sport-description {
    margin-bottom: 1rem;
}

.sport-meta {
    margin-bottom: 1rem;
}

.difficulty-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.age-info {
    font-size: 0.75rem;
}

.certification-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.learn-more-btn {
    text-decoration: none;
    transition: all var(--animation-speed) ease;
}

/* News Section */
.news-grid {
    gap: 1.5rem;
}

.news-card {
    overflow: hidden;
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
}

.news-image {
    transition: transform var(--animation-speed) ease;
}

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-badge {
    position: absolute;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.news-content {
    transition: all var(--animation-speed) var(--animation-easing);
}

.news-title {
    transition: color var(--animation-speed) ease;
    margin-bottom: 0.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.date-info,
.author-info {
    display: flex;
    align-items: center;
}

.news-excerpt {
    margin-bottom: 1rem;
}

.read-more-btn {
    text-decoration: none;
    transition: all var(--animation-speed) ease;
}

/* Events Section */
.events-grid {
    gap: 1.5rem;
}

.event-card {
    overflow: hidden;
}

.event-content {
    transition: all var(--animation-speed) var(--animation-easing);
}

.event-date {
    flex-shrink: 0;
}

.date-badge {
    transition: all var(--animation-speed) var(--animation-easing);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-details {
    flex: 1;
}

.event-header {
    margin-bottom: 0.75rem;
}

.event-title {
    transition: color var(--animation-speed) ease;
    margin: 0;
}

.event-meta {
    margin-bottom: 0.75rem;
}

.event-location {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-description {
    margin: 0;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}

.event-link {
    text-decoration: none;
    transition: all var(--animation-speed) ease;
}

/* CTA Buttons */
.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--animation-speed) var(--animation-easing);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

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

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-link {
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    font-size: 1.125rem;
}

/* Section CTA */
.section-cta {
    margin-top: 2rem;
}

/* Mobile menu styling (enhanced) */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    margin: 0.5rem;
    padding: 1rem;
    z-index: 50;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
    animation: fadeInUp var(--animation-speed) ease-out;
}

@media (max-width: 767px) {
    .mobile-menu.active {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Enhanced Navigation */
.nav-link {
    position: relative;
    transition: all var(--animation-speed) ease;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--animation-speed) ease;
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--animation-speed) var(--animation-easing);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    background-color: var(--surface-color);
    transition: all var(--animation-speed) ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    animation: fadeInUp var(--animation-speed) ease-out;
}

/* Enhanced Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    color: #92400e;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #fecaca;
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Enhanced Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Enhanced Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--animation-speed) ease;
    backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--surface-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    transition: all var(--animation-speed) var(--animation-easing);
    border: 1px solid var(--border-color);
}

.modal-backdrop.active .modal {
    transform: translate(-50%, -50%) scale(1);
}

/* Native Dialog Styles */
dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1001;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

dialog[open] {
    animation: dialogShow 0.3s ease-out;
}

dialog[open]::backdrop {
    animation: backdropShow 0.3s ease-out;
}

@keyframes dialogShow {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes backdropShow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.newsletter-dialog .modal {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: var(--surface-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--border-color);
}

/* Fallback styles for browsers without dialog support */
dialog:not([open]) {
    display: none;
}

/* Ensure dialog content is properly styled */
dialog .modal {
    margin: 0;
    padding: 0;
}

/* Focus management for dialog */
dialog:focus {
    outline: none;
}

/* Ensure proper stacking context */
/* Note: dialog[open] is already defined above */

/* Ensure fallback modals are properly hidden by default */
.modal-backdrop.hidden {
    display: none !important;
}

/* Prevent any visual conflicts between native dialog and fallback */
dialog[style*="display: none"] {
    display: none !important;
}

.newsletter-modal {
    max-width: 500px;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all var(--animation-speed) ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-intro {
    margin-bottom: 1.5rem;
}

.newsletter-icon {
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.newsletter-form {
    margin: 0;
}

.form-actions {
    margin-top: 1rem;
}

/* Back to Top Button */
.back-to-top {
    transition: all var(--animation-speed) var(--animation-easing);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* Empty States */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state svg {
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.7;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Hero stats are handled by Tailwind classes in HTML */
    
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-content {
        flex-direction: column;
        text-align: center;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .about-content .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:hidden { display: none; }
    .sm\:flex { display: flex; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
}

/* Dark Mode Styles */
.dark .hero-bg {
    filter: brightness(0.4);
}

.dark .card-modern {
    background: #1e293b;
    border-color: #334155;
}

.dark .modal {
    background: #1e293b;
    border-color: #334155;
}

.dark .form-input {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

.dark .form-input:focus {
    border-color: var(--primary-color);
    background: #475569;
}

.dark .btn-secondary {
    background: #475569;
    color: #f1f5f9;
}

.dark .btn-secondary:hover {
    background: #64748b;
}

.dark .about-content {
    background: #1e293b;
    border-color: #334155;
}

.dark .news-content {
    background: #1e293b;
    border-color: #334155;
}

.dark .event-content {
    background: #1e293b;
    border-color: #334155;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-input:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card-modern {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===========================================
   ADMIN PANEL MOBILE MENU STYLES - FIXED VERSION
   =========================================== */

/* Mobile menu button - only show on mobile */
.admin-mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background-color: #1f2937;
    color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

/* Mobile overlay */
.admin-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.admin-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Desktop styles - everything normal */
@media (min-width: 769px) {
    .admin-sidebar {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        height: auto !important;
        overflow-y: auto;
        width: 256px !important;
        max-width: none !important;
    }
    
    .admin-mobile-menu-btn {
        display: none !important;
    }
    
    .admin-mobile-close,
    .mobile-header {
        display: none !important;
    }
    
    .admin-mobile-overlay {
        display: none !important;
    }
    
    /* Desktop layout - sidebar takes space */
    .admin-content {
        margin-left: 0 !important;
        width: 100% !important;
        flex: 1;
    }
}

/* Mobile styles - COMPLETE FIX */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .admin-mobile-menu-btn {
        display: block !important;
    }

    /* Sidebar - Mobile positioning */
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        background: #1f2937;
        overflow-y: auto !important;
        padding-bottom: 2rem;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 1050 !important;
    }
    
    .admin-sidebar.active {
        transform: translateX(0) !important;
    }
    
    /* Main content - FIXED LAYOUT */
    .admin-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem !important;
        padding-top: 5rem !important; /* Space for hamburger */
        min-height: 100vh;
        flex: 1;
    }
    
    /* Mobile header and close button */
    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 1rem;
        border-bottom: 1px solid #374151;
    }
    
    .admin-mobile-close {
        display: inline-flex !important;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0.75rem;
        border-radius: 0.375rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better sidebar links on mobile */
    .sidebar-link {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .sidebar-link svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
        margin-right: 1rem !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.admin-menu-open {
        overflow: hidden;
    }
    
    /* Better mobile text sizes */
    .text-2xl {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    /* Better mobile buttons */
    .btn, button {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 44px !important;
    }
    
    /* Better mobile forms */
    .form-input, input, textarea, select {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 0.875rem !important;
        min-height: 44px !important;
    }
}

/* Ensure proper flex layout for admin panel */
.admin-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-panel > .flex {
    flex: 1;
    display: flex;
}

/* Fix flex container */
.flex.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* Ensure sidebar is properly positioned */
.admin-sidebar {
    flex-shrink: 0;
    background: #1f2937;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Main content area */
.admin-content {
    background: #f9fafb;
    padding: 1.5rem;
    overflow-x: hidden;
}

/* end style admin Styles */

/* Admin Panel  mobile layout for pages. */
/* ===========================================
   MOBILE TABLE SOLUTION - NO MORE HORIZONTAL SCROLLING
   Add this to your style.css file
   =========================================== */

@media (max-width: 768px) {
    
    /* ===========================================
       CONVERT TABLES TO CARDS ON MOBILE
       =========================================== */
    
    /* Hide table headers on mobile */
    .admin-content table thead {
        display: none;
    }
    
    /* Convert table to block layout */
    .admin-content table, 
    .admin-content tbody, 
    .admin-content tr {
        display: block;
        width: 100%;
    }
    
    /* Make each row a card */
    .admin-content tbody tr {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Style table cells as data rows */
    .admin-content td {
        display: block;
        padding: 0.5rem 0 !important;
        border: none !important;
        text-align: left !important;
        font-size: 0.875rem;
        min-height: auto !important;
        white-space: normal !important;
    }
    
    /* Add labels before each data cell */
    .admin-content td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #374151;
        display: inline-block;
        min-width: 80px;
    }
    
    /* Special handling for action buttons */
    .admin-content td:last-child {
        padding-top: 1rem !important;
        border-top: 1px solid #f3f4f6;
        margin-top: 0.5rem;
    }
    
    .admin-content td:last-child:before {
        content: "";
        display: none;
    }
    
    /* Stack action buttons vertically */
    .admin-content td:last-child .flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }
    
    .admin-content td:last-child .flex > * {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* ===========================================
       SPECIFIC TABLE IMPROVEMENTS
       =========================================== */
    
    /* User management table */
    .admin-content tr td:nth-child(1):before { content: "User"; }
    .admin-content tr td:nth-child(2):before { content: "Role"; }
    .admin-content tr td:nth-child(3):before { content: "Last Login"; }
    .admin-content tr td:nth-child(4):before { content: "Created"; }
    
    /* News management table */
    .admin-content tbody tr td:nth-child(1):before { content: "Article"; }
    .admin-content tbody tr td:nth-child(2):before { content: "Author"; }
    .admin-content tbody tr td:nth-child(3):before { content: "Published"; }
    .admin-content tbody tr td:nth-child(4):before { content: "Status"; }
    .admin-content tbody tr td:nth-child(5):before { content: "Featured"; }
    
    /* Events management table */
    .admin-content tbody tr td:nth-child(1):before { content: "Event"; }
    .admin-content tbody tr td:nth-child(2):before { content: "Date & Location"; }
    .admin-content tbody tr td:nth-child(3):before { content: "Status"; }
    
    /* Registrations table */
    .admin-content tbody tr td:nth-child(2):before { content: "Name"; }
    .admin-content tbody tr td:nth-child(3):before { content: "Email"; }
    .admin-content tbody tr td:nth-child(4):before { content: "Phone"; }
    .admin-content tbody tr td:nth-child(5):before { content: "Event"; }
    .admin-content tbody tr td:nth-child(6):before { content: "Status"; }
    .admin-content tbody tr td:nth-child(7):before { content: "Cost"; }
    .admin-content tbody tr td:nth-child(8):before { content: "Date"; }
    
    /* Contacts table */
    .admin-content tbody tr td:nth-child(1):before { content: "Sender"; }
    .admin-content tbody tr td:nth-child(2):before { content: "Subject"; }
    .admin-content tbody tr td:nth-child(3):before { content: "Event"; }
    .admin-content tbody tr td:nth-child(4):before { content: "Status"; }
    .admin-content tbody tr td:nth-child(5):before { content: "Received"; }
    
    /* Newsletter table */
    .admin-content tbody tr td:nth-child(1):before { content: "Email"; }
    .admin-content tbody tr td:nth-child(2):before { content: "Status"; }
    .admin-content tbody tr td:nth-child(3):before { content: "Subscribed"; }
    
    /* Airsports table */
    .admin-content tbody tr td:nth-child(1):before { content: "Airsport"; }
    .admin-content tbody tr td:nth-child(2):before { content: "Difficulty"; }
    .admin-content tbody tr td:nth-child(3):before { content: "Min Age"; }
    .admin-content tbody tr td:nth-child(4):before { content: "Status"; }
    .admin-content tbody tr td:nth-child(5):before { content: "Featured"; }
    
    /* ===========================================
       FORM IMPROVEMENTS ON MOBILE
       =========================================== */
    
    /* Select dropdowns - better mobile styling */
    select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.5rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        padding-right: 2.5rem;
    }
    
    /* Status badges - better mobile display */
    .inline-flex.px-2.py-1 {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    /* ===========================================
       BETTER SEARCH AND FILTERS
       =========================================== */
    
    /* Search input full width */
    form input[type="text"], 
    form input[type="search"], 
    form input[type="email"] {
        width: 100% !important;
    }
    
    /* Filter buttons stack */
    form .flex.gap-2 {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    form .flex.gap-2 button,
    form .flex.gap-2 a {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* ===========================================
       CHECKBOX IMPROVEMENTS
       =========================================== */
    
    /* Checkbox column - make it larger and easier to tap */
    .admin-content td:first-child {
        text-align: center !important;
        padding: 1rem 0 !important;
    }
    
    .admin-content td:first-child input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        margin: 0 auto !important;
    }
    
    .admin-content td:first-child:before {
        content: "Select";
        display: block !important;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #6b7280;
    }
    
    /* ===========================================
       BULK ACTIONS ON MOBILE
       =========================================== */
    
    /* Bulk actions - better mobile layout */
    #bulkActions {
        position: sticky !important;
        top: 0 !important;
        background: white !important;
        padding: 1rem !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 0.5rem !important;
        margin-bottom: 1rem !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        z-index: 10 !important;
    }
    
    #bulkActions .flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    #bulkActions button {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* ===========================================
       IMAGE HANDLING IN MOBILE CARDS
       =========================================== */
    
    /* Images in mobile cards */
    .admin-content td img {
        max-width: 60px !important;
        height: 60px !important;
        object-fit: cover !important;
        border-radius: 0.375rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* ===========================================
       PAGINATION ON MOBILE
       =========================================== */
    
    /* If you have pagination, make it mobile-friendly */
    .pagination {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .pagination button,
    .pagination a {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem !important;
    }
}

/* Admin Panel - Mobile Layout for pages end */
.flex-1.bg-gray-50 {
    margin-left: 256px !important;
    width: calc(100% - 256px) !important;
}

/* Fix dynamic form fields */
.entry {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    align-items: flex-end;
}

.entry input {
    flex: 1;
    min-width: 0;
}

.entry button {
    flex-shrink: 0;
    white-space: nowrap;
}
/* Smooth Scrolling - already defined above */

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

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #6d28d9 100%);
}

/* Selection */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: var(--text-primary);
}

/* Intersection Observer Animations */
.observe-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.observe-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Loading States */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Professional Enhancements */
.professional-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.smooth-transition {
    transition: all var(--animation-speed) var(--animation-easing);
}

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

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

/* Beautiful Gallery Styles */
.gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

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

.gallery-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gallery-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-filters {
    margin-top: 3rem;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-image-wrapper {
        height: 250px;
    }
    
    .gallery-overlay {
        padding: 1.5rem;
    }
    
    .gallery-title {
        font-size: 1.25rem;
    }
    
    .gallery-description {
        font-size: 0.85rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Gallery Animation */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: galleryFadeIn 0.6s ease-out forwards;
}

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