/* Portfolio Page Specific Styles */

.portfolio-hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.portfolio-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Filter Section */
.portfolio-filter-section {
    background: var(--light-color);
    padding: 2rem 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-2);
    border-color: var(--primary-color);
    color: white;
}

/* Portfolio Showcase */
.portfolio-showcase {
    padding: 4rem 0;
    background: white;
}

.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.1);
}

.portfolio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(37, 99, 235, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.portfolio-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.portfolio-card-content > p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.portfolio-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.portfolio-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.portfolio-stats .stat i {
    color: var(--primary-color);
}

.btn-view-project {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-view-project:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: white;
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-header {
    background: var(--gradient-2);
    color: white;
    padding: 3rem 2rem 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    opacity: 0.95;
    font-size: 1.1rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 2rem;
}

.modal-details h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.modal-details h3:first-child {
    margin-top: 0;
}

.modal-details p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.modal-details ul {
    list-style: none;
    padding: 0;
}

.modal-details ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.modal-details ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-technologies .tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.modal-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.modal-cta .btn {
    padding: 1rem 2.5rem;
}

/* Animation for filtered items */
.portfolio-card.hide {
    display: none;
}

.portfolio-card.show {
    display: flex;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Active nav link */
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 968px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }

    .portfolio-grid-full {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-image {
        height: 250px;
    }

    .modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-details {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 120px 0 60px;
    }

    .portfolio-hero h1 {
        font-size: 2rem;
    }

    .portfolio-hero p {
        font-size: 1.1rem;
    }

    .portfolio-filter-section {
        padding: 1.5rem 0;
    }

    .portfolio-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .close-modal {
        right: 15px;
        top: 15px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
}
