body {
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Project Detail Page Styles */
.project-detail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-detail-container.active {
    opacity: 1;
    pointer-events: all;
}

.project-detail-header {
    position: relative;
    background-color: #ffffff;
    padding-top: 20px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4d4b4b;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: #e9b321;
    color: #fff;
    transform: scale(1.1);
}

/* Updated Project Image Container Styles */
.project-detail-image {
    position: relative;
    width: 65%; /* Container takes 70% of width instead of 100% */
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Center the container */
    background-color: #f5f5f5;
    border-radius: 10px; /* Add rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.project-detail-image .image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.project-detail-image .background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    filter: blur(8px);
    opacity: 0.7;
    z-index: 1;
    border-radius: 10px;
}

/* Reset default image styles to let our JS handle the positioning */
.project-detail-image img {
    position: relative;
    z-index: 2;
    /* Removing fixed constraints to let JS handle sizing */
    /* max-width and max-height will be set dynamically */
    display: block;
}

.project-detail-title {
    text-align: center; /* Center the title */
    margin: 30px auto 0;
    color: #1d7e9d; /* Changed color */
    font-size: 2.8rem; /* Increased font size */
    font-weight: 700;
    position: relative; /* Changed from absolute to relative */
    bottom: auto;
    left: auto;
    text-shadow: none;
    padding: 0 20px;
}

.project-detail-content {
    max-width: 900px; /* Reduced from 1200px for better readability */
    margin: 0 auto;
    padding: 40px 20px;
    font-size: 1.1rem; /* Increased base font size */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: left; /* Center tags */
}

.project-tag {
    background-color: #e9b421c1;
    color: #000000;
    padding: 0.4rem 0.9rem; /* Slightly larger padding */
    border-radius: 4px;
    font-size: 1rem; /* Increased font size */
}

/* Heading styles with decorative element after them */
.project-description h2 {
    margin-top: 2.5rem; /* Increased spacing above */
    margin-bottom: 1.2rem; /* Increased spacing below */
    color: #000000; /* Changed color to match theme */
    font-size: 1.8rem; /* Increased font size */
    position: relative;
    padding-bottom: 0.8rem; /* Space for the decorative line */
}

/* Add decorative line after headings */
.project-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e9b321; /* Gold color line */
    border-radius: 2px;
}

.project-description p {
    margin-bottom: 1.2rem; /* Increased spacing */
    line-height: 1.6; /* Increased line height for better readability */
    font-size: 1.1rem; /* Increased font size */
}

.project-description ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 25px;
}

.project-description li {
    margin-bottom: 0.8rem; /* Increased spacing */
    font-size: 1.1rem; /* Increased font size */
}

.project-description li li {
    font-size: 1.05rem; /* Slightly smaller for nested lists */
}

.iframe-container {
    margin: 2rem 0;
    border-radius: 10px; /* Increased rounding */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    justify-content: left; /* Center the buttons */
}

.project-links .btn {
    flex: unset;
    width: auto;
}

.btn {
    flex: 1;
    padding: 0.8rem 1.8rem; /* Larger buttons */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem; /* Larger text */
}

.btn-primary {
    background-color: #1d7e9d;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #166d8a;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e9b321;
    color: #212529;
}

.btn-secondary:hover {
    background-color: #d3a01e;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Media queries for responsive layouts */
@media (max-width: 992px) {
    .project-detail-image {
        width: 85%; /* Wider on medium screens */
        height: 350px;
    }
    
    .project-detail-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .project-detail-image {
        width: 90%; /* Even wider on small screens */
        height: 300px;
    }
    
    .project-detail-title {
        font-size: 2rem;
    }
    
    .project-detail-content {
        font-size: 1rem;
    }
    
    .project-description h2 {
        font-size: 1.6rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .project-detail-image {
        width: 95%;
        height: 250px;
    }
    
    .project-detail-title {
        font-size: 1.8rem;
    }
}
/* Project detail image styles are specified at the end of this file */