/* ========================================
   PORTFOLIO PAGE STYLES
   ======================================== */

/* Portfolio Hero */
.portfolio-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(40, 179, 75, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

.portfolio-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.portfolio-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #2d3748;
}

.portfolio-hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #28b34b;
}

.portfolio-hero .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Filter Section */
.portfolio-filter {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2.5rem;
    background: #28b34b;
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 179, 75, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-btn:hover {
    background: #1f8d3a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(40, 179, 75, 0.4);
}

.filter-btn.active {
    background: #1f8d3a;
    color: white;
    box-shadow: 0 6px 25px rgba(40, 179, 75, 0.4);
}

/* Projects Section */
.portfolio-projects {
    padding: 80px 0;
}

.project-item {
    margin-bottom: 100px;
    position: relative;
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-item.image-right .project-content-wrapper {
    grid-template-columns: 1fr 1fr;
}

.project-item.image-right .project-image-container {
    order: 2;
}

.project-item.image-right .project-details {
    order: 1;
}

/* Project Image */
.project-image-container {
    position: sticky;
    top: 100px;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #28b34b 0%, #1e8e3e 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(40, 179, 75, 0.4);
}

.project-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

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

.project-image:hover .image-overlay {
    opacity: 1;
}

.overlay-link {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.overlay-link:hover {
    background: white;
    color: #28b34b;
}

/* Project Details */
.project-details {
    padding: 1rem 0;
}

.project-header {
    margin-bottom: 2rem;
}

.project-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #28b34b 0%, #1e8e3e 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-client {
    color: #718096;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Project Breakdown */
.project-breakdown {
    background: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.breakdown-item {
    margin-bottom: 1.5rem;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28b34b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-item p {
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* Technology Badges */
.project-tech {
    margin-bottom: 2rem;
}

.project-tech h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: #28b34b;
    color: #28b34b;
    transform: translateY(-2px);
}

/* Testimonial */
.project-testimonial {
    background: linear-gradient(135deg, #28b34b 0%, #1e8e3e 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    margin-bottom: 2rem;
}

.quote-icon {
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.project-testimonial blockquote {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 1rem 0;
    padding-left: 1rem;
}

.project-testimonial cite {
    font-size: 1rem;
    font-style: normal;
    opacity: 0.9;
    font-weight: 600;
}

/* Project Actions */
.project-actions {
    margin-top: 2rem;
}

.btn-view-project {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #28b34b 0%, #1e8e3e 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 179, 75, 0.3);
}

.btn-view-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 179, 75, 0.4);
}

/* No Projects */
.no-projects {
    text-align: center;
    padding: 80px 20px;
    color: #718096;
}

.no-projects i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-projects h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4a5568;
}

/* Portfolio CTA */
.portfolio-cta {
    background: linear-gradient(135deg, #28b34b 0%, #1e8e3e 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: #28b34b;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #28b34b;
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 991px) {
    .portfolio-hero .hero-title {
        font-size: 2.5rem;
    }

    .portfolio-hero .hero-subtitle {
        font-size: 1.3rem;
    }

    .project-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .project-image-container {
        position: relative !important;
        top: auto !important;
        order: 1 !important;
    }
    
    .project-details {
        order: 2 !important;
    }

    .project-item.image-right .project-image-container,
    .project-item.image-right .project-details {
        order: initial;
    }
    
    .project-item.image-right .project-image-container {
        order: 1 !important;
    }
    
    .project-item.image-right .project-details {
        order: 2 !important;
    }

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

    .cta-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 60px 0 50px;
    }

    .portfolio-hero .hero-title {
        font-size: 2rem;
    }

    .portfolio-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .portfolio-hero .hero-description {
        font-size: 1rem;
    }

    .portfolio-filter {
        padding: 1.5rem 0;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .portfolio-projects {
        padding: 50px 0;
    }

    .project-item {
        margin-bottom: 60px;
    }

    .project-title {
        font-size: 1.75rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .project-breakdown {
        padding: 1.5rem;
    }

    .project-testimonial {
        padding: 1.5rem;
    }

    .project-testimonial blockquote {
        font-size: 1rem;
    }

    .portfolio-cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .featured-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .tech-badges {
        gap: 0.5rem;
    }

    .tech-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}
