/* Portfolio Section Styles */
.portfolio {
    padding: 80px 0;
    background: #f9f9f9;
}

body.dark-mode .portfolio {
    background: #252525;
}

.portfolio .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.forget-link {
    color: white;
    text-decoration: underline;
    margin-left: 10px;
}

.forget-link:hover {
    color: #ffd700;
}

.close-banner {
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    padding: 0 10px;
    transition: transform 0.3s ease;
}

.close-banner:hover {
    transform: scale(1.2);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

body.dark-mode .section-title {
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

body.dark-mode .section-subtitle {
    color: #aaa;
}

/* Portfolio Filter Buttons */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    cursor: pointer;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Portfolio Cards */
.portfolio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

body.dark-mode .portfolio-card {
    background: #2d2d2d;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Card Image */
.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .card-image {
    transform: scale(1.05);
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-category {
    display: inline-block;
    padding: 5px 12px;
    background: #667eea;
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

body.dark-mode .card-title {
    color: #fff;
}

.card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

body.dark-mode .card-description {
    color: #aaa;
}

/* Technology Tags */
.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #555;
    transition: all 0.3s ease;
}

body.dark-mode .tech-tag {
    background: #404040;
    color: #ddd;
}

.tech-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Card Link */
.card-link {
    display: inline-block;
    padding: 8px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.card-link:hover {
    background: #5a67d8;
    transform: translateX(5px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 15px;
    color: #999;
    grid-column: 1 / -1;
}

body.dark-mode .empty-state {
    background: #2d2d2d;
    color: #aaa;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio {
        padding: 60px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .portfolio-filter {
        gap: 10px;
    }

    .card-image {
        height: 200px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .welcome-banner {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
    }

    .card-content {
        padding: 15px;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation delay */
.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover Effects */
.portfolio-card {
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.portfolio-card:hover::before {
    left: 100%;
}

/* Loading State */
.portfolio-loading {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.portfolio-loading i {
    font-size: 2rem;
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}