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

:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --green-nav: #8BC34A;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --overlay-color: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

.top-nav {
    background: var(--green-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.top-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.top-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.top-nav a:hover {
    opacity: 0.8;
}

header {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: bold;
    margin: 0;
}

.logo-caterpillars {
    color: var(--green-nav);
    font-size: 1.8rem;
}

.logo-to {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: normal;
}

.logo-butterflies {
    color: var(--green-nav);
    font-size: 1.8rem;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.btn-donate {
    background: transparent;
    color: var(--green-nav);
    border: 2px solid var(--green-nav);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-volunteer {
    background: transparent;
    color: var(--green-nav);
    border: 2px solid var(--green-nav);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-donate:hover,
.btn-volunteer:hover {
    background: var(--green-nav);
    color: white;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--green-nav);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    left: 20px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.hero-slider, .stats-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
}

.slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.slide-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
}

.slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.5);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.what-we-do {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.stories-counter {
    text-align: center;
    margin-top: 3rem;
}

.stories-counter h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.stats-slider {
    background: var(--dark-color);
}

.stats-slider .slide-content h2 {
    font-size: 2rem;
}

.stats-slider .slide-content p {
    font-size: 1.1rem;
}

.what-you-can-do {
    padding: 5rem 0;
    background: white;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.action-card {
    text-align: center;
    padding: 2rem;
}

.action-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.action-card p {
    margin-bottom: 1.5rem;
}

.events-section {
    padding: 5rem 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 2rem;
    margin: 4rem 0 2rem;
    color: var(--green-nav);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-icon {
    font-size: 3rem;
    color: var(--green-nav);
    margin-bottom: 1rem;
}

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

.resources-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3rem;
    color: var(--green-nav);
    margin-bottom: 1rem;
}

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

.team-section {
    padding: 5rem 0;
    background: white;
}

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

.team-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-photo {
    font-size: 5rem;
    color: var(--green-nav);
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.team-title {
    font-weight: 600;
    color: var(--green-nav);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.bio-placeholder {
    font-style: italic;
    color: #666;
}

.about-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--green-nav);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-icon {
    font-size: 3rem;
    color: var(--green-nav);
    margin-bottom: 2rem;
}

.mission-statement {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    line-height: 1.9;
    font-weight: 500;
}

.volunteer-section {
    padding: 5rem 0;
    background: white;
}

.volunteer-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.volunteer-form {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.volunteer-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--green-nav);
}

.opportunities-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.opportunities-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.opportunities-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.foster-families-section {
    padding: 5rem 0;
    background: white;
}

.foster-families-content {
    max-width: 900px;
    margin: 0 auto;
}

.foster-families-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
}

.contact-item h3 {
    color: var(--green-nav);
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--dark-color);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--green-nav);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--green-nav);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-nav);
}

.form-group textarea {
    resize: vertical;
}

.thank-you-section {
    position: relative;
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.thank-you-section .slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.thank-you-section .slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.thank-you-section .container {
    position: relative;
    z-index: 1;
}

.thank-you-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.thank-you-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: white;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .top-nav .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--green-nav);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
        text-align: center;
    }

    .top-nav .nav-menu.active {
        display: flex;
    }

    .top-nav .nav-menu li {
        padding: 0.5rem 0;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo-caterpillars,
    .logo-butterflies {
        font-size: 1.4rem;
    }

    .logo-to {
        font-size: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .header-actions {
        align-items: center;
        width: 100%;
    }

    .btn-donate,
    .btn-volunteer {
        width: 100%;
        max-width: 250px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content h3 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-slider, .stats-slider {
        height: 500px;
    }

    .slider-arrow {
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}
