/* Color palette inspired by pigeon plumage */
:root {
    --pigeon-gray: #6b7280;
    --pigeon-purple: #8b7fa8;
    --pigeon-green: #4a7c7e;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --dark-text: #1f2937;
    --medium-text: #4b5563;
    --border: #e5e7eb;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--light-bg);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--pigeon-purple) 0%, var(--pigeon-green) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.3em;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Main content */
main {
    padding: 40px 20px;
}

section {
    background: var(--white);
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h2 {
    color: var(--pigeon-purple);
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--pigeon-green);
    padding-bottom: 10px;
}

h3 {
    color: var(--pigeon-gray);
    font-size: 1.3em;
    margin-bottom: 10px;
}

p {
    color: var(--medium-text);
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* Hero section */
.hero p {
    font-size: 1.25em;
    line-height: 1.7;
    color: var(--dark-text);
}

/* Community section - simple 2x2 grid without flip */
.community .fact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.community .fact-card {
    background: linear-gradient(135deg, var(--pigeon-purple) 0%, var(--pigeon-green) 100%);
    padding: 30px;
    border-radius: 8px;
    color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
    height: auto;
    perspective: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.community .fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.community .fact-card h3 {
    color: var(--white);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.community .fact-card p {
    color: var(--white);
    font-size: 1em;
    margin: 0;
    opacity: 0.95;
}

/* Fact cards - 2x2 grid with flip effect */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.fact-card {
    position: relative;
    height: 200px;
    perspective: 1000px;
}

.fact-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.fact-card:hover .fact-card-inner,
.fact-card.flipped .fact-card-inner {
    transform: rotateY(180deg);
}

.fact-card-front,
.fact-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.fact-card-front {
    background: linear-gradient(135deg, var(--pigeon-purple) 0%, var(--pigeon-green) 100%);
    color: var(--white);
}

.fact-card-front h3 {
    color: var(--white);
    font-size: 1.5em;
    margin: 0;
}

.fact-card-back {
    transform: rotateY(180deg);
    border: 3px solid var(--pigeon-purple);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Background overlay for readability */
.fact-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    z-index: 1;
}

.fact-card-back p {
    color: var(--dark-text);
    font-size: 1.05em;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* Individual background images for each fact */
.fact-card:nth-child(1) .fact-card-back {
    background-image: url('images/Incredible-Navigation.jpg');
    background-position: center 25%;
}

.fact-card:nth-child(2) .fact-card-back {
    background-image: url('images/War-Heros.jpg');
}

.fact-card:nth-child(3) .fact-card-back {
    background-image: url('images/Lifelong-Partners.jpg');
    background-position: center 25%;
}

.fact-card:nth-child(4) .fact-card-back {
    background-image: url('images/Smart-Birds.jpg');
    background-position: center bottom;
}

/* Care section */
.care ul {
    list-style: none;
    margin-top: 20px;
}

.care li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--medium-text);
    font-size: 1.05em;
}

.care li:before {
    content: "🐦";
    position: absolute;
    left: 0;
}

/* Myth busting - flip cards */
.myth-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.myth-item {
    position: relative;
    height: 180px;
    perspective: 1000px;
}

.myth-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.myth-item:hover .myth-item-inner,
.myth-item.flipped .myth-item-inner {
    transform: rotateY(180deg);
}

.myth-item-front,
.myth-item-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.myth-item-front {
    background: #dc2626;
    color: var(--white);
}

.myth-item-front h3 {
    color: var(--white);
    font-size: 1.4em;
    margin: 0;
    font-weight: 600;
}

.myth-item-back {
    background: var(--light-bg);
    transform: rotateY(180deg);
    border: 3px solid var(--pigeon-green);
}

.myth-item-back .myth-label {
    color: #dc2626;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.myth-item-back p {
    color: var(--dark-text);
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

.myth-item-back strong {
    color: var(--pigeon-green);
    font-weight: 700;
}

/* Appreciation section */
.appreciation-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.appreciation-text:last-child {
    font-style: italic;
    color: var(--pigeon-purple);
}

/* Footer */
footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    color: var(--white);
    margin-bottom: 5px;
}

.small {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1.1em;
    }

    section {
        padding: 25px;
    }

    h2 {
        font-size: 1.6em;
    }

    .fact-grid,
    .community .fact-grid {
        grid-template-columns: 1fr;
    }

    .facts .fact-card {
        height: 180px;
    }

    .community .fact-card {
        height: auto;
    }

    .myth-item {
        height: 160px;
    }
}

/* Print styles */
@media print {
    header {
        background: none;
        color: var(--dark-text);
    }

    section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
