/*============================
Portfolio Page Styles
============================*/

/* Portfolio Hero Section */
.portfolio-hero-section {
    padding-top: 150px;
    padding-bottom: 60px;
    background: radial-gradient(circle at top right, rgba(88, 101, 242, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(235, 69, 158, 0.1), transparent 50%);
}

.portfolio-hero-section .section-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #72767D;
}

/* Portfolio Filter Section */
.portfolio-filter-section {
    padding: 20px 0 40px;
}

.search-container {
    background-color: #F6F6F6;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #E3E5E8;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.search-box button {
    background: linear-gradient(90deg, #5865F2, #EB459E);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(90deg, #4752c4, #d03b8b);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    margin-right: 10px;
    font-weight: 500;
    color: #2E3137;
    white-space: nowrap;
}

.filter-group select {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #E3E5E8;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* Portfolio Gallery */
.portfolio-gallery {
    padding-bottom: 80px;
}

.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results i {
    font-size: 3rem;
    color: #E3E5E8;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2E3137;
}

.no-results p {
    color: #72767D;
}

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

@media (max-width: 800px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

.portfolio-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 49, 55, 0.8);
    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: 20px;
    color: #FFFFFF;
}

.overlay-content h3 {
    margin-bottom: 10px;
    color: #FFFFFF;
}

.overlay-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.overlay-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-preview, .btn-whatsapp {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-preview {
    background-color: transparent;
    border: 2px solid #FFFFFF;
    color: #000000;
}

.btn-preview:hover {
    background-color: #FFFFFF;
    color: #0055ff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    border-color: #1da851;
}

.portfolio-info {
    padding:5px;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-category {
    font-size: 0.85rem;
    color: #72767D;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #5865F2, #EB459E);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.cta-section .btn-primary {
    background-color: white;
    color: #5865F2;
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Preview Modal */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}
#modal-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin-bottom: 20px;
}
#modal-title {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #222;
}
#modal-description {
    color: #555;
    font-size: 1rem;
}

.portfolio-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.preview-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}
.preview-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}
#preview-modal-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    margin-bottom: 10px;
}
@media (max-width: 600px) {
    .preview-modal-content {
        max-width: 95vw;
        padding: 10px;
    }
    #preview-modal-image {
        max-height: 180px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portfolio-hero-section {
        padding-top: 120px;
    }
    
    .search-container {
        padding: 15px;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .portfolio-image {
        height: 100px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .portfolio-hero-section {
        padding-top: 100px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 8px;
        padding: 10px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    body .portfolio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

.new-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}
@media (max-width: 800px) {
    .new-portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}
.new-portfolio-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
}
.new-portfolio-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.new-portfolio-info {
    padding: 5px;
}
.new-portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.new-portfolio-info p {
    color: #72767D;
    font-size: 0.95rem;
}
.new-portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.new-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}
.new-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}
#new-modal-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin-bottom: 20px;
}
#new-modal-title {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #222;
}
#new-modal-description {
    color: #555;
    font-size: 1rem;
}