/* Ultra Premium Project Detail - 2026 Architecture Design */
.project-detail-section {
    min-height: 100vh;
    background: var(--paper);
    position: relative;
    overflow-x: hidden;
}

/* Hero Section - Ultra Minimal & Impactful */
.project-hero {
    position: relative;
    width: 100%;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.project-hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.75) contrast(1.1);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-hero:hover .project-hero-image img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(18, 20, 22, 0.15) 40%,
        rgba(18, 20, 22, 0.7) 75%,
        rgba(18, 20, 22, 0.9) 100%
    );
    z-index: 2;
}

.project-hero-content {
    position: relative;
    z-index: 10;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Minimal Text Container - Clean Glassmorphism */
.project-hero-content::before {
    content: '';
    position: absolute;
    inset: -0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 247, 244, 0.92));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    z-index: -1;
    box-shadow: 
        0 12px 48px rgba(18, 20, 22, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Breadcrumb - Minimal */
.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--ink-soft);
    position: relative;
    z-index: 2;
}

.breadcrumb-link {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--accent-strong);
}

.breadcrumb-separator {
    color: var(--ink-soft);
    opacity: 0.4;
}

.breadcrumb-current {
    color: var(--ink);
    font-weight: 600;
}

/* Title - Ultra Clean Typography */
.project-title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

.project-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: var(--ink-soft);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

/* Content Wrapper - Creative Layout */
.project-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

/* Info Panel - Refined & Minimal */
.project-info-panel {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 
        0 2px 16px rgba(18, 20, 22, 0.04),
        0 0 0 1px rgba(18, 20, 22, 0.04);
    border: 1px solid rgba(18, 20, 22, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 32px rgba(18, 20, 22, 0.08),
        0 0 0 1px rgba(18, 20, 22, 0.06);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(18, 20, 22, 0.05);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item:first-child {
    padding-top: 0;
}

.info-label {
    font-size: 0.75rem;
    color: var(--ink-soft);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.875rem;
    color: var(--ink);
    font-weight: 700;
    text-align: left;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    background: linear-gradient(135deg, var(--accent-soft), rgba(213, 168, 108, 0.12));
    color: var(--accent-strong);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(194, 141, 77, 0.15);
}

.status-badge.completed {
    background: linear-gradient(135deg, rgba(90, 127, 115, 0.12), rgba(90, 127, 115, 0.06));
    color: #5a7f73;
    border-color: rgba(90, 127, 115, 0.15);
}

/* Architect Card - Ultra Minimal */
.architect-card {
    background: linear-gradient(135deg, var(--accent-soft), rgba(213, 168, 108, 0.1));
    border-radius: 20px;
    padding: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    box-shadow: 
        0 2px 16px rgba(194, 141, 77, 0.1),
        0 0 0 1px rgba(194, 141, 77, 0.08);
    border: 1px solid rgba(194, 141, 77, 0.12);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.architect-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 24px rgba(194, 141, 77, 0.12),
        0 0 0 1px rgba(194, 141, 77, 0.15);
}

.architect-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(194, 141, 77, 0.2);
    flex-shrink: 0;
}

.architect-info {
    display: flex;
    flex-direction: column;
}

.architect-name {
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.3;
}

/* Execution Notice - Refined */
.execution-notice {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 244, 0.95));
    border-radius: 20px;
    padding: 1.125rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 
        0 2px 16px rgba(18, 20, 22, 0.04),
        0 0 0 1px rgba(18, 20, 22, 0.04);
    border: 1px solid rgba(18, 20, 22, 0.05);
}

.execution-notice i {
    color: var(--accent-strong);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.execution-notice p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--ink);
    font-weight: 500;
}

/* Main Content - Clean & Spacious */
.project-main-content {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.section-heading {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 1.75rem 0;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.875rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: 2px;
}

.project-description {
    background: var(--surface);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 
        0 2px 16px rgba(18, 20, 22, 0.04),
        0 0 0 1px rgba(18, 20, 22, 0.04);
    border: 1px solid rgba(18, 20, 22, 0.05);
    position: relative;
    overflow: hidden;
}

.description-text {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.85;
    color: var(--ink);
    margin: 0;
    letter-spacing: 0.01em;
}

/* Gallery Section - Premium Presentation */
.project-gallery-section {
    margin-top: 0.5rem;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    box-shadow: 
        0 2px 16px rgba(18, 20, 22, 0.06),
        0 0 0 1px rgba(18, 20, 22, 0.04);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(213, 168, 108, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(18, 20, 22, 0.12),
        0 0 0 1px rgba(194, 141, 77, 0.15);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 20, 22, 0.6), rgba(18, 20, 22, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 1.75rem;
    transform: scale(0.85);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Image Modal - Ultra Premium */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-image-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-prev {
    right: 2rem;
}

.modal-next {
    left: 2rem;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10001;
}

/* Caspian Theme Variations */
.caspian-theme .architect-card {
    background: linear-gradient(135deg, rgba(90, 127, 115, 0.12), rgba(90, 127, 115, 0.06));
    border-color: rgba(90, 127, 115, 0.15);
    box-shadow: 
        0 2px 16px rgba(90, 127, 115, 0.1),
        0 0 0 1px rgba(90, 127, 115, 0.1);
}

.caspian-theme .architect-icon {
    background: linear-gradient(135deg, #5a7f73, #4a6b60);
}

.caspian-theme .section-heading::after {
    background: linear-gradient(90deg, #5a7f73, #4a6b60);
}

/* Responsive Design - Perfect Mobile Experience */
@media (max-width: 1024px) {
    .project-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-info-panel {
        position: static;
    }

    .architect-card,
    .execution-notice {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 55vh;
    }

    .project-hero-content {
        padding: 1.75rem 1.25rem 2.25rem;
    }

    .project-hero-content::before {
        border-radius: 20px;
        inset: -0.5rem;
    }

    .project-content-wrapper {
        padding: 2rem 1.25rem;
        gap: 2rem;
    }

    .info-card {
        margin: 0;
        width: 100%;
        max-width: none;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .modal-nav {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .modal-prev {
        right: 1rem;
    }

    .modal-next {
        left: 1rem;
    }

    .modal-counter {
        bottom: 1rem;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.875rem;
    }

    .project-subtitle {
        font-size: 0.875rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .architect-card {
        padding: 1rem;
    }

    .architect-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .execution-notice {
        padding: 1rem;
    }

    .execution-notice i {
        font-size: 1rem;
    }

    .execution-notice p {
        font-size: 0.75rem;
    }

    .project-description {
        padding: 1.75rem 1.25rem;
    }

    .section-heading {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}
