/* Custom CSS for Donna Milani Luther Website */

/* Font Loading and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* Text Selection Colors - Brand Standards */
::selection {
    background-color: #fbbf24; /* Accent yellow */
    color: #1f2937; /* Dark gray for readability */
}

::-moz-selection {
    background-color: #fbbf24; /* Accent yellow */
    color: #1f2937; /* Dark gray for readability */
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Colorful Wave Dividers with dramatic movement */
.wave-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
    animation: wave-container-pulse 6s ease-in-out infinite;
}

/* Container gentle wave motion */
@keyframes wave-container-pulse {
    0%, 100% {
        transform: scaleY(1) translateY(0);
    }
    50% {
        transform: scaleY(1.02) translateY(-2px);
    }
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    animation: ocean-waves 6s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Ocean-like wave animation - up and down movement */
@keyframes ocean-waves {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    25% {
        transform: translateY(-8px) scaleY(1.1);
    }
    50% {
        transform: translateY(5px) scaleY(0.9);
    }
    75% {
        transform: translateY(-3px) scaleY(1.05);
    }
}

/* Second wave path with different timing */
.wave-divider svg path:nth-child(2) {
    animation: ocean-waves-delayed 6s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes ocean-waves-delayed {
    0%, 100% {
        transform: translateY(3px) scaleY(1);
    }
    25% {
        transform: translateY(-5px) scaleY(0.95);
    }
    50% {
        transform: translateY(8px) scaleY(1.15);
    }
    75% {
        transform: translateY(-2px) scaleY(0.9);
    }
}

/* Wave variations with brown integration */
.wave-warm {
    background: linear-gradient(135deg, #fed7aa 0%, #fbbf24 50%, #ea580c 100%);
    animation: gradient-shift 4s ease-in-out infinite;
}

.wave-sunset {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #dc2626 100%);
    animation: gradient-shift 5s ease-in-out infinite reverse;
}

.wave-fire {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f97316 100%);
    animation: gradient-shift 3s ease-in-out infinite;
}

.wave-earth {
    background: linear-gradient(135deg, #8b4513 0%, #d2b48c 50%, #fbbf24 100%);
    animation: gradient-shift 6s ease-in-out infinite;
}

.wave-autumn {
    background: linear-gradient(135deg, #d2b48c 0%, #ea580c 50%, #8b4513 100%);
    animation: gradient-shift 4.5s ease-in-out infinite reverse;
}

/* Subtle gradient animation */
@keyframes gradient-shift {
    0%, 100% {
        background-size: 200% 200%;
        background-position: 0% 50%;
    }
    50% {
        background-size: 200% 200%;
        background-position: 100% 50%;
    }
}

/* Paint splatter effects for section transitions */
.paint-splatter {
    position: relative;
    overflow: visible;
}

.paint-splatter::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 10%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(251,191,36,0.7) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70%;
    animation: splatter-float 8s ease-in-out infinite;
}

.paint-splatter::after {
    content: '';
    position: absolute;
    top: -15px;
    right: 15%;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, rgba(234,88,12,0.6) 0%, transparent 70%);
    border-radius: 50% 80% 20% 60%;
    animation: splatter-float 6s ease-in-out infinite reverse;
}

@keyframes splatter-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) rotate(180deg) scale(1.2);
        opacity: 0.4;
    }
}

/* Hero Image Fallback */
.hero-image {
    background-color: #f3f4f6;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100%;
}

.hero-image img {
    transition: opacity 0.3s ease-in-out;
}



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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation Keyframes */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(29, 78, 216, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(29, 78, 216, 0.5);
    }
}

/* Utility Classes */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

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

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(90deg, #ffffff, #f3f4f6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Button Enhancements */
.cta-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-button::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.6s ease;
}

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

.cta-button-secondary {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Card Enhancements */
.impact-card, .testimonial-card, .offering-card, .philosophy-card {
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.impact-card:hover, .testimonial-card:hover, .offering-card:hover, .philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.offering-card:hover {
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(135deg, #dc2626, #ea580c, #fbbf24);
    -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%;
    }
}

/* Enhanced Backgrounds */
.section-bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.1) 0%, transparent 50%);
}

/* Mobile Menu Animation */
.mobile-menu {
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Form Enhancements */
input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Loading Animation for Images */
.image-placeholder {
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0, #f1f5f9);
    background-size: 400% 400%;
    animation: gradient-loading 2s ease-in-out infinite;
}

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

/* Quote Styling */
blockquote {
    position: relative;
}

blockquote::before, blockquote::after {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    line-height: 1;
    opacity: 0.2;
    position: absolute;
}

/* Hover Effects for Social Icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
}

/* Award Items Animation */
.award-item {
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: scale(1.05);
}

/* Parallax Effect */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced Focus States */
*:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #374151 !important;
    }
    
    .text-gray-700 {
        color: #111827 !important;
    }
    
    .border-gray-200 {
        border-color: #6b7280 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-delay: 0s !important;
        transition-duration: 0s !important;
    }
}

/* Custom Selection Color */
::selection {
    background-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

::-moz-selection {
    background-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
}

/* Enhanced Accessibility */
.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;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #dc2626;
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Video Background Styles */
#hero video {
    transition: opacity 1s ease-in-out;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Ensure video doesn't interfere with text */
#hero .absolute.inset-0 {
    z-index: 1;
}

#hero .relative.z-10 {
    z-index: 10;
}

/* Video loading state */
.video-loading {
    background: linear-gradient(45deg, #dc2626, #ea580c, #f97316);
    background-size: 400% 400%;
    animation: gradient-loading 2s ease-in-out infinite;
}

/* Mobile video optimization */
@media (max-width: 768px) {
    #hero video {
        object-position: center center;
    }
}

/* Professional Photo Styling */
#about img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

#about img:hover {
    transform: scale(1.02);
    filter: brightness(1.05) contrast(1.05);
}

/* Image loading state */
#about img[loading="lazy"] {
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0, #f1f5f9);
    background-size: 400% 400%;
    animation: gradient-loading 2s ease-in-out infinite;
}

/* Counter Animation Styles */
.counter {
    display: inline-block;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.impact-card .counter {
    color: inherit;
    font-weight: 700;
}

/* Enhanced impact card number styling */
.impact-card .text-4xl {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pulse animation for numbers when they're counting */
.counter.animating {
    animation: counter-pulse 0.1s ease-in-out;
}

@keyframes counter-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Reduced motion: Show static background instead of video */
@media (prefers-reduced-motion: reduce) {
    #hero video {
        display: none;
    }
    
    #hero .absolute.inset-0::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f97316 100%);
        z-index: -1;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}