/*
* SERYIL DESIGN - Portfolio Page Styles
* This file contains styles specific to the portfolio/our-works page
*/

/* Header styling for portfolio page */
.header-portfolio {
    background-color: rgba(33, 37, 41, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero section for portfolio page */
.portfolio-hero {
    height: 50vh;
    min-height: 400px;
    background: url('../img/portfolio-hero.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    margin-bottom: 0;
}

.portfolio-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 0;
}

.z-index-1 {
    z-index: 1;
    position: relative;
}

/* Filter buttons styling */
.portfolio-filter {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color);
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn:hover::after {
    width: 30px;
}

.filter-btn.active {
    color: var(--primary-color);
    background-color: rgba(197, 164, 126, 0.1);
}

.filter-btn.active::after {
    width: 30px;
}

/* Portfolio gallery styling */
.portfolio-gallery {
    background-color: #f8f9fa;
    padding-top: 30px;
}

/* Portfolio items styling */
.portfolio-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 10px;
    height: 350px;
}

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

.portfolio-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

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

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

.portfolio-overlay {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
                rgba(0, 0, 0, 0.8) 0%, 
                rgba(0, 0, 0, 0.4) 30%,
                rgba(0, 0, 0, 0) 100%);
    opacity: 0.9;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.portfolio-card:hover .portfolio-overlay {
    background: linear-gradient(to top, 
                rgba(197, 164, 126, 0.9) 0%, 
                rgba(197, 164, 126, 0.7) 30%,
                rgba(197, 164, 126, 0.3) 60%,
                rgba(197, 164, 126, 0) 100%);
}

.portfolio-info {
    width: 100%;
    transition: all 0.4s ease;
    transform: translateY(10px);
    opacity: 0.9;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 5px;
    padding: 4px 12px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-category {
    background-color: rgba(255, 255, 255, 1);
    color: var(--secondary-color);
}

.portfolio-title {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.portfolio-view, .portfolio-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.portfolio-card:hover .portfolio-view,
.portfolio-card:hover .portfolio-play {
    opacity: 1;
    transform: translateY(0);
}

/* Video portfolio items */
.video-item .portfolio-overlay {
    background: linear-gradient(to top, 
                rgba(33, 37, 41, 0.9) 0%, 
                rgba(33, 37, 41, 0.6) 30%,
                rgba(33, 37, 41, 0.3) 60%,
                rgba(33, 37, 41, 0) 100%);
}

.video-item:hover .portfolio-overlay {
    background: linear-gradient(to top, 
                rgba(220, 53, 69, 0.8) 0%, 
                rgba(220, 53, 69, 0.6) 30%,
                rgba(220, 53, 69, 0.3) 60%,
                rgba(220, 53, 69, 0) 100%);
}

.video-item .portfolio-category {
    background-color: rgba(220, 53, 69, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.video-item:hover .portfolio-category {
    background-color: rgba(255, 255, 255, 0.9);
    color: #dc3545;
    border-color: transparent;
}

.video-item .portfolio-play {
    background-color: #dc3545;
    width: 50px;
    height: 50px;
    font-size: 18px;
}

/* Lightbox customizations */
.lb-data .lb-caption {
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 600;
}

.lb-data .lb-details {
    padding: 15px;
}

/* Call to Action section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.cta-section h2 {
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: 700;
}

.cta-section .btn-primary {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    border-color: white;
    color: white;
}

/* Responsive adjustments for portfolio page */
@media (max-width: 992px) {
    .portfolio-hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .portfolio-card {
        height: 300px;
    }
    
    .portfolio-title {
        font-size: 18px;
    }
    
    .cta-content {
        padding: 40px 0;
    }
    
    .cta-section h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        height: 30vh;
        min-height: 250px;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 6px 15px;
    }
    
    .portfolio-card {
        height: 250px;
    }
    
    .portfolio-overlay {
        padding: 15px;
    }
    
    .portfolio-category {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .portfolio-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .portfolio-view, .portfolio-play {
        width: 35px;
        height: 35px;
    }
    
    .cta-content {
        padding: 30px 0;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
}

/* Portfolio link styling */
.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.portfolio-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Bağlantı içindeki oku simgesinin animasyonu için stil */
.portfolio-view i {
    transition: transform 0.3s ease;
}

.portfolio-link:hover .portfolio-view i {
    transform: translateX(5px);
}

/* Video kontrollerini bağlantıya tıklamadan göstermek için stil */
.portfolio-item.video-item video {
    z-index: 2;
    position: relative;
}

.portfolio-item.video-item .portfolio-overlay {
    z-index: 1;
}

/* Play ikonu için özel stil */
.portfolio-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.portfolio-link:hover .portfolio-play {
    opacity: 1;
    transform: translateY(0);
}