/* Portfolio Enhanced Styles */

/* Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.portfolio-hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #f8f9fa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio Controls */
.portfolio-controls {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #ececec;
}

.controls-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}



/* Filter Buttons */
.filter-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ececec;
    background: white;
    color: #6c757d;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: #d32f2f;
    color: #d32f2f;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
    box-shadow: 0 4px 15px rgba(211,47,47,0.3);
}

.filter-btn i {
    font-size: 0.8rem;
}

/* View Options */
.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ececec;
    background: white;
    color: #6c757d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    border-color: #d32f2f;
    color: #d32f2f;
}

.view-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #ececec;
    color: #6c757d;
    font-size: 0.9rem;
}



/* Portfolio Grid Enhancements */
.portfolio-section {
    padding: 60px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-grid.masonry {
    columns: 3;
    column-gap: 30px;
}

.portfolio-grid.masonry .portfolio-item {
    break-inside: avoid;
    margin-bottom: 30px;
}

.portfolio-grid.list {
    grid-template-columns: 1fr;
    gap: 20px;
}

.portfolio-grid.list .portfolio-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.portfolio-grid.list .portfolio-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.portfolio-grid.list .portfolio-item .overlay {
    flex: 1;
    padding: 20px;
    background: none;
    position: static;
    opacity: 1;
    transform: none;
}

/* Portfolio Item Enhancements */
.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

/* Category Badge */
.item-category {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}

.category-badge {
    background: rgba(211,47,47,0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.view-project {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 25px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-project:hover {
    transform: scale(1.05);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
    color: #6c757d;
}

.no-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #181a1b;
}

.btn-reset-filters {
    margin-top: 20px;
    padding: 10px 25px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* Navigation Controls */
.navigation-controls {
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    color: #6c757d;
    font-size: 0.9rem;
}

.nav-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.nav-btn {
    padding: 12px 20px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211,47,47,0.3);
}

.nav-btn:disabled {
    background: #ececec;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 2px solid #ececec;
    background: white;
    color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-number:hover {
    border-color: #d32f2f;
    color: #d32f2f;
}

.page-number.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

.page-number.dots {
    border: none;
    background: none;
    cursor: default;
    font-weight: normal;
}

.page-number.dots:hover {
    color: #6c757d;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .page-numbers {
        order: -1;
        margin-bottom: 10px;
    }
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    height: 100%;
}

.modal-image {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-info {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.modal-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #181a1b;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.project-category,
.project-date {
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.project-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #666;
}

.detail-item i {
    color: #d32f2f;
    width: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #d32f2f;
    color: white;
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #ececec;
}

.btn-secondary:hover {
    background: #ececec;
    color: #181a1b;
}

/* Quick Stats Section */
.quick-stats {
    background: #f8f9fa;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #181a1b;
}

.stat-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.stat-content .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d32f2f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .controls-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    

    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .results-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .portfolio-grid.masonry {
        columns: 2;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid.masonry {
        columns: 1;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .view-options {
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number.animated {
    animation: countUp 0.5s ease;
} 