/* Bearded Farms - Main Stylesheet */

/* Color Variables - More sophisticated palette */
:root {
    --barn-red: #8B2635;
    --bright-red: #A43741;
    --egg-white: #F9F7F0;
    --cream: #F0EAD6;
    --straw-yellow: #D9A566;
    --bright-yellow: #C69C6D;
    --wood-brown: #5D4037;
    --grass-green: #3E5641;
    --sky-blue: #607D8B;
    --dark-text: #2D2926;
}

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

body {
    font-family: 'Georgia', serif;
    background-color: var(--egg-white);
    color: var(--dark-text);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.05;
}

/* Subtle Background Elements */
.floating-feather {
    position: absolute;
    width: 20px;
    height: 60px;
    color: var(--barn-red);
    opacity: 0.3;
    font-size: 20px;
}

.floating-feather::before {
    content: '\f56b'; /* Font Awesome feather icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.feather1 {
    top: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.feather2 {
    top: 30%;
    right: 10%;
    transform: rotate(-20deg);
}

.feather3 {
    bottom: 20%;
    left: 15%;
    transform: rotate(5deg);
}

.feather4 {
    bottom: 40%;
    right: 20%;
    transform: rotate(-10deg);
}

.feather5 {
    top: 50%;
    left: 50%;
    transform: rotate(25deg);
}

/* Modern Navigation */
.main-nav {
    position: sticky;
    top: 0;
    background-color: rgba(139, 38, 53, 0.85); /* Semi-transparent barn-red */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 0 20px;
    margin-bottom: 40px;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    transition: transform 0.5s ease;
}

.nav-logo img:hover {
    transform: rotate(180deg);
}

.nav-logo h2 {
    color: var(--egg-white);
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-logo h2::after {
    display: none;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-link {
    color: var(--egg-white);
    text-decoration: none;
    padding: 20px 15px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--straw-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--straw-yellow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--straw-yellow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--egg-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 50px;
    background-color: var(--cream);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--barn-red);
}

h2 {
    color: var(--barn-red);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Georgia', serif;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--straw-yellow);
}

h3 {
    color: var(--wood-brown);
    margin: 20px 0 15px;
    font-size: 1.5rem;
    font-family: 'Georgia', serif;
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-text);
}

/* Section Display Control */
.active-section {
    display: block;
}

.hidden-section {
    display: none;
}

/* Hero Section */
.hero {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 650px; /* Height moved from container to hero */
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
    opacity: 0.6; /* Increased opacity for more fade */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.6; /* Matching the image opacity */
    transition: transform 10s ease; /* Matching the image transition */
}

.hero:hover .hero-image,
.hero:hover .hero-video {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)); /* Adjusted overlay for better text visibility */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
}

.animated-text {
    font-size: 3rem;
    color: var(--egg-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    margin-bottom: 20px;
}

.animated-text-delay {
    font-size: 1.8rem;
    color: var(--egg-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Products */
.featured-products {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--egg-white);
    border-radius: 8px;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--straw-yellow);
}

.product-card:hover::after {
    content: 'Click to learn more';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--barn-red);
    font-style: italic;
    opacity: 0.8;
}

.product-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--straw-yellow);
    margin-bottom: 20px;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.float-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--barn-red);
    transition: transform 0.5s ease;
}

.float-image:hover {
    transform: scale(1.05);
}

/* Chickens Section */
.chicken-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.category-section {
    background-color: var(--egg-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-section > h3 {
    color: var(--barn-red);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--straw-yellow);
}

.chicken-breeds {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.breed-card {
    background-color: var(--egg-white);
    border-radius: 8px;
    padding: 25px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.breed-card:hover {
    transform: translateY(-5px);
}

.breed-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.rotate-hover:hover {
    transform: scale(1.05);
}

.chicken-care {
    background-color: #F0E6D2;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chicken-care h3 {
    color: var(--barn-red);
    text-align: center;
    margin-bottom: 20px;
}

.chicken-care ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.chicken-care li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.chicken-care li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--barn-red);
}

/* Eggs Section */
.egg-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.egg-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.egg-text {
    flex: 2;
    min-width: 300px;
}

.pulse-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--straw-yellow);
    transition: transform 0.5s ease;
}

.pulse-image:hover {
    transform: scale(1.05);
}

.egg-varieties {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
}

.egg-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.egg {
    width: 60px;
    height: 80px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.egg:hover {
    transform: scale(1.1);
}

.brown-egg {
    background: linear-gradient(to bottom right, #8B4513, #D2691E);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.white-egg {
    background: linear-gradient(to bottom right, #FFFFFF, #F5F5F5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.blue-egg {
    background: linear-gradient(to bottom right, #87CEEB, #4682B4);
    box-shadow: 0 4px 8px rgba(70, 130, 180, 0.2);
}

.speckled-egg {
    background: linear-gradient(to bottom right, #F5F5DC, #FAEBD7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.speckled-egg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#8B4513 1px, transparent 1px);
    background-size: 8px 8px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.egg-pricing {
    background-color: var(--egg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.egg-pricing h3 {
    color: var(--barn-red);
    text-align: center;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #F0E6D2;
    color: var(--barn-red);
    font-weight: bold;
}

tr:hover {
    background-color: rgba(240, 230, 210, 0.2);
}

.egg-note {
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    color: #666;
}

/* Testimonials Section */
.testimonials-section {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--egg-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-content {
    padding: 30px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark-text);
    line-height: 1.8;
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-author h4 {
    color: var(--barn-red);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    font-style: normal;
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--wood-brown);
}

/* Home page testimonials */
.testimonials-section h2 {
    margin-top: 10px;
    color: var(--barn-red);
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--straw-yellow);
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 200px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zoom-hover:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    color: var(--barn-red);
    width: 20px;
    text-align: center;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--barn-red);
    color: var(--egg-white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--straw-yellow);
    color: var(--barn-red);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--wood-brown);
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    background-color: var(--egg-white);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--straw-yellow);
    box-shadow: 0 0 5px rgba(217, 165, 102, 0.3);
}

.submit-btn {
    background-color: var(--barn-red);
    color: var(--egg-white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-btn:hover {
    background-color: var(--bright-red);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background: linear-gradient(to bottom, var(--barn-red), #6b1c28);
    color: var(--egg-white);
    padding: 60px 20px 30px;
    margin-top: 60px;
    position: relative;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%238B2635' d='M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-5px);
}

.footer-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-logo-img {
    font-size: 25px;
    color: var(--straw-yellow);
    margin-right: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background-color: rgba(139, 38, 53, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 8px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.footer-links a {
    color: var(--egg-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding: 15px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--straw-yellow);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--straw-yellow);
}

.footer-links a:hover::after {
    width: 80%;
}

.footer-links a.active {
    color: var(--straw-yellow);
}

.footer-links a.active::after {
    width: 80%;
}

.footer-newsletter {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.footer-newsletter h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--straw-yellow);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 5px;
    width: 220px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.newsletter-form button {
    background-color: var(--straw-yellow);
    color: var(--barn-red);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-form button:hover {
    background-color: var(--bright-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

/* Social media icons in footer */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

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

.footer-social a:hover {
    background-color: var(--straw-yellow);
    color: var(--barn-red);
    transform: translateY(-3px);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(93, 64, 55, 0.95); /* wood-brown with opacity */
    color: var(--egg-white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

/* Policy Modal */
.policy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.policy-modal.show {
    display: block;
    opacity: 1;
}

.policy-modal-content {
    background-color: var(--cream);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--barn-red);
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    color: var(--barn-red);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--bright-red);
}

#policyContent {
    margin-top: 20px;
}

#policyContent h2 {
    margin-top: 0;
}

/* Make modal responsive */
@media (max-width: 768px) {
    .policy-modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-text p {
    margin: 0;
    color: var(--egg-white);
}

.cookie-text a {
    color: var(--straw-yellow);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.accept-cookies {
    background-color: var(--straw-yellow);
    color: var(--wood-brown);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accept-cookies:hover {
    background-color: var(--bright-yellow);
    transform: translateY(-2px);
}

/* Joseph Security Popup */
.joseph-security {
    position: fixed;
    bottom: -200px; /* Start off-screen */
    width: 150px;
    height: 150px;
    z-index: 1000;
    transition: bottom 1.5s ease-in-out, left 1.5s ease-in-out, right 1.5s ease-in-out;
    cursor: pointer;
}

.joseph-security.left-side {
    left: -150px; /* Start off-screen on the left */
}

.joseph-security.right-side {
    right: -150px; /* Start off-screen on the right */
}

.joseph-security.left-side.visible {
    left: 20px;
}

.joseph-security.right-side.visible {
    right: 20px;
}

.joseph-security img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.joseph-security.left-side img {
    transform: scaleX(-1); /* Flip horizontally when on the left side */
}

.joseph-security .speech-bubble {
    position: absolute;
    top: -60px;
    left: -20px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    max-width: 180px;
    opacity: 1; /* Always visible */
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1; /* Ensure speech bubble is behind Joseph if they overlap */
}

.joseph-security .speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(139, 38, 53, 0.85); /* Semi-transparent barn-red */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px); /* For Safari */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-link {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 450px;
    }
    
    .animated-text {
        font-size: 2rem;
    }
    
    .animated-text-delay {
        font-size: 1.2rem;
    }
    
    .about-content, .egg-content, .contact-content {
        flex-direction: column;
    }
    
    .about-image, .egg-image {
        margin-bottom: 20px;
    }
    
    .testimonial-card {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
