:root {
    --primary: #152c47;
    --secondary: #be1823;
    --accent: #be1823;
    --background: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
}

.services {
    padding: 6rem 2rem;
    margin-top: -6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-image-container {
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 100px;
}

.service-list {
    list-style: none;
    margin: 1.5rem 0;
}

.service-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.service-card:hover .service-list li::before {
    transform: translateX(5px);
}

.service-description {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.service-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-cta:hover {
    background: var(--secondary);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }
}

.contact-form {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background: rgb(204, 204, 204);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}