/* 
 * Digital Marketing Services Specific Styles
 * Modern, visually appealing design for digital marketing services page
 * Fixed: CTA button responsiveness and text visibility issues
 */

/* Hero Section Styles */
.digital-marketing-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.min-vh-80 {
    min-height: 80vh;
}


@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    transition: transform 0.3s ease;
}

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

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

/* Results Section - Fixed text visibility */
.result-item {
    padding: 20px;
}

.result-icon {
    transition: transform 0.3s ease;
}

.result-item:hover .result-icon {
    transform: scale(1.1);
}

/* Process Steps */
.strategy-process .step-icon {
    flex-shrink: 0;
}

.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #28a745);
    z-index: 1;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Fixed: CTA Button Styles for Better Responsiveness */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border: none;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff8c00, #ffc107);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-warning:hover::before {
    left: 0;
}

/* Ensure buttons are properly clickable on all devices */
@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Fixed: Text visibility in dark sections */
.bg-dark .text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .digital-marketing-hero h1 {
        font-size: 2.5rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-bottom: 15px;
        margin-right: 0 !important;
    }
    
    /* Fixed: Ensure CTA buttons stack properly on mobile */
    .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
    }
    
    .d-flex.flex-column.flex-sm-row .btn {
        margin-bottom: 10px;
    }
}

/* Enhanced Button Styles */
.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Custom Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
}

/* Loading Animation for Elements */
.service-card, .pricing-card, .result-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 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; }

/* Enhanced Typography */
.display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Custom Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus, .card:focus, .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Fixed: Ensure all interactive elements have proper cursor */
.btn, .card, .accordion-button {
    cursor: pointer;
}

/* Additional styling for better visual hierarchy */
.text-warning {
    color: #ffc107 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}