/* ============================================
   Rang Welfare Foundation - Custom CSS
   ============================================ */

/* ============================================
   Custom Variables
   ============================================ */
:root {
    --primary-orange: #ff6b35;
    --primary-emerald: #10b981;
    --primary-navy: #0f172a;
    --primary-white: #ffffff;
    --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-navy: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient-orange {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-orange {
    background: var(--gradient-orange);
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.section-padding {
    padding: 100px 0;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Page Loader
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--primary-white);
    font-size: 1.2rem;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   Navbar Styles
   ============================================ */
.navbar {
    padding: 12px 20px;
    transition: all var(--transition-normal);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-white) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 30px;
    margin-left: 0;
    padding-left: 0;
    gap: 12px;
}

.navbar-brand .navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .brand-orange {
    color: var(--primary-orange);
}

.nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 8px 12px !important;
    position: relative;
    transition: var(--transition-fast);
    font-size: 0.8rem;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-white) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 25px;
}

.btn-donate {
    background: var(--gradient-orange);
    color: var(--primary-white) !important;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-donate:hover::before {
    left: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-white);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.theme-toggle:hover {
    background: var(--gradient-orange);
    border-color: transparent;
    transform: rotate(180deg);
}

/* Mobile Menu */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: none;
}

.navbar-toggler:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
}

/* Force navbar-toggler to be visible on mobile */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .navbar-brand {
        margin-left: 15px;
    }
}

/* Hide navbar-toggler on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Mobile Menu Dropdown */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        padding: 15px;
        border-radius: var(--radius-lg);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .navbar-nav .nav-link {
        padding: 12px 20px !important;
        display: block;
    }

    .navbar .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar .d-flex .btn-donate {
        width: 100%;
        text-align: center;
    }
}

/* Navbar container to ensure one line */
.navbar .container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0;
    margin: 0;
    max-width: none;
}

.navbar-brand {
    flex-shrink: 0;
    margin-right: 30px;
    margin-left: 20px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: center;
}

.navbar .nav-item {
    flex-shrink: 0;
}

.navbar .d-flex {
    gap: 8px;
    flex-shrink: 0;
}

/* Mobile navbar layout */
@media (max-width: 991px) {
    .navbar .container-custom {
        flex-direction: row;
    }

    .navbar-toggler {
        display: block !important;
        order: -1;
        margin-right: 15px;
        margin-left: 0;
    }

    .navbar-brand {
        order: 0;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .navbar-collapse {
        order: 1;
    }
}

/* Force one line on desktop */
@media (min-width: 992px) {
    .navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    
    .navbar .navbar-toggler {
        display: none;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar .container-custom {
        padding: 0 15px;
    }
}

/* For medium screens, hide some menu items */
@media (min-width: 992px) and (max-width: 1300px) {
    .navbar .nav-item:nth-child(6) {
        display: none;
    }
}

/* For smaller desktop screens, hide more items */
@media (min-width: 992px) and (max-width: 1150px) {
    .navbar .nav-item:nth-child(5),
    .navbar .nav-item:nth-child(6) {
        display: none;
    }
}

/* For very small desktop screens, hide even more */
@media (min-width: 992px) and (max-width: 1050px) {
    .navbar .nav-item:nth-child(4),
    .navbar .nav-item:nth-child(5),
    .navbar .nav-item:nth-child(6) {
        display: none;
    }

    .navbar .theme-toggle {
        display: none;
    }
}

/* Ensure mobile menu is visible on all mobile devices */
@media (max-width: 991px) {
    .navbar .nav-item {
        display: block !important;
    }

    .navbar .theme-toggle {
        display: flex !important;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section .hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-section .hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideshow 20s infinite;
}

.hero-section .hero-slideshow .slide-1 {
    animation-delay: 0s;
}

.hero-section .hero-slideshow .slide-2 {
    animation-delay: 5s;
}

.hero-section .hero-slideshow .slide-3 {
    animation-delay: 10s;
}

.hero-section .hero-slideshow .slide-4 {
    animation-delay: 15s;
}

@keyframes slideshow {
    0%, 20% {
        opacity: 0;
        transform: scale(1);
    }
    25%, 45% {
        opacity: 1;
        transform: scale(1);
    }
    50%, 70% {
        opacity: 0;
        transform: scale(1.1);
    }
    75%, 95% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-shapes .shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-orange);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-emerald);
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.hero-shapes .shape-3 {
    width: 300px;
    height: 300px;
    background: #667eea;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--primary-white);
    padding-top: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--primary-orange);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-title .highlight {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 45px;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 18px 45px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary {
    background: var(--gradient-orange);
    border: none;
    color: var(--primary-white);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.hero-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5);
}

.hero-buttons .btn-primary:hover::before {
    left: 100%;
}

.hero-buttons .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-white);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-white);
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    transition: var(--transition-normal);
}

.scroll-icon:hover {
    background: var(--gradient-orange);
    border-color: transparent;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(0, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

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

/* ============================================
   About Preview Section
   ============================================ */
.about-preview {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-preview .about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.about-preview .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-preview .about-image:hover img {
    transform: scale(1.05);
}

.about-preview .about-image .experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-orange);
    color: var(--primary-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.about-preview .about-image .experience-badge .years {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.about-preview .about-image .experience-badge .text {
    font-size: 0.9rem;
}

.about-preview .section-title {
    margin-bottom: 20px;
}

.about-preview .section-title .subtitle {
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.about-preview .section-title h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.about-preview .section-title .divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-orange);
    border-radius: var(--radius-full);
}

.about-preview .about-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-preview .about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.about-preview .about-features .feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-preview .about-features .feature-item .feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-emerald);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 1.2rem;
}

.about-preview .about-features .feature-item .feature-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Impact Counters Section
   ============================================ */
.impact-counters {
    background: var(--gradient-navy);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.impact-counters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?w=1920') center/cover;
    opacity: 0.1;
}

.impact-counters .counter-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.impact-counters .counter-item .counter-icon {
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-orange);
    border: 1px solid var(--glass-border);
}

.impact-counters .counter-item .counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-white);
    margin-bottom: 10px;
}

.impact-counters .counter-item .counter-label {
    font-size: 1.2rem;
    color: var(--primary-white);
    opacity: 0.9;
}

/* ============================================
   Causes Section
   ============================================ */
.causes-section {
    background: var(--bg-primary);
}

.causes-section .cause-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.causes-section .cause-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.causes-section .cause-card .cause-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.causes-section .cause-card .cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.causes-section .cause-card .cause-image:hover img {
    transform: scale(1.1);
}

.causes-section .cause-card .cause-image .cause-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-emerald);
    color: var(--primary-white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.causes-section .cause-card .cause-content {
    padding: 25px;
}

.causes-section .cause-card .cause-content .cause-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-orange);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 1.5rem;
    margin: -55px auto 20px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.causes-section .cause-card .cause-content .cause-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.causes-section .cause-card .cause-content .cause-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.causes-section .cause-card .cause-content .cause-progress {
    margin-bottom: 20px;
}

.causes-section .cause-card .cause-content .cause-progress .progress {
    height: 10px;
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.causes-section .cause-card .cause-content .cause-progress .progress .progress-bar {
    background: var(--gradient-orange);
    border-radius: var(--radius-full);
}

.causes-section .cause-card .cause-content .cause-progress .progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
}

.causes-section .cause-card .cause-content .cause-progress .progress-stats .raised {
    color: var(--primary-orange);
    font-weight: 700;
}

.causes-section .cause-card .cause-content .cause-progress .progress-stats .goal {
    color: var(--text-secondary);
}

.causes-section .cause-card .cause-content .cause-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.causes-section .cause-card .cause-content .cause-footer .donors {
    display: flex;
    align-items: center;
    gap: 10px;
}

.causes-section .cause-card .cause-content .cause-footer .donors .donor-avatars {
    display: flex;
}

.causes-section .cause-card .cause-content .cause-footer .donors .donor-avatars img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    margin-left: -10px;
}

.causes-section .cause-card .cause-content .cause-footer .donors .donor-avatars img:first-child {
    margin-left: 0;
}

.causes-section .cause-card .cause-content .cause-footer .donors .donor-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.causes-section .cause-card .cause-content .cause-footer .btn-donate-small {
    background: var(--gradient-orange);
    color: var(--primary-white);
    padding: 10px 25px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition-fast);
}

.causes-section .cause-card .cause-content .cause-footer .btn-donate-small:hover {
    transform: scale(1.05);
}

/* ============================================
   Events Section
   ============================================ */
.events-section {
    background: var(--bg-secondary);
}

.events-section .event-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.events-section .event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.events-section .event-card .event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.events-section .event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.events-section .event-card .event-image:hover img {
    transform: scale(1.1);
}

.events-section .event-card .event-image .event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-white);
    padding: 15px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.events-section .event-card .event-image .event-date .day {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1;
}

.events-section .event-card .event-image .event-date .month {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.events-section .event-card .event-content {
    padding: 25px;
}

.events-section .event-card .event-content .event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.events-section .event-card .event-content .event-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.events-section .event-card .event-content .event-meta .meta-item i {
    color: var(--primary-orange);
}

.events-section .event-card .event-content .event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.events-section .event-card .event-content .event-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.events-section .event-card .event-content .event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.events-section .event-card .event-content .event-footer .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.events-section .event-card .event-content .event-footer .event-location i {
    color: var(--primary-emerald);
}

.events-section .event-card .event-content .event-footer .btn-register {
    background: var(--gradient-emerald);
    color: var(--primary-white);
    padding: 10px 25px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition-fast);
}

.events-section .event-card .event-content .event-footer .btn-register:hover {
    transform: scale(1.05);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    background: var(--bg-primary);
}

.gallery-section .gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-section .gallery-filters .filter-btn {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--text-primary);
    padding: 10px 30px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
}

.gallery-section .gallery-filters .filter-btn.active,
.gallery-section .gallery-filters .filter-btn:hover {
    background: var(--gradient-orange);
    color: var(--primary-white);
    border-color: transparent;
}

.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-section .gallery-grid .gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-section .gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-section .gallery-grid .gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-section .gallery-grid .gallery-item .gallery-overlay .gallery-info {
    color: var(--primary-white);
}

.gallery-section .gallery-grid .gallery-item .gallery-overlay .gallery-info .gallery-category {
    font-size: 0.85rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
}

.gallery-section .gallery-grid .gallery-item .gallery-overlay .gallery-info .gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
}

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

.gallery-section .gallery-grid .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.testimonials-section .testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    transition: var(--transition-normal);
}

.testimonials-section .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonials-section .testimonial-card .testimonial-quote {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
    line-height: 1;
}

.testimonials-section .testimonial-card .testimonial-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonials-section .testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonials-section .testimonial-card .testimonial-author .author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
}

.testimonials-section .testimonial-card .testimonial-author .author-info {
    text-align: left;
}

.testimonials-section .testimonial-card .testimonial-author .author-info .author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.testimonials-section .testimonial-card .testimonial-author .author-info .author-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   Footer Section
   ============================================ */
.footer {
    background: var(--primary-navy);
    color: var(--primary-white);
    padding: 80px 0 30px;
}

.footer .footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-white);
    margin-bottom: 20px;
}

.footer .footer-logo .brand-orange {
    color: var(--primary-orange);
}

.footer .footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.8;
}

.footer .footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.footer .footer-social .social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    transition: var(--transition-fast);
}

.footer .footer-social .social-link:hover {
    background: var(--gradient-orange);
    transform: translateY(-3px);
}

.footer .footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-white);
}

.footer .footer-links {
    list-style: none;
    padding: 0;
}

.footer .footer-links li {
    margin-bottom: 12px;
}

.footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer .footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer .footer-contact-item i {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1920') center/cover no-repeat;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.newsletter-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.newsletter-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 20s ease-in-out infinite;
}

.newsletter-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-orange);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.newsletter-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-emerald);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: var(--radius-full);
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--primary-orange);
}

.newsletter-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-white);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.newsletter-title .highlight {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 45px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.newsletter-form {
    max-width: 650px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    display: flex;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.newsletter-form .input-group:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.3);
}

.newsletter-form .input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 25px;
    color: var(--primary-white);
    font-size: 1.1rem;
    font-weight: 500;
}

.newsletter-form .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .input-group input:focus {
    outline: none;
}

.newsletter-form .input-group .btn-subscribe {
    background: var(--gradient-orange);
    color: var(--primary-white);
    border: none;
    padding: 18px 45px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.newsletter-form .input-group .btn-subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.newsletter-form .input-group .btn-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

.newsletter-form .input-group .btn-subscribe:hover::before {
    left: 100%;
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.newsletter-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.newsletter-benefits .benefit-item i {
    color: var(--primary-emerald);
    font-size: 1.2rem;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-orange);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 999;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1200px) {
    .container-custom {
        max-width: 1140px;
    }
}

@media (max-width: 991px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .hero-section {
        padding: 100px 0 60px;
    }

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

    .hero-section .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-section .hero-buttons {
        flex-direction: column;
    }

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

    .about-preview .about-features {
        grid-template-columns: 1fr;
    }

    .impact-counters {
        padding: 60px 0;
    }

    .impact-counters .counter-item .counter-number {
        font-size: 2.5rem;
    }

    .gallery-section .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .newsletter-title {
        font-size: 2.2rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        padding: 15px;
    }

    .newsletter-form .input-group input {
        width: 100%;
        margin-bottom: 10px;
    }

    .newsletter-form .input-group .btn-subscribe {
        width: 100%;
    }

    .newsletter-benefits {
        gap: 20px;
    }

    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }

    .hero-section {
        padding: 80px 0 40px;
        min-height: auto;
    }

    .hero-section .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-section .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-section .hero-badge {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .hero-section .hero-buttons .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .hero-shapes .shape-1 {
        width: 300px;
        height: 300px;
    }

    .hero-shapes .shape-2 {
        width: 200px;
        height: 200px;
    }

    .hero-shapes .shape-3 {
        width: 150px;
        height: 150px;
    }

    .about-preview .about-image .experience-badge {
        padding: 20px;
        bottom: 15px;
        right: 15px;
    }

    .about-preview .about-image .experience-badge .years {
        font-size: 2rem;
    }

    .about-preview .about-features .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .impact-counters {
        padding: 50px 0;
    }

    .impact-counters .counter-item {
        margin-bottom: 30px;
    }

    .impact-counters .counter-item .counter-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .impact-counters .counter-item .counter-number {
        font-size: 2rem;
    }

    .impact-counters .counter-item .counter-label {
        font-size: 1rem;
    }

    .causes-section .cause-card .cause-image {
        height: 200px;
    }

    .causes-section .cause-card .cause-content .cause-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: -45px auto 15px;
    }

    .causes-section .cause-card .cause-content .cause-title {
        font-size: 1.2rem;
    }

    .events-section .event-card .event-image {
        height: 180px;
    }

    .events-section .event-card .event-image .event-date {
        padding: 10px;
    }

    .events-section .event-card .event-image .event-date .day {
        font-size: 1.4rem;
    }

    .events-section .event-card .event-content .event-title {
        font-size: 1.1rem;
    }

    .events-section .event-card .event-content .event-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .gallery-section .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .gallery-section .gallery-filters {
        gap: 10px;
    }

    .gallery-section .gallery-filters .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .testimonials-section .testimonial-card {
        padding: 30px 20px;
    }

    .testimonials-section .testimonial-card .testimonial-quote {
        font-size: 2rem;
    }

    .testimonials-section .testimonial-card .testimonial-text {
        font-size: 1rem;
    }

    .testimonials-section .testimonial-card .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .testimonials-section .testimonial-card .testimonial-author .author-info {
        text-align: center;
    }

    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-title {
        font-size: 1.8rem;
    }

    .newsletter-subtitle {
        font-size: 1rem;
    }

    .newsletter-benefits {
        flex-direction: column;
        gap: 15px;
    }

    .footer {
        padding: 50px 0 20px;
    }

    .footer .footer-logo {
        font-size: 1.5rem;
    }

    .footer .footer-social .social-link {
        width: 40px;
        height: 40px;
    }

    .footer .footer-title {
        font-size: 1.1rem;
    }

    .footer .footer-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .container-custom {
        padding: 0 15px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    .hero-section .hero-title {
        font-size: 1.8rem;
    }

    .hero-section .hero-subtitle {
        font-size: 0.95rem;
    }

    .gallery-section .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .causes-section .cause-card .cause-content {
        padding: 20px;
    }

    .events-section .event-card .event-content {
        padding: 20px;
    }

    .newsletter-form .input-group {
        padding: 10px;
    }

    .newsletter-form .input-group input {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .newsletter-form .input-group .btn-subscribe {
        padding: 15px 30px;
        font-size: 1rem;
    }
}
