/* Portfolio Page Styles */

/* Main Content Adjustments */
.portfolio-main {
    margin-top: 80px; /* Account for fixed header */
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

.project-detail-main {
    margin-top: 80px; /* Account for fixed header */
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

/* Portfolio Container */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Portfolio Title */
.portfolio-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 2rem 0 3rem 0;
    padding-top: 2rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem 3rem 2rem;
    width: 100%;
    margin: 0 auto;
}

.portfolio-item {
    text-align: center;
    width: 100%;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.portfolio-link:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-caption {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 0.5rem;
}

/* Coming Soon */
.coming-soon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.coming-soon {
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.coming-soon p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50;
    font-style: italic;
    margin: 0;
}

/* Back Button */
.back-button-container {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.back-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.back-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.back-arrow {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Project Detail Layout */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.project-description {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

/* Testimonials */
/* .project-testimonials {
    margin-top: 2rem;
}

.testimonial {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
} */

/* Project Gallery */
.project-gallery {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-main {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

.thumbnail.active {
    border-color: #3498db;
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Active Navigation Link */
.nav-link.active {
    color: #3498db;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-main,
    .project-detail-main {
        margin-top: 70px;
        padding: 1rem 0;
        min-height: calc(100vh - 70px);
    }
    
    
    .portfolio-container,
    .project-detail-container {
        margin: 0 1rem;
        padding: 1rem;
    }
    
    .portfolio-title {
        font-size: 2.5rem;
        margin: 1rem 0 2rem 0;
        padding-top: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem 2rem 1rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .project-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .project-description p {
        font-size: 1rem;
    }
    
    /* .testimonial {
        padding: 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    } */
    
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.3rem;
    }
    
    .thumbnail {
        height: 60px;
    }
    
    .back-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .back-button-container {
        margin-bottom: 1.5rem;
        padding-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-main,
    .project-detail-main {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    
    .portfolio-title {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        padding: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    }
    
    .thumbnail {
        height: 50px;
    }
    
    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .back-button-container {
        margin-bottom: 1rem;
        padding-top: 0.25rem;
    }
}

/* Loading States */
.portfolio-image img,
.gallery-main img,
.thumbnail img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Accessibility */
.portfolio-link:focus,
.thumbnail:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .portfolio-main,
    .project-detail-main {
        margin-top: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}
