/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Animations */
.hero__content {
    animation: slideInLeft 1s ease-out;
}

.hero__image {
    animation: slideInRight 1s ease-out;
}

/* Feature Card Hover Effects */
.feature__card {
    transition: all 0.3s ease;
}

.feature__card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Animations */
.form__group {
    position: relative;
    margin-bottom: 2rem;
}

.form__group input,
.form__group textarea {
    transition: all 0.3s ease;
}

.form__group input:focus,
.form__group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2);
}

/* Success Message Animation */
.success-message {
    animation: fadeInUp 0.5s ease-out;
}

/* Page-specific hero sections */
.about-hero,
.products-hero,
.contact-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #e8f5e8 0%, #d0edd0 100%);
}

.about-hero h1,
.products-hero h1,
.contact-hero h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Story Section */
.story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story__image .placeholder-image {
    background: #ddd;
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

/* Values Grid */
.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value__card {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

/* Contact Grid */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__item {
    margin-bottom: 2rem;
}

.contact__form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form__group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.success-message {
    background: #2ecc71;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

/* Products Grid */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product__card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product__image {
    height: 200px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.product__content {
    padding: 1.5rem;
}

.product__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.product__price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive adjustments for new sections */
@media screen and (max-width: 768px) {
    .story__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-hero h1,
    .products-hero h1,
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
}