﻿/* ===== Extracted from pages/projects/show.blade.php ===== */

.page-hero {
    position: relative;
    padding: 140px 0 90px;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(0, 255, 0, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.page-hero-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    padding: 8px 20px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 50px;
    background: rgba(0, 255, 0, 0.05);
}

.page-hero-title {
    font-size: clamp(28px, 5vw, 52px);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 50%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 0 40px rgba(0, 255, 0, 0.3);
}

.page-hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}

.page-breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: var(--primary-color);
}

.page-breadcrumb .separator {
    color: var(--primary-color);
    font-size: 10px;
}

.page-breadcrumb .current {
    color: var(--primary-color);
}

/* ===== Project Detail Grid ===== */
.project-detail-section {
    padding: 60px 0 100px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr min(380px, 100%);
    gap: 40px;
    align-items: start;
}

/* Featured Image */
.project-featured-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
    max-height: 420px;
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 420px;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.featured-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.project-featured-image:hover .featured-image-overlay {
    opacity: 1;
}

.project-featured-image:hover .featured-image-wrapper img {
    transform: scale(1.05);
}

.overlay-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Content Blocks */
.project-content {
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.project-content-title {
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-content-title i {
    font-size: 18px;
}

.project-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text-light);
}

.project-description p {
    margin-bottom: 16px;
}

.project-description h3,
.project-description h4 {
    color: #ffffff;
    margin: 24px 0 12px;
}

.project-description ul,
.project-description ol {
    margin: 16px 0;
    padding-left: 24px;
}

.project-description li {
    margin-bottom: 8px;
}

/* ===== Project Video ===== */
.project-video {
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.project-video-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.project-video-wrapper iframe,
.project-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ===== Project Gallery ===== */
.project-gallery {
    padding: 32px;
    border-radius: 16px;
}

.project-gallery-title {
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gallery-count {
    font-size: 11px;
    padding: 4px 12px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.project-gallery-item {
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.1);
    transition: all 0.4s ease;
}

.gallery-item-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 255, 0, 0.2);
    transform: translateY(-4px);
}

.gallery-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item-wrapper:hover img {
    transform: scale(1.15);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item-wrapper:hover .gallery-item-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 18px;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item-wrapper:hover .overlay-icon {
    transform: scale(1);
    background: var(--primary-color);
    color: #000;
}

/* ===== Sidebar ===== */
.sidebar-widget {
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.sidebar-widget-title {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-quick-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-quick-info li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.project-quick-info li:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.info-value {
    font-size: 13px;
    color: #ffffff;
    text-align: right;
}

.status-badge.completed {
    color: #00ff88;
    font-weight: 700;
}

.status-badge.ongoing,
.status-badge.in-progress {
    color: #00d4ff;
    font-weight: 700;
}

.status-badge.upcoming {
    color: #ffcc00;
    font-weight: 700;
}

.status-badge.active {
    color: #00ff88;
    font-weight: 700;
}

.status-badge.inactive {
    color: #ff6b6b;
    font-weight: 700;
}

/* ===== Category Tags ===== */
.project-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(0, 255, 0, 0.08);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 50px;
}

/* ===== CTA Widget ===== */
.cta-widget {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.08), rgba(0, 153, 255, 0.08));
}

.cta-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.2);
}

.cta-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.cta-widget h4 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 12px;
}

.cta-widget p {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* ===== Contact Quick Info ===== */
.contact-quick-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-quick-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.contact-quick-info li i {
    color: var(--primary-color);
    font-size: 14px;
    width: 20px;
}

.contact-quick-info li span {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ===== Related Projects ===== */
.related-projects-section {
    padding: 80px 0 100px;
    border-top: 1px solid rgba(0, 255, 0, 0.08);
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.project-page-card {
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-page-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.15);
}

.project-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-page-card:hover .project-card-img img {
    transform: scale(1.08);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.05), rgba(0, 153, 255, 0.05));
    font-size: 40px;
    color: rgba(0, 255, 0, 0.2);
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-page-card:hover .project-img-overlay {
    opacity: 1;
}

.project-view-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-view-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.project-card-body {
    padding: 24px;
}

.project-card-title {
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card-title a:hover {
    color: var(--primary-color);
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-item {
    font-size: 12px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 11px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .sidebar-widget {
        margin-bottom: 0;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .project-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .page-hero {
        padding: 120px 0 70px;
    }
}

@media (max-width: 480px) {
    .featured-image-wrapper {
        height: 280px;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-wrapper {
        aspect-ratio: 16/10;
    }
}

/* ===== Image Lightbox Modal ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 255, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: #000;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    z-index: 10000;
}

.cursor-pointer {
    cursor: pointer;
}
