/* Services Section Enhanced Styles with Mobile Responsiveness */

.services-section {
    position: relative;
    background-size: cover;
    background-attachment: fixed;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.services-intro {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card.featured-service {
    border: 2px solid #3498db;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card.featured-service::before {
    content: 'NEW';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.service-card h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.service-card p {
    color: #5a6c7d;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-features {
    margin-bottom: 20px;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: #27ae60;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.service-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bdc3c7;
}

.services-cta {
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-top: 40px;
}

.services-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.services-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    text-decoration: none;
    color: white;
}

/* Mobile Responsiveness */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .services-header h1 {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 25px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .services-section {
        padding: 60px 0 40px 0;
        background-attachment: scroll;
    }
    
    .services-container {
        padding: 0 15px;
    }
    
    .services-header {
        margin-bottom: 40px;
    }
    
    .services-header h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .services-intro {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 20px;
        margin: 0 5px;
    }
    
    .service-card h2 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .services-cta {
        padding: 30px 20px;
        margin: 20px 5px 0 5px;
    }
    
    .services-cta h3 {
        font-size: 1.6rem;
    }
    
    .services-cta p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .services-section {
        padding: 40px 0 30px 0;
    }
    
    .services-container {
        padding: 0 10px;
    }
    
    .services-header h1 {
        font-size: 1.6rem;
    }
    
    .services-intro {
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 15px;
        margin: 0;
    }
    
    .service-card h2 {
        font-size: 1.2rem;
    }
    
    .service-technologies {
        gap: 6px;
    }
    
    .tech-tag {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    .services-cta {
        padding: 25px 15px;
        margin: 15px 0 0 0;
    }
    
    .services-cta h3 {
        font-size: 1.4rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .service-card {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .service-card h2 {
        color: #ecf0f1;
    }
    
    .service-card p {
        color: #bdc3c7;
    }
    
    .tech-tag {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5f7a;
    }
}

/* Print styles */
@media print {
    .services-section {
        background: none !important;
        padding: 20px 0;
    }
    
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .services-cta {
        display: none;
    }
}

/* Accessibility improvements */
.service-card:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.cta-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Animation for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(even) {
    animation-delay: 0.1s;
}

.service-card:nth-child(odd) {
    animation-delay: 0.2s;
}
