/* Portfolio Page Styles */

.portfolio-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Tabs */
.portfolio-filters {
    padding: 40px 0;
    position: sticky;
    top: 70px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--muted-text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--accent-cyan);
    color: var(--light-text);
}

.filter-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--dark-bg);
}

/* Portfolio Grid */
.portfolio-section {
    padding: 60px 0 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--dark-surface);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.2);
}

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

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

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

.overlay-content {
    text-align: center;
    padding: 2rem;
}

.overlay-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

.portfolio-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-gradient);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 255, 204, 0.3);
}

.portfolio-info {
    padding: 1.5rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.5) 50%, transparent 100%);
    position: relative;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    min-height: 250px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.testimonial-author strong {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--muted-text);
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1.25rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-cyan);
    width: 30px;
    border-radius: 5px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    position: relative;
}

.cta-content {
    text-align: center;
    padding: 4rem;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--muted-text);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-gradient);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        padding: 0 20px;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .cta-content {
        padding: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}