/* ===== CSS Variables ===== */
:root {
    --green-dark: #0a1628;
    --green-main: #1a6fd4;
    --green-light: #3b8de6;
    --green-pale: #e6f0fb;
    --gold: #00b4d8;
    --gold-light: #d0ecf7;
    --brown: #1e293b;
    --brown-light: #475569;
    --cream: #f0f4f8;
    --white: #ffffff;
    --text-dark: #1e1e2e;
    --text-muted: #64748b;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.14);
    --radius: 10px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== HEADER ===== */
.farm-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.farm-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.logo-icon {
    font-size: 32px;
    line-height: 1;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--green-dark);
}

.logo-accent {
    color: var(--gold);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-main);
    background: var(--green-pale);
}

.nav-auth {
    display: flex;
    gap: 10px;
    margin-left: 16px;
}

.btn-login {
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-main);
    border: 2px solid var(--green-main);
    border-radius: 8px;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--green-main);
    color: var(--white);
}

.btn-signup {
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--green-main);
    border: 2px solid var(--green-main);
    border-radius: 8px;
    transition: var(--transition);
}

.btn-signup:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--green-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--cream) 50%, var(--gold-light) 100%);
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(26, 111, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--green-main);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.hero-badge span {
    font-size: 18px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--green-dark);
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--gold);
    position: relative;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background: var(--green-main);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 111, 212, 0.3);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 111, 212, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--green-main);
    background: transparent;
    border: 2px solid var(--green-main);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--green-pale);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--green-dark);
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45));
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    /* iOS Safari fix: overflow:hidden doesn't clip animated border-radius */
    -webkit-mask-image: -webkit-radial-gradient(white, white);
    mask-image: radial-gradient(white, white);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    will-change: border-radius;
    -webkit-animation: morph 8s ease-in-out infinite;
    animation: morph 8s ease-in-out infinite;
}

.hero-image-wrapper img {
    width: 118%;
    height: 118%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    will-change: transform;
    -webkit-animation: slowSpin 20s linear infinite;
    animation: slowSpin 20s linear infinite;
}

@-webkit-keyframes slowSpin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 40% 60% / 60% 46% 54% 40%;
    }

    50% {
        border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
    }

    75% {
        border-radius: 42% 58% 64% 36% / 48% 32% 68% 52%;
    }
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 40% 60% / 60% 46% 54% 40%;
    }

    50% {
        border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
    }

    75% {
        border-radius: 42% 58% 64% 36% / 48% 32% 68% 52%;
    }
}

.float-card {
    position: absolute;
    background: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.float-card span.icon {
    font-size: 28px;
}

.float-card.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.float-card.card-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 24px;
    background: var(--white);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-pale);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-main);
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background: linear-gradient(145deg, var(--green-pale), var(--gold-light));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    font-size: 120px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content h3 {
    font-size: 28px;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--green-pale);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--green-dark);
}

.about-feature span {
    font-size: 22px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
    padding: 140px 24px 60px;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--cream) 50%, var(--gold-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 111, 212, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.page-header .breadcrumb {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.page-header .breadcrumb a {
    color: var(--green-main);
    font-weight: 500;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== PRODUCTS / CTA SECTION ===== */
.products {
    padding: 100px 24px;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card:hover {
    border-color: var(--green-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '&#127806;';
    position: absolute;
    top: -40px;
    left: 5%;
    font-size: 200px;
    opacity: 0.06;
}

.cta-banner h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 32px;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    color: var(--green-dark);
    background: var(--gold);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 24px;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.contact-info>p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail .cd-icon {
    width: 48px;
    height: 48px;
    background: var(--green-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail .cd-icon i {
    color: var(--green-main);
    font-size: 18px;
}

.contact-detail h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-main);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    background: var(--green-main);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--green-dark);
}

/* ===== FOOTER ===== */
.farm-footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 60px 24px 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    font-size: 28px;
}

.footer-brand .logo-text {
    font-size: 22px;
    color: var(--white);
}

.footer-brand .logo-accent {
    color: var(--gold);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--green-dark);
}

.footer-col h4 {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact li i {
    color: var(--gold);
    margin-top: 4px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero-container {
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {

    /* Header mobile */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 32px 32px;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.35s ease;
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
    }

    .nav-auth {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 16px;
        gap: 10px;
    }

    .btn-login,
    .btn-signup {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero mobile */
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }

    .float-card.card-1 {
        right: 0;
        top: 5%;
    }

    .float-card.card-2 {
        left: 0;
        bottom: 5%;
    }

    /* About mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        font-size: 80px;
        min-height: 260px;
    }

    .section-title {
        font-size: 30px;
    }

    /* Products mobile */
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* CTA mobile */
    .cta-banner h2 {
        font-size: 28px;
    }

    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header-container {
        height: 64px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-image-wrapper {
        max-width: 240px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}