:root {
    --primary-color: #e73c38;
    --secondary-color: #fbf231;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    border: none;
    padding: 8px 20px !important;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #d63330;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 60, 56, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, #fff5f5 100%);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .text-primary {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #d63330;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 60, 56, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 60, 56, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b68);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(231, 60, 56, 0.3);
    animation: float 3s ease-in-out infinite;
}

.hero-card i {
    font-size: 10rem;
    color: var(--white);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Stats Section */
.stats-section {
    background: var(--secondary-color);
    padding: 80px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--gray);
    font-size: 1rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 30px;
}

.about-text {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-card {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--secondary-color), #ffd700);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(251, 242, 49, 0.3);
}

.image-card i {
    font-size: 8rem;
    color: var(--white);
}

.feature-box {
    padding: 20px;
    border-radius: 10px;
    background: var(--light-gray);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff6b68);
    color: var(--white);
    transform: translateX(10px);
}

.feature-box:hover i,
.feature-box:hover h5,
.feature-box:hover p {
    color: var(--white);
}

.feature-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Programs Section */
.programs-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.program-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b68);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
}

.program-icon i {
    font-size: 2rem;
    color: var(--white);
}

.program-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black);
}

.program-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #d63330;
}

.btn-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Impact Section */
.impact-section {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.quote-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.quote-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.testimonial-card p {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author h5 {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Help Section */
.help-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.help-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.help-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.help-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.help-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--black);
}

.help-card p {
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), #ff6b68);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
}

.btn-white:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.info-box {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: linear-gradient(135deg, var(--secondary-color), #ffd700);
}

.info-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 60, 56, 0.25);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-about p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h5,
.footer-newsletter h5 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-newsletter p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.footer-newsletter .input-group {
    margin-bottom: 20px;
}

.footer-newsletter .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.footer-newsletter .form-control::placeholder {
    color: #adb5bd;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

.footer-bottom {
    text-align: center;
    color: #adb5bd;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-card,
    .image-card {
        width: 250px;
        height: 250px;
    }
    
    .hero-card i,
    .image-card i {
        font-size: 6rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--white);
    }
    
    .text-primary {
        color: var(--primary-color) !important;
        text-decoration: underline;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .social-links,
    .hero-buttons {
        display: none !important;
    }
    
    .hero-section,
    .about-section,
    .programs-section,
    .impact-section,
    .contact-section {
        page-break-inside: avoid;
    }
}