/* Reset and Base Styles */
:root {
    --bg-color: #fdfbf7;
    --primary-color: #1b433b;
    --text-color: #1b433b;
    --text-light: #4a5c58;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;

    --tag-red-bg: #fceceb;
    --tag-red-text: #c06c69;
    --tag-blue-bg: #e1f1fa;
    --tag-blue-text: #598cb7;
    --tag-green-bg: #e6f0e2;
    --tag-green-text: #668f5c;

    --card-shadow: 0 10px 30px rgba(27, 67, 59, 0.08);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

/* Typography Utilities */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

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

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

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 5%;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-text h1 {
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: #4a6c62;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.donate-btn {
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 5% 6rem;
    min-height: 550px;
    display: flex;
    align-items: center;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -120px;
    bottom: -120px;
    left: -80px;
    right: -120px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 25%, rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 0) 80%);
    z-index: -1;
    pointer-events: none;
}

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

/* Features Section */
.features {
    display: flex;
    justify-content: space-between;
    padding: 4rem 5%;
    gap: 2rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #e8efe7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Residents Section */
.residents {
    display: flex;
    align-items: center;
    padding: 4rem 5% 6rem;
    gap: 4rem;
    background-color: rgba(253, 251, 247, 0.5);
}

.residents-intro {
    flex: 0 0 300px;
}

.residents-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.residents-intro p {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--text-light);
}

.carousel-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.resident-card {
    flex: 0 0 240px;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.resident-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(27, 67, 59, 0.12);
}

.card-image-wrap {
    height: 240px;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resident-card:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.25rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
}

.species {
    font-size: 0.85rem;
    color: var(--text-light);
}

.heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9aa9a5;
    transition: var(--transition);
}

.heart-btn:hover {
    color: var(--tag-red-text);
}

.heart-btn svg {
    width: 20px;
    height: 20px;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background-color: var(--tag-red-bg);
    color: var(--tag-red-text);
}

.tag.blue {
    background-color: var(--tag-blue-bg);
    color: var(--tag-blue-text);
}

.tag.green {
    background-color: var(--tag-green-bg);
    color: var(--tag-green-text);
}

.carousel-next {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

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

.carousel-next svg {
    width: 20px;
    height: 20px;
}

/* Footer Section */
.footer {
    position: relative;
    background-color: transparent;
    margin-top: 8rem;
}

.footer-wave-top {
    position: absolute;
    top: -99px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    overflow: hidden;
    z-index: -1;
}

.footer-wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-main {
    background: linear-gradient(135deg, var(--primary-color) 0%, #112d27 100%);
    color: var(--white);
    padding: 4rem 5% 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo .logo-icon {
    width: 45px;
    height: 45px;
    color: #a8d5ba; /* soft green accent */
    filter: drop-shadow(0 0 10px rgba(168, 213, 186, 0.3));
}

.footer-logo .logo-text h2 {
    color: var(--white);
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.footer-logo .logo-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 300px;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background-color: #a8d5ba;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(168, 213, 186, 0.4);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: 'Nunito', sans-serif;
    color: var(--white);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #a8d5ba;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-col ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #a8d5ba;
}

.footer-col ul li a:hover {
    color: var(--white);
    transform: translateX(15px);
}

.footer-col ul li a:hover::before {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 5%;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

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


/* Responsive adjustments */
@media (max-width: 1024px) {
    .features {
        flex-wrap: wrap;
    }

    .feature-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .residents {
        flex-direction: column;
        align-items: flex-start;
    }

    .residents-intro {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .residents-intro h2 {
        justify-content: center;
    }

    .carousel-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .feature-card {
        flex: 0 0 100%;
    }
}