/* =====================================================
   PORTFOLIO PAGE STYLES
   Consistent with Services, Pricing, Products pages
   ===================================================== */

/* Hero Section - Matching other pages */
.portfolio-hero {
    background-image: url('../images/backgroundheader.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 8rem 0 5rem 0;
    color: white;
    margin-top: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Gradient Overlay - Same as other pages */
.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 0, 53, 0.85) 0%, rgba(0, 174, 239, 0.4) 100%);
    z-index: -1;
}

.portfolio-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portfolio-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    display: inline-block;
}

.portfolio-hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00aeef, transparent);
    border-radius: 2px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.portfolio-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e8f4f8 100%);
    padding: 5rem 0;
    min-height: 60vh;
}

.portfolio-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Filter Buttons */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 14px 32px;
    border: none;
    background: white;
    color: #64748b;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    color: #020035;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #020035 0%, #00aeef 100%);
    background-size: 100% 100%;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.4);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Project Image */
.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.project-icon i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 0, 53, 0.9) 0%, rgba(0, 174, 239, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    color: #020035;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.project-card:hover .project-btn {
    transform: translateY(0);
    opacity: 1;
}

.project-btn:hover {
    background: #00d4ff;
    transform: scale(1.05);
}

.project-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.project-btn:hover i {
    transform: translateX(5px);
}

/* Project Content */
.project-content {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #020035 0%, #1a1a4e 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.25rem;
    color: #020035;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.3;
}

.project-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 5px 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* CTA Section */
.portfolio-cta {
    background: linear-gradient(135deg, #020035 0%, #00aeef 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.portfolio-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: white;
    color: #020035;
}

.cta-btn.primary:hover {
    background: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 6rem 0 4rem 0;
    }
    
    .portfolio-hero-title {
        font-size: 2.2rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .portfolio-cta {
        padding: 3rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .portfolio-hero-title {
        font-size: 1.8rem;
    }
    
    .portfolio-container {
        padding: 0 1rem;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
}
