/* App Development Steps Page Custom Styles */

/* Accordion Animations */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.accordion-item.active .accordion-content {
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: #1D4ED8;
}

.accordion-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

/* Accordion Header Hover Effect */
.accordion-header {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.accordion-header:hover {
    background-color: #EFF6FF;
    padding-left: 1.25rem;
}

/* Smooth Opening Animation */
.accordion-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
}

/* Custom Animation Classes */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

/* Timeline Line Enhancement */
.timeline-line {
    background: linear-gradient(90deg, #3B82F6 0%, #1D4ED8 100%);
    height: 4px;
    border-radius: 2px;
}

/* Process Step Enhancements */
.process-step {
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-step-number {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.process-step:hover .process-step-number {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

/* Methodology Card Enhancements */
.methodology-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.methodology-card:hover {
    border-color: #3B82F6;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Accordion Item Styling */
.accordion-item {
    transition: all 0.3s ease;
    border: 2px solid #E5E7EB;
}

.accordion-item:hover {
    border-color: #3B82F6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.accordion-item.active {
    border-color: #3B82F6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Phase Detail Cards */
.phase-detail-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-left: 4px solid #3B82F6;
    transition: all 0.3s ease;
}

.phase-detail-card:hover {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-left-color: #1D4ED8;
}

/* Comparison Table Enhancements */
.comparison-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.comparison-table tbody tr:hover {
    background-color: #F0F9FF;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Benefits Card Styling */
.benefit-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6 0%, #1D4ED8 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
}

/* Icon Styling */
.benefit-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    transform: scale(1.1);
}

/* Section Backgrounds */
.section-gradient-primary {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}

.section-gradient-secondary {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .process-step:hover {
        transform: none;
    }

    .methodology-card:hover {
        transform: none;
    }

    .benefit-card:hover {
        transform: translateY(-5px);
    }

    .comparison-table tbody tr:hover {
        transform: none;
    }
}

/* Custom Scrollbar for Accordion Content */
.accordion-content::-webkit-scrollbar {
    width: 6px;
}

.accordion-content::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 3px;
}

.accordion-content::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 3px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
    background: #1D4ED8;
}

/* Loading Animation for Cards */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.card-loading {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

/* Hover Effects for Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    background-color: #F0F9FF;
    border-color: #3B82F6;
}

/* Focus States for Accessibility */
.accordion-item:focus-within {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .accordion-content {
        max-height: none !important;
        overflow: visible !important;
    }

    .animate-fade-in-up {
        animation: none;
    }

    .benefit-card:hover {
        transform: none;
        box-shadow: none;
    }
}