/* animals.css - Stylesheet for the Animals page */

/* Highland Cattle Hero Section */
.highland-hero {
    position: relative;
    overflow: hidden;
    padding-top: 130px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--primary-color) 100%);
}

.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 15%;
    top: 30%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    top: 60%;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 100px;
    height: 100px;
    right: 30%;
    top: 10%;
    animation-delay: 3s;
}

.bubble:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 50%;
    top: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    bottom: -10px;
    left: 0;
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cow-illustration {
    position: absolute;
    bottom: -50px;
    right: 50px;
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><ellipse cx="100" cy="130" rx="70" ry="50" fill="%23A36336"/><ellipse cx="70" cy="80" rx="25" ry="20" fill="%23A36336"/><ellipse cx="130" cy="80" rx="25" ry="20" fill="%23A36336"/><ellipse cx="70" cy="77" rx="18" ry="15" fill="%23D89B6E"/><ellipse cx="130" cy="77" rx="18" ry="15" fill="%23D89B6E"/><ellipse cx="70" cy="77" rx="8" ry="8" fill="black"/><ellipse cx="130" cy="77" rx="8" ry="8" fill="black"/><ellipse cx="100" cy="100" rx="10" ry="5" fill="black"/><path d="M85,110 Q100,120 115,110" stroke="black" fill="none" stroke-width="2"/><path d="M50,60 Q40,30 50,10" stroke="%23A36336" fill="none" stroke-width="15" stroke-linecap="round"/><path d="M150,60 Q160,30 150,10" stroke="%23A36336" fill="none" stroke-width="15" stroke-linecap="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    opacity: 0.8;
}

/* Highland Breed Info */
.breed-info {
    position: relative;
    padding: 80px 0;
    background-color: var(--light-color);
    overflow: hidden;
}

.info-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.info-card {
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 50px;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-color), var(--light-purple), var(--primary-color), var(--secondary-color));
}

.info-title {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.highlight {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--accent-color);
    opacity: 0.3;
    z-index: -1;
}

.info-text {
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.fact-list {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.fact-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.fact-item::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
}

.cow-mascot {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    transform: rotate(15deg);
}

/* Showcase Section */
.showcase-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="3" fill="%23FFCF96" opacity="0.2"/></svg>');
    z-index: 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.cow-card {
    position: relative;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.7);
    height: 400px;
}

.cow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.cow-card:nth-child(3n+1) {
    border-top: 5px solid var(--accent-color);
}

.cow-card:nth-child(3n+2) {
    border-top: 5px solid var(--light-purple);
}

.cow-card:nth-child(3n+3) {
    border-top: 5px solid var(--secondary-color);
}

.cow-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.cow-card:hover .cow-card-inner {
    transform: rotateY(180deg);
}

.cow-card-front, 
.cow-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cow-card-front {
    background-color: white;
}

.cow-card-back {
    background-color: white;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cow-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    text-align: center;
}

.cow-name {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cow-breed {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.cow-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    font-family: var(--heading-font);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.status-available {
    background-color: var(--primary-color);
    color: #004430;
}

.status-sold {
    background-color: var(--accent-color);
    color: #6b2940;
}

.status-reserved {
    background-color: var(--light-purple);
    color: #003b5c;
}

.cow-back-name {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.cow-back-breed {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 20px;
}

.cow-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--gray-color);
}

.cow-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.spec-item {
    background-color: var(--light-color);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.spec-value {
    font-weight: bold;
    color: var(--dark-color);
}

.cow-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #664400;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-family: var(--heading-font);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 207, 150, 0.4);
}

.cow-link:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 207, 150, 0.6);
}

.flip-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Meet the Herd Section */
.meet-herd {
    padding: 80px 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-tag {
    background-color: white;
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--heading-font);
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(136, 201, 161, 0.4);
}

.category-tag.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(136, 201, 161, 0.4);
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.cta-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: #664400;
    margin-bottom: 20px;
}

.cta-text {
    color: #664400;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: #664400;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.cta-decoration:nth-child(1) {
    top: -50px;
    left: -50px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path d="M50,20 C65,5 85,5 100,20 C115,35 115,65 100,80 C85,95 65,95 50,80 C35,65 35,35 50,20 Z" fill="%23FFFFFF"/></svg>');
    transform: rotate(30deg);
}

.cta-decoration:nth-child(2) {
    bottom: -50px;
    right: -50px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><rect x="50" y="50" width="100" height="100" rx="20" ry="20" fill="%23FFFFFF"/></svg>');
    transform: rotate(-15deg);
}

/* Responsive Styles */
@media (min-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .cow-illustration {
        width: 250px;
        height: 250px;
        right: 100px;
    }
}

@media (min-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cow-illustration {
        width: 300px;
        height: 300px;
        right: 150px;
    }
}