/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: #000000;  /* fallback for old browsers */
background: -webkit-linear-gradient(to left, #434343, #000000);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to left, #434343, #000000); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    z-index: 0;
    margin: auto;
}

/* Portfolio Section Styling */
.portfolio-section {
    padding: 50px 0;
    background-color: #191D28;
}

.portfolio-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

/* Controls Styling */
.portfolio-menu {
    text-align: center;
}

.control {
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 9px;
    border: 1px solid #FFE5A4;
    margin: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.control:hover {
    background: linear-gradient(144deg, #FFE879, #FFE5A4);
    transform: scale(1.1);
    color: black;
}

.mixitup-control-active {
    color: black;
    background: linear-gradient(144deg, #FFE879, #FFE5A4);
}

/* Portfolio Items */
.portfolio-item {
    padding-top: 30px;
    text-align: center;
    position: relative;
}

.pd {
    padding: 0;
    padding: 10px;
    position: relative; /* Ensure each item is scoped individually */
}



.pd img {
    height: 260px;
    transition: all 0.5s;
    border-radius: 10px;
    position: relative;
    z-index: 1; /* Ensures the image is above the overlay by default */
}

/* Portfolio Overlay Styling */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0); /* Fully transparent initially */
    opacity: 0; /* Hidden by default */
    transform: scale(0); /* Hidden by default */
    border-radius: 15px; /* Matches parent's border-radius */
    transition: all 0.3s ease-in-out;
    z-index: 2;
    box-sizing: border-box; /* Ensures padding/border are included in size */
}


/* Hover Effect: Applied to Each Item Separately */
.pd:hover .portfolio-overlay {
    opacity: 1; /* Show on hover */
    transform: scale(1); /* Show on hover */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
}

/* Magnify Icon Styling */
.magnify-icon {
    display: flex; /* Enables flexbox */
    justify-content: center; /* Horizontally centers the child */
    align-items: center; /* Vertically centers the child */
    height: 50px; /* Fixed height */
    width: 50px; /* Fixed width */
    border-radius: 50%; /* Makes it circular */
    background: rgba(25, 29, 40, 0.8); /* Semi-transparent icon background */
    cursor: pointer; /* Pointer on hover */
    transition: all 0.25s; /* Smooth hover effect */
}

.magnify-icon p {
    margin: 0; /* Remove default margin */
    display: flex; /* Use flex for nested content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%; /* Matches parent height */
    width: 100%; /* Matches parent width */
}

.magnify-icon p span {
    display: flex; /* Centers the icon within span */
    justify-content: center;
    align-items: center;
}

.magnify-icon p span i {
    font-size: 25px; /* Icon size */
    color: #fff; /* Icon color */
}

