/* Research Areas Section - Enhanced Styling */

/* Research Card Base */
.research-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.research-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Research Icon */
.research-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.research-icon svg {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.research-icon i {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.research-card:hover .research-icon svg,
.research-card:hover .research-icon i {
    transform: scale(1.15);
}

/* Card Variants - Mixed Reality (Purple - good contrast) */
.research-card-mr .research-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.research-card-mr:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.research-card-mr:hover h5,
.research-card-mr:hover p,
.research-card-mr:hover .research-link {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Variants - Virtual Reality (Darker Green) */
.research-card-vr .research-icon {
    background: linear-gradient(135deg, #0d8a81 0%, #2ecc71 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.4);
}

.research-card-vr:hover {
    background: linear-gradient(135deg, #0a6b64 0%, #27ae60 100%);
}

.research-card-vr:hover h5,
.research-card-vr:hover p,
.research-card-vr:hover .research-link {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Variants - Augmented Reality (Darker Pink/Red) */
.research-card-ar .research-icon {
    background: linear-gradient(135deg, #e056b0 0%, #e74c3c 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.research-card-ar:hover {
    background: linear-gradient(135deg, #c0449a 0%, #c0392b 100%);
}

.research-card-ar:hover h5,
.research-card-ar:hover p,
.research-card-ar:hover .research-link {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Variants - Pervasive Computing (Darker Blue) */
.research-card-pc .research-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.research-card-pc:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
}

.research-card-pc:hover h5,
.research-card-pc:hover p,
.research-card-pc:hover .research-link {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Content */
.research-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.research-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* Research Link */
.research-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.research-link i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.research-link:hover {
    color: var(--primary-dark);
}

.research-link:hover i {
    transform: translateX(5px);
}

.research-card:hover .research-link {
    color: #fff;
}

.research-card:hover .research-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Icon on hover - ensure white */
.research-card:hover .research-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Decorative Elements */
.research-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(139, 195, 74, 0.05);
    transition: all 0.4s ease;
}

.research-card:hover::after {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .research-card {
        padding: 2rem 1.5rem;
    }

    .research-icon {
        width: 70px;
        height: 70px;
    }

    .research-icon svg {
        width: 38px;
        height: 38px;
    }

    .research-icon i {
        font-size: 2rem;
    }
}


/* Large Research Card */
.research-card-large {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.research-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease;
}

.research-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.research-card-large:hover::before {
    width: 8px;
}

.research-card-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.research-card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.research-card-large:hover .research-card-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.1);
}

.research-card-large:hover .research-card-icon i {
    color: #fff;
}

.research-card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.research-card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Impact Card */
.impact-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.impact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.impact-icon i {
    font-size: 2rem;
    color: #fff;
}

.impact-card:hover .impact-icon {
    transform: scale(1.1) rotate(5deg);
}

.impact-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.impact-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Research Approach */
.approach-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.approach-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.approach-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.15);
}

.approach-number {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-content h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.approach-content p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0;
}

/* Research Stats Grid */
.research-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.research-stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.research-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.research-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.research-stat-card .stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.research-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.research-stat-card .stat-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .research-card-large {
        flex-direction: column;
        text-align: center;
    }
    
    .research-card-large::before {
        width: 100%;
        height: 5px;
        top: 0;
        left: 0;
    }
    
    .research-card-large:hover::before {
        width: 100%;
        height: 8px;
    }
    
    .research-card-icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .research-card-large {
        padding: 1.5rem;
    }
    
    .research-card-icon {
        width: 70px;
        height: 70px;
    }
    
    .research-card-icon i {
        font-size: 1.75rem;
    }
    
    .research-card-content h3 {
        font-size: 1.1rem;
    }
    
    .impact-icon {
        width: 70px;
        height: 70px;
    }
    
    .impact-icon i {
        font-size: 1.75rem;
    }
    
    .research-stats-grid {
        gap: 1rem;
    }
    
    .research-stat-card {
        padding: 1.5rem;
    }
    
    .research-stat-card .stat-value {
        font-size: 2rem;
    }
}

/* Research Detail Card - Improved Version */
.research-detail-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.research-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-header i {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.9;
}

.detail-header h4 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.detail-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-body p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.detail-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.detail-body ul li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: #444;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.detail-body ul li:last-child {
    border-bottom: none;
}

.detail-body ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.6rem;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: bold;
}

/* Simple Impact Style */
.impact-simple {
    padding: 1.5rem 1rem;
}

.impact-icon-simple {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.impact-icon-simple i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.impact-simple:hover .impact-icon-simple {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.1);
}

.impact-simple:hover .impact-icon-simple i {
    color: #fff;
}

.impact-simple h6 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .detail-header {
        padding: 1.25rem;
    }

    .detail-header i {
        font-size: 1.5rem;
    }

    .detail-header h4 {
        font-size: 1.1rem;
    }

    .detail-body {
        padding: 1.25rem;
    }

    .impact-icon-simple {
        width: 60px;
        height: 60px;
    }

    .impact-icon-simple i {
        font-size: 1.5rem;
    }
}
