/* Custom Styles for P.A.W.C. Church Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #fdf8fc;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.01em;
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Onload Animations */
.on-load-hidden {
    opacity: 0;
    transform: translateY(40px);
}

.animate-up {
    animation: slideUpFade 1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* Apply animations to elements with these classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ndebele-inspired Border */
.ndebele-border {
    position: relative;
    border: 3px solid #d90452;
    padding: 6px;
    background: white;
    box-shadow: 12px 12px 0 #5b1e5b;
}

.ndebele-border::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid #7b2c7b;
    pointer-events: none;
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -12px rgba(91, 30, 91, 0.25);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #5b1e5b 0%, #d90452 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1e6f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d90452, #7b2c7b);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a1033e, #5b1e5b);
}

/* Mobile Bottom Navigation Styles */
.mobile-nav-item {
    position: relative;
    transition: all 0.25s ease;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-item i {
    transition: transform 0.2s ease;
}

.mobile-nav-item:hover i {
    transform: translateY(-2px);
}

/* Active nav indicator */
.mobile-nav-item.text-pawc-pinkred::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #d90452;
    border-radius: 3px 3px 0 0;
}

/* Desktop Navigation Link Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d90452;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.text-pawc-pinkred::after {
    width: 100%;
}

/* Form Focus Styles */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    ring: 2px solid #d90452;
    border-color: #d90452;
}

/* Prose Styles for Content */
.prose {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Page Load Animation for Hero */
.hero-animate {
    opacity: 0;
    animation: heroReveal 1.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Pulse animation for hearts */
@keyframes pulseHeart {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.animate-pulse-heart {
    animation: pulseHeart 1.5s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .ndebele-border {
        box-shadow: 8px 8px 0 #5b1e5b;
    }
    
    /* Add bottom padding for mobile navigation */
    body {
        padding-bottom: 75px;
    }
    
    /* Adjust footer padding for mobile */
    footer {
        padding-bottom: 20px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        padding-bottom: 0;
    }
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Smooth page transitions */
.page-transition {
    animation: fadeIn 0.4s ease;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(91, 30, 91, 0.15);
}

/* Gradient borders */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #d90452, #5b1e5b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}