/* ========== CUSTOM STYLES FOR AGRI DOST WEBSITE ========== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

/* ========== ANIMATIONS ========== */

/* Phone float animation for hero */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.phone-float {
    animation: float 4s ease-in-out infinite;
}

/* Hero screenshot cross-fade */
.hero-screenshot {
    transition: opacity 0.8s ease-in-out;
}

/* FAB pulse */
@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(46, 139, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0); }
}

#fab {
    animation: fab-pulse 2.5s infinite;
}

#fab.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ========== HEADER SCROLL STATE ========== */

#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
    color: #4B5563;
}

#navbar.scrolled .nav-link:hover {
    color: #2E8B57;
}

#navbar.scrolled #logo-text {
    color: #111827;
}

#navbar.scrolled #menu-toggle {
    color: #111827;
}

#navbar.scrolled .download-link:not(.bg-primary-600) {
    background-color: #2E8B57;
    color: white;
}

/* ========== FEATURE CARDS ========== */

.feature-card {
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #C6F6D5;
}

/* ========== LANGUAGE PILLS ========== */

.language-pill {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.language-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.15);
}

/* ========== SCREENSHOT CAROUSEL ========== */

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ========== MOBILE MENU ========== */

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.open {
    max-height: 400px;
    display: block;
}

/* ========== RESPONSIVE FIXES ========== */

@media (max-width: 640px) {
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    /* Ensure phone mockup doesn't overflow on small screens */
    .phone-float {
        animation: float 5s ease-in-out infinite;
    }
}

/* ========== SELECTION COLOR ========== */

::selection {
    background-color: #C6F6D5;
    color: #0F3D24;
}

/* ========== FOCUS STYLES FOR ACCESSIBILITY ========== */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #2E8B57;
    outline-offset: 2px;
    border-radius: 4px;
}
