/* Portfolio Page Specific Styles */

/* Hero Section */
.portfolio-hero {
    position: relative;
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #87CEEB 0%, #E0F6FF 50%, #FFE4E1 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #4A90E2;
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #7B68EE;
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #FFE4E1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #2C3E50;
    margin-bottom: 1rem;
    animation: fade-in-up 1s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #546E7A;
    animation: fade-in-up 1s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Filters */
.portfolio-categories {
    padding: 50px 0;
    background: white;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #546E7A;
    font-size: 0.95rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

/* Portfolio Showcase */
.portfolio-showcase {
    padding: 80px 0;
    background: #F8F9FA;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 60px;
}

/* Updated Project Card Styles - Entire card is clickable */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.project-card.featured {
    grid-column: span 2;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.project-card.featured .project-image {
    height: 400px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Add a subtle gradient overlay on hover for better visual feedback */
.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

/* Remove old overlay styles - no longer needed */
.project-overlay {
    display: none;
}

/* Updated project info styles */
.project-info {
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-info {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.project-title {
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #4A90E2;
}

.project-tech {
    color: #7B68EE;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-description {
    color: #546E7A;
    line-height: 1.6;
}

/* Add visual feedback on click */
.project-card:active {
    transform: translateY(-5px) scale(1.01);
    transition: all 0.1s ease;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #546E7A;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.load-more-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Loading state for load more button */
.load-more-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* CTA Section */
.portfolio-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2C3E50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #546E7A;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-card.featured {
        grid-column: span 1;
    }
    
    .project-card.featured .project-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 120px 0 60px;
    }
    
    .portfolio-categories {
        padding: 30px 0;
        position: relative;
        top: 0;
    }
    
    .category-filters {
        padding: 0 15px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .portfolio-showcase {
        padding: 50px 0;
    }
    
    .project-image {
        height: 250px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 15px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    .project-info {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
}

/* Ensure body doesn't scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}