/* General Styles */
body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    color: black;
    background-color: white;
}


h1 {
    margin: 0;
    font-size: 2rem;
}

.portfolio-header {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #183C5F; /* Replace with your preferred color */
}

/* Portfolio Container */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
   
}

/* Portfolio Item */
.portfolio-item {
    position: relative;
    overflow: hidden;
    height: auto; /* Adjust height based on content */
    cursor: pointer;
    transition: box-shadow 0.3s ease; /* Add transition for shadow effect */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Default box shadow */
    background-color: #f0f4f8; /* Ensure background color */
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

/* Title and Description Styles */
.portfolio-info {
    padding: 10px;
    background-color: #fff; /* Background color for title area */
    border-radius: 15px 15px 0 0; /* Rounded top corners */
}

.portfolio-title {
    margin: 0;
    font-size: 1.2rem;
    color: #183C5F; /* Title color */
    text-align: center;
}

.portfolio-description {
    padding: 10px;
    margin: 0;
    color: #747474; /* Description color */
    text-align: center;
}

/* Image Styles */
.portfolio-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0 0 15px 15px; /* Rounded bottom corners */
}

/* Hover Effects */
.portfolio-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Shadow effect on hover */
}

.portfolio-item:hover img {
    transform: scale(1.05); /* Slight zoom effect on image hover */
}

/* Dialog Styles */
.dialog {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Black with opacity */
}

.dialog-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        height: auto; /* Adjust height for smaller screens */
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        height: auto; /* Further adjust height for very small screens */
    }

    header h1 {
        font-size: 1.5rem;
    }
}
