/* Services Page Specific Styles */
.services-page-main {
    padding: 60px 0 100px;
    background-color: var(--bg-color);
}

.services-page-title {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-transform: uppercase;
}

.title-line {
    display: inline-block;
    width: 60px;
    height: 4px;
    background-color: #3b82f6; /* Blue accent line like in the image */
    margin-right: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-image-card {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-image-card:hover {
    transform: translateY(-10px);
}

.service-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    background-color: #f1f5f9;
    position: relative;
}

.service-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image-card:hover .service-img-wrapper::after {
    opacity: 1;
}

.service-image-card:hover .service-img-wrapper {
    box-shadow: 0 20px 35px rgba(200, 16, 46, 0.15);
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-image-card:hover .service-img-wrapper img {
    transform: scale(1.1) rotate(1deg);
}

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
    transition: color 0.3s ease;
}

.service-image-card:hover .service-card-title {
    color: #c8102e;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #1a2a40; /* Dark blue from the image */
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-modal-btn:hover {
    opacity: 1;
}

.modal-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.modal-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-textarea {
    min-height: 150px;
    resize: vertical;
}

.modal-submit-btn {
    background-color: #b91c1c; /* Red color from image */
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin-top: 10px;
}

.modal-submit-btn:hover {
    background-color: #991b1b;
}