/* ==========================================================================
   Portfolio Styles
   ========================================================================== */

.portfolio-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2a3d15 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.portfolio-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.portfolio-header .lead {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 80px 0;
}

.portfolio-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
}

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

.portfolio-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

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

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

.portfolio-content {
    padding: 1.75rem;
}

.portfolio-tag {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.portfolio-company {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.portfolio-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.portfolio-link:hover {
    color: var(--primary-red);
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.stat-item:hover {
    background: rgba(67, 98, 33, 0.05);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Testimonial Section */
.testimonial-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-text:before {
    content: '"';
    font-size: 5rem;
    color: var(--primary-orange);
    opacity: 0.15;
    position: absolute;
    top: -25px;
    left: -10px;
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), #2a3d15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-avatar.bg-secondary {
    background: linear-gradient(135deg, var(--primary-red), #a03125);
}

.author-avatar.bg-success {
    background: linear-gradient(135deg, var(--primary-orange), #d97a23);
}

.author-info h5 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d97a23 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.1"><path fill="white" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-green);
    font-weight: 700;
}

.cta-buttons .btn-light:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}

.cta-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-orange);
    transform: translateY(-3px);
}

/* Portfolio Filters (Optional - for future use) */
.portfolio-filters {
    padding: 2rem 0;
    background: var(--light-gray);
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

/* Portfolio Details Modal (Optional - for future use) */
.portfolio-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.portfolio-modal .modal-header {
    background: var(--primary-green);
    color: var(--white);
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.portfolio-modal .modal-body {
    padding: 2rem;
}

.modal-screenshot {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.modal-tech-stack .badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .portfolio-header h1 {
        font-size: 3rem;
    }
    
    .cta-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .portfolio-header {
        padding: 120px 0 60px;
    }
    
    .portfolio-header h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .testimonial-section {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-header h1 {
        font-size: 2.2rem;
    }
    
    .portfolio-header .lead {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        padding: 60px 0;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-company {
        font-size: 1.25rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    .testimonial-text:before {
        font-size: 4rem;
        top: -20px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section .lead {
        font-size: 1.1rem;
    }
    
    .cta-buttons .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .portfolio-header {
        padding: 100px 0 50px;
    }
    
    .portfolio-header h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-image {
        height: 160px;
    }
    
    .portfolio-content {
        padding: 1.25rem;
    }
    
    .portfolio-company {
        font-size: 1.1rem;
    }
    
    .portfolio-description {
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .author-info {
        text-align: center;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    .portfolio-stats {
        padding-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

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

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

.testimonial-card.animate {
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

/* Utility Classes for Portfolio */
.text-gradient-green {
    background: linear-gradient(135deg, var(--primary-green), #2a3d15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-orange {
    background: linear-gradient(135deg, var(--primary-orange), #d97a23);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient-green {
    border-image: linear-gradient(135deg, var(--primary-green), #2a3d15) 1;
}