/* ============================================
   IMC INTERNATIONAL - FUNCTIONALITY PAGE
   Specialized styles for feature showcase
   ============================================ */

/* === FUNCTIONALITY INTRO === */
.functionality-intro {
    padding: 6rem 0;
    background: var(--background-darker);
}

.intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-content .lead {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-medium);
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-10px);
}

.highlight-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* === MODULES SECTION === */
.modules-section {
    padding: 6rem 0;
    background: var(--background-dark);
}

/* === MODULE CARD === */
.module-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    transition: all var(--transition-medium);
    scroll-margin-top: 100px; /* For anchor links with fixed nav */
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.module-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* Module Icon Gradients */
.ai-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.document-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.policy-gradient {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.training-gradient {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.induction-gradient {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.legal-gradient {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.register-gradient {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.incident-gradient {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.committee-gradient {
    background: linear-gradient(135deg, #48c6ef 0%, #6f86d6 100%);
}

.emergency-gradient {
    background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}

.contractor-gradient {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.risk-gradient {
    background: linear-gradient(135deg, #f83600 0%, #f9d423 100%);
}

.audit-gradient {
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
}

.module-title h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.module-subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0;
}

/* Module Body */
.module-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.module-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Module Example */
.module-example {
    background: rgba(0, 255, 209, 0.05);
    border: 1px solid rgba(0, 255, 209, 0.2);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.module-example strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.module-example ul {
    list-style: none;
    margin: 0;
}

.module-example li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.module-example li::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Module Features */
.module-features h4,
.module-benefits h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.feature-item:hover {
    background: rgba(62, 146, 204, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

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

/* Module Benefits */
.module-benefits ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.module-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 255, 209, 0.05);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.module-benefits li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Compact Modules Grid */
.modules-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.compact-module {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-medium);
    scroll-margin-top: 100px;
}

.compact-module:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-10px);
}

.compact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
}

.compact-module h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.compact-module p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* === TECHNOLOGY FOUNDATION === */
.tech-foundation {
    padding: 6rem 0;
    background: var(--background-darker);
}

.tech-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all var(--transition-medium);
}

.tech-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-10px);
}

.tech-feature i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.tech-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tech-feature p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* === MODULE NAVIGATION (Sticky) === */
.module-nav {
    position: sticky;
    top: 80px;
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    z-index: 100;
}

.module-nav h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.module-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.module-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.module-nav a:hover,
.module-nav a.active {
    background: rgba(62, 146, 204, 0.2);
    color: var(--accent-color);
}

/* === COMPARISON TABLE === */
.comparison-table {
    margin: 3rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .module-header {
        flex-direction: column;
        text-align: center;
    }
    
    .module-icon {
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .module-card {
        padding: 2rem 1.5rem;
    }
    
    .module-title h3 {
        font-size: 1.5rem;
    }
    
    .module-subtitle {
        font-size: 1rem;
    }
    
    .module-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .feature-highlights {
        grid-template-columns: 1fr;
    }
    
    .tech-features-grid {
        grid-template-columns: 1fr;
    }
    
    .compact-module {
        padding: 1.5rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .module-nav {
        display: none;
    }
    
    .module-card {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 2rem;
    }
}