/*
* File: style.css
* Author: AI Assistant
* Description: Styles for the Agricultural Supply Chain website, combining Glassmorphism and Neo-Brutalism.
*/

/* ---------------------------------------------------------------------
 * 1. CSS Variables & Root Styles
 * --------------------------------------------------------------------- */

:root {
    /* Color Palette (Tetradic) */
    --color-primary-green: #388E3C; /* Nature, Growth */
    --color-secondary-blue: #1976D2; /* Technology, Sky */
    --color-accent-yellow: #FBC02D;  /* Crops, Sun, Highlight */
    --color-action-red: #D32F2F;    /* Action, Emphasis */

    /* Neutral & Text Colors */
    --color-text-dark: #212121;
    --color-text-medium: #424242;
    --color-text-light: #FFFFFF;
    --color-background-light: #F7F9FC;
    --color-background-dark: #121212;
    --color-border-brutal: #000000;
    --color-border-light: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Sizing & Spacing */
    --header-height: 80px;
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --border-radius-soft: 12px;
    --border-radius-sharp: 4px;
    --transition-speed: 0.3s;
}

/* Base & Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-medium);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
a { color: var(--color-primary-green); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--color-secondary-blue); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }


/* ---------------------------------------------------------------------
 * 2. Layout & Helper Classes
 * --------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--color-text-dark);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem auto;
    font-size: 1.1rem;
    color: var(--color-text-medium);
}

.bg-light { background-color: var(--color-background-light); }
.bg-dark { background-color: var(--color-background-dark); }
.bg-dark h2, .bg-dark p { color: var(--color-text-light); }

.columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.column { flex: 1; min-width: 300px; }
.is-two-thirds { flex-grow: 2; flex-basis: 60%; }

/* ---------------------------------------------------------------------
 * 3. Header & Navigation
 * --------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    transition: background-color var(--transition-speed) ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-primary-green);
    text-decoration: none;
}
.logo:hover { text-decoration: none; }

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-green);
    transition: width var(--transition-speed) ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}


/* ---------------------------------------------------------------------
 * 4. Hero Section
 * --------------------------------------------------------------------- */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-content h1 {
    color: var(--color-text-light); /* IMPORTANT */
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-content p {
    color: var(--color-text-light); /* IMPORTANT */
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------------------------------------------
 * 5. General Components (Buttons, Cards, Forms)
 * --------------------------------------------------------------------- */

/* Neo-Brutalism Button */
.neo-button, .neo-button-small {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--color-border-brutal);
    box-shadow: 4px 4px 0 var(--color-border-brutal);
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}
.neo-button {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    background-color: var(--color-accent-yellow);
    color: var(--color-text-dark);
}
.neo-button-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--color-secondary-blue);
    color: var(--color-text-light);
}

.neo-button:hover, .neo-button-small:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--color-border-brutal);
    text-decoration: none;
}
.neo-button:active, .neo-button-small:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-border-brutal);
}

.neo-brutal-border {
    border: 3px solid var(--color-border-brutal);
    box-shadow: 6px 6px 0 var(--color-border-brutal);
    border-radius: var(--border-radius-sharp);
    overflow: hidden;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* General Card Structure */
.card {
    background: var(--color-background);
    border-radius: var(--border-radius-sharp);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}
.card-content {
    padding: 1rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-content h3 {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--color-border-light);
    border-radius: var(--border-radius-sharp);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-yellow);
}
.contact-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255,255,255,0.7);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}
.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    background: var(--color-background-dark);
    padding: 0 0.5rem;
    color: var(--color-accent-yellow);
}


/* ---------------------------------------------------------------------
 * 6. Section-Specific Styles
 * --------------------------------------------------------------------- */

/* Vision Section */
#vision .stats-widgets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}
#vision .stat-widget {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 1.5rem 1rem;
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary-green);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-medium);
}

/* Behind the Scenes */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.process-step {
    text-align: center;
}
.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    background-color: var(--color-primary-green);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    border: 3px solid var(--color-border-brutal);
}
.step-title {
    color: var(--color-secondary-blue);
}

/* Portfolio Slider */
.slider-container {
    position: relative;
}
.custom-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem; /* for scrollbar */
    scrollbar-width: none; /* Firefox */
}
.custom-slider::-webkit-scrollbar { display: none; } /* Chrome, Safari, Opera */

.slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}
@media (min-width: 600px) { .slide { flex-basis: calc(50% - 1rem); } }
@media (min-width: 992px) { .slide { flex-basis: calc(33.333% - 1.33rem); } }

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.slider-controls button {
    background: white;
    color: var(--color-border-brutal);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: 2px solid var(--color-border-brutal);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}
.slider-controls button:hover {
    background: var(--color-accent-yellow);
    transform: scale(1.1);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-sharp);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}
.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Innovation Section */
.innovation-card {
    margin-bottom: 1.5rem;
}

/* Resources Section */
.resources-list {
    display: grid;
    gap: 1.5rem;
}
.resource-item {
    padding: 1.5rem;
}
.resource-title a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-secondary-blue);
}
.resource-title a:hover {
    color: var(--color-primary-green);
}
.resource-description {
    font-size: 0.9rem;
    color: var(--color-text-medium);
    margin-bottom: 0;
}


/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border-bottom: 1px solid #ddd;
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform var(--transition-speed) ease;
}
.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.accordion-content p {
    padding: 0 1rem 1.5rem;
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * 7. Modals
 * --------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: fadeIn 0.4s;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.modal-content h2 { color: var(--color-secondary-blue); }
.modal-image { width: 100%; height: 250px; object-fit: cover; border-radius: var(--border-radius-sharp); margin-bottom: 1rem; }
.close-button {
    color: var(--color-text-dark);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

/* ---------------------------------------------------------------------
 * 8. Footer
 * --------------------------------------------------------------------- */

.main-footer {
    background-color: var(--color-text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.footer-column.about-us p {
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.75rem;
}
.footer-column ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.footer-column ul a:hover {
    color: var(--color-accent-yellow);
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------------
 * 9. Static Pages (Success, Privacy, Terms)
 * --------------------------------------------------------------------- */

.success-page, .static-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--container-padding);
}

.success-page {
    min-height: 100vh;
}

.static-page {
    padding-top: calc(var(--header-height) + 4rem); /* Header offset */
    min-height: 80vh;
    align-items: flex-start;
    text-align: left;
}

.static-page .container {
    max-width: 800px;
}

.success-card {
    max-width: 500px;
}

.success-card h1 {
    color: var(--color-primary-green);
}


/* ---------------------------------------------------------------------
 * 10. Media Queries & Responsiveness
 * --------------------------------------------------------------------- */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .section { padding: 3rem 0; }
    .section-title { margin-bottom: 2rem; }

    .columns-container { flex-direction: column; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-background);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right var(--transition-speed) ease-in-out;
        padding-top: calc(var(--header-height) + 2rem);
    }
    .main-nav.active {
        right: 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .main-nav a {
        font-size: 1.2rem;
    }

    .burger-menu {
        display: block;
    }
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}