/* ========================================
   SUBSTANTIA INTELLIGENCE GROUP
   PREMIUM DESIGN SYSTEM - DEFINITIVE VERSION
   ======================================== */

/* ========================================
   1. RESET & BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #9BA3B4;
    background: #0B0F19;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #E8EBF3;
}

/* ========================================
   2. DESIGN TOKENS
   ======================================== */

:root {
    /* Colors */
    --bg-base: #0B0F19;
    --bg-elevated: #151A28;
    --bg-subtle: #1E2433;
    
    --text-primary: #E8EBF3;
    --text-secondary: #9BA3B4;
    --text-tertiary: #6B7280;
    
    --accent-blue: #3B82F6;
    --accent-cyan: #00D4FF;
    
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-default: rgba(255, 255, 255, 0.1);
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 56px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

/* ========================================
   4. LAYOUT
   ======================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 128px 0;
}

.section-alt {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(59, 130, 246, 0.02) 50%,
        transparent 100%
    );
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   5. NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(11, 15, 25, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-blue);
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s var(--ease);
}

.nav-link.active::after,
.nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease);
}

/* ========================================
   6. HERO SECTION
   ======================================== */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 32px 128px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 20%,
        rgba(59, 130, 246, 0.08) 0%,
        transparent 50%
    );
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.05);
    margin-bottom: 32px;
    animation: fadeUp 0.6s var(--ease);
}

.hero-title {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
    animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
    animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 64px;
    justify-content: center;
    animation: fadeUp 0.8s var(--ease) 0.4s both;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   7. BUTTONS & CTAs
   ======================================== */

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--accent-blue);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s var(--ease);
}

.cta-primary:hover {
    background: #4F93FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s var(--ease);
}

.cta-secondary:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.cta-center {
    text-align: center;
    margin-top: 64px;
}

/* ========================================
   8. BENEFITS GRID
   ======================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-bottom: 80px;
}

.benefit {
    padding: 32px 0;
    transition: all 0.3s var(--ease);
}

.benefit:hover {
    transform: translateX(8px);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-blue);
}

.benefit-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.benefit-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    color: var(--text-tertiary);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
}

.benefit-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

/* ========================================
   9. PARTNERS GRID
   ======================================== */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.partner-card {
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s var(--ease);
}

.partner-card:hover {
    border-color: var(--border-default);
    background: rgba(21, 26, 40, 0.9);
    transform: translateY(-8px);
}

.partner-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.partner-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.partner-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   10. CAPABILITIES GRID
   ======================================== */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
}

.capability-category {
    padding: 40px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s var(--ease);
}

.capability-category:hover {
    border-color: var(--border-default);
    background: rgba(21, 26, 40, 0.9);
    transform: translateY(-8px);
}

.capability-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.capability-category ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.capability-category ul li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
}

.capability-category ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s var(--ease);
}

.text-link:hover {
    color: var(--accent-cyan);
}

/* ========================================
   11. PROCESS FLOW
   ======================================== */

.process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 80px;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0 auto 24px;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   12. CTA SECTION
   ======================================== */

.section-cta {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: 128px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========================================
   13. FOOTER
   ======================================== */

.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 8px;
    transition: color 0.3s var(--ease);
}

.footer-column a:hover {
    color: var(--accent-blue);
}

.footer-newsletter h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
}

.newsletter-form input::placeholder {
    color: var(--text-tertiary);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s var(--ease);
}

.newsletter-form button:hover {
    background: #4F93FF;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-info a {
    color: var(--accent-blue);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ========================================
   14. ANIMATIONS
   ======================================== */

@keyframes fadeUp {
    from {
    opacity: 0;
        transform: translateY(20px);
}
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.animate-on-scroll {
        opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
    }
    
.animate-on-scroll.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

/* ========================================
   15. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-container {
        padding: 0 24px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-stats {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
    width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-elevated);
        flex-direction: column;
        justify-content: flex-start;
    align-items: center;
        padding-top: 48px;
        transition: left 0.3s var(--ease);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
    display: flex;
    }
    
    .nav-link {
        padding: 16px 0;
        font-size: 18px;
    }
    
    .hero {
        padding: 120px 24px 80px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* ========================================
   SIG LOGO VISIBILITY - COMPREHENSIVE CONTRAST
   ======================================== */

/* Navigation logos */
.nav-logo img,
.logo img {
    filter: brightness(0) invert(1);
    /* Makes dark logos white/light for visibility on dark backgrounds */
}

/* Footer logos */
.footer-logo img {
    filter: brightness(0) invert(1);
    /* Makes dark logos white/light for visibility on dark backgrounds */
}

/* Section title logos */
.section-title img {
    filter: brightness(0) invert(1);
    /* Makes dark logos white/light for visibility on dark backgrounds */
}

/* CTA content logos */
.cta-content img {
    filter: brightness(0) invert(1);
    /* Makes dark logos white/light for visibility on dark backgrounds */
}

/* Hero section logos */
.hero-content img {
    filter: brightness(0) invert(1);
    /* Makes dark logos white/light for visibility on dark backgrounds */
}

/* Any logo in dark backgrounds */
img[src*="SIG_Logo.svg"] {
    filter: brightness(0) invert(1);
    /* Ensures all SIG logos are visible on dark backgrounds */
}

/* Alternative: If the logo needs to be dark on light backgrounds */
.nav-logo img.light-bg,
.footer-logo img.light-bg,
.section-title img.light-bg,
.cta-content img.light-bg,
.hero-content img.light-bg,
img[src*="SIG_Logo.svg"].light-bg {
    filter: none;
}

/* Ensure logo is always visible */
.nav-logo img,
.footer-logo img,
.section-title img,
.cta-content img,
.hero-content img,
.logo img,
img[src*="SIG_Logo.svg"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-logo img:hover,
.footer-logo img:hover,
.logo img:hover,
img[src*="SIG_Logo.svg"]:hover {
    opacity: 0.8;
}

/* ========================================
   TABBED CONTENT SYSTEM
   ======================================== */

.content-tabs-section {
    padding: 96px 0 128px;
    background: linear-gradient(180deg,
        rgba(59, 130, 246, 0.02) 0%,
        transparent 100%
    );
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 64px;
    padding: 6px;
    background: rgba(21, 26, 40, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.tab-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 90px;
}

.tab-button svg {
    opacity: 0.5;
    transition: all 0.3s;
}

.tab-button span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.tab-button:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #9BA3B4;
}

.tab-button:hover svg {
    opacity: 0.7;
    transform: translateY(-2px);
}

.tab-button.active {
    background: rgba(59, 130, 246, 0.12);
    color: #E8EBF3;
}

.tab-button.active svg {
    opacity: 1;
    color: #3B82F6;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #3B82F6;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Tab Content */
.tab-content {
    position: relative;
    min-height: 500px;
}

.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.tab-panel.active {
    display: block;
    animation: tabFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tabFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tab-nav {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
    }
    
    .tab-button {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 14px 8px;
        min-height: 70px;
    }
    
    .tab-button svg {
        width: 18px;
        height: 18px;
    }
    
    .tab-button span {
        font-size: 11px;
    }
    
    .tab-content {
        min-height: 400px;
    }
}

/* ========================================
   FEATURED ANALYSIS SECTION
   ======================================== */

.featured-analysis-section {
    padding: 128px 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(59, 130, 246, 0.015) 50%,
        transparent 100%
    );
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.05);
}

/* Analysis Container */
.analysis-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    margin-top: 64px;
}

/* Image Wrapper */
.analysis-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    transition: all 0.4s var(--ease);
}

.analysis-image-wrapper:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.analysis-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(11, 15, 25, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.caption-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.caption-text {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Context Panel */
.analysis-context {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.context-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.context-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.context-item ul {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.context-item li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.context-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.context-cta {
    padding: 24px;
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-top: 16px;
}

.context-cta p {
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Key Insights Callout */
.insights-callout {
    margin-top: 80px;
    padding: 48px 40px;
    background: rgba(21, 26, 40, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.insights-callout h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.insight-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}

.insight-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-default);
    transform: translateY(-2px);
}

.insight-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.insight-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.insight-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 32px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   VISUAL ENHANCEMENTS - INTELLIGENCE THEMES
   ======================================== */

/* Hero Section - Topographic Map Overlay */
.section:first-of-type {
    background: 
        linear-gradient(rgba(11, 15, 25, 0.92), rgba(11, 15, 25, 0.92)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(201,169,97,0.02) 100px,
            rgba(201,169,97,0.02) 200px
        ),
        radial-gradient(circle at 30% 40%, rgba(201,169,97,0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(201,169,97,0.04) 0%, transparent 50%),
        var(--bg-base);
    position: relative;
    overflow: hidden;
}

.section:first-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(201,169,97,0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(201,169,97,0.08) 2px, transparent 2px),
        radial-gradient(circle at 40% 70%, rgba(201,169,97,0.06) 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(201,169,97,0.09) 2px, transparent 2px);
    background-size: 100% 100%;
    animation: subtlePulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Services Section - Network Node Pattern */
.section:nth-of-type(2) {
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

.section:nth-of-type(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(201,169,97,0.02) 100px,
            rgba(201,169,97,0.02) 101px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(201,169,97,0.02) 100px,
            rgba(201,169,97,0.02) 101px
        );
    pointer-events: none;
}

/* About Section - Data Stream Pattern */
.section:nth-of-type(3) {
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(201,169,97,0.03) 25%, 
            transparent 50%, 
            rgba(201,169,97,0.03) 75%, 
            transparent 100%
        ),
        var(--bg-subtle);
    background-size: 200px 100%;
    animation: dataStream 20s linear infinite;
}

@keyframes dataStream {
    0% { background-position: 0 0; }
    100% { background-position: 200px 0; }
}

/* Insights Section - Circuit Board Texture */
.section:nth-of-type(4) {
    background: var(--bg-base);
    position: relative;
}

.section:nth-of-type(4)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(201,169,97,0.03) 1px, transparent 1px),
        linear-gradient(rgba(201,169,97,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

/* Contact Section - Radar Sweep Effect */
.section:last-of-type {
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

.section:last-of-type::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: 
        repeating-radial-gradient(
            circle at center,
            transparent 0,
            transparent 80px,
            rgba(201,169,97,0.03) 80px,
            rgba(201,169,97,0.03) 81px
        );
    pointer-events: none;
    opacity: 0.6;
}

/* Footer - Binary Code Background */
footer {
    background: var(--bg-base);
    position: relative;
}

footer::before {
    content: '01001001 01001110 01010100 01000101 01001100 01001100 01001001 01000111 01000101 01001110 01000011 01000101';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(201, 169, 97, 0.04);
    letter-spacing: 2px;
    line-height: 20px;
    pointer-events: none;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 1024px) {
    .analysis-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}