/* Slideshow container for chicken photos */
.slideshow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 330px;
    margin: 0 auto;
}

.slideshow-container .slides {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
}

.slideshow-container .prev,
.slideshow-container .next {
    background: rgba(251, 191, 36, 0.8);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    transition: background 0.2s, transform 0.2s;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
    background: #ea580c;
    transform: scale(1.1);
}

.slideshow-container .prev {
    margin-right: 12px;
}
.slideshow-container .next {
    margin-left: 12px;
}
/* Premium Marketing Design for Carson Farms - Picture First! */

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 25%, #fbbf24 50%, #f59e0b 75%, #d97706 100%);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    display: grid;
    grid-template-columns: 1fr min(1400px, 95vw) 1fr;
    grid-template-rows: 100px auto 1fr 80px;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    min-height: 100vh;
    color: #78350f;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.top-nav { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
    grid-area: 1 / 1 / 2 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    font-family: inherit;
    font-size: 3rem;
    font-weight: 400;
    color: #ea580c;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(251, 191, 36, 0.3);
    position: relative;
    text-wrap: nowrap;
}

.top-nav::after {
    content: '🐓🥚✨';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.hero-banner {
    grid-area: 2 / 1 / 3 / 4;
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 2rem;
    margin-top: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(245, 158, 11, 0.3),
                0 0 0 3px rgba(251, 191, 36, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.hero-slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
}

.hero-slideshow-container .slides {
    width: 100%;
    height: 100%;
    position: relative;
}

#flock-slideshow .chicken-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 600px;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    padding: 0;
    box-shadow: none;
    background: none;
}

#flock-slideshow .chicken-image:hover {
    transform: none;
    box-shadow: none;
}

.hero-overlay {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
    z-index: 10;
}

.hero-title {
    font-family: inherit;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.chicken-bio {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 0;
    margin-bottom: 5rem;
    box-shadow: 
        0 30px 80px rgba(245, 158, 11, 0.3),
        0 0 0 3px rgba(251, 191, 36, 0.4);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.chicken-bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(254, 215, 170, 0.2) 0%, rgba(253, 186, 116, 0.1) 100%);
    pointer-events: none;
    opacity: 1;
}

.chicken-bio h2 {
    color: #ffffff;
    margin: 0;
    padding: 2rem;
    font-family: inherit;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #ea580c 100%);
    text-shadow: 2px 4px 8px rgba(120, 53, 15, 0.3);
    letter-spacing: 2px;
    position: relative;
}

.chicken-bio h2::after {
    content: '🐔💫';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.chicken-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.chicken-facts {
    order: 2;
    width: 100%;
    max-width: 500px;
}

.chicken-facts h3 {
    font-family: inherit;
    font-size: 1.8rem;
    color: #ea580c;
    margin: 0 0 1.5rem 0;
    text-align: center;
    text-shadow: 1px 2px 4px rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.chicken-photo {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(254, 215, 170, 0.8) 100%);
    border-radius: 50%;
    padding: 3rem;
    box-shadow: 
        0 25px 60px rgba(245, 158, 11, 0.3),
        inset 0 -10px 30px rgba(251, 191, 36, 0.2);
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.chicken-photo::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 3rem;
    animation: sparkle 2s ease-in-out infinite;
    z-index: 3;
}

.chicken-photo::after {
    content: '🌟';
    position: absolute;
    bottom: -15px;
    left: -15px;
    font-size: 2.5rem;
    animation: sparkle 2s ease-in-out infinite 1s;
    z-index: 3;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.7; 
    }
    50% { 
        transform: scale(1.15) rotate(180deg); 
        opacity: 1; 
    }
}

/* Card Divider */
.card-divider {
    width: 50%;
    margin: 3rem auto;
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #fbbf24 20%, #f59e0b 50%, #fbbf24 80%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.chicken-image {
    /*width: 300px;*/
    /*height: 300px;*/
    max-height: 300px;
    border-radius: 50%;
    object-fit: contain;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    box-shadow: 
        0 30px 80px rgba(245, 158, 11, 0.4),
        0 0 0 8px rgba(255, 255, 255, 0.8),
        0 0 0 12px rgba(251, 191, 36, 0.6);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    position: relative;
    z-index: 2;
    padding: 20px;
    will-change: transform;
    outline: none;
}

.chicken-image:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 
        0 35px 90px rgba(245, 158, 11, 0.5),
        0 0 0 8px rgba(255, 255, 255, 1),
        0 0 0 15px rgba(251, 191, 36, 0.8),
        0 0 50px rgba(251, 191, 36, 0.3);
}

.chicken-bio p {
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
}

.chicken-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chicken-facts li {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border-radius: 25px;
    font-size: 1rem;
    line-height: 1.5;
    color: #78350f;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.chicken-facts li::before {
    content: '🥚';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.8;
}

.chicken-facts li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.chicken-facts li:hover {
    background: rgba(254, 215, 170, 0.9);
    transform: translateX(5px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(245, 158, 11, 0.3),
        0 0 0 3px rgba(251, 191, 36, 0.5);
    border-color: rgba(245, 158, 11, 0.6);
    color: #92400e;
}

.chicken-facts li:hover::before {
    transform: translateY(-50%) scale(1.2) rotate(15deg);
    opacity: 1;
}

.chicken-facts li:hover::after {
    transform: scaleY(1);
}

.main { 
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    grid-area: 3 / 2 / 4 / 3;
    padding: 3rem;
    border-radius: 40px;
    box-shadow: 
        0 25px 80px rgba(245, 158, 11, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    overflow-y: auto;
    margin: 2rem 0;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.footer { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 3px solid #f59e0b;
    grid-area: 4 / 1 / 5 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 -8px 32px rgba(245, 158, 11, 0.2);
    text-shadow: 2px 2px 4px rgba(251, 191, 36, 0.3);
    font-style: italic;
}

.left-side {
    grid-area: 3 / 1 / 4 / 2;
    background: transparent;
}

.right-side {
    grid-area: 3 / 3 / 4 / 4;
    background: transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .chicken-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .chicken-photo {
        order: 1;
    }
    
    .chicken-facts {
        order: 2;
    }
    
    .chicken-image {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr 95vw 1fr;
    }
    
    .main {
        padding: 2rem;
        margin: 1rem 0;
    }
    
    .chicken-bio h2 {
        font-size: 2.5rem;
        padding: 2rem;
    }
    
    .chicken-content {
        padding: 2rem;
        gap: 2rem;
    }
}

/* Extra mobile image fix: shrink and center images on small screens */
@media (max-width: 600px) {
    .chicken-image {
        width: 150px;
        height: 150px;
        max-width: 90vw;
        max-height: 60vw;
        margin-left: auto;
        margin-right: auto;
        display: block;
        padding: 8px;
    }
    img {
        max-width: 90vw;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Reduce padding on chicken-photo container to prevent overflow */
    .chicken-photo {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Center and resize slideshows on mobile */
    .slideshow-container {
        width: 100%;
        max-width: calc(100vw - 4rem);
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .slideshow-container .slides {
        width: 200px;
        height: 200px;
        flex-shrink: 1;
    }
    
    .slideshow-container .prev,
    .slideshow-container .next {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .slideshow-container .prev {
        margin-right: 6px;
    }
    
    .slideshow-container .next {
        margin-left: 6px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(245, 158, 11, 0.5);
    animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.modal-close:hover {
    color: #fbbf24;
}

.chicken-image {
    transition: transform 0.2s, filter 0.2s;
}

.chicken-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}
