/* Portfolio Specific Styles */

/* Portfolio Hero */
.portfolio-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(81, 253, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(81, 253, 250, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
}

.portfolio-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    background: linear-gradient(135deg, #FFFFFF 0%, #51FDFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(81, 253, 250, 0.3);
}

.portfolio-hero-content p {
    font-size: 1.3rem;
    color: #CCCCCC;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Filter Section */
.portfolio-filter {
    padding: 3rem 0;
    background: #000000;
    border-top: 1px solid rgba(81, 253, 250, 0.2);
    border-bottom: 1px solid rgba(81, 253, 250, 0.2);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid rgba(81, 253, 250, 0.3);
    background: #000000;
    color: #CCCCCC;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #51FDFA, #00D4FF);
    color: #000000;
    border-color: #51FDFA;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(81, 253, 250, 0.3);
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 4rem 0;
    background: #000000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.portfolio-item {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(81, 253, 250, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(81, 253, 250, 0.3);
    border-color: #51FDFA;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-image {
    width: 100%;
    height: 300px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(81, 253, 250, 0.9), rgba(0, 212, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    backdrop-filter: blur(2px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: scale(1.02);
}

.portfolio-overlay i {
    font-size: 2.5rem;
    color: #000000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: #CCCCCC;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tag {
    background: rgba(81, 253, 250, 0.1);
    color: #51FDFA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(81, 253, 250, 0.3);
}

.portfolio-tag.category {
    background: linear-gradient(135deg, #51FDFA, #00D4FF);
    color: #000000;
    border: 1px solid #51FDFA;
}

/* Loading State */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(81, 253, 250, 0.3);
    border-top: 4px solid #51FDFA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Portfolio Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    overflow: hidden;
    animation: modalFadeIn 0.4s ease;
}

.portfolio-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.portfolio-modal:hover img {
    transform: scale(1.02);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: #FFFFFF;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #51FDFA;
    color: #51FDFA;
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.modal-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.modal-info p {
    color: #CCCCCC;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-tags span {
    background: rgba(81, 253, 250, 0.1);
    color: #51FDFA;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(81, 253, 250, 0.3);
}

/* CTA Section */
.portfolio-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(81, 253, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(81, 253, 250, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.portfolio-cta-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #51FDFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(81, 253, 250, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #CCCCCC;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero-content h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}
