/**
 * Portfolio Detail Page Styles
 */

/* Project Header */
.project-header {
    padding: 120px 0 80px;
    background: var(--bg-light, #f8f9fa);
    border-bottom: 1px solid var(--border, #e0e0e0);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light, #666);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: var(--transition, all 0.3s ease);
}

.back-link:hover {
    color: var(--accent, #ff6b35);
}

.back-link i {
    font-size: 0.85rem;
}

.project-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .project-header-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.project-header-text {
    flex: 1;
}

.project-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary, #1a1a1a);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary, #1a1a1a);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--text-light, #666);
    line-height: 1.6;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .project-subtitle {
        font-size: 1rem;
    }
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text, #333);
}

.meta-item i {
    color: var(--accent, #ff6b35);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.project-tags .tag {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text, #333);
    font-weight: 500;
}

.project-header-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bg-light, #f8f9fa);
    border: 1px solid var(--border, #e0e0e0);
}

.project-header-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Content */
.project-content {
    padding: 80px 0;
}

.project-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary, #1a1a1a);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent, #ff6b35);
}

@media (max-width: 768px) {
    .project-content h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

.project-description {
    margin-bottom: 80px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text, #333);
}

/* Gallery */
.project-gallery {
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--bg-light, #f8f9fa);
    border: 1px solid var(--border, #e0e0e0);
    transition: var(--transition, all 0.3s ease);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent, #ff6b35);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 15px;
    background: white;
    font-size: 0.9rem;
    color: var(--text, #333);
    text-align: center;
}

/* Videos */
.project-videos {
    margin-bottom: 80px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.video-item {
    background: white;
    border: 1px solid var(--border, #e0e0e0);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary, #1a1a1a);
    margin: 20px 20px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-item p {
    font-size: 1rem;
    color: var(--text-light, #666);
    line-height: 1.6;
    margin: 0 20px 20px;
}

/* Links */
.project-links {
    margin-bottom: 80px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid var(--border, #e0e0e0);
    text-decoration: none;
    color: var(--text, #333);
    transition: var(--transition, all 0.3s ease);
    font-weight: 500;
}

.link-item:hover {
    border-color: var(--accent, #ff6b35);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--accent, #ff6b35);
}

.link-item i:first-child {
    font-size: 1.5rem;
    color: var(--accent, #ff6b35);
}

.link-item span {
    flex: 1;
}

.link-item i:last-child {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Link type colors */
.link-item.link-instagram:hover {
    border-color: #E4405F;
    color: #E4405F;
}

.link-item.link-instagram i:first-child {
    color: #E4405F;
}

.link-item.link-facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.link-item.link-facebook i:first-child {
    color: #1877F2;
}

.link-item.link-youtube:hover {
    border-color: #FF0000;
    color: #FF0000;
}

.link-item.link-youtube i:first-child {
    color: #FF0000;
}

.link-item.link-behance:hover {
    border-color: #1769FF;
    color: #1769FF;
}

.link-item.link-behance i:first-child {
    color: #1769FF;
}

.link-item.link-dribbble:hover {
    border-color: #EA4C89;
    color: #EA4C89;
}

.link-item.link-dribbble i:first-child {
    color: #EA4C89;
}

/* Project CTA */
.project-cta {
    padding: 80px 0;
    background: var(--primary, #1a1a1a);
    color: white;
    text-align: center;
}

.project-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .project-cta h2 {
        font-size: 1.8rem;
    }
}

.project-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .project-cta p {
        font-size: 1rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    font-size: 1rem;
    margin-top: 20px;
    padding: 0 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition, all 0.3s ease);
    z-index: 100000;
}

.lightbox-close:hover {
    color: var(--accent, #ff6b35);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition, all 0.3s ease);
    z-index: 100000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent, #ff6b35);
    border-color: var(--accent, #ff6b35);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}




