:root {
    --accent: #82BC24;
    --bg: #1a1a1a;
    --text: #f4f4f4;
    --nav-bg: #1a1a1a;
    --nav-text: #ffffff;
    --footer-bg: #1a1a1a;
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    display: none;
}

@keyframes nodeFlow {
    0% { transform: translateY(-50%) translateX(-10%) rotate(0deg); }
    100% { transform: translateY(0%) translateX(10%) rotate(5deg); }
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-size: 200% 100%;
    animation: pulseLine 3s linear infinite;
}

@keyframes pulseLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

nav .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 3-column grid for perfect centering */
    align-items: center;
    max-width: 100%; 
    width: 100%;
    padding: 0 2%; 
    position: relative;
}

.logo {
    text-decoration: none;
    color: var(--nav-text);
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: start;
    z-index: 2;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
    font-weight: inherit;
}

.pulsing-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0 1rem;
    animation: textPulse 3s infinite;
    white-space: nowrap;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.4; filter: brightness(0.8) drop-shadow(0 0 0px var(--accent)); }
    50% { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 10px var(--accent)); }
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: end;
    z-index: 2;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    opacity: 0.8;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    opacity: 1;
}

/* Footer */
footer {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 1rem 0;
    margin-top: auto; 
    border-top: 4px solid var(--accent);
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer p {
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 0;
}

.footer-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
}

/* Global Elements */
h1, h2, h3 {
    margin-bottom: 1.5rem;
}

.accent-text {
    color: var(--accent);
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #1a1a1a; 
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(130, 188, 36, 0.3);
    text-decoration: underline; /* Added black underline on hover */
}

/* Slide Content Hover behavior matching Hub Cards but without ANY glow or color change */
.home-page .hero-slider .slide-content:hover {
    transform: translateY(-8px) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(130, 188, 36, 0.2) !important;
}

/* Ensure ALL slides have consistent vertical flow and height */
.hero-slider .slide-content {
    max-width: 1100px;
    min-height: 320px; /* Fixed height for consistent flow */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    align-items: center;
    padding: 1rem 3rem;
}

/* Specific fix for Slide 1 text volume - stretch wider to stay at 320px height */
.home-page .hero-slider .slide:first-child .slide-content {
    max-width: 1250px !important;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(130, 188, 36, 0.3), transparent);
    margin: 2rem 0;
}

/* Sections */
section {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 1.5rem 0;
    border-bottom: 4px solid var(--accent);
}

.hero h1 {
    color: #ffffff;
}

.hero p {
    opacity: 0.9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    border: 1px solid rgba(130, 188, 36, 0.3);
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.6); 
    backdrop-filter: blur(10px); 
    color: #f4f4f4;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(130, 188, 36, 0.3);
    background: rgba(40, 40, 40, 0.8);
}

.card h2, .card h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 1.2rem;
}

.card-static:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: rgba(30, 30, 30, 0.6);
}

/* Home Page Unique Styles */
.home-page .container {
    max-width: 1400px;
}

.home-page nav .container {
    max-width: 100%;
    width: 100%;
}

.home-page .hero {
    border-bottom: 4px solid var(--accent); 
    padding: 2.5rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-page .hero h1 {
    font-size: 3.5rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border-left: none;
    padding-left: 0;
    text-align: center;
}

.mission-text-bottom {
    margin-top: 2rem; 
    margin-left: 0; 
    border-left: none; 
    padding: 1rem 0;
    text-align: center;
    display: block;
    width: 100%; 
}

.mission-text-bottom p {
    margin: 0 auto;
    max-width: 800px;
    font-size: 1.1rem; 
    opacity: 0.9;
    white-space: normal; 
    font-style: italic;
}

.home-page .hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 3.5rem;
    margin-top: 2rem; 
}

.home-page .hub-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(130, 188, 36, 0.2);
    border-radius: 8px;
    padding: 4rem;
    backdrop-filter: blur(5px);
}

.home-page .hub-header {
    text-align: center;
    border: 1px solid rgba(130, 188, 36, 0.2);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex; /* Changed to flex for centering */
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: rgba(20, 20, 20, 0.4); 
    backdrop-filter: blur(10px);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-page .hub-header:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(130, 188, 36, 0.3);
    background: rgba(130, 188, 36, 0.05);
    /* Transform removed to stop movement */
}

.home-page .hub-card:hover {
    background: rgba(130, 188, 36, 0.05);
    box-shadow: 0 0 20px rgba(130, 188, 36, 0.3), inset 0 0 50px rgba(130, 188, 36, 0.1);
    transform: translateY(-8px);
    border-color: var(--accent);
}

.home-page .hub-card h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive Navigation Fixes */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    transition: all 0.3s;
}

/* Media Queries */
@media (max-width: 1200px) {
    nav ul li {
        margin-left: 1.2rem;
    }
    .pulsing-tagline {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

@media (max-width: 1100px) {
    .pulsing-tagline {
        display: none; /* Hide tagline first to save space */
    }
}

@media (max-width: 1000px) {
    .container {
        padding: 0 1.5rem;
    }

    nav .container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none; /* Hide menu by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        border-bottom: 2px solid var(--accent);
        z-index: 100;
        flex: none;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .home-page .hub-grid {
        gap: 2rem;
    }
    .home-page .hub-card {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .home-page .hero h1 {
        font-size: 2.5rem;
    }

    .home-page .hub-grid {
        grid-template-columns: 1fr;
    }

    .home-page .hub-header h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .chat-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-width: 100vw;
        max-height: 100vh;
    }

    .chat-container.maximized {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .home-page .hero h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 1.2rem;
    }

    .form-group input, 
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Form Styling */
.contact-form {
    width: 100%; /* Ensure form fills the card */
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%; /* Stretch to card width */
    text-align: left; /* Keep labels and text left-aligned inside the wide box */
}

.form-group label {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(130, 188, 36, 0.2);
    border-radius: 6px;
    padding: 1.2rem;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    width: 100%; /* Stretch to card width */
    outline: none;
    transition: all 0.3s;
}

.form-group textarea {
    min-height: 250px; /* Even larger message box */
    resize: vertical;
}

/* Chatbot Styling */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    height: 550px;
    max-height: 80vh;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none; 
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.chat-container.maximized {
    width: 600px;
    height: 80vh;
    bottom: 10px;
    right: 10px;
}

.chat-header {
    background: var(--accent);
    color: #1a1a1a;
    padding: 1rem;
    border-radius: 11px 11px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-body {
    flex-grow: 1; 
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.chat-msg {
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    max-width: 90%;
    line-height: 1.4;
}

.msg-bot {
    background: rgba(130, 188, 36, 0.1);
    border: 1px solid rgba(130, 188, 36, 0.3);
    align-self: flex-start;
}

.chat-options {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(130, 188, 36, 0.1);
}

.opt-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.hp-field {
    display: none !important;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.chat-form input, .chat-form textarea {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(130, 188, 36, 0.3);
    border-radius: 4px;
    padding: 0.6rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.chat-form label {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
}

.card a.btn {
    color: #1a1a1a;
    text-decoration: none;
}

.card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    text-decoration: underline;
}

/* Inventory Filter Navigation */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Matches the 2rem grid gap */
    margin-top: 0.5rem;
    width: 100%;
}

.filter-btn {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(130, 188, 36, 0.3);
    color: white;
    padding: 0.8rem 0; /* Vertical padding */
    width: 220px; /* Fixed width for uniformity */
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}

.filter-btn.active {
    background: var(--accent);
    color: #1a1a1a;
    border-color: var(--accent);
}

.filter-btn:hover:not(.active) {
    border-color: var(--accent);
    background: rgba(130, 188, 36, 0.1);
}

/* Hero Slideshow Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px; /* Consistent height for home hero */
    overflow: hidden;
    background: var(--nav-bg);
    border-bottom: 4px solid var(--accent);
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slide.active {
    z-index: 1;
}

.slide-content {
    max-width: 1100px; /* Stretched width to decrease vertical height */
    z-index: 2;
    padding: 1.5rem 3rem; /* Reduced vertical, increased horizontal padding */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(130, 188, 36, 0.2);
}

.slide h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.slide p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.5);
    color: var(--accent);
    border: 1px solid rgba(130, 188, 36, 0.3);
    width: 55px; /* Slightly larger for better centering impact */
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 30;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    line-height: 1;
    padding: 0;
}

.slider-btn:hover {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 0 15px var(--accent);
}

.prev-btn { 
    left: 20px; 
    padding-right: 4px; /* Optical adjustment for character shape */
}
.next-btn { 
    right: 20px; 
    padding-left: 4px; /* Optical adjustment for character shape */
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    right: 40px;
    left: auto;
    transform: none;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(130, 188, 36, 0.3);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 768px) {
    .hero-slider { height: 500px; }
    .slide h1 { font-size: 2rem; }
    .slide p { font-size: 1rem; }
    .slider-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .slide { padding: 0 2rem; }
}