:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #fce4ec;
    --secondary: #26a69a;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.7rem 5%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

/* Featured Images */
.featured-images {
    padding: 5rem 5%;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.featured-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.featured-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-image-card:hover img {
    transform: scale(1.1) rotate(1deg);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-image-card:hover .image-caption {
    transform: translateY(0);
}

.image-caption h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
}

.nav-donate-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
    white-space: nowrap;
}

.nav-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 7.2rem 5% 3.2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 50%, #e0f2f1 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-layout {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 34px;
    padding: clamp(1.2rem, 2.5vw, 2.2rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.hero-layout::before {
    content: '';
    position: absolute;
    left: -80px;
    top: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(38, 166, 154, 0.14), transparent 65%);
    pointer-events: none;
}

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

.hero-content {
    max-width: 660px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.4rem 0.4rem 0.4rem 0.8rem;
    z-index: 1;
    animation: slideUp 1s ease-out;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    height: clamp(360px, 55vh, 500px);
    border-radius: 64px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
    animation: fadeIn 1.2s ease-out 0.3s both;
    clip-path: polygon(9% 0%, 83% 0%, 94% 6%, 100% 17%, 100% 83%, 93% 94%, 82% 100%, 10% 100%, 0% 90%, 0% 11%);
}

.hero-carousel::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 8%;
    width: 120px;
    height: 84%;
    background: linear-gradient(180deg, rgba(38, 166, 154, 0.95), rgba(38, 166, 154, 0.72));
    border-radius: 70px;
    transform: rotate(8deg);
    z-index: 5;
    box-shadow: -12px 0 22px rgba(38, 166, 154, 0.24);
}

.hero-carousel::before {
    content: '';
    position: absolute;
    width: 84px;
    height: 84px;
    left: 16px;
    top: 16px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.95);
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.58), rgba(38, 166, 154, 0.96));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    z-index: 8;
}

.hero-carousel-mark {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 84px;
    height: 84px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.65rem;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.78), rgba(26, 26, 46, 0.1));
    z-index: 3;
}

.hero-carousel-caption {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.4rem;
    color: var(--white);
    z-index: 6;
}

.hero-carousel-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.hero-carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

.carousel-controls {
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    display: flex;
    gap: 0.45rem;
    z-index: 5;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.88);
    color: var(--dark);
    transition: var(--transition);
}

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

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 5;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.22);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.tagline {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tagline::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.hero h1 {
    font-size: 3.55rem;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.1rem;
    }

    .hero-carousel {
        max-width: 540px;
    }
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid var(--primary);
}

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

.btn-donate {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.btn-donate:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    animation: fadeIn 1.2s ease-out 0.3s both;
}

.impact-snapshots {
    background: var(--white);
}

.snapshot-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.snapshot-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 260px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.snapshot-card:hover {
    transform: translateY(-8px);
}

.snapshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.snapshot-card:hover img {
    transform: scale(1.08);
}

.snapshot-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--white);
    background: linear-gradient(to top, rgba(26, 26, 46, 0.92), rgba(26, 26, 46, 0));
    padding: 1.2rem 1rem 0.95rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-50%) scale(0.9); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Stats Section */
.stats {
    padding: 4rem 5%;
    background: var(--white);
    margin-top: -1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--light);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.95rem;
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

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

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background: white;
    color: var(--primary);
}

.cta .btn:hover {
    background: var(--dark);
    color: white;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

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

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        text-align: left;
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        border-radius: 24px;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
    }
    
    .hero-carousel {
        max-width: 100%;
        margin-left: 0;
        height: 420px;
        clip-path: none;
        border-radius: 24px;
    }

    .hero-carousel::after {
        display: none;
    }

    .hero-carousel-caption {
        text-align: left;
    }

    .snapshot-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    nav ul.active {
        transform: translateY(0);
    }

    .nav-donate-btn {
        display: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }

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

    .tagline {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero-carousel {
        height: 320px;
    }

    .hero-layout {
        padding: 1rem;
    }

    .hero-content {
        padding: 0.2rem;
    }

    .hero-carousel::before {
        width: 56px;
        height: 56px;
        left: 10px;
        top: 10px;
        border-width: 4px;
    }

    .hero-carousel-mark {
        width: 56px;
        height: 56px;
        left: 10px;
        top: 10px;
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}