/* Custom styles for Hope Retreat Center */

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

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

.geo-shape:nth-child(2) {
    animation-delay: -2s;
}

.geo-shape:nth-child(3) {
    animation-delay: -4s;
}

/* Gradient text animation */
.text-gradient {
    background: linear-gradient(135deg, #FF5722 0%, #FF8F6B 50%, #FF5722 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

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

/* Pulse animation for decorative elements */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.circle-decoration {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Custom focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #FF5722;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .circle-decoration,
    .text-gradient {
        animation: none;
    }
    
    .card-hover,
    .btn-primary,
    .img-zoom,
    .nav-link::after {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .geo-shape,
    .animate-bounce,
    .reveal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-charcoal-900,
    .bg-charcoal-800 {
        background: white !important;
    }
    
    .text-charcoal-500,
    .text-charcoal-600,
    .text-charcoal-700 {
        color: #333 !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
    
    .card-hover {
        border: 1px solid ButtonText;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .card-hover:hover {
        transform: none;
    }
    
    .img-zoom:hover {
        transform: none;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Small screen optimizations */
@media (max-width: 360px) {
    .font-heading {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
        padding: 4rem 0;
    }
}

/* PDF generation optimization */
@media print {
    .bg-charcoal-900,
    .bg-charcoal-800 {
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
