/* Modules Pages Common Styles */

/* Module Hero Section */
.module-hero {
    background: linear-gradient(135deg, 
        rgba(94, 23, 235, 0.03) 0%, 
        rgba(0, 212, 255, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.3;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(94, 23, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    animation: patternMove 30s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(-20px) scale(1.05); }
}

.module-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Module Hero Visuals */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Collaboration Preview Specific */
.collaboration-preview {
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

.preview-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.preview-tabs {
    display: flex;
    gap: 1rem;
}

.preview-tabs .tab {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-tabs .tab.active {
    background: var(--primary-color);
    color: white;
}

.preview-content {
    padding: 1.5rem;
    background: white;
}

.project-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.board-column {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.75rem;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.column-header .count {
    background: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.task-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.task-card.active {
    border-left: 3px solid var(--primary-color);
}

.task-card.completed {
    opacity: 0.7;
}

.task-priority {
    width: 100%;
    height: 3px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.task-priority.high { background: #ff4757; }
.task-priority.medium { background: #ffa502; }
.task-priority.low { background: #00d2d3; }

.task-title {
    font-size: 0.813rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
}

.task-assignee img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.task-progress .progress-bar {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.task-progress .progress-fill {
    height: 100%;
    background: var(--primary-color);
}

.task-complete {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #00b894;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Features Grid */
.module-features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-card.large {
    grid-column: span 2;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(94, 23, 235, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.feature-list li i {
    color: var(--secondary-color);
}

.feature-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-highlight i {
    color: var(--secondary-color);
}

.feature-visual {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.mini-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mini-column {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
}

.mini-card {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.mini-card.active {
    background: var(--primary-color);
}

.mini-card.done {
    background: var(--secondary-color);
}

/* Replacement Section */
.module-integration {
    padding: 100px 0;
    background: #f8f9fa;
}

/* Replacement Benefits */
.replacement-benefits {
    margin-top: 2rem;
}

.replacement-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.replacement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.replacement-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.replacement-before {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.replacement-before .old-tool {
    background: #ffebee;
    color: #d32f2f;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: line-through;
    opacity: 0.8;
}

.replacement-before i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.replacement-after {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-end;
}

.replacement-after i {
    font-size: 1.5rem;
}

.replacement-after span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Replacement Advantages */
.replacement-advantages {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.advantage-item i {
    font-size: 1.25rem;
}

.advantage-item span {
    font-size: 0.9rem;
}

/* Replacement Visual */
.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
}

.replacement-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
}

.old-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.old-tool-item {
    background: #ffebee;
    border: 2px solid #ffcdd2;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d32f2f;
    opacity: 0.8;
    animation: fadeOut 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.old-tool-item i {
    font-size: 1rem;
}

@keyframes fadeOut {
    0%, 70% { opacity: 0.8; transform: scale(1); }
    85% { opacity: 0.3; transform: scale(0.95); }
    100% { opacity: 0.8; transform: scale(1); }
}

.arrow-down {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.new-solution {
    position: relative;
}

.typelio-center {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 20px 40px rgba(94, 23, 235, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 40px rgba(94, 23, 235, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 25px 50px rgba(94, 23, 235, 0.4); }
}

.typelio-center i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.typelio-center span {
    font-weight: bold;
    font-size: 1.1rem;
}

.typelio-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4757;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4); }
    to { box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6); }
}

/* Benefits Section */
.module-benefits {
    padding: 100px 0;
    background: white;
}

.benefits-grid .benefit-card {
    flex-direction: column;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(94, 23, 235, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.benefit-metric {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* CTA Section */
.module-cta {
    padding: 100px 0;
    color: #2d2855;
    background: linear-gradient(135deg, #f5f3ff 0%, #f0f8ff 100%);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d2855;
    font-weight: 500;
}

.cta-feature i {
    font-size: 1.25rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-card {
    background: white;
    color: #333;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 300px;
}

.cta-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cta-card-header i {
    font-size: 1.5rem;
}

.cta-card-body h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cta-timer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.timer-item {
    text-align: center;
    flex: 1;
}

.timer-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.timer-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

/* Module Specific Backgrounds */
.collaboration-hero {
    background: linear-gradient(135deg, 
        rgba(94, 23, 235, 0.03) 0%, 
        rgba(0, 212, 255, 0.05) 100%);
}

.rh-hero {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.03) 0%, 
        rgba(255, 142, 83, 0.05) 100%);
}

.erp-hero {
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.03) 0%, 
        rgba(68, 160, 141, 0.05) 100%);
}

.marketing-hero {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03) 0%, 
        rgba(118, 75, 162, 0.05) 100%);
}

/* Responsive Design */
@media (max-width: 991px) {
    .module-hero {
        padding-top: 80px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.large {
        grid-column: span 1;
    }
    
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Responsive replacement section */
    .replacement-advantages {
        gap: 0.5rem;
    }
    
    .replacement-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .replacement-before,
    .replacement-after {
        justify-content: center;
    }
    
    .replacement-visual {
        max-width: 300px;
        gap: 1.5rem;
    }
    
    .typelio-center {
        width: 120px;
        height: 120px;
    }
    
    .typelio-center i {
        font-size: 2rem;
    }
    
    .typelio-center span {
        font-size: 1rem;
    }
    
    .old-tool-item {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .integration-visual {
        padding: 2rem;
    }
    
    /* Fix 2: Add proper spacing between special offer and demo button */
    .cta-content {
        margin-bottom: 3rem;
    }
    
    .cta-visual {
        margin-top: 2rem;
    }
    
    .cta-card {
        margin-top: 1.5rem;
        max-width: 280px;
    }
    
    /* Ensure proper stacking order on mobile */
    .module-cta .row {
        align-items: flex-start;
    }
    
    .module-cta .col-lg-8 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {

    .hero-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .project-board {
        grid-template-columns: 1fr;
    }
    
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

/* Smooth Animations */
[data-aos] {
    transition-property: opacity, transform;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}