/* Victoria Agrotech Ltd - Live Site Replication & Portal Integration */

:root {
    --nav-bg: #ffffff;
    --nav-text: #1d3522;
    --nav-accent: #1b512d;
    --nav-hover: #e7b42c;
    --nav-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body {
    padding-top: 85px; /* Offset for fixed header */
}

@media (max-width: 480px) {
    body {
        padding-top: 75px;
    }
}

header {
    background-color: var(--nav-bg);
    box-shadow: var(--nav-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 12px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

header .container {
    display: flex;
    justify-content: flex-start; /* Support manual spacing */
    align-items: center;
}

header nav {
    margin-left: auto; /* Push nav to the right */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
    padding: 0;
    transition: 0.3s;
}

header.scrolled .logo-img {
    height: 42px;
    width: 42px;
}

.logo-container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: var(--nav-accent);
    margin: 0;
    line-height: 1.1;
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 2px;
}

/* Remove the bar if stacking vertically as per user request */
.logo-container h1::before {
    display: none;
}

.logo-container h1 span {
    display: block;
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    margin: 0;
    width: auto; /* Reset width */
}

/* Navigation Menu */
nav .menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

nav .menu li a {
    color: var(--nav-text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 40px; /* Pill Shape */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important; /* Remove Underlines */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
}

nav .menu li a:hover,
nav .menu li a.active {
    background: #f0f7f2; /* Light Green Pill */
    color: var(--nav-accent);
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px 0;
    list-style: none;
    display: none;
    z-index: 1000;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    white-space: normal;
    border-radius: 0 !important;
}

.dropdown-menu li a:hover {
    background: #f0f7f2 !important;
    color: var(--nav-accent) !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-icon-link {
    font-size: 1.4rem;
    color: var(--nav-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f7f2;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.portal-icon-link:hover {
    background: var(--nav-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 81, 45, 0.2);
}

#hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-box { width: 30px; height: 24px; position: relative; display: inline-block; vertical-align: middle; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px; height: 4px; background: var(--nav-text); position: absolute; border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger-inner { top: 10px; left: 0; }
.hamburger-inner::before { content: ""; top: -10px; left: 0; }
.hamburger-inner::after { content: ""; bottom: -10px; left: 0; }

/* Hamburger Animation */
#hamburger.active .hamburger-inner { background: transparent; }
#hamburger.active .hamburger-inner::before { transform: translateY(10px) rotate(45deg); left: 0; }
#hamburger.active .hamburger-inner::after { transform: translateY(-10px) rotate(-45deg); left: 0; }

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(29, 53, 34, 0.6); /* Slightly professional dark green */
    z-index: 1500;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px); /* Modern blur effect */
}
.nav-overlay.show { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
    header .container { justify-content: space-between; }
    #hamburger { display: block; }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 90px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    nav.active { right: 0; }
    nav .menu { flex-direction: column; gap: 15px; }
    nav .menu li a { font-size: 1.1rem; width: 100%; }
    
    /* Mobile Dropdown Fix */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 5px 0 5px 15px;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        border-radius: 0;
        border-left: 2px solid var(--nav-accent);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* WhatsApp Widget Constraint Fix */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; z-index: 9999; }
.whatsapp-tooltip { display: none !important; }

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-button {
    background: #25D366 !important; 
    width: 52px !important; 
    height: 52px !important; 
    border-radius: 50% !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    border: 2px solid white !important;
    padding: 0 !important;
    font-size: 0 !important; /* Hides any text content inside */
    color: transparent !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    animation: pulse-whatsapp 2s infinite !important;
}
.whatsapp-button:hover {
    transform: scale(1.1) !important;
    animation: none !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
    background: #20b859 !important;
}
.whatsapp-button i {
    font-size: 1.8rem !important;
    color: white !important;
    margin: 0 !important;
}