/* ============================================
   NOVENTRIX MULTISERVICE GROUP LLC
   Corporate Website Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #0a1628;
    --color-primary-light: #131f38;
    --color-secondary: #1a2744;
    --color-accent: #c9a96e;
    --color-accent-light: #dfc28f;
    --color-text: #e8e8e8;
    --color-text-muted: #94a3b8;
    --color-text-dark: #1e293b;
    --color-surface: #0f1d34;
    --color-surface-light: #162040;
    --color-border: rgba(201, 169, 110, 0.15);
    --color-border-light: rgba(255, 255, 255, 0.08);
    --color-white: #ffffff;
    --color-success: #22c55e;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-primary);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Base --- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    position: relative;
    padding-left: 32px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--color-accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 32px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 39, 68, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(10, 22, 40, 0.8) 0%, transparent 50%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(201, 169, 110, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 110, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    color: var(--color-white);
}

.hero-title-line.accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
    color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border-light);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- About Section --- */
.section-about {
    background: var(--color-primary);
    border-top: 1px solid var(--color-border-light);
}

.section-body .lead {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.8;
}

.section-body p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.section-body strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* --- Legal Section --- */
.section-legal {
    background: var(--color-surface);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.legal-card {
    background: var(--color-primary-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    transition: all var(--transition-base);
}

.legal-card:hover {
    border-color: var(--color-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.legal-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.legal-icon svg {
    width: 100%;
    height: 100%;
}

.legal-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.legal-card p {
    font-size: 0.95rem;
    color: var(--color-white);
    font-weight: 500;
    line-height: 1.6;
}

/* --- Mission Section --- */
.section-mission {
    background: var(--color-primary);
    text-align: center;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.mission-content {
    max-width: 700px;
    margin: 0 auto;
}

.mission-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.9;
}

/* --- Portfolio Section --- */
.section-portfolio {
    background: var(--color-surface);
}

.portfolio-showcase {
    margin-top: 48px;
}

.portfolio-card {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.portfolio-card-header {
    padding: 48px 48px 32px;
}

.portfolio-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.portfolio-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 12px;
}

.portfolio-card-header > p {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 500px;
}

.portfolio-card-body {
    padding: 0 48px 48px;
}

.portfolio-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.feature:hover {
    background: rgba(201, 169, 110, 0.05);
    border-color: var(--color-border);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

/* --- Technology Section --- */
.section-tech {
    background: var(--color-primary);
    border-top: 1px solid var(--color-border-light);
}

.tech-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pillar {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.pillar:first-child {
    padding-top: 0;
}

.pillar:last-child {
    border-bottom: none;
}

.pillar:hover {
    padding-left: 12px;
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    opacity: 0.5;
    min-width: 40px;
}

.pillar-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 6px;
}

.pillar-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Vision Section --- */
.section-vision {
    background: var(--color-surface);
}

.vision-content {
    text-align: center;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    text-align: left;
}

.vision-card {
    background: var(--color-primary-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: all var(--transition-base);
}

.vision-card:hover {
    border-color: var(--color-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vision-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.vision-icon svg {
    width: 100%;
    height: 100%;
}

.vision-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.vision-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- Compliance Section --- */
.section-compliance {
    background: var(--color-primary);
    border-top: 1px solid var(--color-border-light);
}

.compliance-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
}

.compliance-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.compliance-item:last-child {
    border-bottom: none;
}

.compliance-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-success);
    flex-shrink: 0;
}

.compliance-item span {
    font-size: 1rem;
    color: var(--color-text);
}

/* --- Contact Section --- */
.section-contact {
    background: var(--color-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Contact Card */
.contact-card {
    display: flex;
    justify-content: center;
}

.contact-card-inner {
    background: linear-gradient(145deg, var(--color-primary-light), var(--color-secondary));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.contact-card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.contact-card-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
}

.contact-card-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.contact-card-divider {
    width: 40px;
    height: 1px;
    background: var(--color-border);
    margin: 24px auto;
}

.contact-card-address {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.contact-card-ein {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
    background: var(--color-primary);
    border-top: 1px solid var(--color-border-light);
    padding: 60px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 16px;
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border-light);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: var(--color-text-muted);
    opacity: 0.7;
    max-width: 700px;
    line-height: 1.7 !important;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }

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

    .nav-menu a {
        font-size: 1.25rem;
        color: var(--color-white);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card-header,
    .portfolio-card-body {
        padding: 24px;
    }

    .portfolio-features {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 40px;
    }

    .hero-scroll {
        display: none;
    }
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Legal Pages --- */
.page-header {
    padding: 140px 0 60px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
}

.page-header .section-title {
    margin-bottom: 8px;
}

.page-header .page-updated {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.page-content {
    padding: 60px 0 80px;
}

.page-content .content-wrapper {
    max-width: 760px;
}

.page-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    margin: 40px 0 16px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.page-content ul {
    margin: 0 0 16px 20px;
    color: var(--color-text-muted);
}

.page-content ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.page-content a {
    color: var(--color-accent);
}

.page-content .highlight-box {
    background: rgba(201, 169, 110, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
}

.page-content .highlight-box p {
    margin-bottom: 0;
    color: var(--color-text);
}