/* =====================================
   UNICUS FOOD - MAIN CSS STYLESHEET
   ===================================== */

:root {
    --primary-color: #7fb069;
    --secondary-color: #ffd700;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --text-muted: #6c757d;
    --success: #28a745;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    font-weight: 300;
    letter-spacing: 0.3px;
}

.lead {
    font-size: 1.3rem;
    font-weight: 300;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #6da05a;
}

/* ===== Navigation ===== */
.navbar {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-link {
    position: relative;
    color: var(--dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

/* ===== SCROLL ANIMATIONS ===== */

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Fade In Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Slide Up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.8s ease-out;
}

/* Count Up */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-up {
    animation: countUp 0.8s ease-out;
}

/* ===== On-Scroll Animations ===== */
.scroll-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hover Effects ===== */
.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* ===== Cards ===== */
.feature-card,
.product-card,
.team-card,
.testimonial-card,
.cert-card,
.gallery-card {
    transition: all 0.3s ease;
    border: none;
}

.feature-card:hover,
.product-card:hover,
.team-card:hover,
.testimonial-card:hover,
.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(127, 176, 105, 0.2) !important;
}

/* ===== Product Card Specific ===== */
.product-card {
    overflow: hidden;
    position: relative;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.product-card:hover .product-image::before {
    background: rgba(0, 0, 0, 0.1);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

/* ===== Feature Cards ===== */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
}

/* ===== Section Spacing ===== */
.py-5 {
    padding: 4rem 0;
}

/* ===== Footer ===== */
.footer-section {
    border-top: 3px solid var(--secondary-color);
}

.text-light-gray {
    color: #b8c1cc;
    transition: color 0.3s ease;
}

.text-light-gray:hover {
    color: white;
}

.footer-section a {
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--secondary-color) !important;
}

/* ===== Form Styles ===== */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(127, 176, 105, 0.25);
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border-radius: 0.3em;
    border: 2px solid var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Badge Styles ===== */
.badge {
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 0.3rem;
}

/* ===== Contact Item ===== */
.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

/* ===== Filter Buttons ===== */
.gallery-filter,
.filter-btn {
    transition: all 0.3s ease;
    border-radius: 2rem;
}

.gallery-filter.active,
.filter-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ===== Testimonial Stars ===== */
.fa-star {
    transition: all 0.2s ease;
}

.testimonial-card:hover .fa-star {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== Counter Animation ===== */
.counter {
    display: inline-block;
    font-weight: 700;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 50px 0;
    }

    .container {
        padding: 0 1rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-card {
        height: 250px !important;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 40px 0;
    }

    .row {
        gap: 1.5rem !important;
    }

    .feature-card,
    .product-card {
        margin-bottom: 0.5rem;
    }

    .footer-section .row {
        gap: 1rem !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer-section,
    .contact-form {
        display: none;
    }
}

/* ===== Loading Animation ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== Smooth Scroll Behavior ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Text Utilities ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6da05a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Border Utilities ===== */
.border-top-accent {
    border-top: 3px solid var(--secondary-color) !important;
}

.border-left-accent {
    border-left: 5px solid var(--primary-color) !important;
}

/* ===== Shadow Utilities ===== */
.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.shadow-medium {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.shadow-strong {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--light);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Utilities for Animations ===== */
.appear {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.appear.visible {
    opacity: 1;
}

.slide {
    transform: translateX(-100px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.slide.visible {
    transform: translateX(0);
    opacity: 1;
}

/* ===== Additional Styling ===== */
.page-header {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6da05a 100%);
    color: white;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== Accessibility ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Dark Mode Support (Future) ===== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .form-control,
    .form-select {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #3a3a3a;
    }
}

/* ===== Print Responsive ===== */
@media print {
    body {
        font-size: 12pt;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
