/* Portfolio Page Styles */

.portfolio_area {
    padding: 120px 0 80px;
    background: url(../img/body-bg.png) no-repeat center;
    min-height: 100vh;
}

.portfolio_area .main_title {
    margin-bottom: 50px;
}

.portfolio_area .main_title h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(90deg, #4458dc 0%, #127ec9 100%);
    background: linear-gradient(90deg, #4458dc 0%, #127ec9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio_area .main_title p {
    font-size: 16px;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Filter */
.portfolio_filter {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio_filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.portfolio_filter ul li {
    padding: 12px 30px;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: #fff;
}

.portfolio_filter ul li:hover {
    border-color: #4458dc;
    color: #4458dc;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(68, 88, 220, 0.2);
}

.portfolio_filter ul li.active {
    background: linear-gradient(90deg, #4458dc 0%, #127ec9 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(68, 88, 220, 0.4);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Portfolio Item */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(68, 88, 220, 0.3);
}

.portfolio-item-inner {
    position: relative;
    overflow: hidden;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.portfolio-item.video .portfolio-item-inner {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for videos */
}

.portfolio-item img,
.portfolio-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.15);
}

/* Video Play Button */
.portfolio-item.video .portfolio-overlay::before {
    content: '\f04b';
    font-family: 'FontAwesome';
    font-size: 60px;
    color: #fff;
    position: absolute;
    z-index: 10;
}

/* Portfolio Item Title (Optional) */
.portfolio-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-item-title {
    opacity: 1;
    transform: translateY(0);
}

/* Pagination */
.portfolio-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.portfolio-pagination button {
    padding: 12px 28px;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.portfolio-pagination button:hover:not(:disabled) {
    background: linear-gradient(90deg, #4458dc 0%, #127ec9 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(68, 88, 220, 0.4);
}

.portfolio-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.portfolio-pagination .page-numbers {
    display: flex;
    gap: 10px;
}

.portfolio-pagination .page-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-pagination .page-number.active {
    background: linear-gradient(90deg, #4458dc 0%, #127ec9 100%);
    color: #fff;
    border-color: transparent;
}

.portfolio-pagination .page-info {
    font-size: 14px;
    color: #777;
    font-weight: 500;
}



/* Loading State */
.portfolio-loading {
    text-align: center;
    padding: 80px 20px;
    color: #777;
    font-size: 18px;
}

.portfolio-loading::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border: 4px solid #e8e8e8;
    border-top-color: #4458dc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.portfolio-empty {
    text-align: center;
    padding: 100px 20px;
    color: #777;
}

.portfolio-empty i {
    font-size: 80px;
    background: linear-gradient(90deg, #4458dc 0%, #127ec9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    display: block;
}

.portfolio-empty h3 {
    font-size: 28px;
    color: #000;
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-empty p {
    font-size: 16px;
    color: #777;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .portfolio_area {
        padding: 100px 0 60px;
    }
    
    .portfolio_area .main_title h2 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .portfolio_area {
        padding: 80px 0 40px;
    }
    
    .portfolio_area .main_title h2 {
        font-size: 28px;
    }
    
    .portfolio_filter ul li {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .portfolio-pagination button {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Footer Styles */
.footer_area {
    padding: 40px 0;
    background: #f8f9fa;
    margin-top: 80px;
}

.footer-text {
    color: #777;
    font-size: 14px;
}

.footer-text .fa-heart {
    color: #e74c3c;
    margin: 0 5px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@media (max-width: 576px) {
    .footer_area {
        padding: 30px 0;
        margin-top: 60px;
    }
    
    .footer-text {
        font-size: 12px;
    }
}


