/* ========================================== */
/* AGROVIA UNIFIED STYLESHEET                 */
/* ========================================== */

/* --- CSS Variables & Reset --- */
:root {
    /* --primary: #ccfb5d; */
    --primary-hover: #15803d;
    /* --primary-hover: #b8e64b; */
        /* --primary: #15803d; */
    --primary: #22c55e;
    --text-dark: #111827;
    /* gray-900 */
    --text-gray: #6b7280;
    /* gray-500 */
    --bg-light: #ffffff;
    --bg-dark: #2c2c2c;
    /* --bg-dark: #111827; */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
          -webkit-tap-highlight-color: transparent; /* Makes the highlight invisible */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari, Chrome, Opera */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard property for modern browsers */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.contact-page {
    background-color: #f9fafb;
    /* Slightly off-white for contact form */
}

a {
    text-decoration: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.container {
    /* max-width: 80rem; */
    /* 1280px */
    margin: 0 auto;
    padding: 0 1.25rem;
    /* 20px px-5 */
    width: 100%;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }

    /* px-12 */
}

/* --- Animations & Transitions --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Nav fade in */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Common Navigation Styling --- */
.navbar {
    position: relative;
    z-index: 50;
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeInDown 0.8s ease-out forwards;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    background-color: var(--primary);
    /* color: black; */
    color: white;
    padding: 0.375rem;
    border-radius: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-text {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-link.active {
    color: white;
}

.nav-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-link.active .nav-dot {
    background-color: var(--primary);
}

.nav-link:hover .nav-dot {
    background-color: var(--primary);
    transform: scale(1.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-contact {
    background-color: white;
    color: var(--text-dark);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: none;
}

.btn-contact:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .btn-contact {
        display: block;
    }
}

.btn-menu {
    color: white;
    padding: 0.5rem;
    display: block;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-menu:hover {
    transform: scale(1.1);
}

@media (min-width: 1024px) {
    .btn-menu {
        display: none;
    }
}

/* --- Mobile Menu Drawer --- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 24rem;
    background-color: var(--bg-dark);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close {
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.drawer-body {
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.mobile-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-drawer.active .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--primary);
    transform: translateX(5px);
}

.mobile-link.active .nav-dot {
    background-color: var(--primary);
}

.mobile-link:not(.active) .nav-dot {
    background-color: transparent;
}

.drawer-footer {
    padding: 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-btn {
    background-color: var(--primary);
    color: var(--text-dark);
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 9999px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

body.menu-open {
    overflow: hidden;
}

/* ========================================== */
/* HOME PAGE SPECIFIC STYLES                  */
/* ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
    transform: scale(1.05);
    animation: slowZoom 20s linear infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent, transparent);
}

.hero-overlay-2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6rem;
}

@media (min-width: 1024px) {
    .hero-content {
        padding-bottom: 8rem;
    }
}

.hero-title {
    color: white;
    font-size: 2.75rem;
    line-height: 1.1;
    font-weight: 500;
    max-width: 48rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1.25rem;
    font-size: 1rem;
    max-width: 36rem;
    line-height: 1.625;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-desc {
        font-size: 1.125rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    /* color: var(--text-dark); */
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 251, 93, 0.3);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translate(2px, -2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-bottom {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.scroll-indicator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: white;
    transform: translateY(2px);
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

.stats-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-group {
        gap: 1.5rem;
    }
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
}

.rating i {
    color: var(--primary);
}

.users-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatars {
    display: flex;
    margin-right: -0.625rem;
}

.avatars img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid black;
    object-fit: cover;
    margin-left: -0.625rem;
    transition: transform 0.3s ease;
}

.avatars img:hover {
    transform: scale(1.1);
    z-index: 2;
    position: relative;
}

.avatars img:first-child {
    margin-left: 0;
}

.users-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.logos-section {
    background-color: white;
    padding: 2.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 1024px) {
    .logos-section {
        padding: 3.5rem 0;
    }
}

.logos-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .logos-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.logos-text {
    color: var(--text-gray);
    font-size: 0.875rem;
    max-width: 10rem;
    line-height: 1.375;
    font-weight: 500;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    opacity: 0.6;
    filter: grayscale(100%);
}

@media (min-width: 768px) {
    .logos-grid {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .logos-grid {
        gap: 4rem;
    }
}

.logo-item {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    color: var(--primary-hover);
    cursor: pointer;
}

@media (min-width: 768px) {
    .logo-item {
        font-size: 1.25rem;
    }
}

.logo-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.logo-z {
    font-size: 1.5rem;
    line-height: 1;
    font-style: italic;
}

.logo-wide {
    letter-spacing: 0.025em;
}

.logo-widest {
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.value-section {
    background-color: white;
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .value-section {
        padding: 8rem 0;
    }
}

.section-inner {
    max-width: 70rem;
    margin: 0 auto;
}

.tagline {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.tagline-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: #9ca3af;
}

.value-heading {
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .value-heading {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .value-heading {
        font-size: 2.75rem;
        line-height: 1.4;
    }
}

.inline-image-pill {
    display: inline-flex;
    align-items: center;
    margin: 0 0.25rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
    padding: 0.25rem;
    border: 1px solid #e5e7eb;
    vertical-align: baseline;
    position: relative;
    top: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inline-image-pill:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .inline-image-pill {
        margin: 0 0.5rem;
    }
}

.inline-image-pill img {
    height: 1.75rem;
    width: 3rem;
    object-fit: cover;
    border-radius: 9999px;
}

@media (min-width: 1024px) {
    .inline-image-pill img {
        height: 2.25rem;
        width: 4rem;
    }
}

.solutions-section {
    background-color: white;
    padding: 3rem 0 8rem 0;
}

.solutions-grid {
    max-width: 70rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .solutions-grid {
        flex-direction: row;
        gap: 6rem;
    }
}

.col-left,
.col-right {
    flex: 1;
}

@media (min-width: 1024px) {
    .col-right {
        padding-top: 3.5rem;
    }
}

.solutions-title {
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .solutions-title {
        font-size: 3rem;
    }
}

.title-italic {
    font-style: italic;
    font-weight: 300;
    color: var(--text-gray);
    display: block;
}

.solutions-desc {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.625;
    max-width: 32rem;
}

/* ========================================== */
/* INNER PAGES (About, Contact) STYLES        */
/* ========================================== */
.page-header {
    background-color: var(--bg-dark);
    padding-bottom: 4rem;
    position: relative;
}

.page-title-section {
    padding-top: 4rem;
    text-align: center;
}

.page-title {
    color: white;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    margin-top: 1rem;
    font-weight: 300;
}

/* About Specific */
.content-section {
    padding: 6rem 0;
    background-color: white;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        flex-direction: row;
        gap: 6rem;
        align-items: center;
    }
}

.about-image {
    flex: 1;
    width: 100%;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    z-index: -1;
    border-radius: 1rem;
}

.about-text {
    flex: 1;
}

.content-heading {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.content-paragraph {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Contact Specific */
.contact-section {
    padding: 5rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.contact-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-card {
        padding: 4rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(204, 251, 93, 0.2);
    background-color: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: var(--primary);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 251, 93, 0.3);
}