/* Featured Projects Section Styles */
.featured-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
    padding-top: 3%;
}

.featured-heading {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 3rem 0 2rem 0;
    line-height: 1.3;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.featured-card {
    position: relative;
    background-color: #1e1e1e;
    border-radius: 8px;
    height: 450px;
    width: 450px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

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

.featured-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    opacity: 0;
}

.featured-card:hover .featured-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.featured-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.featured-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
    max-width: 95%;
}

/* Service cards / Project cards styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3%;
}

.service-card {
    position: relative;
    background-color: #1e1e1e;
    border-radius: 8px;
    height: 350px;
    width: 350px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 5px 5px 5px #121212;
}

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

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    opacity: 0;
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.service-description {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.5;
    max-width: 90%;
}

.watch-video-button {
    margin-top: 1rem;
    color: oklch(0.514 0.222 16.935);
}

/* Mobile styles */
@media (max-width: 1024px) {
    .featured-card {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        height: 300px;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .featured-grid,
    .services-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .featured-card,
    .service-card {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }

    .featured-title {
        font-size: 1.7rem;
    }

    /* Card overlay visible on tap for mobile */
    .service-card-overlay,
    .featured-card-overlay {
        transform: translateY(70%);
        opacity: 1;
        height: auto;
        max-height: 70%;
    }

    .service-title,
    .featured-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .service-description,
    .featured-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .featured-heading {
        font-size: 1.8rem;
    }

    .featured-card,
    .service-card {
        height: 200px;
    }

    .featured-card-overlay,
    .service-card-overlay {
        padding: 15px;
    }

    .watch-video-button {
        margin-top: 0.5rem;
    }
}

/* Touch device enhancements */
@media (hover: none) {

    /* Make sure touch devices can see the overlay content */
    .service-card-overlay,
    .featured-card-overlay {
        transform: translateY(70%);
        opacity: 1;
    }
}