/* ==================== HEADER ==================== */
header{
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 85px;
    padding: 0 50px;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Highlight for active navlink */
.navlink.active, .mobile-navlink.active {
    border-bottom: 3px solid #f7c948;
    color: #f7c948 !important;
    font-weight: 700;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

header.scrolled:hover {
    background: #ffffff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.9);
}

/* Light-background contrast when scrolled */
header.scrolled .center-header nav .navlink {
    color: #0f172a;
    text-shadow: none;
}

header.scrolled .right-header .btn {
    background: #0f172a;
    border-color: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
}

header.scrolled .right-header .btn .arrow img {
    filter: brightness(0) invert(1);
}

header.scrolled .left-header .logo-text .sentry {
    color: #0f172a;
    text-shadow: none;
}

header.scrolled .hamburger-line {
    background-color: #0f172a;
}

/* Keep high contrast on dark About background */
header.about-section-active .center-header nav .navlink,
header.about-section-active .right-header .btn,
header.about-section-active .left-header .logo-text .sentry {
    color: #ffffff;
}

header.about-section-active .hamburger-line {
    background-color: #ffffff;
}

.left-header{
    display: flex;
    align-items: center;
}

.left-header .logo{
    position: relative;
    display: inline-block;
}

.left-header .logo-text{
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.left-header .logo-text .agri {
    background: rgb(33, 255, 33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

.left-header .logo-text .sentry {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.left-header .logo-bubbles {
    position: absolute;
    top: 5px;
    left: 1px;
    display: flex;
    gap: 2px;
    z-index: 10;
}

.left-header .bubble {
    border-radius: 50%;
    position: relative;
}

.left-header .bubble-1 {
    position: absolute;
    top: -8px;
    left: 11px;
    width: 6px;
    height: 6px;
    background: #06b6d4;
    box-shadow: none;
}

.left-header .bubble-2 {
    position: absolute;
    top: -2px;
    left: 5px;
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    box-shadow: none;
}

.left-header .bubble-3 {
    position: absolute;
    top: 0px;
    left: 33px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    box-shadow: none;
    position: absolute;
}

.center-header{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-header nav{
    display: flex;
}

.right-header{
    display: flex;
    align-items: center;
}

.center-header nav .navlink{
    font-family: "Inter Tight", sans-serif;
    background-color: transparent;
    padding: 12px 15px;
    border: none;
    text-transform: small-caps;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.center-header nav .navlink span {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.center-header nav .navlink::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.center-header nav .navlink:hover span {
    animation: textScrollEffect 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-header nav .navlink:hover::before {
    width: 100%;
    height: 100%;
}

.center-header nav .navlink:hover{
    box-shadow: none;
}

@keyframes textScrollEffect {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-100%);
        opacity: 0;
    }
    51% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}



.right-header .btn{
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Inter Tight", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.right-header .btn span {
    display: inline-block;
    transition: all 0.2s ease;
}



.right-header .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgb(33, 255, 33);
}

.right-header .btn .arrow{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.right-header .btn:hover .arrow {
    transform: translateX(2px);
}

.right-header .btn .arrow img{
    width: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* App Store Badge - Header */
.app-store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: "Inter Tight", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-right: 12px;
}

.app-store-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.app-store-badge .app-store-text {
    display: inline-block;
}

.desktop-app-badge {
    display: inline-flex;
}

@media (max-width: 1200px) {
    .desktop-app-badge {
        display: none;
    }
}

/* Header scrolled state - dark badge */
header.scrolled .app-store-badge {
    border-color: rgba(15, 23, 42, 0.15);
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
}

header.scrolled .app-store-badge:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.25);
}

/* About section active - keep white */
header.about-section-active .app-store-badge {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

header.about-section-active .app-store-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger Animation States */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
    position: fixed;
    top: 140px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 140px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 40px 30px;
    gap: 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-navlink {
    font-family: "Inter Tight", sans-serif;
    background-color: transparent;
    padding: 15px 20px;
    border: none;
    text-transform: small-caps;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.mobile-navlink span {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.mobile-navlink::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.mobile-navlink:hover span {
    animation: textScrollEffect 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-navlink:hover::before {
    width: 100%;
    height: 100%;
}

.mobile-navlink:hover {
    transform: translateX(5px);
}

.mobile-btn {
    font-family: "Inter Tight", sans-serif;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mobile-btn span {
    display: inline-block;
    transition: all 0.2s ease;
}



.mobile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-btn .arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-btn:hover .arrow {
    transform: translateX(2px);
}

.mobile-btn .arrow img {
    width: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Mobile App Store Badge */
.mobile-app-badge {
    display: none;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: "Inter Tight", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-align: center;
}

.mobile-app-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1024px) {
    .mobile-app-badge {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile App Store Badge */
.mobile-app-badge {
    display: none;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: "Inter Tight", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-align: center;
}

.mobile-app-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1024px) {
    .mobile-app-badge {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    header {
        padding: 0 30px;
    }
    
    .right-header {
        gap: 20px;
    }
    
    .desktop-app-badge {
        display: inline-flex;
        font-size: 11px;
        padding: 7px 12px;
        margin-right: 10px;
    }
}

/* Hide desktop navigation on iPad and smaller devices */
@media (max-width: 1024px) {
    header {
        height: 100px;
        padding: 0 25px;
    }
    
    .left-header .logo-text {
        font-size: 24px;
    }
    
    .left-header .logo-bubbles {
        top: -10px;
        left: 2px;
    }
    
    .left-header .bubble-1 {
        width: 5px;
        height: 5px;
    }
    
    .left-header .bubble-2 {
        width: 7px;
        height: 7px;
    }
    
    .left-header .bubble-3 {
        width: 4px;
        height: 4px;
        left: 42px;
    }
    
    /* Hide desktop navigation and button completely */
    .desktop-nav,
    .desktop-btn {
        display: none !important;
    }
    
    /* Show hamburger menu */
    .hamburger-menu {
        display: flex;
    }
    
    /* Mobile navigation setup - hidden by default */
    .mobile-nav {
        display: flex;
        top: 100px;
        height: calc(100vh - 100px);
        right: -320px; /* Hidden off-screen by default */
        transition: right 0.3s ease;
    }
    
    /* Show mobile nav only when active */
    .mobile-nav.active {
        right: 0;
    }
}

@media (max-width: 768px) {
    header {
        height: 80px;
        padding: 0 20px;
    }
    
    .left-header .logo-text {
        font-size: 22px;
    }
    
    .left-header .logo-bubbles {
        top: -9px;
        left: 2px;
    }
    
    .left-header .bubble-3 {
        left: 38px;
    }
    
    .hamburger-menu {
        padding: 6px;
        gap: 3px;
    }
    
    .hamburger-line {
        width: 22px;
        height: 2.5px;
    }
    
    .mobile-nav {
        width: 280px;
        top: 80px;
        height: calc(100vh - 80px);
        padding: 30px 25px;
        gap: 18px;
        right: -280px; /* Hidden off-screen by default */
        transition: right 0.3s ease;
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-navlink {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .mobile-btn {
        font-size: 14px;
        padding: 12px 15px;
        margin-top: 15px;
    }
    
    .mobile-btn .arrow {
        width: 22px;
        height: 22px;
        padding: 6px;
    }
    
    .mobile-btn .arrow img {
        width: 14px;
    }
}

@media (max-width: 640px) {
    header {
        height: 70px;
        padding: 0 15px;
    }
    
    .left-header .logo-text {
        font-size: 20px;
    }
    

    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .mobile-nav {
        width: 260px;
        top: 70px;
        height: calc(100vh - 70px);
        padding: 25px 20px;
        gap: 15px;
        right: -260px; /* Hidden off-screen by default */
        transition: right 0.3s ease;
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-navlink {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .mobile-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    header {
        height: 65px;
        padding: 0 12px;
    }
    
    .left-header .logo-text {
        font-size: 18px;
    }
    

    
    .hamburger-menu {
        padding: 4px;
        gap: 2px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
    
    .mobile-nav {
        width: 100%;
        right: -100%;
        top: 65px;
        height: calc(100vh - 65px);
        padding: 20px 15px;
        gap: 12px;
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-navlink {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .mobile-btn {
        font-size: 12px;
        padding: 8px 10px;
        margin-top: 10px;
    }
    
    .mobile-btn .arrow {
        width: 20px;
        height: 20px;
        padding: 5px;
        margin-left: 8px;
    }
    
    .mobile-btn .arrow img {
        width: 12px;
    }
}

@media (max-width: 360px) {
    header {
        height: 60px;
        padding: 0 10px;
    }
    
    .left-header .logo-text {
        font-size: 16px;
    }
    

    
    .mobile-nav {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 15px 12px;
        gap: 10px;
    }
    
    .mobile-navlink {
        font-size: 13px;
        padding: 6px 8px;
    }
    
    .mobile-btn {
        font-size: 11px;
        padding: 6px 8px;
    }
}