/* ========================================
   MOBILE APP-LIKE STYLES
   ======================================== */

/* ========================================
   FARMER-THEMED HEADER & FOOTER
   ======================================== */

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #1e5a2e 0%, #2d7a3e 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
    position: relative;
}

.top-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.top-bar a:hover {
    color: #f39c12;
    transform: translateY(-1px);
}

/* Exception for dropdown menu links */
.profile-dropdown a,
.lang-dropdown a {
    color: #333333 !important;
    font-weight: 500;
}

.profile-dropdown a:hover,
.lang-dropdown a:hover {
    color: #2d7a3e !important;
    transform: none;
}

.profile-dropdown .logout-item {
    color: #dc3545 !important;
}

.profile-dropdown .logout-item:hover {
    color: #c82333 !important;
}

.top-link {
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.top-link:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    border-color: transparent;
}

/* Enhanced Header */
.header {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #2d7a3e, #27ae60, #f39c12) 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
    gap: 12px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 3rem;
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2d7a3e, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.75rem;
    color: #f39c12;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 25px;
    overflow: hidden;
    background: var(--white);
}

.search-bar input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-bar button {
    padding: 10px 20px;
    background: var(--primary);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #1e5a2e;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d7a3e, #27ae60);
    transition: left 0.4s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 122, 62, 0.3);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--light);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-menu a:hover {
    background: var(--light);
    padding-left: 30px;
}

.menu-icon {
    font-size: 1.5rem;
    width: 30px;
}

.menu-divider {
    height: 10px;
    background: var(--light);
    margin: 10px 0;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 999;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 12px;
    min-width: 60px;
}

.bottom-nav-item.active {
    color: var(--primary);
    background: rgba(45, 122, 62, 0.1);
}

.bottom-nav-icon {
    font-size: 1.5rem;
}

.bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #1e5a2e 0%, #2d7a3e 50%, #1a4d2e 100%);
    color: var(--white);
    padding: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50" opacity="0.03">🌾</text></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.footer-wave {
    position: relative;
    width: 100%;
    height: 80px;
    color: #f8f9fa;
    margin-bottom: -1px;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer .container {
    position: relative;
    z-index: 1;
    padding: 40px 20px 20px;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(135deg, #fff, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #f39c12;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.4rem;
    transition: all 0.4s;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
    border-color: transparent;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 998;
}

.scroll-top:hover {
    background: #1e5a2e;
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */
@media (max-width: 1024px) {
    .logo-text {
        display: inline;
    }
    
    .search-bar {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    /* Hide top bar on mobile */
    .top-bar {
        display: none;
    }
    
    /* Show mobile toggle */
    .mobile-toggle {
        display: flex;
    }
    
    /* Hide desktop menu */
    .desktop-menu {
        display: none;
    }
    
    /* Adjust search bar */
    .search-bar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-width: 100%;
        padding: 10px 20px;
        background: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }
    
    .search-bar.active {
        display: block;
    }
    
    /* Show bottom navigation */
    .bottom-nav {
        display: flex;
    }
    
    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 70px;
    }
    
    /* Adjust footer */
    .footer {
        margin-bottom: 70px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Adjust scroll-top button */
    .scroll-top {
        bottom: 90px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 120px;
        height: auto;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .bottom-nav-label {
        font-size: 0.65rem;
    }
    
    .bottom-nav-icon {
        font-size: 1.3rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* iOS safe area */
@supports (padding: max(0px)) {
    body {
        padding-bottom: max(70px, env(safe-area-inset-bottom));
    }
}

/* Footer Grid & Columns */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f39c12;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #f39c12, transparent);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: #f39c12;
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.contact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-contact a:hover {
    color: #f39c12;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #f39c12;
}

.footer-links span {
    color: rgba(255,255,255,0.3);
}

/* Farmer-Themed Buttons */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #2d7a3e, #27ae60);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #27ae60, #2d7a3e);
    box-shadow: 0 8px 25px rgba(45, 122, 62, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-wave {
        height: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-logo-icon {
        font-size: 2.5rem;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}
@media only screen and (min-width:100px) and (max-width:768px){
    .features {
    padding: 10px 3px;
 
}

.about-section {
    padding: 10px 15px;
    background: var(--white);
    position: relative;
}

.about-grid {
 
    gap: 8px;
   
}

}