/* Volyx Services Section Improvements */

/* Enhanced Services Section Styling */
.services-area .single-services {
    padding: 50px 30px 40px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.services-area .single-services .services-content {
    margin-top: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.services-area .single-services .services-content .services-title {
    margin-bottom: 30px;
    min-height: 80px;
    display: flex;
    align-items: center;
    text-align: center;
}

.services-area .single-services .services-content .services-title a {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--volyx-primary) !important;
    text-decoration: none;
    display: block;
}

.services-area .single-services .services-content .text {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #5a6c7d !important;
    margin-top: 0;
    flex-grow: 1;
    text-align: center;
}

/* Improved icon styling */
.services-area .single-services .services-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin: 0 auto 15px;
    position: relative;
    text-align: center;
}

.services-area .single-services .services-icon i {
    font-size: 42px;
    line-height: 85px;
    color: #fff;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    display: inline-block;
}

.services-area .single-services .services-icon::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: scale(1.2);
    border-radius: 50%;
    z-index: -1;
}

/* Ensure background colors are maintained */
.services-area .single-services.services-color-1 .services-icon {
    background-color: #E7A019;
}

.services-area .single-services.services-color-1 .services-icon::before {
    background-color: rgba(231, 160, 25, 0.2);
}

.services-area .single-services.services-color-2 .services-icon {
    background-color: #E54F4F;
}

.services-area .single-services.services-color-2 .services-icon::before {
    background-color: rgba(229, 79, 79, 0.2);
}

.services-area .single-services.services-color-3 .services-icon {
    background-color: #8950E4;
}

.services-area .single-services.services-color-3 .services-icon::before {
    background-color: rgba(137, 80, 228, 0.2);
}

.services-area .single-services.services-color-4 .services-icon {
    background-color: #1F2932;
}

.services-area .single-services.services-color-4 .services-icon::before {
    background-color: rgba(31, 41, 50, 0.2);
}

/* Enhanced hover effects */
.services-area .single-services:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.services-area .single-services:hover .services-content .services-title a {
    color: #4A90E2 !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .services-area .single-services {
        padding: 40px 25px 35px;
        min-height: auto;
    }
    
    .services-area .single-services .services-content .services-title {
        min-height: auto;
    }
    
    .services-area .single-services .services-content .services-title a {
        font-size: 20px !important;
    }
    
    .services-area .single-services .services-content .text {
        font-size: 14px !important;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .services-area .single-services {
        min-height: 450px;
    }
    
    .services-area .single-services .services-content .services-title a {
        font-size: 21px !important;
    }
}

/* Better spacing for the entire services section */
.services-area {
    padding-top: 120px;
    padding-bottom: 130px;
}

.services-area .section-title {
    margin-bottom: 60px;
}

.services-area .section-title .title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
}

.services-area .section-title .text {
    font-size: 17px;
    line-height: 1.7;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
}

/* Equal height columns */
.services-area .row {
    display: flex;
    flex-wrap: wrap;
}

.services-area .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.services-area .row > [class*="col-"] .single-services {
    width: 100%;
}

/* Enhanced Download Button Hover Animation */
.main-btn {
    transition: all 0.4s ease !important;
    border: 2px solid #1F2932 !important;
    background-color: #1F2932 !important;
    color: #fff !important;
    border-radius: 15px !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

/* Ensure text is always visible */
.main-btn {
    position: relative !important;
}

.main-btn span,
.main-btn {
    position: relative !important;
    z-index: 2 !important;
}

.main-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: none !important;
    z-index: -1 !important;
}

.main-btn:hover::before {
    width: 300% !important;
    height: 300% !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.main-btn:hover {
    color: #1F2932 !important;
    border: 2px solid #1F2932 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(31, 41, 50, 0.25) !important;
}

/* Specific styling for header download button */
.header-hero-content .main-btn:hover {
    transform: translateY(-2px);
}

/* About section download button */
.about-content .main-btn:hover {
    transform: translateY(-2px);
}

/* Adjust play button position */
.header-hero-content ul li:nth-child(2) {
    margin-left: 30px !important;
}

.header-hero-content .header-video {
    margin-top: 8px !important;
    animation: playButtonEntrance 1.2s ease-out forwards, playButtonPulse 2s ease-in-out infinite !important;
    animation-delay: 0.8s, 2.2s !important;
}

/* Smooth entrance animation (plays once) */
@keyframes playButtonEntrance {
    0% {
        opacity: 0;
        transform: scale(0.1) rotate(-180deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.15) rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Pulse animation (starts after entrance) */
@keyframes playButtonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 41, 50, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(31, 41, 50, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 41, 50, 0);
        transform: scale(1);
    }
}

/* Hover effect for play button */
.header-hero-content .header-video:hover {
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
}
