/* Divine Donation Page Styles */
:root {
    /* Divine Color Palette */
    --saffron: #FF9933;
    --gold: #FFD700;
    --white: #FFFFFF;
    --maroon: #8B0000;
    --divine-orange: #FF6B35;
    --sacred-yellow: #FFCC33;
    --holy-cream: #FFF8DC;
    --temple-red: #DC143C;
    --lotus-pink: #FFB6C1;
    --sky-blue: #87CEEB;
    
    /* Divine Gradients */
    --divine-gradient: linear-gradient(135deg, var(--saffron), var(--gold));
    --sacred-gradient: linear-gradient(135deg, var(--maroon), var(--temple-red));
    --holy-gradient: linear-gradient(135deg, var(--gold), var(--sacred-yellow));
    --celestial-gradient: linear-gradient(135deg, var(--sky-blue), var(--lotus-pink));
    
    /* Typography */
    --title-font: 'Merriweather', serif;
    --body-font: 'Poppins', sans-serif;
    --script-font: 'Dancing Script', cursive;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    --card-padding: 2rem;
    
    /* Effects */
    --divine-shadow: 0 10px 30px rgba(255, 153, 51, 0.3);
    --sacred-shadow: 0 15px 35px rgba(139, 0, 0, 0.4);
    --glow-effect: 0 0 20px rgba(255, 215, 0, 0.6);
    --soft-glow: 0 0 15px rgba(255, 153, 51, 0.4);
    
    /* Animations */
    --bounce-animation: bounce 2s infinite;
    --glow-animation: glow 3s ease-in-out infinite alternate;
    --float-animation: float 6s ease-in-out infinite;
}

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

.ornament-text {
    margin-left: 18px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, var(--holy-cream), var(--white));
    overflow-x: hidden;
    position: relative;
}

/* Divine Background Patterns */
.divine-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 153, 51, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    animation: var(--float-animation);
}

.divine-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FF9933' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(255, 215, 0, 0.1)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="lotus" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="3" fill="%23FF9933" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23lotus)"/></svg>');
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 248, 220, 0.8) 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: var(--title-font);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--divine-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(255, 153, 51, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--maroon);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.ornament-symbol {
    font-size: 2rem;
    animation: var(--float-animation);
}

.ornament-text {
    font-family: var(--script-font);
    font-size: 1.8rem;
    color: var(--maroon);
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: relative;
    animation: var(--bounce-animation);
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
}

/* Main Content */
.main {
    padding-top: 2rem;
}

/* Services Section */
.services-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--white), var(--holy-cream));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--title-font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.title-ornament {
    font-size: 2rem;
    color: var(--gold);
    font-weight: bold;
}

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

.donation-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--divine-shadow);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--divine-gradient);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donation-card:hover::before {
    opacity: 1;
}

.donation-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--sacred-shadow);
}

.card-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-image-container {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    min-height: 80px;
}

.card-image {
    max-width: 150px;
    max-height: 70px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card-image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-icon-fallback {
    animation: var(--float-animation);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
    animation: var(--float-animation);
}

.card-title {
    font-family: var(--title-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 0.3rem;
}

.card-subtitle {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.card-content {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 0.9rem;
    flex: 1;
}

.card-features {
    list-style: none;
    margin-bottom: 2rem;
}

.card-features li {
    padding: 0.3rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.card-features li::before {
    content: '🪷';
    position: absolute;
    left: 0;
    top: 0.3rem;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.price-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.price-option {
    padding: 0.3rem 0.8rem;
    background: var(--holy-cream);
    border: 1px solid var(--gold);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--maroon);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.price-option:hover,
.price-option.selected {
    background: var(--divine-gradient);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--soft-glow);
}

.donate-btn {
    background: var(--divine-gradient);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--divine-shadow);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.donate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--sacred-gradient);
    transition: left 0.3s ease;
    z-index: 1;
}

.donate-btn:hover::before {
    left: 0;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sacred-shadow);
}

.donate-btn span {
    position: relative;
    z-index: 2;
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background: var(--holy-gradient);
    color: var(--white);
}

.about-title {
    font-family: var(--title-font);
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.about-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: var(--float-animation);
}

.about-item-title {
    font-family: var(--title-font);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.about-item-text {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background: var(--maroon);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-mantra {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    color: red;
    font-weight: 700;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 220, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: var(--maroon);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gold);
    border-top: 4px solid var(--saffron);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--maroon);
}

/* Animations */
@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.8); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 0 1rem;
        --card-padding: 1rem;
    }
    
    .hero {
        height: 70vh;
        padding: 6rem 1rem 2rem;
    }
    
    .donation-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .price-options {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .donate-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .donation-card {
        padding: 1.2rem;
        min-height: 420px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-header {
        min-height: 130px;
    }
    
    .price-options {
        flex-direction: row;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .price-option {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .donate-btn {
        width: 100%;
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .card-footer {
        gap: 1.2rem;
    }
}
