/**
 * Enhanced UI Styles
 * 
 * This file contains styles for enhanced UI elements on the index page
 */

/* Feature Cards */
.feature-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
    color: var(--primary-color);
    font-size: 28px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    transform: scale(1.1);
}

.feature-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-content p {
    color: #64748b;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-hover {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-hover {
    opacity: 1;
    transform: translateY(0);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

.feature-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(129, 140, 248, 0.05) 100%);
    border-radius: 0 15px 0 100%;
    z-index: -1;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-shape {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Horizontal Feature Cards */
.feature-card-horizontal {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.feature-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-card-horizontal .feature-icon {
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
    color: var(--primary-color);
    font-size: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.feature-card-horizontal:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    transform: scale(1.05);
}

.feature-card-horizontal .feature-content {
    flex: 1;
}

.feature-card-horizontal .feature-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.feature-card-horizontal .feature-content p {
    color: #64748b;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-card-horizontal .btn-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-card-horizontal .btn-link:hover {
    color: var(--secondary-color);
}

.feature-card-horizontal .btn-link i {
    transition: transform 0.3s ease;
}

.feature-card-horizontal .btn-link:hover i {
    transform: translateX(5px);
}

/* Service Cards */
.service-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
    display: inline-block;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(129, 140, 248, 0.9) 100%);
    color: #fff;
    font-size: 32px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.5) 0%, rgba(129, 140, 248, 0.5) 100%);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon::before {
    opacity: 1;
    transform: scale(1.1);
}

.service-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-content p {
    color: #64748b;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #475569;
}

.service-features li i {
    color: #10b981;
    margin-right: 10px;
    font-size: 14px;
}

.service-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(129, 140, 248, 0.05) 100%);
    border-radius: 0 15px 0 100%;
    z-index: -1;
    transition: all 0.5s ease;
}

.service-card:hover .service-shape {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(129, 140, 248, 0.08) 100%);
}

/* Horizontal Service Cards */
.service-card-horizontal {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.service-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.service-card-horizontal .service-icon-wrapper {
    position: relative;
    margin-bottom: 0;
}

.service-card-horizontal .service-icon {
    min-width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(129, 140, 248, 0.9) 100%);
    color: #fff;
    font-size: 36px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card-horizontal .service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.5) 0%, rgba(129, 140, 248, 0.5) 100%);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.service-card-horizontal:hover .service-icon::before {
    opacity: 1;
    transform: scale(1.1);
}

.service-card-horizontal .service-content {
    flex: 1;
}

.service-card-horizontal .service-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
    transition: all 0.3s ease;
}

.service-card-horizontal .service-content p {
    color: #475569;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.service-features-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.service-features-horizontal .feature-item {
    display: flex;
    align-items: center;
    background: rgba(79, 70, 229, 0.08);
    padding: 8px 15px;
    border-radius: 30px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-features-horizontal .feature-item i {
    color: #10b981;
    margin-right: 8px;
    font-size: 14px;
}

.service-features-horizontal .feature-item:hover {
    background: rgba(79, 70, 229, 0.12);
    transform: translateY(-2px);
}

/* Testimonial Section */
.section-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.testimonial-item {
    padding: 15px;
}

.testimonial-content {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.testimonial-quote {
    position: absolute;
    top: -15px;
    right: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.testimonial-rating {
    display: flex;
    gap: 3px;
}

.testimonial-rating i {
    color: #f59e0b;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.user-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-info h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #1e293b;
}

.user-info p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Stats Section */
.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.stat-suffix {
    font-size: 20px;
    font-weight: 500;
    margin-left: 2px;
}

.stat-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-stats .stat-item {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
}

.hero-stats .stat-item:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}

.hero-stats .stat-item::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -1rem;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item:last-child::after {
    display: none;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-stats .stat-suffix {
    font-size: 1.5rem;
    font-weight: 500;
    margin-left: 2px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .feature-card,
    .service-card,
    .testimonial-content {
        padding: 25px 20px;
    }
    
    .feature-icon,
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .feature-content h3,
    .service-content h3 {
        font-size: 18px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .stat-suffix {
        font-size: 18px;
    }
    
    .feature-card-horizontal,
    .service-card-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .feature-card-horizontal .feature-icon,
    .service-card-horizontal .service-icon {
        margin-bottom: 15px;
    }
    
    .service-features-horizontal {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-stats .stat-item::after {
        display: none;
    }
    
    .feature-card,
    .service-card {
        padding: 20px 15px;
    }
    
    .feature-icon,
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .feature-content h3,
    .service-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .feature-content p,
    .service-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .service-features li {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .testimonial-content {
        padding: 20px 15px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .user-image {
        width: 40px;
        height: 40px;
    }
    
    .user-info h5 {
        font-size: 15px;
    }
    
    .user-info p {
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-suffix {
        font-size: 16px;
    }
    
    .stat-text {
        font-size: 14px;
    }
    
    .feature-card-horizontal,
    .service-card-horizontal {
        padding: 20px 15px;
    }
    
    .service-card-horizontal .service-icon {
        min-width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .service-features-horizontal .feature-item {
        font-size: 13px;
        padding: 6px 12px;
    }
}
