/* ===== PROJECT DETAILS CSS ===== */

/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ===== PROJECT BANNER ===== */
.project-banner {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    color: white;
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgODAwIDgwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9Im5vaXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj4KICAgICAgPGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNzUiIG51bU9jdGF2ZXM9IjQiIHN0aXRjaFRpbGVzPSJzdGl0Y2hBZnRlclNlYW1iZXIiIHNlZWQ9IjEiLz4KICAgICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPgogICAgICA8ZmVDb21wb3NpdGUgb3BlcmF0b3I9ImluIiBpbjI9IlNvdXJjZUdyYXBoaWMiLz4KICAgICAgPGZlQ29tcG9zaXRlIG9wZXJhdG9yPSJpbiIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iRmVUcmFuc2Zvcm0iLz4KICAgIDwvZmlsdGVyPgogIDwvZGVmcz4KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZmZmZmZmIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjEiLz4KPC9zdmc+') repeat;
    opacity: 0.1;
    z-index: 0;
}

.project-banner-content {
    position: relative;
    z-index: 1;
}

.project-banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.project-banner-description {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.banner-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.banner-btn i {
    font-size: 1.1rem;
}

/* Primary button override for theme consistency */
.btn-primary {
    background: white !important;
    color: #6f42c1 !important;
    border: 2px solid #6f42c1 !important;
}

.btn-primary:hover {
    background: #000000 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== PROJECT DETAILS CONTENT ===== */
.project-details-content {
    padding: 60px 0;
    background: white;
    min-height: 80vh;
}

/* ===== PROJECT GALLERY ===== */
.project-gallery-container {
    margin-bottom: 60px;
}

.project-gallery {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(111, 66, 193, 0.2);
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.2s ease;
}

/* ===== README (Markdown) Card ===== */
.project-readme {
    margin-top: 40px;
}

.project-readme .section-title i {
    color: #6f42c1;
}

.markdown-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(111, 66, 193, 0.12);
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.1);
    padding: 24px 28px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #6f42c1;
    font-weight: 700;
    margin-top: 1.2rem;
}

.markdown-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, #6f42c1, #8e44ad);
    opacity: .35;
    margin: 16px 0;
}

.markdown-body ul {
    padding-left: 1.2rem;
}

.markdown-body li {
    margin: 6px 0;
}

.markdown-body strong { color: #5a359a; }


.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #6f42c1;
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== PROJECT OVERVIEW ===== */
.project-overview {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: #6f42c1;
    font-size: 1.8rem;
}

.overview-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid #6f42c1;
}

.overview-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.overview-description:last-child {
    margin-bottom: 0;
}

/* ===== PROJECT TECHNOLOGIES ===== */
.project-technologies {
    margin-bottom: 60px;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-category {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.15);
}

.tech-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #6f42c1;
    margin-bottom: 20px;
    text-align: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .project-banner {
        padding: 80px 0 60px 0;
    }
    
    .project-banner-title {
        font-size: 2.5rem;
    }
    
    .project-banner-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .banner-buttons {
        gap: 15px;
    }
    
    .banner-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    
    .gallery-thumbnails {
        padding: 15px;
        gap: 8px;
    }
    
    .thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .overview-content {
        padding: 25px;
    }
    
    .overview-description {
        font-size: 1rem;
    }
    
    .technologies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-category {
        padding: 20px;
    }
    
    .tech-category-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .project-banner {
        padding: 60px 0 40px 0;
    }
    
    .project-banner-title {
        font-size: 2rem;
    }
    
    .project-banner-description {
        font-size: 1rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .banner-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 200px;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    
    .gallery-thumbnails {
        padding: 10px;
        gap: 6px;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .overview-content {
        padding: 20px;
    }
    
    .tech-category {
        padding: 15px;
    }
    
    .tech-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    color: white;
    padding: 60px 0 30px 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgODAwIDgwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9Im5vaXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj4KICAgICAgPGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNzUiIG51bU9jdGF2ZXM9IjQiIHN0aXRjaFRpbGVzPSJzdGl0Y2hBZnRlclNlYW1iZXIiIHNlZWQ9IjEiLz4KICAgICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPgogICAgICA8ZmVDb21wb3NpdGUgb3BlcmF0b3I9ImluIiBpbjI9IlNvdXJjZUdyYXBoaWMiLz4KICAgICAgPGZlQ29tcG9zaXRlIG9wZXJhdG9yPSJpbiIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iRmVUcmFuc2Zvcm0iLz4KICAgIDwvZmlsdGVyPgogIDwvZGVmcz4KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZmZmZmZmIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjEiLz4KPC9zdmc+') repeat;
    opacity: 0.1;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-profile {
    text-align: center;
    margin-bottom: 20px;
}

.footer-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-photo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.footer-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.footer-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.footer-social-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-social-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-contact-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-bottom-link:hover {
    color: white;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-profile {
        text-align: left;
        display: flex;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .footer-photo {
        width: 80px;
        height: 80px;
        margin: 0 20px 0 0;
    }
    
    .footer-name {
        font-size: 1.3rem;
    }
    
    .footer-title {
        font-size: 0.9rem;
    }
    
    .footer-description {
        text-align: left;
        font-size: 0.85rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-photo {
        width: 70px;
        height: 70px;
        margin: 0 auto 15px auto;
    }
    
    .footer-name {
        font-size: 1.2rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
