/* Portfolio Page Specific Styles */

/* Logo Link */
.logo a {
    color: #7D67FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #1DC77D;
}

/* Active Navigation */
.nav a.active {
    color: #7D67FF;
}

.nav a.active::after {
    width: 100%;
}

/* Portfolio Hero Section */
.portfolio-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 30% 70%, rgba(125, 103, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(29, 199, 125, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 24%, rgba(125, 103, 255, 0.05) 25%, rgba(125, 103, 255, 0.05) 26%, transparent 27%);
    background-size: 80px 80px;
    animation: backgroundMove 25s linear infinite;
    opacity: 0.5;
}

.portfolio-hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.portfolio-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #7D67FF, #1DC77D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero p {
    font-size: 20px;
    color: #CCCCCC;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Filter Section */
.portfolio-filter-section {
    padding: 80px 0 40px;
    background: #000000;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: #CCCCCC;
    border: 2px solid #404040;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(125, 103, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: #7D67FF;
    color: #7D67FF;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #7D67FF;
    color: #FFFFFF;
    border-color: #7D67FF;
    box-shadow: 0 4px 16px rgba(125, 103, 255, 0.3);
}

/* Portfolio Grid Section */
.portfolio-grid-section {
    padding: 40px 0 120px;
    background: #000000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-item {
    background: #1A1A1A;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(125, 103, 255, 0.2);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, #7D67FF, #1DC77D, #F55600);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    padding: 20px;
}

.portfolio-overlay-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.portfolio-overlay-content p {
    font-size: 16px;
    color: #CCCCCC;
    margin-bottom: 20px;
}

.btn-view {
    background: #7D67FF;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: #6B56E8;
    transform: translateY(-2px);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: #7D67FF;
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1A1A1A;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #CCCCCC;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 2001;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #7D67FF;
}

.modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #404040;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.modal-header .modal-category {
    color: #7D67FF;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    padding: 40px;
}

.modal-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #7D67FF, #1DC77D, #F55600);
    border-radius: 8px;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #404040;
}

.modal-description {
    font-size: 18px;
    color: #CCCCCC;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.modal-detail-item h4 {
    color: #7D67FF;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-detail-item p {
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.6;
}

.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-tags span {
    background: #7D67FF;
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 36px;
    }
    
    .portfolio-hero p {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .filter-tabs {
        gap: 12px;
        padding: 0 20px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Animation for filtering */
@keyframes filterIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.portfolio-item.filter-in {
    animation: filterIn 0.5s ease-out;
}