/**
 * SoftiCation Homepage Styles
 * Optimized for performance and caching
 */

/* ========================================
   TECHNOLOGY STACK SECTION
   ======================================== */

/* Tech Stack Section Base */
.apt-tech-stack-section {
    padding: 100px 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    position: relative !important;
    width: 100% !important;
}

.apt-tech-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Header Styles */
.apt-tech-header {
    text-align: center !important;
    margin-bottom: 60px !important;
    width: 100% !important;
    display: block !important;
}

.apt-sub-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #393285, #4a42a0) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    box-shadow: 0 10px 25px rgba(57, 50, 133, 0.4) !important;
    animation: pulse 2s infinite !important;
}

.apt-main-title {
    display: block !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 30px !important;
    line-height: 1.3 !important;
    width: 100% !important;
    letter-spacing: -0.5px !important;
}

.apt-description {
    display: block !important;
    color: #666 !important;
    font-size: 1.1rem !important;
    max-width: 850px !important;
    margin: 0 auto 40px !important;
    line-height: 1.8 !important;
}

/* Stats Container */
.apt-tech-stats {
    display: flex !important;
    justify-content: center !important;
    gap: 50px !important;
    flex-wrap: wrap !important;
    margin-top: 40px !important;
    width: 100% !important;
    padding: 40px !important;
    background: linear-gradient(135deg, rgba(57, 50, 133, 0.05) 0%, rgba(79, 172, 254, 0.05) 100%) !important;
    border-radius: 20px !important;
    border: 2px solid rgba(57, 50, 133, 0.1) !important;
}

.apt-stat-item {
    text-align: center !important;
    min-width: 160px !important;
    position: relative !important;
}

.apt-stat-number {
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: #393285 !important;
    display: block !important;
    line-height: 1 !important;
    margin-top: 15px !important;
}

.apt-stat-label {
    color: #666 !important;
    font-size: 1rem !important;
    margin-top: 8px !important;
    display: block !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Tab Navigation */
.apt-tech-tabs-container {
    background: white !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    margin-top: 50px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.apt-tech-tabs {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 40px !important;
    border-bottom: 2px solid #e0e0e0 !important;
    padding-bottom: 20px !important;
    overflow-x: auto !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.apt-tab-btn {
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #393285, #4a42a0) !important;
    border: none !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 5px 15px rgba(57, 50, 133, 0.3) !important;
}

.apt-tab-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(57, 50, 133, 0.4) !important;
}

.apt-tab-btn.active {
    background: linear-gradient(135deg, #393285, #4facfe) !important;
    box-shadow: 0 8px 25px rgba(57, 50, 133, 0.5) !important;
}

/* Tab Content */
.apt-tab-pane {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 100% !important;
}

.apt-tab-pane.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Tech Grid Layout */
.apt-tech-grid-enhanced {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* Special handling for tabs with 6+ items */
#database .apt-tech-grid-enhanced,
#cms .apt-tech-grid-enhanced,
#ai-ml .apt-tech-grid-enhanced,
#devops-cloud .apt-tech-grid-enhanced,
#ui-ux .apt-tech-grid-enhanced,
#mobile-dev .apt-tech-grid-enhanced {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

/* Tech Cards */
.apt-tech-card {
    background: white !important;
    border-radius: 15px !important;
    padding: 30px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.apt-tech-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(57, 50, 133, 0.15) !important;
    border-color: rgba(57, 50, 133, 0.2) !important;
}

.apt-tech-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(57, 50, 133, 0.1), rgba(79, 172, 254, 0.1)) !important;
    border-radius: 50% !important;
}

.apt-tech-icon img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
}

/* Font Awesome Icon Support */
.apt-tech-icon i,
.apt-tech-icon i.fas,
.apt-tech-icon i.fab,
.apt-tech-icon i.far {
    font-size: 40px !important;
    color: #393285 !important;
    display: inline-block !important;
    font-weight: 900 !important; /* Ensure solid style */
    line-height: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.apt-tech-card h4 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

.apt-tech-card p {
    color: #666 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

/* Tech Tags */
.apt-tech-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
}

.apt-tag {
    padding: 5px 12px !important;
    background: rgba(57, 50, 133, 0.08) !important;
    border-radius: 15px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

/* Subcategories */
.apt-tech-subcategory {
    margin-bottom: 40px !important;
    width: 100% !important;
    display: block !important;
}

.apt-tech-subcategory h4 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #393285 !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: center !important;
}

.apt-tech-category-header {
    text-align: center !important;
    margin-bottom: 50px !important;
    padding: 0 20px !important;
}

.apt-tech-category-header i {
    font-size: 3rem !important;
    color: #393285 !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.apt-tech-category-header h3 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 15px !important;
}

.apt-tech-category-header p {
    color: #666 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

/* Gradient Text Effect */
.apt-gradient-text {
    background: linear-gradient(135deg, #393285 0%, #5a4fcf 50%, #4facfe 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline !important;
    font-weight: 900 !important;
}

/* Animations */
@keyframes fadeInTab {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(57, 50, 133, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(57, 50, 133, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .apt-tech-grid-enhanced,
    #database .apt-tech-grid-enhanced,
    #cms .apt-tech-grid-enhanced,
    #ai-ml .apt-tech-grid-enhanced,
    #devops-cloud .apt-tech-grid-enhanced,
    #ui-ux .apt-tech-grid-enhanced,
    #mobile-dev .apt-tech-grid-enhanced {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .apt-tech-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .apt-main-title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .apt-tech-grid-enhanced,
    #database .apt-tech-grid-enhanced,
    #cms .apt-tech-grid-enhanced,
    #ai-ml .apt-tech-grid-enhanced,
    #devops-cloud .apt-tech-grid-enhanced,
    #ui-ux .apt-tech-grid-enhanced,
    #mobile-dev .apt-tech-grid-enhanced {
        grid-template-columns: 1fr !important;
    }
    
    .apt-tech-row {
        grid-template-columns: 1fr !important;
    }
    
    .apt-tech-stats {
        gap: 30px !important;
        padding: 30px 20px !important;
    }
    
    .apt-stat-number {
        font-size: 2.5rem !important;
    }
    
    .apt-main-title {
        font-size: 1.8rem !important;
    }
    
    .apt-description {
        font-size: 1rem !important;
    }
    
    .apt-tech-tabs {
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding-bottom: 15px !important;
    }
    
    .apt-tab-btn {
        font-size: 13px !important;
        padding: 10px 18px !important;
    }
}
