/* ===== CSS VARIABLES ===== */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #2c3e50;
    --accent: #f39c12;
    --gradient-primary: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    --text-dark: #1a1a2e;
    --gray-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --header-height: 72px;
}

/* ===== LOCAL IMAGES FOR HERO SLIDER ===== */
/* UPDATED: Pointing to the 'slide-pics' folder */
#slide-1 {
    background-image: url('/images/slide-pics/slide-1.jpg');
}

#slide-2 {
    background-image: url('/images/slide-pics/slide-2.jpg');
}

#slide-3 {
    background-image: url('/images/slide-pics/slide-3.jpg');
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-tag i {
    margin-right: 6px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 40px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(231, 76, 60, 0.45);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    border-color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 12px 0;
    transition: var(--transition);
    background: transparent;
    height: var(--header-height);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
}

.header.scrolled .logo a {
    color: var(--text-dark);
}

.logo a i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.header.scrolled .nav-menu a {
    color: var(--text-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary);
}

.header.scrolled .nav-menu a.active {
    color: var(--primary);
}

.btn-donate-nav {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    padding: 8px 22px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.btn-donate-nav::after {
    display: none !important;
}

.btn-donate-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 5px;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    height: 80vh;
    min-height: 550px;
    max-height: 750px;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--white);
}

.slide-text-wrapper {
    max-width: 600px;
    padding: 20px 0;
}

.slide-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    animation: fadeInDown 0.8s ease;
}

.slide-tag i {
    margin-right: 6px;
}

.slide-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 16px;
    color: var(--white);
    animation: fadeInUp 0.8s ease 0.1s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.slide-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 480px;
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.slide-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.slide-buttons .btn {
    padding: 13px 32px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev {
    left: 25px;
}

.slider-btn.next {
    right: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 18px 0 28px;
}

.about-image img {
    border-radius: var(--radius);
    width: 100%;
    height: 380px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-image {
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    z-index: -1;
}

/* ===== CHILDREN ===== */
.children-preview {
    background: var(--gray-bg);
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.child-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.child-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.child-image {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.child-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.child-card:hover .child-image img {
    transform: scale(1.08);
}

.child-image .child-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: var(--transition);
}

.child-card:hover .child-overlay {
    opacity: 1;
}

.child-overlay a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.child-overlay a i {
    margin-right: 6px;
}

.child-info {
    padding: 18px 20px 20px;
}

.child-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.child-age {
    font-size: 0.85rem;
    color: #888;
}

.child-age i {
    margin-right: 5px;
    color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 45px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-logo i {
    color: var(--primary);
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 11px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    padding: 11px 18px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.35);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 3.2rem;
    }
    .hero {
        height: 70vh;
        min-height: 480px;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .about-image::after {
        display: none;
    }
    .children-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 28px 30px;
        gap: 16px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: var(--text-dark) !important;
        font-size: 1.05rem;
    }

    .nav-menu a.active {
        color: var(--primary) !important;
    }

    .btn-donate-nav {
        margin-top: 8px;
    }

    .hero {
        height: 65vh;
        min-height: 440px;
        max-height: 600px;
    }

    .slide-text-wrapper {
        max-width: 100%;
        padding: 10px 0;
    }

    .slide-title {
        font-size: 2.6rem;
    }

    .slide-desc {
        font-size: 1rem;
        max-width: 100%;
    }

    .slide-buttons .btn {
        padding: 11px 26px;
        font-size: 0.9rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .slider-btn.prev {
        left: 12px;
    }

    .slider-btn.next {
        right: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .about-image img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 380px;
        max-height: 520px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-desc {
        font-size: 0.9rem;
    }

    .slide-buttons {
        flex-direction: column;
        width: 100%;
    }

    .slide-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .children-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    .slider-dots .dot.active {
        width: 22px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

    .about-image img {
        height: 220px;
    }
}