:root {
    /* Colors */
    --primary: #9b59b6;
    /* Vivid soft purple from logo vibe */
    --primary-dark: #8e44ad;
    --accent: #f1c40f;
    /* Warm yellow/orange */
    --accent-hover: #f39c12;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-off-white: #f9fafb;
    --bg-light-purple: #f3e5f5;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 5rem 1.5rem;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.hero-title,
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.5em;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--text-dark);
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    padding: 0;
    background: none;
    border: none;
}

.btn-text:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.btn-lg {
    padding: 1em 2em;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5em 1em;
    font-size: 0.9rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: 0.4s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    /* Full viewport height minus some */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    margin-top: 60px;
    /* Space for fixed nav */
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 28, 44, 0.7), rgba(155, 89, 182, 0.6));
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: 3.5rem;
    /* Large impact */
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Stats Banner */
.stats-banner {
    padding: 3rem 0;
    background-color: var(--bg-white);
    margin-top: -3rem;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.stats-banner .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--bg-light-purple);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    text-align: left;
}

.stat-item i {
    font-size: 1.5rem;
    /* Adjusted for fixed size container */
    color: var(--primary);
    background: var(--bg-light-purple);
    width: 60px;
    /* Fixed width */
    height: 60px;
    /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Perfect circle */
    flex-shrink: 0;
    /* Prevent squishing */
}

.stat-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-image .image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-image .image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.split-image .image-wrapper:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: -20px;
    background-color: var(--bg-light-purple);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* Image Grid */
.image-grid-section {
    padding-bottom: 2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.grid-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

/* Donation Grid */
.contrast-bg {
    background-color: var(--bg-off-white);
}

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

.donation-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.donation-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bg-light-purple);
}

.donation-card.featured {
    border: 2px solid var(--primary);
    background: #fffafa;
    /* Very slight pinkish white */
    position: relative;
    overflow: hidden;
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-bottom-left-radius: 10px;
    font-weight: 700;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.amount {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.impact-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    flex-grow: 1;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn i {
    font-size: 1rem;
}

/* Prayer Section */
.prayer-section .image-wrapper {
    /* Respect aspect ratio, no fixed height */
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    /* Fallback */
    /* CSS Squircle attempt using clip-path (superellipse approximation) */
    clip-path: path('M 0,20 C 0,0 0,0 20,0 L 98%,0 C 100%,0 100%,0 100%,20 L 100%,98% C 100%,100% 100%,100% 98%,100% L 20,100% C 0,100% 0,100% 0,98% Z');
    /* Note: The above path is a rough example. A better way for dynamic resizing might be mask-image. 
       However, for simplicity and robustness, sticking to a nice border-radius or mask is safer. 
       Let's use a super-ellipse mask if possible, or just a very smooth radius. */
    border-radius: 24px;
    /* Matches iOS-like smooth curves */
}

.prayer-section .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Squircle Utility for other images if needed */
.squircle {
    border-radius: 20px;
    /* Fallback */
    mask-image: paint(squircle);
    /* Future proofing? No, simpler: */
    /* Just standard smooth radius for now unless we import an SVG */
    border-radius: 24px;
}

.prayer-list {
    margin-top: 2rem;
}

.prayer-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.prayer-list .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.prayer-list .text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

/* Volunteer Section */
.volunteer-section {
    padding-bottom: 6rem;
}

.cta-box {
    background: var(--text-dark);
    color: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
}

.volunteer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: none;
    font-family: inherit;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Animations */
.reveal-text,
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-text.active,
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.active {
    opacity: 1;
}

.scale-up {
    transform: scale(0.95);
    opacity: 0;
}

.scale-up.active {
    transform: scale(1);
    opacity: 1;
}


/* Custom Ransom Note Logo */
.logo-custom {
    display: flex;
    align-items: center;
    gap: 4px;
    /* gap-1 */
    user-select: none;
    text-decoration: none;
}

.logo-char {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    /* rounded-sm */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    font-weight: 700;
}

.logo-char:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Letter A - Pink */
.char-a1 {
    background-color: #E91E63;
    /* agape-pink approx */
    color: white;
    font-family: serif;
    font-size: 1.25rem;
    /* text-xl */
    padding: 0.25rem 0.5rem;
    transform: rotate(-6deg);
}

.char-a1:hover {
    transform: rotate(-5deg) scale(1.1);
}

/* Letter g - Yellow/Cream */
.char-g {
    background-color: #F8D56B;
    /* agape-yellow approx */
    color: #4a148c;
    /* agape-purple approx */
    font-family: sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    padding: 0.5rem 0.25rem 0 0.25rem;
    border-radius: 50%;
    transform: rotate(3deg);
    border: 2px solid rgba(74, 20, 140, 0.1);
}

.char-g:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Letter a - Dark Purple */
.char-a2 {
    background-color: #4a148c;
    /* agape-purple */
    color: #F8D56B;
    /* agape-yellow */
    font-family: serif;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    transform: rotate(-3deg);
}

.char-a2:hover {
    transform: rotate(-3deg) scale(1.1);
}

/* Letter p - Orange/Brown */
.char-p {
    background-color: #8B4513;
    /* Brown from snippet */
    color: white;
    font-family: sans-serif;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    transform: rotate(6deg);
}

.char-p:hover {
    transform: rotate(6deg) scale(1.1);
}

/* Letter e - Orange */
.char-e {
    background-color: #ff9800;
    /* agape-orange */
    color: white;
    font-family: serif;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transform: rotate(-2deg);
}

.char-e:hover {
    transform: rotate(-4deg) scale(1.1);
}


/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .stats-banner .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-box {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    /* Share buttons - 2 rows on mobile (3 buttons per row) */
    .share-buttons {
        max-width: 160px;
        gap: 0.5rem;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stat-item {
        justify-content: flex-start;
        /* Left align on mobile for better reading */
        text-align: left;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    z-index: 2001;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary);
}

@media (max-width: 600px) {
    .lightbox-content {
        width: 100%;
    }
}