/* Custom CSS for Nunya - Children's Art Gallery */

/* Root Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    
    /* Green Color Palette */
    --green-primary: #10b981;
    --green-light: #22c55e;
    --green-dark: #047857;
    --green-accent: #16a34a;
    --green-nature: #059669;
    --green-mint: #6ee7b7;
    --green-forest: #065f46;
    
    /* Enhanced Gradients with Green */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-nature: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    --gradient-forest: linear-gradient(135deg, #047857 0%, #10b981 100%);
    --gradient-creative: linear-gradient(135deg, #8b5cf6 0%, #10b981 100%);
    --gradient-sky: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-sunset: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-green: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', cursive;
    font-weight: 600;
    line-height: 1.2;
}

.brand-text {
    font-family: 'Fredoka', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: none;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-artwork {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.artwork-frame {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-large);
}

.artwork-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.artwork-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.artwork-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
    background: rgba(99, 102, 241, 0.2);
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
    background: rgba(139, 92, 246, 0.15);
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
    background: rgba(6, 182, 212, 0.2);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.stat-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Fredoka', cursive;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-item:nth-child(1) .stat-number {
    color: var(--green-primary);
}

.stat-item:nth-child(2) .stat-number {
    color: var(--green-accent);
}

.stat-item:nth-child(3) .stat-number {
    color: var(--green-light);
}

.stat-item:nth-child(4) .stat-number {
    color: var(--green-nature);
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}

.art-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
}

.art-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
    border: 2px solid var(--green-mint);
}

.art-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

/* Artwork Images */
.artwork-img, .hero-artwork-img, .about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    display: block;
}

.artwork-img:hover {
    transform: scale(1.05);
}

.hero-artwork-img {
    border-radius: 15px;
}

.about-img {
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

/* Image loading states */
.artwork-img[src=""], 
.artwork-img:not([src]),
.hero-artwork-img[src=""], 
.hero-artwork-img:not([src]),
.about-img[src=""], 
.about-img:not([src]) {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.artwork-img[src=""]::before,
.artwork-img:not([src])::before {
    content: "🎨 Loading...";
}

.hero-artwork-img[src=""]::before,
.hero-artwork-img:not([src])::before {
    content: "Featured Artwork";
}

.about-img[src=""]::before,
.about-img:not([src])::before {
    content: "Children Creating Art";
}

/* Fallback for artwork placeholders */
.artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.artwork-1 {
    background: var(--gradient-warm);
}

.artwork-2 {
    background: var(--gradient-cool);
}

.artwork-3 {
    background: var(--gradient-primary);
}

.artwork-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.art-info {
    padding: 20px;
}

.art-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.art-artist {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.art-actions .btn {
    margin-right: 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 5px 15px;
}

.art-actions .btn-outline-primary:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: white;
}

.art-actions .btn-outline-secondary:hover {
    background: var(--green-accent);
    border-color: var(--green-accent);
    color: white;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    padding: 15px 0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-nature);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-green);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.about-img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-large);
    border: 3px solid var(--green-mint);
}

/* Fallback for about image placeholder */
.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Volunteer Section */
.volunteer-section {
    padding: 80px 0;
}

.volunteer-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
}

.volunteer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.volunteer-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-nature);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-green);
    transition: all 0.3s ease;
}

.volunteer-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-large);
}

.volunteer-icon i {
    font-size: 2rem;
    color: white;
}

.volunteer-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.volunteer-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Donate Section */
.donate-section {
    padding: 80px 0;
    background: var(--gradient-primary);
}

.donation-amounts .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.donation-amounts .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.donation-form .card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.donation-form .card-body {
    padding: 30px;
}

.donation-form .form-control {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.donation-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.contact-form .form-control {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 1rem;
}

.footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer .text-white-50:hover {
    color: white !important;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--green-primary);
    transform: translateY(-2px);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-nature);
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-forest);
    filter: brightness(1.1);
}

.btn-warning {
    background: var(--gradient-warm);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: var(--gradient-warm);
    filter: brightness(1.1);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
}

.btn-outline-primary:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .artwork-frame {
        width: 250px;
        height: 250px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .artwork-frame {
        width: 200px;
        height: 200px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .volunteer-card {
        padding: 30px 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-warm {
    background: var(--gradient-warm);
}

.bg-gradient-cool {
    background: var(--gradient-cool);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.shadow-medium {
    box-shadow: var(--shadow-medium);
}

.shadow-large {
    box-shadow: var(--shadow-large);
}
