@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Accessibility improvements */
.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: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Core font optimization */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-display: swap;
}

.gradient-bg {
    background: linear-gradient(135deg, #FDFBF0 0%, #f8f6e8 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(63, 83, 94, 0.1);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.section-divider {
    background: linear-gradient(90deg, transparent, #8BB7A2, transparent);
    height: 2px;
    margin: 4rem 0;
}

/* Custom Tailwind Colors */
:root {
    --cream: #FDFBF0;
    --navy: #3F535E;
    --orange: #F9915A;
    --blue: #5EA2B9;
    --green: #8BB7A2;
}

/* Lightbox specific styles */
#lightbox {
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

#lightbox.hidden {
    animation: fadeOut 0.3s ease-out;
}

#lightboxImage {
    animation: zoomIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom button hover effects */
.btn-primary {
    background: var(--orange);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(249, 145, 90, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 145, 90, 0.3);
}

.btn-secondary {
    border: 2px solid var(--blue);
    color: var(--blue);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}

/* Gallery image hover effects */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Lightbox button styles */
.lightbox-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Navigation hover effects */
.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--orange);
}

/* Section animations */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}