/* Importing main styles */
@import url('../styles.css');

/* Services-specific styles */
main {
    padding-bottom: 4rem;
}

main h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.services-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Service Cards */
.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 5%;
    margin-bottom: 4rem;
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

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

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.service-card:hover .service-overlay {
    transform: translateY(0);
}

.service-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}

.service-overlay p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

.service-details {
    padding: 1.5rem;
}

.service-details h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.service-details p {
    margin-bottom: 1rem;
    color: #555;
}

.service-details ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.service-details li {
    margin-bottom: 0.5rem;
}

.service-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.service-button:hover {
    background-color: #555;
}

/* Process Section */
.process-section {
    padding: 3rem 5%;
    background-color: #f9f9f9;
    margin-bottom: 4rem;
}

.process-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.process-step h3 {
    margin-bottom: 1rem;
}

.process-step p {
    color: #555;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 5%;
    background-color: #f4f4f4;
    border-radius: 10px;
    margin: 0 5% 2rem;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #555;
    transform: translateY(-3px);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:nth-child(1) { --i: 1; }
.service-card:nth-child(2) { --i: 2; }
.service-card:nth-child(3) { --i: 3; }
.service-card:nth-child(4) { --i: 4; }

.process-step:nth-child(1) { --i: 1; }
.process-step:nth-child(2) { --i: 2; }
.process-step:nth-child(3) { --i: 3; }
.process-step:nth-child(4) { --i: 4; }

/* Responsive styles */
@media screen and (max-width: 1024px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-overlay {
        transform: translateY(0);
        background-color: rgba(0, 0, 0, 0.6);
    }
}

/* Active Navigation Link Style (Optional) */
.nav-links a.active-nav {
    color: #666; /* Or a more distinct color/underline */
    font-weight: bold;
}
