/**
 * Approach Framework Styles
 * Custom styles for the Our Approach page and AI Transformation Framework
 *
 * @package Zero_Qubit_Astra_Child
 * @since 1.0.0
 */

/* Framework Timeline Styling */
.framework-timeline {
    position: relative;
    padding: 20px 0;
}

.framework-stage {
    position: relative;
}

.stage-number {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -1px;
}

.stage-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.framework-stage:hover .stage-icon {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(56, 178, 172, 0.5);
}

/* Framework Tabs Styling */
.framework-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tab-button {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(56, 178, 172, 0.2), transparent);
    transition: all 0.4s ease;
    z-index: 0;
}

.tab-button:hover::before,
.tab-button.active::before {
    left: 0;
}

.tab-button.active {
    background-color: rgba(56, 178, 172, 0.3);
    border: 1px solid rgba(56, 178, 172, 0.5);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Benefits Section Styling */
.benefit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(56, 178, 172, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(56, 178, 172, 0.3);
}

.benefit-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: rotateY(180deg);
    background-color: rgba(56, 178, 172, 0.2);
}

/* Case Study Cards */
.bg-gray-700 {
    position: relative;
    overflow: hidden;
    border-left: 3px solid rgba(56, 178, 172, 0.7);
}

.bg-gray-700::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(56, 178, 172, 0.1), transparent 70%);
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .framework-timeline::before {
        display: none;
    }
    
    .stage-content {
        text-align: left !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        order: 2 !important;
    }
    
    .stage-image {
        padding-right: 0 !important;
        padding-left: 0 !important;
        order: 1 !important;
    }
    
    .stage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Animation for Timeline */
@media (min-width: 768px) {
    .framework-stage {
        opacity: 0.7;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    .framework-stage.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Elements */
.stage-content ul li {
    transition: transform 0.3s ease;
}

.stage-content ul li:hover {
    transform: translateX(5px);
}

/* Framework Overview Title Animation */
.framework-overview h2 {
    position: relative;
}

.framework-overview h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #38b2ac, #2c5282);
    border-radius: 3px;
}

/* Approach Section Container */
.approach-section {
    position: relative;
    overflow: hidden;
}

/* Interactive Elements - Modal */
.framework-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.framework-modal.show {
    opacity: 1;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.framework-modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Image Hover Effects */
.stage-image img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stage-image img:hover,
.stage-image img.img-highlight {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(56, 178, 172, 0.4);
}

/* Stage Icon Hover Effect */
.stage-icon.hover-effect {
    background-color: rgba(56, 178, 172, 0.3) !important;
    border-color: rgba(56, 178, 172, 0.8) !important;
}

/* Framework Navigation */
.framework-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.framework-nav a {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(26, 32, 44, 0.8);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(56, 178, 172, 0.2);
}

.framework-nav a:hover {
    background-color: rgba(56, 178, 172, 0.2);
    color: #4fd1c5;
    border-color: rgba(56, 178, 172, 0.5);
}

.approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 178, 172, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.approach-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(44, 82, 130, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
