/* Portfolio Page Specific Styles */

/* Portfolio Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.portfolio-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.portfolio-hero .hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Portfolio Filter */
.portfolio-filter {
    padding: 40px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 50px;
    perspective: 1000px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    transform-style: preserve-3d;
}

.portfolio-item.show {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe, #00f2fe);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Portfolio Image */
.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .project-img {
    transform: scale(1.08);
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95), rgba(240, 147, 251, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

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

.overlay-content {
    text-align: center;
    padding: 30px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content .project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.overlay-content .project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.project-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.project-tags .tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.project-links .project-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-links .project-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Portfolio Information */
.portfolio-info {
    padding: 30px;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.project-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 15px;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.portfolio-item:hover .project-name {
    color: var(--primary-color);
}

.project-brief {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.project-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.result-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 60px;
    padding: 50px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    border-radius: 50px;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(74, 144, 226, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.2);
}

/* Client Testimonials */
.client-testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 2rem;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-stars {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-role {
    color: #718096;
    font-size: 0.9rem;
}

/* Testimonial Navigation */
.testimonial-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-nav {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
}

.testimonial-nav:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.dot:hover {
    background: #667eea;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 35px;
    }
    
    .portfolio-item {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-hero p {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .portfolio-item {
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .portfolio-info {
        padding: 25px;
    }
    
    .project-name {
        font-size: 1.3rem;
    }
    
    .project-results {
        gap: 15px;
    }
    
    .result-item {
        padding: 15px 10px;
    }
    
    .result-number {
        font-size: 1.6rem;
    }
    
    .overlay-content {
        padding: 25px;
    }
    
    .overlay-content .project-title {
        font-size: 1.3rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-links .project-link {
        padding: 10px 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .load-more-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 60px 0;
    }
    
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .portfolio-grid {
        margin-top: 30px;
        gap: 25px;
    }
    
    .portfolio-item {
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .portfolio-info {
        padding: 20px;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .project-name {
        font-size: 1.2rem;
    }
    
    .project-brief {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .project-results {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .result-item {
        padding: 12px 8px;
    }
    
    .result-number {
        font-size: 1.4rem;
    }
    
    .result-label {
        font-size: 0.8rem;
    }
    
    .overlay-content {
        padding: 20px;
    }
    
    .overlay-content .project-title {
        font-size: 1.2rem;
    }
    
    .overlay-content .project-description {
        font-size: 0.9rem;
    }
    
    .project-tags {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .project-tags .tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .project-links .project-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .load-more-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* Animation for filtering */
.portfolio-item {
    transition: all 0.5s ease;
}

.portfolio-item.filtering {
    transform: scale(0.8);
    opacity: 0;
}

/* Hover effects for better interactivity */
.portfolio-item {
    cursor: pointer;
}

.portfolio-item:hover .project-name {
    color: #667eea;
}

.portfolio-item:hover .result-number {
    transform: scale(1.1);
}

/* Loading state for load more */
.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}