

/* Section specific styles */
#portfolio {
    padding: 80px 20px;
    max-width: 1200px; /* Limit content width */
    margin: 0 auto; /* Center the content */
    text-align: center;
}

.portfolio-header {
    margin-bottom: 60px;
}

.portfolio-header h1 {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.portfolio-header .highlight {
    color: #f2a65a; /* Your accent color */
}

.portfolio-header p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    /* Default for larger screens: 3 columns */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; /* Space between grid items */
}

/* Individual Portfolio Item */
.portfolio-item {
    background-color: #ffffff; /* White background for each item */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Soft shadow */
    overflow: hidden; /* Ensures image corners are rounded */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flexbox for image and content */
    flex-direction: column;
    text-align: left; /* Align text to the left within the item */
}

.portfolio-item:hover {
    transform: translateY(-10px); /* Lift effect on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.item-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Creates a square container for the image */
    overflow: hidden;
}

.item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.5s ease; /* Smooth zoom effect */
}

.portfolio-item:hover .item-image img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Transparent by default */
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden by default */
}

.portfolio-item:hover .image-overlay {
    background-color: rgba(0, 0, 0, 0.3); /* Darken overlay on hover */
    opacity: 1; /* Show overlay */
}

.item-content {
    padding: 20px;
}

.item-content h3 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.item-content .category {
    font-size: 16px;
    color: #f2a65a; /* Accent color for category */
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #portfolio {
        padding: 60px 15px;
    }

    .portfolio-header h1 {
        font-size: 40px;
    }

    .portfolio-grid {
        /* On tablets, 2 columns */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .portfolio-header h1 {
        font-size: 36px;
    }

    .portfolio-grid {
        /* On smaller tablets/large phones, 2 columns with smaller min-width */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    #portfolio {
        padding: 40px 10px;
    }

    .portfolio-header h1 {
        font-size: 30px;
    }

    .portfolio-grid {
        /* On mobile, 1 column */
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .item-content {
        padding: 15px;
    }

    .item-content h3 {
        font-size: 20px;
    }

    .item-content .category {
        font-size: 15px;
    }
}
