/* Mobile Benefits Section - Cloud GST Software */

.mobile-benefits-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 50%, #e8f5e8 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.mobile-benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(25, 118, 210, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.mobile-benefits-section .container {
    position: relative;
    z-index: 1;
}

/* Section Title */
.benefits-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    line-height: 1.2;
}

.benefits-title .text-primary {
    color: #1976d2;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Benefits Layout */
.benefits-layout {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) auto minmax(400px, 1fr);
    gap: 50px;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

/* Benefit Cards */
.benefits-left,
.benefits-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Ensure all benefit cards use horizontal layout and identical sizing */
.benefits-left .benefit-card,
.benefits-right .benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-width: 320px;
    max-width: 380px;
    height: 140px;
    min-height: 140px;
    box-sizing: border-box;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 320px;
    max-width: 380px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-card:hover::before {
    opacity: 1;
}

/* Benefit Icon */
.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.25);
}

.benefit-card:hover .benefit-icon::after {
    opacity: 1;
}

.benefit-icon i {
    font-size: 1.6rem;
    color: white;
    transition: all 0.3s ease;
}

.benefit-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover .benefit-icon i {
    transform: scale(1.1);
}

/* Benefit Content */
.benefit-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.benefit-content p {
    font-size: 0.95rem;
    color: #546e7a;
    line-height: 1.5;
    margin-bottom: 12px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Read More Button */
.read-more-btn {
    background: none;
    border: none;
    color: #e91e63;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    text-align: left;
}

.read-more-btn:hover {
    color: #ad1457;
    transform: translateX(5px);
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e91e63, #ad1457);
    transition: width 0.3s ease;
}

.read-more-btn:hover::after {
    width: 100%;
}

/* Mobile Device Container */
.mobile-device-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-device {
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-device:hover {
    transform: scale(1.05);
}

.mobile-image {
    width: 400px;
    height: auto;
    max-width: 400px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
}

.mobile-device:hover .mobile-image {
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.4)) drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
}


/* Responsive Design */
@media (max-width: 1400px) {
    .benefits-layout {
        grid-template-columns: 1fr auto 1fr;
        gap: 30px;
        max-width: 1200px;
    }
    
    .benefit-card {
        min-width: 280px;
        max-width: 340px;
    }
    
    .mobile-image {
        width: 360px;
        max-width: 360px;
    }
}

@media (max-width: 1200px) {
    .benefits-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 800px;
    }
    
    .benefits-left,
    .benefits-right {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .benefit-card {
        min-width: 320px;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .mobile-benefits-section {
        padding: 60px 0;
    }
    
    .benefits-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .benefits-left,
    .benefits-right {
        flex-direction: column;
        gap: 20px;
    }
    
    .benefit-card {
        min-width: auto;
        max-width: none;
        padding: 24px;
    }
    
    .mobile-image {
        max-width: 380px;
    }
    
    .benefits-layout {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .benefits-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .mobile-image {
        max-width: 320px;
    }
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* AOS Animation Overrides */
[data-aos="fade-right"] {
    animation: fadeInLeft 0.8s ease-out;
}

[data-aos="fade-left"] {
    animation: fadeInRight 0.8s ease-out;
}

[data-aos="zoom-in"] {
    animation: zoomIn 1s ease-out;
}

/* Dark mode support */
[data-theme="dark"] .mobile-benefits-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

[data-theme="dark"] .benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .benefit-content h4 {
    color: #ffffff;
}

[data-theme="dark"] .benefit-content p {
    color: #b0bec5;
}

[data-theme="dark"] .benefits-title {
    color: #ffffff;
}
