/* =============================================
   NiuGen Soft Tech PNG Limited — Stylesheet
   ============================================= */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --dark: #0f172a;
    --dark-mid: #1e293b;
    --light: #f1f5f9;
    --lighter: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-border: #e2e8f0;
    --success: #10b981;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img { max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-niugen {
    color: var(--white);
}

.logo-softech {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--dark) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--accent-dark) !important;
    color: var(--white) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 140px 20px 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--accent);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: var(--accent-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== MISSION & VISION ===== */
.mission-vision {
    padding: 80px 20px;
    background: var(--dark);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mv-card {
    background: var(--dark-mid);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.mv-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.mv-card h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.mv-card p {
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 20px;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--dark);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--lighter);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table tr {
    border-bottom: 1px solid var(--gray-border);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 14px 20px;
    font-size: 0.95rem;
}

.info-table .label {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    width: 40%;
    background: rgba(26, 86, 219, 0.04);
}

.badge-active {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== DIFFERENTIATORS ===== */
.differentiators {
    padding: 100px 20px;
    background: var(--lighter);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.diff-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-border);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.diff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.diff-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.diff-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.diff-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 20px;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--lighter);
    border: 1px solid var(--gray-border);
    padding: 36px 28px;
    border-radius: var(--radius);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== TECHNOLOGY ===== */
.technology {
    padding: 100px 20px;
    background: var(--dark);
    color: var(--white);
}

.technology .section-title {
    color: var(--white);
}

.technology .section-subtitle {
    color: var(--gray-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-category {
    background: var(--dark-mid);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 36px 28px;
}

.tech-category h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tech-list {
    list-style: none;
}

.tech-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li strong {
    color: var(--white);
}

.tech-list li span {
    color: var(--gray-light);
    font-size: 0.85rem;
}

/* ===== INDUSTRIES ===== */
.industries {
    padding: 100px 20px;
    background: var(--lighter);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.industry-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    padding: 36px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.industry-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.industry-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects {
    padding: 100px 20px;
    background: var(--white);
}

.project-card-full {
    background: var(--lighter);
    border: 2px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.project-header h3 {
    font-size: 1.4rem;
    color: var(--dark);
}

.project-ref {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 6px;
}

.badge-status {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-dark);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.project-desc {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-modules h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.module {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    border-left: 4px solid var(--primary);
}

.module strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.module span {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

.project-stats-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--dark);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.p-stat {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.p-stat span {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

/* ===== TEAM ===== */
.team {
    padding: 100px 20px;
    background: var(--lighter);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 750px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team-card h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.team-qual {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.team-current {
    color: var(--gray-light);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.team-email {
    color: var(--primary) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.team-email:hover {
    text-decoration: underline;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 20px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--lighter);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-card h4 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.contact-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-reg {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.4) !important;
    margin-top: 8px !important;
}

.footer-brand h3 {
    font-size: 1.4rem;
}

.footer-links-col h4,
.footer-contact-col h4 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 8px;
}

.footer-links-col a {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links-col a:hover {
    color: var(--accent);
}

.footer-contact-col p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-contact-col a {
    color: rgba(255,255,255,0.65);
}

.footer-contact-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* ===== ANIMATIONS ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations */
.services-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.services-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }
.services-grid .animate-in:nth-child(5) { transition-delay: 0.4s; }
.services-grid .animate-in:nth-child(6) { transition-delay: 0.5s; }
.services-grid .animate-in:nth-child(7) { transition-delay: 0.6s; }

.diff-grid .animate-in:nth-child(2) { transition-delay: 0.08s; }
.diff-grid .animate-in:nth-child(3) { transition-delay: 0.16s; }
.diff-grid .animate-in:nth-child(4) { transition-delay: 0.24s; }
.diff-grid .animate-in:nth-child(5) { transition-delay: 0.32s; }
.diff-grid .animate-in:nth-child(6) { transition-delay: 0.4s; }
.diff-grid .animate-in:nth-child(7) { transition-delay: 0.48s; }

.modules-grid .animate-in:nth-child(2) { transition-delay: 0.05s; }
.modules-grid .animate-in:nth-child(3) { transition-delay: 0.1s; }
.modules-grid .animate-in:nth-child(4) { transition-delay: 0.15s; }
.modules-grid .animate-in:nth-child(5) { transition-delay: 0.2s; }
.modules-grid .animate-in:nth-child(6) { transition-delay: 0.25s; }
.modules-grid .animate-in:nth-child(7) { transition-delay: 0.3s; }
.modules-grid .animate-in:nth-child(8) { transition-delay: 0.35s; }
.modules-grid .animate-in:nth-child(9) { transition-delay: 0.4s; }
.modules-grid .animate-in:nth-child(10) { transition-delay: 0.45s; }
.modules-grid .animate-in:nth-child(11) { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.3s;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-cta {
        text-align: center;
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .project-card-full {
        padding: 24px;
    }

    .project-header {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-content {
        padding: 120px 16px 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .services-grid,
    .industry-grid,
    .diff-grid {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .project-stats-bar {
        flex-direction: column;
        gap: 12px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
