/**
 * Portfolio CSS - THINKCLUSIVE Website
 * Comprehensive styling for portfolio pages
 */

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

/* Hero Section */
.portfolio-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.portfolio-hero .hero-content {
    z-index: 2;
    position: relative;
}

.portfolio-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.portfolio-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    margin-bottom: 25px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.bg-shape.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.bg-shape.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation: float 6s ease-in-out infinite reverse;
}

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

/* Filter Navigation */
.portfolio-filters {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid transparent;
    background: white;
    color: #6c757d;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-btn .count {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

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

.filter-btn.active .count,
.filter-btn:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.portfolio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.sort-options select {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    min-width: 150px;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

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

.portfolio-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.portfolio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

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

.portfolio-actions {
    display: flex;
    gap: 10px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffc107;
    color: #212529;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.portfolio-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-meta .badge {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.project-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.portfolio-title {
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.portfolio-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-title a:hover {
    color: #667eea;
}

.portfolio-client {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.portfolio-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty-state i {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* Success Stories Section */
.success-stories {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.success-stat {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.success-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.success-stat .stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Testimonials Section */
.portfolio-testimonials {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating .fa-star {
    color: #ffc107;
    margin-right: 2px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #495057;
}

.testimonial-author strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* CTA Section */
.portfolio-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.portfolio-detail-page {
    background: white;
}

/* Breadcrumb */
.breadcrumb-nav {
    padding: 20px 0;
    background: #f8f9fa;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Project Header */
.project-header {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-primary {
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-featured {
    background: #ffc107;
    color: #212529;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.project-client {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-description {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.project-actions .btn {
    margin-right: 15px;
}

.project-details {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
}

.detail-value {
    text-align: right;
    color: #333;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* Project Hero Image */
.project-hero-image {
    padding: 40px 0;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Project Content */
.project-content {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

/* Project Gallery */
.project-gallery .gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

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

/* Project Features */
.project-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    height: 100%;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-content h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.feature-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Project Sidebar */
.project-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* Testimonial Card */
.testimonial-card {
    text-align: center;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.testimonial-author small {
    color: #6c757d;
}

/* Project Stats */
.project-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.project-stats .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-stats .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
}

.contact-cta h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-cta p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Related Projects */
.related-projects {
    padding: 80px 0;
    background: #f8f9fa;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.related-project-card:hover {
    transform: translateY(-5px);
}

.related-project-image {
    height: 180px;
    overflow: hidden;
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-project-content {
    padding: 20px;
}

.related-project-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.related-project-title a {
    color: inherit;
    text-decoration: none;
}

.related-project-title a:hover {
    color: #667eea;
}

.related-project-client {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.related-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* ==============================================
   RESPONSIVE DESIGN
============================================== */

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

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .portfolio-hero {
        padding: 60px 0;
    }
    
    .portfolio-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        margin-top: 40px;
    }
    
    .project-header {
        padding: 40px 0;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .portfolio-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .filter-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-hero .hero-title {
        font-size: 2rem;
    }
    
    .portfolio-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-details {
        margin-top: 30px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .tech-stack {
        justify-content: flex-start;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .portfolio-hero {
        padding: 40px 0;
    }
    
    .portfolio-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .project-header {
        padding: 30px 0;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .portfolio-actions .btn {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .project-features .feature-item {
        padding: 20px;
        gap: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .sidebar-section {
        padding: 20px;
    }
    
    .success-stat {
        padding: 20px 15px;
    }
    
    .success-stat .stat-number {
        font-size: 2.5rem;
    }
}

/* ==============================================
   ANIMATION UTILITIES
============================================== */

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

.animate-counter {
    display: inline-block;
}

/* Dark theme support (if needed) */
@media (prefers-color-scheme: dark) {
    .portfolio-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .portfolio-title a {
        color: #e2e8f0;
    }
    
    .portfolio-title a:hover {
        color: #667eea;
    }
    
    .project-details {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .sidebar-section {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .testimonial-item {
        background: #2d3748;
        color: #e2e8f0;
    }
}