/*
 * Modern Premium Enhancements for Kind Heart Charity
 * Advanced animations, transitions, and modern UI effects
 */

/* ============================================
   MODERN CSS VARIABLES & ENHANCEMENTS
   ============================================ */
:root {
    /* Enhanced Color Palette */
    /* --gradient-primary: linear-gradient(135deg, #5bc1ac 0%, #4a9d8f 100%); */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(91, 193, 172, 0.9) 0%, rgba(90, 111, 128, 0.8) 100%);
    --golden: #FFD700;
    --gradient-logo: linear-gradient(135deg, #7C3AED 0%, #FFD700 100%);
    --royal-purple: #4C1D95;
    --primary-purple: #7C3AED;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-colored: 0 8px 30px #7C3AED;

    /* Animation Timings */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   SMOOTH SCROLLING & BASE ANIMATIONS
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}


.hover-golden:hover {
    color: var(--golden) !important;
}
/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   MODERN GLASSMORPHISM NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    transition: all var(--transition-base);
    position: relative;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand .logo {
    transition: all var(--transition-base);
    filter: drop-shadow(0 4px 8px rgba(91, 193, 172, 0.2));
}

.navbar-brand:hover .logo {
    transform: scale(1.05) rotate(-2deg);
}

/* Modern Nav Links */
.nav-link {
    position: relative;
    font-weight: 500;
    transition: all var(--transition-base);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: #5bc1ac !important;
    transform: translateY(-2px);
}

/* Premium Dropdown */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(91, 193, 172, 0.1);
    box-shadow: var(--shadow-lg);
    border-radius: 15px;
    padding: 10px;
    margin-top: 10px;
    animation: fadeInDown 0.3s ease;
}

.dropdown-item {
    border-radius: 10px;
    transition: all var(--transition-fast);
    margin: 2px 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(91, 193, 172, 0.1) 0%, rgba(91, 193, 172, 0.2) 100%);
    transform: translateX(5px);
    color: #5bc1ac;
}

/* ============================================
   ENHANCED HEADER WITH ANIMATIONS
   ============================================ */
.site-header {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.site-header p,
.site-header a {
    color: white !important;
    transition: all var(--transition-fast);
}

.site-header a:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon-item {
    transition: all var(--transition-base);
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.social-icon-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    transform: scale(0);
    border-radius: 50%;
    transition: transform var(--transition-base);
    z-index: -1;
}

.social-icon-link:hover::before {
    transform: scale(1);
}

.social-icon-link:hover {
    color: #5bc1ac !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   PREMIUM HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    transition: transform 1s ease;
}

.carousel-image {
    transition: transform 8s ease;
}

.carousel-item.active .carousel-image {
    animation: kenBurns 8s ease infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.carousel-caption {
    background: var(--gradient-overlay);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease;
    box-shadow: var(--shadow-xl);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s backwards;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 1.3rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Modern Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Bootstrap Icons in Carousel Controls */
.carousel-control-prev .bi,
.carousel-control-next .bi {
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   MODERN BUTTONS & CTAs
   ============================================ */
.custom-btn {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.custom-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.custom-btn:hover::before {
    width: 300px;
    height: 300px;
}

.custom-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
    color: var(--golden) !important;
}

.custom-btn:active {
    transform: translateY(-1px);
}

/* Donate Button Special Effect */
.navbar .custom-btn {
    background: var(--gradient-primary);
    color: white !important;
    animation: pulse 2s ease infinite;
}

.navbar .custom-btn:hover {
    animation: none;
}

/* ============================================
   FEATURED BLOCKS WITH 3D EFFECTS
   ============================================ */
.featured-block {
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.featured-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: 20px;
}

.featured-block:hover::before {
    opacity: 0.1;
}

.featured-block:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.featured-block-image {
    transition: all var(--transition-base);
    filter: drop-shadow(0 4px 10px rgba(91, 193, 172, 0.3));
}

.featured-block:hover .featured-block-image {
    transform: scale(1.1) rotate(5deg);
    animation: float 3s ease infinite;
}

/* Featured Block Icons */
.featured-block-icon {
    font-size: 4rem;
    color: var(--gradient-primary);
    background: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    width: 100%;
    text-align: center;
    transition: all var(--transition-base);
}

.featured-block:hover .featured-block-icon {
    transform: scale(1.1) rotate(5deg);
    animation: float 3s ease infinite;
    filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.4));
}

.featured-block-text {
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.featured-block:hover .featured-block-text {
    color: #5bc1ac;
    transform: scale(1.05);
}

/* ============================================
   MODERN CARDS FOR CAUSES
   ============================================ */
.custom-block-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    background: white;
}

.custom-block-wrap:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.custom-block-image {
    transition: all var(--transition-slow);
    transform-origin: center;
}

.custom-block-wrap:hover .custom-block-image {
    transform: scale(1.15) rotate(2deg);
}

.custom-block {
    position: relative;
    background: white;
    border-radius: 0 0 20px 20px;
}

.custom-block-body {
    padding: 30px;
    animation: fadeInUp 0.6s ease;
}

/* Animated Progress Bars */
.progress {
    height: 12px;
    border-radius: 10px;
    background: rgba(91, 193, 172, 0.1);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.custom-block-wrap:hover .progress-bar {
    box-shadow: 0 0 20px rgba(91, 193, 172, 0.5);
}

/* ============================================
   ENHANCED FORMS
   ============================================ */
.custom-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease;
}

.form-control {
    border: 2px solid #e9eaeb;
    border-radius: 12px;
    padding: 14px 20px;
    transition: all var(--transition-base);
    font-size: 15px;
}

.form-control:focus {
    border-color: #5bc1ac;
    box-shadow: 0 0 0 4px rgba(91, 193, 172, 0.1);
    transform: translateY(-2px);
}

.form-control[type="submit"],
button.form-control {
    background: var(--gradient-primary);
    color: var(--golden);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

.form-control[type="submit"]:hover,
button.form-control:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

/* ============================================
   NEWS CARDS WITH MODERN DESIGN
   ============================================ */
.news-block {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
}

.news-block:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    transition: all var(--transition-slow);
}

.news-block:hover .news-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.news-category-block {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--secondary-color);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    animation: fadeInLeft 0.6s ease;
}

.category-block-link {
    transition: all var(--transition-fast);
    display: inline-block;
    color: white !important;
    font-weight: 600;
}

.category-block-link:hover {
    /* color: #00D4FF; */
    transform: scale(1.1);
}

/* ============================================
   COUNTER ANIMATIONS
   ============================================ */
.counter-thumb {
    animation: scaleIn 0.8s ease;
}

.counter-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   TESTIMONIAL ENHANCEMENTS
   ============================================ */
.testimonial-section {
    position: relative;
    overflow: hidden;
}

.carousel-caption h4 {
    font-style: italic;
    position: relative;
    padding: 20px 0;
}

.carousel-caption h4::before,
.carousel-caption h4::after {
    content: '"';
    font-size: 4rem;
    color: rgba(91, 193, 172, 0.3);
    position: absolute;
}

.carousel-caption h4::before {
    top: -10px;
    left: -30px;
}

.carousel-caption h4::after {
    bottom: -30px;
    right: -30px;
}

.avatar-image {
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.avatar-image:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl);
    border-color: #5bc1ac;
}

/* ============================================
   FOOTER ENHANCEMENTS
   ============================================ */
.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-menu-link {
    position: relative;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-menu-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition-base);
}

.footer-menu-link:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-menu-link:hover {
    transform: translateX(10px);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(91, 193, 172, 0.2);
    border-top-color: #5bc1ac;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 991px) {
    .navbar {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform var(--transition-base);
}

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

.hover-glow {
    transition: all var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(91, 193, 172, 0.4);
}
