/* General Body Styles */
html, body {
    background: url(../bg.webp) no-repeat center center fixed;
    background-size: cover;
  }
  

/* Projects Grid Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 67%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}
.project-card:hover .overlay {
    opacity: 1;
}
.project-card:hover img {
    transform: scale(1.1);
}
.project-card .overlay h3 {
    margin: 0 0 10px 0;
}
.project-card .overlay p {
    margin: 0;
    font-size: 0.9em;
}

/* Project Detail Page Styles */
.project-main-section {
    margin-bottom: 60px;
    padding: 40px 0;
}

.project-main-content.row {
    align-items: flex-start;
    margin: 0;
}

.project-main-image {
    padding-right: 30px;
}

.main-project-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

.project-main-info {
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-main-info h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

.project-description p {
    margin-bottom: 18px;
}

.gallery-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.gallery-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
    font-weight: 600;
}

/* Responsive adjustments for project detail */
@media (max-width: 991px) {
    .project-main-image {
        padding-right: 15px;
        margin-bottom: 30px;
    }
    
    .project-main-info {
        padding-left: 15px;
    }
    
    .project-main-info h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .project-main-image, 
    .project-main-info {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .project-main-info h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .project-description {
        font-size: 1rem;
        text-align: left;
    }
    
    .project-main-section {
        padding: 20px 0;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-grid a:hover img {
    transform: scale(1.05);
}

.main-project-image{
    border-radius: 12px;
}