/* Works Page Styles */

/* 1. Hero Section same as others but typically plain or consistent */
/* 1. Hero Section */
.page-heading.works-heading {
    background-image: url(../images/services-left-image.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    padding: 120px 0;
}

.works-heading .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(69, 98, 237, 0.9) 0%, rgba(82, 215, 252, 0.9) 100%);
    z-index: 1;
}

.works-heading .container {
    position: relative;
    z-index: 2;
}

.works-heading h2 {
    color: #fff;
    font-size: 50px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.works-heading a {
    color: #fff;
    transition: all 0.3s;
}

.works-heading a:hover {
    color: #2a2a2a;
}


/* 2. Portfolio Section */
.portfolio-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #fff;
}

.portfolio-section .section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-section .section-heading h2 {
    font-size: 40px;
    font-weight: 800;
    color: #2a2a2a;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.portfolio-section .section-heading h2 em {
    font-style: normal;
    color: #4562ed;
}

.portfolio-section .section-heading .line-dec {
    width: 60px;
    height: 3px;
    background-color: #4562ed;
    margin: 0 auto;
    border-radius: 5px;
}

/* Filters */
.filters {
    text-align: center;
    margin-bottom: 60px;
}

.filters ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.filters ul li {
    display: inline-block;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #2a2a2a;
    padding: 8px 20px;
    transition: all 0.3s;
    background-color: #f7f7f7;
    border-radius: 20px;
    margin: 0 5px;
}

.filters ul li:hover,
.filters ul li.active {
    background-color: #4562ed;
    color: #fff;
}

/* Portfolio Grid */
.portfolio-item {
    margin-bottom: 30px;
    width: 100%;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.portfolio-item .thumb {
    position: relative;
    overflow: hidden;
}

.portfolio-item .thumb img {
    width: 100%;
    transition: all 0.5s;
    display: block;
}

.portfolio-item:hover .thumb img {
    transform: scale(1.1);
}

.portfolio-item .down-content {
    background-color: #fff;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.portfolio-item .down-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 8px;
}

.portfolio-item .down-content span {
    font-size: 15px;
    color: #4562ed;
    display: block;
}

/* Hover Overlay Effect */
.portfolio-item .hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(69, 98, 237, 0.95);
    /* Brand Color Overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    padding: 20px;
    z-index: 3;
}

.portfolio-item:hover .hover-content {
    opacity: 1;
    visibility: visible;
}

.portfolio-item .hover-content .inner-content {
    transform: translateY(20px);
    transition: all 0.3s;
}

.portfolio-item:hover .hover-content .inner-content {
    transform: translateY(0);
}

.portfolio-item .hover-content h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-item .hover-content span {
    color: #fff;
    font-size: 15px;
    display: block;
    margin-bottom: 20px;
    font-weight: 300;
}

.portfolio-item .hover-content a {
    display: inline-block;
    background-color: #fff;
    color: #4562ed;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
}

.portfolio-item .hover-content a:hover {
    background-color: #52d7fc;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters ul li {
        margin-bottom: 10px;
    }
}