/* portfolio.css */
.portfolio-section {
    background-color: #ffffff;
    padding: 50px;
    padding-top: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.portfolio-item {
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 8px rgba(61, 82, 160, 0.4); /*glow effect blue*/ 
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(61, 82, 160, 0.6);
}

.portfolio-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.portfolio-content {
    padding: 20px;
    text-align: center;
}

.portfolio-content h3 {
    color: #3D52A0;
    margin: 10px 0;
    font-size: 1.5em;
}

.portfolio-content p {
    color: #8697C4;
}

.view-project {
    display: inline-block;
    margin-top: 10px;
    color: #3D52A0;
    text-decoration: none;
    border: 2px solid #3D52A0;
    padding: 10px 15px;
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.view-project:hover {
    background: #3D52A0;
    color: #fff;
}

/* Detailed Section Styling */
.portfolio-detailed {
    padding: 50px 0;
    background-color: #ffffff;
    margin-bottom: 60px;
}

.portfolio-detail-block {
    margin-bottom: 50px;
    padding: 40px;
    margin-left: 200px;
    margin-right: 200px;
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative; /* For positioning the background image */
    border: 1px solid #ADBBDA; /* Add border */
    transform: scale(1);
    transition: transform 0.3s ease;
}

.portfolio-detail-block:hover {
    transform: scale(1.05);
}

.portfolio-detail-block h2 {
    margin-bottom: 30px;
    color: #3D52A0;
}

/* New styles for background image */
.portfolio-detail-image {
    background-size: cover; /* Ensure the image covers the entire area */
    background-position: center; /* Center the background image */
    height: 400px; /* Set a height for the background image section */
    position: relative; /* For layering the text content */
}

.portfolio-detail-content {
    padding: 20px;
    color: #000000;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .portfolio-detail-block {
        padding: 30px; /* Reduce padding on smaller screens */
        margin: 30px; /* Smaller margins for smaller screens */
    }

    .portfolio-detail-content {
        padding: 15px; /* Adjust padding */
    }

    .portfolio-detail-image {
        height: 250px; /* Smaller height for smaller screens */
    }

    .portfolio-content h3 {
        font-size: 1.2em; /* Adjust heading size */
    }

    .view-project {
        padding: 8px 12px; /* Smaller button padding */
    }
}

@media (max-width: 480px) {
    .portfolio-detail-block {
        padding: 20px;
        margin: 20px; /* More compact for mobile devices */
    }

    .portfolio-content h3 {
        font-size: 1em; /* Smaller font size */
    }

    .portfolio-detail-image {
        height: 200px; /* Reduce height for smaller screens */
    }
}
