/* poultryitems/static/poultryitems/css/index.css */

/* ===== VARIABLES ===== */
:root {
    --color-primary: #FF6B00;
    --color-primary-dark: #E05D00;
    --color-secondary: #2599b6;
    --color-dark: #2C3E50;
    --color-light: #f9f9f9;
    --color-gray: #666;
    --color-white: #fff;
    --color-black: #333;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--color-black);
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.button--primary {
    background-color: var(--color-primary);
}

.button--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.button--secondary {
    background-color: var(--color-secondary);
}

.button--secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 55vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    margin-top: 15px;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero__content {
    max-width: 800px;
    padding: 0 1.25rem;
    z-index: 1;
}

.hero__title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 3.125rem 1.25rem;
    background-color: var(--color-light);
}

.services__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.875rem;
    max-width: 75rem;
    margin: 0 auto;
    justify-content: center;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    flex: 1 1 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-0.625rem);
}

.service-card__image {
    height: 12.5rem;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.1);
}

.service-card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.9375rem;
    color: var(--color-black);
}

.service-card__description {
    color: var(--color-gray);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ===== TRAINING SECTION ===== */
.training-section {
    padding: 4rem 1.25rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #e6f0f3 100%);
}

.training-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.training-section__title {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.training-section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.training-section__subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.training-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.training-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    flex: 1 1 500px;
    max-width: 550px;
    display: flex;
    flex-direction: column;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.training-card__image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.training-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.training-card:hover .training-card__image {
    transform: scale(1.05);
}

.training-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.training-card__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.training-card__title {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.training-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-primary);
}

.training-card__features {
    margin-bottom: 1.5rem;
}

.training-card__feature {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--color-gray);
    font-size: 1rem;
}

.training-card__feature::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.training-card__description {
    color: var(--color-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.training-card__button {
    align-self: flex-start;
    margin-top: auto;
}

/* Responsive adjustments for training section */
@media (max-width: 768px) {
    .training-section {
        padding: 2.5rem 1rem;
    }
    
    .training-section__title {
        font-size: 2rem;
    }
    
    .training-section__subtitle {
        font-size: 1rem;
    }
    
    .training-cards {
        gap: 1.5rem;
    }
    
    .training-card {
        flex: 1 1 100%;
    }
    
    .training-card__image-container {
        height: 200px;
    }
    
    .training-card__content {
        padding: 1.5rem;
    }
    
    .training-card__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .training-section__title {
        font-size: 1.8rem;
    }
    
    .training-card__feature {
        font-size: 0.9rem;
    }
    
    .training-card__description {
        font-size: 0.9rem;
    }
}

/* ===== PRODUCTS SECTION ===== */
.products {
    padding: 3.125rem 1.25rem;
    background-color: var(--color-light);
}

.products__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.875rem;
    max-width: 75rem;
    margin: 0 auto;
    justify-content: center;
}

.product-card {
    background: rgba(228, 228, 228, 1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    flex: 1 1 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.26);
}

.product-card__image {
    height: 12.5rem;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__info {
    padding: 0.9375rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.625rem;
    color: var(--color-black);
}

.product-card__price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.9375rem;
}

.product-card__description {
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .hero {
        height: 45vh;
        margin-top: 2px;
    }
    
    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero__description {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }
    
    .services {
        padding: 1.25rem 0.625rem;
    }
    
    
    .button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .product-card {
        flex: 1 1 100%;
    }
}