/* Portfolio Page Specific Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s forwards;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-background);
    line-height: 1.1;
}

.page-header h1 .highlight {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

.page-description {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(245, 241, 233, 0.9);
}

/* Portfolio Filters */
.portfolio-filters {
    padding: 3rem 0 1rem;
    background-color: var(--color-background);
    position: relative;
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(26, 43, 76, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(26, 43, 76, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.2);
}

.search-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 250px;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    background: rgba(26, 43, 76, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 43, 76, 0.1);
    border-color: var(--color-primary);
    width: 300px;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 2rem 0 5rem;
    background-color: var(--color-background);
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.project-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 76, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-actions {
    display: flex;
    gap: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.project-card:hover .project-actions {
    transform: translateY(0);
    opacity: 1;
}

.btn-circle {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-circle:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 1.75rem;
}

.project-category {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    background: rgba(26, 43, 76, 0.1);
    color: var(--color-primary);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--color-primary);
}

.project-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.no-results-message {
    text-align: center;
    padding: 5rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: rgba(26, 43, 76, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.no-results-message h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.no-results-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.reset-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: var(--color-background);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Project Modals */
.project-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 76, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--color-background);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.project-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: rgba(26, 43, 76, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-secondary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow: auto;
}

.modal-gallery {
    padding: 2rem;
    background: var(--color-background-alt);
}

.gallery-main {
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumb {
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumb:hover, .thumb.active {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    padding: 3rem 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-info h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.meta-value {
    font-size: 1rem;
    color: var(--color-text);
}

.project-description h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--color-primary);
}

.project-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.solution-list {
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.solution-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    position: relative;
}

.solution-list li::before {
    content: '•';
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: -1.25rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.result-item {
    background: rgba(26, 43, 76, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(26, 43, 76, 0.1);
    transform: translateY(-5px);
}

.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.result-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.client-testimonial {
    background: var(--color-background-alt);
    border-radius: 1rem;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    margin: 3rem 0 2rem;
}

.testimonial-quote {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-testimonial blockquote {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

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

.author-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-info span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.modal-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background-color: var(--color-background);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.75rem;
    width: 2px;
    background: var(--color-border);
    z-index: 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.timeline-number {
    width: 5.5rem;
    height: 5.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-number {
    background: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    padding-top: 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.timeline-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1920&q=80') center center/cover no-repeat;
    position: relative;
    color: var(--color-background);
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 76, 0.85);
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-background);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: var(--color-secondary);
    transform: scale(1.1) rotate(10deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-background);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(245, 241, 233, 0.8);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-background);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(245, 241, 233, 0.9);
}

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

.cta-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-background);
    border: 1px solid var(--color-background);
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}

@media (max-width: 991px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        grid-template-columns: 1fr 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-timeline::before {
        left: 2.5rem;
    }
    
    .timeline-number {
        width: 5rem;
        height: 5rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .page-description {
        font-size: 1.2rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-number {
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .modal-info {
        padding: 2rem 1.5rem;
    }
    
    .modal-info h2 {
        font-size: 1.75rem;
    }
    
    .project-meta {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links a.active {
    color: var(--color-secondary);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-links a.active {
    color: var(--color-secondary);
    background: rgba(255, 111, 97, 0.1);
}