/* Digital Marketing Services Styles */

/* Service Section Background */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern/dots.png') repeat;
    opacity: 0.05;
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* Section Title */
.services-title {
    margin-bottom: 60px;
}

/* Updated to match theme */
.sec-title--two .sub-title {
    color: #007bff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sec-title--two .sub-title img {
    width: 20px;
    height: 20px;
}

.sec-title--two .title {
    color: #2c3e50;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.sec-title--two .title .highlight {
    color: #007bff;
    position: relative;
}

.sec-title--two .description {
    color: #6c757d;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Legacy styles for backward compatibility */
.services-subtitle {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.services-subtitle::before,
.services-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #007bff;
}

.services-subtitle::before {
    left: -40px;
}

.services-subtitle::after {
    right: -40px;
}

.services-main-title {
    color: #2c3e50;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.services-main-title .highlight {
    color: #007bff;
    position: relative;
}

.services-description {
    color: #6c757d;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Cards */
.service-card {
    height: 100%;
    margin-bottom: 30px;
}

.service-card-inner {
    position: relative;
    height: 100%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover .service-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.service-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.85), rgba(108, 117, 125, 0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-icon i {
    font-size: 20px;
    color: #fff;
}

/* Card Content */
.service-content {
    padding: 25px 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Feature Tags */
.service-features {
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px 4px 2px 0;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Service Button */
.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0056b3;
    transition: left 0.3s ease;
    z-index: 0;
}

.service-btn:hover::before {
    left: 0;
}

.service-btn span,
.service-btn i {
    position: relative;
    z-index: 1;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Featured Card */
.featured-card {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.featured-card .service-card-inner {
    border: 2px solid #28a745;
}

.featured-card .service-btn {
    background: #28a745;
}

.featured-card .service-btn::before {
    background: #1e7e34;
}

.featured-card .service-btn:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-main-title {
        font-size: 32px;
    }
    
    .services-subtitle::before,
    .services-subtitle::after {
        display: none;
    }
    
    .service-content {
        padding: 20px 15px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .services-description {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .services-main-title {
        font-size: 28px;
    }
    
    .service-image-wrapper {
        height: 160px;
    }
}

/* Animation for smooth loading */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
