/* NextGen Systems Limited - Global Stylesheet
    Brand Colors: Navy (#0A2540) & Teal (#00D1B2)
*/

:root {
    --primary: #0A2540; /* Navy */
    --accent: #00D1B2;  /* Teal */
    --text-main: #425466;
    --bg-light: #F6F9FC;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0,0,0,0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px; /* Offset for sticky navbar */
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    background: var(--bg-light); 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* --- Navigation & Dropdown Menu --- */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 8%; 
    position: sticky; 
    top: 0; 
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo { 
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo span { 
    font-weight: 700; 
    font-size: 1.5rem; 
    color: var(--primary); 
    margin-left: 10px;
}

.logo span i { color: var(--accent); font-style: normal; }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    align-items: center;
}

.nav-links li { position: relative; }

.nav-links a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    padding: 10px 5px; 
    transition: 0.2s; 
}

.nav-links a:hover { color: var(--accent); }

/* --- Enhanced Dropdown Menu Styling --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    border-top: 3px solid var(--accent);
    margin-top: 10px;
    z-index: 100;
}

.dropdown-content li a {
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-content li a:hover { 
    background: #f8fafc; 
    color: var(--accent); 
    border-left: 3px solid var(--accent);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content { 
    display: block; 
    animation: fadeIn 0.3s ease;
}

.dropbtn::after {
    content: ' ▾';
    font-size: 0.8rem;
    vertical-align: middle;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section --- */
.hero { 
    padding: 120px 8%; 
    display: flex; 
    align-items: center; 
    min-height: 80vh; 
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
}

.hero-content { flex: 1; }

.badge { 
    background: #e6fcf5; 
    color: var(--accent); 
    padding: 6px 16px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    display: inline-block;
}

.hero h1 { 
    font-size: 3.5rem; 
    color: var(--primary); 
    line-height: 1.1; 
    margin: 20px 0; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 35px; 
    max-width: 550px; 
    opacity: 0.9;
}

/* --- Buttons --- */
.btn { 
    padding: 14px 28px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: var(--transition); 
    display: inline-block; 
    border: none; 
    cursor: pointer; 
    text-align: center;
}

.btn-primary { 
    background: var(--accent); 
    color: white; 
}

.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0, 209, 178, 0.2); 
}

.btn-secondary { 
    background: var(--white); 
    color: var(--primary); 
    margin-left: 15px; 
    border: 1px solid #ddd; 
}

/* --- Product Cards & Services --- */
.products { padding: 100px 8%; }

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}

.card { 
    background: var(--white); 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover { 
    transform: translateY(-10px); 
    border-color: var(--accent); 
}

.card .icon { font-size: 2.5rem; margin-bottom: 15px; }

.card h3 { color: var(--primary); margin-bottom: 15px; }

.card ul { 
    list-style: none; 
    margin-top: 20px; 
    font-size: 0.95rem; 
}

.card li { margin-bottom: 8px; }

/* --- Dashboard Previews --- */
.dashboard-preview { padding: 100px 8%; background: #fbfcfe; }

.split-view { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
    margin-bottom: 80px;
}

.reverse { flex-direction: row-reverse; }

.text-side { flex: 1; }

.visual-side { flex: 1.2; position: relative; }

.app-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

.window-header { 
    background: #f5f8fa; 
    padding: 12px 20px; 
    display: flex; 
    align-items: center; 
    gap: 20px;
}

.circles span { 
    height: 8px; width: 8px; 
    border-radius: 50%; background: #ddd; 
    display: inline-block; margin-right: 5px; 
}

.search-bar { 
    background: white; padding: 6px 15px; 
    border-radius: 4px; font-size: 0.7rem; 
    color: #999; flex-grow: 1; 
}

.window-content { padding: 30px; }

.stat-card { 
    background: var(--bg-light); 
    padding: 20px; 
    border-radius: 10px; 
    margin-bottom: 20px; 
}

.progress-bar { 
    height: 8px; 
    background: #eee; 
    border-radius: 10px; 
    margin-top: 10px; 
}

.fill { 
    height: 100%; 
    background: var(--accent); 
    border-radius: 10px; 
}

.tag { 
    padding: 5px 10px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 700; 
}

.paid { background: #e6fcf5; color: #0ca678; }
.pending { background: #fff4e6; color: #f08c00; }

/* --- Ultra-POS Section --- */
.ultra-bg { 
    background: #f1f4f7; 
    border-top: 1px solid #e2e8f0; 
}

.enterprise-frame {
    border: 6px solid var(--primary);
    border-radius: 14px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(10, 37, 64, 0.2);
}

.pos-img { 
    width: 100%; 
    display: block; 
}

.caption {
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    padding: 10px;
    text-align: center;
}

.pos-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.pos-chip {
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid #e1e8ed;
    text-align: center;
}

/* --- E-Commerce Styling --- */
.ecom-section { padding: 100px 8%; background: #f8fafc; }

.ecom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.ecom-main-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.ecom-side-column { display: flex; flex-direction: column; gap: 20px; }

.ecom-side-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
}

.ecom-side-card:hover { border-color: var(--accent); }

.store-preview { 
    display: flex; 
    gap: 20px; 
    padding: 20px; 
    background: #fff; 
}

.ecom-item { flex: 1; text-align: center; border: 1px solid #f0f0f0; padding: 15px; border-radius: 10px; }

.blue-placeholder { 
    background: var(--accent); 
    height: 100px; 
    border-radius: 8px; 
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center; color: white;
}

/* --- Contact Section --- */
.contact-section { padding: 100px 8%; background: white; }

.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    background: var(--white); 
    padding: 50px; 
    border-radius: 30px; 
    box-shadow: 0 30px 80px rgba(0,0,0,0.05); 
}

.info-links a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    display: block; 
    margin-top: 15px; 
}

.contact-form-card { 
    background: #f8fafc; 
    padding: 35px; 
    border-radius: 20px; 
}

.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; }

.form-group input, .form-group select { 
    width: 100%; 
    padding: 14px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    margin-bottom: 15px;
}

/* --- Advantage Grid --- */
.why-us { padding: 100px 8%; background: #ffffff; }

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}

.feature-card { 
    text-align: center; padding: 40px; 
    background: #f8fafc; border-radius: 20px; 
    transition: var(--transition);
}

.feature-card:hover { background: white; box-shadow: var(--shadow); transform: translateY(-5px); }

.f-icon { font-size: 3rem; margin-bottom: 20px; display: block; }

/* --- Our Story Styling --- */
.story-section {
    padding: 100px 8%;
    background: var(--white);
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid #edf2f7;
    padding-top: 25px;
}

.stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent); /* Teal */
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary); /* Navy */
    margin: 0;
}

.story-image-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.story-image-container .blue-placeholder {
    flex-grow: 1;
    border-radius: 0;
    font-size: 1.2rem;
}

/* --- Footer --- */
.main-footer { 
    background: var(--primary); 
    color: white; 
    padding: 80px 8% 0; 
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-brand .logo span { color: white; }

.footer-links h4 { margin-bottom: 20px; color: var(--accent); }

.footer-links ul { list-style: none; }

.footer-links a { 
    color: #a0aec0; 
    text-decoration: none; 
    line-height: 2.2; 
    transition: 0.3s; 
}

.footer-links a:hover { color: white; }

.footer-bottom { 
    border-top: 1px solid #1a365d; 
    padding: 30px; 
    text-align: center; 
    color: #a0aec0; 
    font-size: 0.85rem; 
}

/* --- Mobile Menu & Responsive --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 968px) {
    .navbar { padding: 15px 5%; }
    
    .menu-toggle { display: flex; z-index: 1001; }

    .nav-links { 
        display: none;
        flex-direction: column;
        position: fixed; /* Better than absolute for full screen menu */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        padding: 100px 40px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active { display: flex; }

    /* Mobile Dropdown adjustment */
    .dropdown-content { 
        position: static; 
        box-shadow: none; 
        border: none; 
        padding-left: 20px; 
        display: block; 
        margin-top: 0;
    }

    .hero, .split-view, .contact-wrapper, .ecom-grid, .footer-grid, .story-stats {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { margin-inline: auto; }
    .btn-secondary { margin-left: 0; margin-top: 15px; width: 100%; }
    .btn-primary { width: 100%; }
    .pos-features { grid-template-columns: 1fr; }
    .reverse { flex-direction: column; }
    .story-stats { gap: 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; }
    .card, .contact-wrapper { padding: 30px 20px; }
}