﻿
/* ===== PROJECT DETAILS PAGE STYLES ===== */
/* Light Mode */
html[data-bs-theme="light"] {
    --project-bg: #ffffff;
    --project-alt-bg: #f8f9fa;
    --project-text: #212529;
    --project-text-secondary: #6c757d;
    --project-border: #dee2e6;
    --project-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

/* Dark Mode */
html[data-bs-theme="dark"] {
    --project-bg: #1a1a2e;
    --project-alt-bg: #16213e;
    --project-text: #f8f9fa;
    --project-text-secondary: #adb5bd;
    --project-border: #2d3748;
    --project-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* ===== HERO SECTION ===== */
.project-hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

.project-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .project-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        animation: slowZoom 20s ease-in-out infinite alternate;
    }

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.95) 100% );
    z-index: 2;
}

.project-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 3rem 0 4rem;
}

/* Breadcrumb */
.project-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .breadcrumb-link:hover {
        color: #ed9300;
    }

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: #ed9300;
    font-weight: 700;
}

/* Hero Badges */
.project-hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-badge {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-type {
    background: linear-gradient(135deg, #ed9300, #ffad33);
    color: white;
    box-shadow: 0 8px 25px rgba(237,147,0,0.4);
}

.badge-status {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 2px solid #22c55e;
}

.badge-important {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

.badge-prize {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 2px solid #eab308;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Hero Title */
.project-hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 30px rgba(0,0,0,0.8);
}

.project-hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 900px;
}

/* Hero Meta Grid */
.project-hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-meta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

    .hero-meta-card:hover {
        background: rgba(237, 147, 0, 0.2);
        border-color: #ed9300;
        transform: translateY(-5px);
    }

.hero-meta-icon {
    font-size: 2.5rem;
    color: #ed9300;
    margin-bottom: 0.8rem;
}

.hero-meta-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.hero-meta-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

/* ===== PROJECT INFO SECTION ===== */
.project-info-section {
    padding: 100px 0;
    background: var(--project-bg);
}

.project-info-card {
    background: var(--project-alt-bg);
    border: 2px solid var(--project-border);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--project-shadow);
    position: sticky;
    top: 100px;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--project-border);
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-label {
    font-weight: 700;
    color: var(--project-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

    .info-label i {
        font-size: 1.5rem;
        color: #ed9300;
    }

.info-value {
    font-weight: 800;
    color: var(--project-text);
    font-size: 1.1rem;
}

/* Description */
.project-description {
    background: var(--project-bg);
    border: 2px solid var(--project-border);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--project-shadow);
    margin-bottom: 3rem;
}

.description-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--project-text);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

    .description-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #ed9300, #ffad33);
        border-radius: 2px;
    }

.description-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--project-text-secondary);
}

/* Features Grid */
.project-features {
    background: var(--project-bg);
    border: 2px solid var(--project-border);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--project-shadow);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--project-alt-bg);
    border-radius: 15px;
    border: 2px solid var(--project-border);
    transition: all 0.4s ease;
}

    .feature-item:hover {
        transform: translateY(-5px);
        border-color: #ed9300;
        box-shadow: 0 10px 30px rgba(237,147,0,0.2);
    }

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ed9300, #ffad33);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .feature-icon i {
        font-size: 1.5rem;
        color: white;
    }

.feature-text {
    flex: 1;
}

.feature-title {
    font-weight: 700;
    color: var(--project-text);
    margin-bottom: 0.3rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--project-text-secondary);
}

/* Gallery */
.project-gallery-section {
    padding: 100px 0;
    background: var(--project-alt-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    /*display: block;*/
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--project-border);
    box-shadow: var(--project-shadow);
    transition: all 0.4s ease;
}

    .gallery-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(237,147,0,0.3);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
        transform-origin: center center;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .gallery-item:hover img {
        transform: scale(1.1) translateZ(0);
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(237,147,0,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: white;
}
/* Force the active LightGallery slide to remain visible during transitions */
.lg-outer .lg-inner .lg-item.lg-current .lg-object {
    opacity: 1 !important;
    visibility: visible !important;
    /* Prevents the image from being thrown out of layout bounds */
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) !important;
}

/* Ensure the wrapper respects structural LTR coordinates for its internal slider calculations */
[dir="rtl"] .lg-outer,
html[dir="rtl"] .lg-outer {
    direction: ltr !important;
}

[dir="rtl"] .lg-object {
    direction: rtl !important;
}
/* Timeline */
.project-timeline-section {
    padding: 100px 0;
    background: var(--project-bg);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        right: 50%;
        transform: translateX(50%);
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #ed9300, #ffad33);
        border-radius: 2px;
    }

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse;
    }

.timeline-content {
    width: 45%;
    background: var(--project-alt-bg);
    border: 2px solid var(--project-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--project-shadow);
    transition: all 0.4s ease;
}

    .timeline-content:hover {
        transform: translateY(-5px);
        border-color: #ed9300;
    }

.timeline-dot {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ed9300, #ffad33);
    border-radius: 50%;
    border: 5px solid var(--project-bg);
    box-shadow: 0 0 20px rgba(237,147,0,0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .timeline-dot i {
        font-size: 1.5rem;
        color: white;
    }

.timeline-date {
    font-weight: 700;
    color: #ed9300;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--project-text);
    margin-bottom: 0.8rem;
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--project-text-secondary);
    line-height: 1.6;
}

/* Awards Section */
.awards-section {
    padding: 100px 0;
    background: var(--project-alt-bg);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.award-card {
    background: var(--project-bg);
    border: 2px solid var(--project-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--project-shadow);
    transition: all 0.4s ease;
}

    .award-card:hover {
        transform: translateY(-10px);
        border-color: #eab308;
        box-shadow: 0 20px 60px rgba(234, 179, 8, 0.3);
    }

.award-icon {
    font-size: 4rem;
    color: #eab308;
    margin-bottom: 1.5rem;
    animation: trophyFloat 3s ease-in-out infinite;
}

@keyframes trophyFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.award-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--project-text);
    margin-bottom: 0.8rem;
}

.award-org {
    font-size: 1rem;
    color: var(--project-text-secondary);
    margin-bottom: 0.5rem;
}

.award-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: #eab308;
}

/* Related Projects */
.related-projects-section {
    padding: 100px 0;
    background: var(--project-bg);
}

.related-swiper {
    padding: 30px 0 60px;
}

.related-project-card {
    background: var(--project-alt-bg);
    border: 2px solid var(--project-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--project-shadow);
    transition: all 0.4s ease;
    height: 100%;
}

    .related-project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(237,147,0,0.3);
    }

.related-img {
    height: 250px;
    overflow: hidden;
}

    .related-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.related-project-card:hover .related-img img {
    transform: scale(1.1);
}

.related-content {
    padding: 2rem;
}

.related-type {
    color: #ed9300;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.related-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--project-text);
    margin-bottom: 1rem;
}

.related-desc {
    font-size: 0.9rem;
    color: var(--project-text-secondary);
    margin-bottom: 1.5rem;
}

.related-link {
    color: #ed9300;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

    .related-link:hover {
        gap: 1rem;
    }

/* CTA Section */
.project-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #ed9300 0%, #c17700 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .project-cta::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
        border-radius: 50%;
        top: -250px;
        left: -250px;
        animation: ctaFloat 8s ease-in-out infinite;
    }

@keyframes ctaFloat {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 50px);
    }
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
}

.cta-button {
    background: white;
    color: #ed9300;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    transition: all 0.4s ease;
}

    .cta-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    }

/* Responsive */
@media (max-width: 992px) {
    .project-hero-title {
        font-size: 2.5rem;
    }

    .project-info-card {
        position: relative;
        top: 0;
    }

    .timeline::before {
        right: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-right: 60px;
    }

    .timeline-dot {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .project-hero-section {
        min-height: 70vh;
    }

    .project-hero-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* Awards Read More Link */
.award-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 10px 24px;
    background: linear-gradient(135deg, #eab308, #fbbf24);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(234, 179, 8, 0.3);
}

    .award-read-more:hover {
        background: linear-gradient(135deg, #fbbf24, #eab308);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(234, 179, 8, 0.5);
        color: white;
    }

    .award-read-more i {
        font-size: 1.1rem;
    }

/* Award Modal Styling */
.award-modal-content {
    background: var(--project-bg);
    border: 3px solid #eab308;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(234, 179, 8, 0.4);
}

.award-modal-header {
    background: linear-gradient(135deg, #eab308, #fbbf24);
    color: white;
    padding: 2rem;
    border-bottom: none;
}

    .award-modal-header .modal-title {
        font-size: 1.8rem;
        font-weight: 900;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

        .award-modal-header .modal-title i {
            font-size: 2.2rem;
            animation: trophyRotate 3s ease-in-out infinite;
        }

@keyframes trophyRotate {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.award-modal-body {
    padding: 3rem;
    background: var(--project-bg);
}

.award-modal-image {
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    border: 4px solid #eab308;
    box-shadow: 0 10px 40px rgba(234, 179, 8, 0.3);
    transition: transform 0.4s ease;
}

    .award-modal-image:hover {
        transform: scale(1.05) rotate(2deg);
    }

.award-modal-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--project-text-secondary);
    text-align: justify;
}

.award-modal-footer {
    background: var(--project-alt-bg);
    border-top: 2px solid var(--project-border);
    padding: 1.5rem 2rem;
}

.award-modal-close-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
}

    .award-modal-close-btn:hover {
        background: linear-gradient(135deg, #495057, #6c757d);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
        color: white;
    }

/* Dark Mode Support for Modal */
html[data-bs-theme="dark"] .award-modal-content {
    background: var(--project-bg);
    border-color: #fbbf24;
}

html[data-bs-theme="dark"] .award-modal-description {
    color: var(--project-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .award-modal-header .modal-title {
        font-size: 1.4rem;
    }

    .award-modal-body {
        padding: 2rem 1.5rem;
    }

    .award-modal-image {
        max-width: 140px;
    }
}

.modal-dialog-centered {
    background-color: black;
    display: flex;
    align-items: center;
    min-height: calc(100% - var(--bs-modal-margin) * 2);
    color: white;
}
