:root {
    --primary: #1e3a8a;
    --primary-dark: #172554;
    --secondary: #f97316;
    --secondary-light: #fb923c;
    --accent: #10b981;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 600; }

/* Navigation */
#mainNav {
    background: transparent;
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-brand i { color: var(--secondary); }

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.btn-donate {
    background: var(--gradient-secondary);
    color: var(--white) !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span { color: var(--secondary); }

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.hero-stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: rotate(3deg);
    transition: var(--transition);
}

.hero-image img:hover { transform: rotate(0deg) scale(1.02); }

/* Floating shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px; height: 300px;
    background: var(--secondary);
    top: -100px; right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px; height: 200px;
    background: var(--accent);
    bottom: -50px; left: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px; height: 150px;
    background: var(--white);
    top: 50%; left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Section Styles */
.section { padding: 5rem 0; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .title-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Cards */
.card-modern {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-modern:hover .card-img-wrapper img { transform: scale(1.1); }

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-body { padding: 1.5rem; }

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.card-text { color: var(--gray); font-size: 0.95rem; }

/* Progress Bar */
.progress-wrapper { margin: 1rem 0; }

.progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-secondary);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.progress-info span strong { color: var(--primary); }

/* Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
    color: var(--white);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}

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

/* Impact Stats */
.impact-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.impact-stat {
    text-align: center;
    padding: 1.5rem;
}

.impact-stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--secondary);
    backdrop-filter: blur(10px);
}

.impact-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Programs */
.program-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.program-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.program-card p { color: var(--gray); }

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
}

.footer-top { padding: 4rem 0 2rem; }

.footer-widget { margin-bottom: 2rem; }

.footer-widget .widget-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-widget p { color: rgba(255,255,255,0.7); line-height: 1.8; }

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

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '→';
    margin-right: 0.5rem;
    opacity: 0;
    transition: var(--transition);
    color: var(--secondary);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}

.footer-links a:hover::before { opacity: 1; }

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

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

.social-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.newsletter-form .input-group {
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    padding: 0.25rem;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.75rem 1rem;
}

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

.newsletter-form .form-control:focus {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--white);
}

.newsletter-form .btn {
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-info i { color: var(--secondary); width: 20px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover { color: var(--secondary); }

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    padding: 8rem 0 4rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Forms */
.form-modern .form-control, .form-modern .form-select {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-modern .form-control:focus, .form-modern .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.form-modern label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-modern .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Admin Styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header h4 {
    font-size: 1.25rem;
    margin: 0;
}

.admin-sidebar-header h4 i { color: var(--secondary); margin-right: 0.5rem; }

.admin-nav { list-style: none; padding: 1rem 0; }

.admin-nav li { margin: 0.25rem 0; }

.admin-nav a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav a i { width: 24px; margin-right: 0.75rem; font-size: 1rem; }

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--secondary);
}

.admin-nav a.active { background: rgba(255,255,255,0.1); }

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: #f1f5f9;
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-content { padding: 2rem; }

/* Dashboard Cards */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-card-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-card-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-card-icon.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.stat-card-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Tables */
.table-modern {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern thead th {
    background: #f8fafc;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.table-modern tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: var(--dark);
    border-bottom: 1px solid #f1f5f9;
}

.table-modern tbody tr:hover { background: #f8fafc; }

.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.5rem; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .section-title h2 { font-size: 2rem; }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .page-header h1 { font-size: 2rem; }
    .section { padding: 3rem 0; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
