/* ------------------------------
   GLOBAL STYLES
------------------------------ */

html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #fdfbfb, #ffe6f7, #e0f7ff);
    background-attachment: fixed;
    color: #3a3a3a;
}

h1, h2 {
    color: #2d4739;
}

/* ------------------------------
   HEADER SECTIONS
------------------------------ */

.hero {
    position: relative;
    text-align: center;
    color: white;
}

.hero img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: brightness(60%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(183, 228, 199, 0.7), rgba(255, 182, 193, 0.7));
}

.hero h1,
.hero p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero h1 {
    top: 30%;
    font-size: 3rem;
}

.hero p {
    top: 55%;
    font-size: 1.2rem;
}

.subheader {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #b7e4c7, #ffccd5);
    color: #1b2f24;
    border-bottom: 5px solid #74c69d;
}

/* ------------------------------
   NAVIGATION
------------------------------ */

nav {
    background: linear-gradient(135deg, #74c69d, #ffafcc);
    padding: 12px;
    text-align: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

nav a:hover {
    color: #ffe6f7;
}

/* ------------------------------
   HOME PAGE CARDS
------------------------------ */

.animals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px;
    gap: 20px;
}

.card {
    background: linear-gradient(145deg, #ffffff, #f0fff4);
    width: 250px;
    margin: 10px;
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
}

/* ------------------------------
   ABOUT PAGE 
------------------------------ */

.about-section {
    padding: 40px;
}

.animal-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff, #f0fff4);
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.text-column {
    width: 45%;
}

.animal-text {
    font-size: 1.15rem;
    line-height: 1.7;
    padding: 10px 0;
    color: #2d4739;
}

/* ------------------------------
   GALLERY STYLING
------------------------------ */

.gallery-column {
    width: 45%;
}

.gallery {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #e0f7ff, #fce1ff);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-track {
    display: flex;
    transition: transform 0.6s ease;
}

.gallery-track img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    flex-shrink: 0;
    background: white;
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffafcc, #b7e4c7);
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    color: #1b2f24;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10; /* keeps arrows above images */
}

.arrow:hover {
    background: linear-gradient(135deg, #ff85b3, #74c69d);
    transform: translateY(-50%) scale(1.05);
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* ------------------------------
   CONTACT PAGE
------------------------------ */

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 40px;
}

.contact-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.18);
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 320px;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #ffe6f7);
    box-shadow:
        0 0 10px rgba(255, 182, 193, 0.5),
        0 0 20px rgba(183, 228, 199, 0.5),
        0 0 30px rgba(255, 182, 193, 0.4);
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d4739;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
}

button {
    background: linear-gradient(135deg, #ffafcc, #74c69d);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    color: #1b2f24;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

button:hover {
    background: linear-gradient(135deg, #ff85b3, #52b788);
}

/* Thank-you message */
.thank-you {
    display: none;
    margin-top: 10px;
    font-weight: bold;
    color: #2d4739;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}

.thank-you.show {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------
   ANIMATIONS
------------------------------ */

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ------------------------------
   FOOTER
------------------------------ */

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #b7e4c7, #ffafcc);
    color: #1b2f24;
    margin-top: auto; 
}
