/* ===== PROJECT PAGE STYLES ===== */

/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ===== PROJECT BANNER ===== */
.project-banner {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    padding: 100px 0 80px 0;
    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;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.project-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.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: 600px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== BANNER BUTTONS ===== */
.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);
}

/* 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);
}

.banner-btn i {
    font-size: 1.1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    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;
    }
}

@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;
    }
}

/* ===== FILTER CONTAINER ===== */
.filter-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(111, 66, 193, 0.1);
    margin-bottom: 30px;
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6f42c1;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: #6f42c1;
    background: white;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #6f42c1;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    color: white;
    border-color: #6f42c1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 40px 0 60px 0;
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(111, 66, 193, 0.2);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-gallery {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-image.active {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tech-tag {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-buttons {
    display: flex;
    gap: 8px;
}

.btn-github {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
}

.btn-github:hover {
    background: #555;
    color: white;
    transform: translateY(-2px);
}

.btn-details {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 0.85rem;
}

.btn-details:hover {
    background: linear-gradient(135deg, #5a359a, #7d3c98);
    color: white !important;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE PROJECTS ===== */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .filter-container {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .search-container {
        margin-bottom: 15px;
    }
    
    .search-box input {
        padding: 12px 15px 12px 45px;
    }
    
    .category-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-gallery {
        height: 200px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .filter-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .search-container {
        margin-bottom: 15px;
    }
    
    .search-box input {
        padding: 10px 12px 10px 40px;
        font-size: 0.9rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .projects-grid {
        margin-top: 0;
    }
    
    .project-gallery {
        height: 180px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
}

/* ===== 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;
    }
}

/* ===== GITHUB CONTRIBUTION GRAPH ===== */
.github-section {
    text-align: center;
    padding: 60px 0;
}

.github-title {
    font-size: 2rem;
    font-weight: 700;
    color: #6f42c1;
    margin-bottom: 30px;
    position: relative;
}

.github-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6f42c1, #8e44ad);
    border-radius: 2px;
}

.github-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.github-chart-img {
    max-width: 120%;
    width: 120%;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2);
}

.github-chart-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.3);
}

/* ===== RESPONSIVE GITHUB CONTRIBUTION ===== */
@media (max-width: 768px) {
    .github-section {
        padding: 40px 0;
    }
    
    .github-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .github-chart-container {
        margin-top: 20px;
    }
    
    .github-chart-img {
        max-width: 110%;
        width: 110%;
    }
}

@media (max-width: 480px) {
    .github-section {
        padding: 30px 0;
    }
    
    .github-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .github-chart-img {
        max-width: 105%;
        width: 105%;
    }
}

@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;
    }
}
