/* ===== Project Page Styles - Premium Design ===== */

/* Fix for scroll issues */
html, body {
    height: auto;
    overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
}

/* Header Dark Variant */
.header-dark {
    background: transparent;
    transition: all 0.4s ease;
}

.header-dark .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.header-dark .nav-link:hover {
    color: var(--accent);
}

.header-dark .logo-white {
    display: block;
}

.header-dark .logo-dark {
    display: none;
}

.header-dark.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-dark.scrolled .nav-link {
    color: var(--gray-600);
}

.header-dark.scrolled .nav-link:hover {
    color: var(--primary);
}

.header-dark.scrolled .logo-white {
    display: none;
}

.header-dark.scrolled .logo-dark {
    display: block;
}

/* Project Hero - Immersive */
.project-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 100px;
    background: var(--primary);
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(1.05);
}

.project-hero:hover .project-hero-bg {
    transform: scale(1);
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        var(--primary) 0%,
        rgba(26, 26, 46, 0.85) 30%,
        rgba(26, 26, 46, 0.5) 60%,
        rgba(26, 26, 46, 0.3) 100%
    );
}

.project-hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateX(-5px);
}

.project-category-badge {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.meta-item i {
    color: var(--accent);
    font-size: 1.125rem;
}

/* Project Content */
.project-content {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
}

/* Stats Floating */
.project-stats-floating {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.stat-chip i {
    color: var(--accent);
    font-size: 0.875rem;
}

/* Unified Project Card */
.project-unified-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: visible;
    border: 1px solid var(--gray-100);
    position: relative;
}

/* Unified Navigation - Topo do Card */
.unified-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 1rem 2rem;
    position: sticky;
    top: 80px;
    z-index: 100;
    border-radius: 24px 24px 0 0;
    margin: 0;
}

.unified-nav-inner {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
    justify-content: center;
}

.unified-nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.nav-pill.active {
    background: var(--accent);
    color: var(--primary);
}

.nav-pill i {
    font-size: 0.75rem;
}

.nav-pill[style*="display: none"] {
    display: none !important;
}

/* Unified Card Content */
.unified-card-content {
    padding: 3rem;
}

/* Unified Section */
.unified-section {
    scroll-margin-top: 150px;
}

/* Section Title Inline */
.section-title-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1), rgba(201, 169, 98, 0.05));
    border-radius: 6px;
}

.section-title-inline h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
    flex: 1;
}

.section-hint {
    font-size: 0.8125rem;
    color: var(--gray-400);
    font-style: italic;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    margin: 3rem 0;
}

/* Project Description Elegant */
.project-description-elegant {
    position: relative;
}

.project-description-elegant p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.project-description-elegant p:last-child {
    margin-bottom: 0;
}

.project-description-elegant p:first-of-type::first-letter {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--accent);
    float: left;
    line-height: 1;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

/* Project Gallery - Unified */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Before/After Elegant */
.before-after-elegant {
    max-width: 900px;
    margin: 0 auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ba-after {
    z-index: 1;
}

.ba-label {
    position: absolute;
    bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
}

.ba-before .ba-label {
    left: 1rem;
}

.ba-after .ba-label {
    right: 1rem;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.ba-handle-line {
    flex: 1;
    width: 3px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Videos Centered */
.project-videos-centered {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-videos-centered .video-item {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.project-videos-centered .video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.project-videos-centered .video-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.4);
    transition: all 0.3s ease;
}

.project-videos-centered .video-item:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Panorama Wrapper */
.pano-wrapper {
    position: relative;
}

.pano-tips {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 0.75rem;
}

.pano-tips span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.pano-tips i {
    color: var(--accent);
}

/* Legacy Stats - hide */
.project-stats {
    display: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 14px;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Section Header Premium */
.section-header-premium {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.section-header-premium.centered {
    flex-direction: column;
    text-align: center;
    margin-bottom: 3rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-text h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.section-text p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.project-section {
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Panorama Instructions */
.pano-instructions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.instruction-item i {
    color: var(--accent);
}

.section-title-sm {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.section-title-sm i {
    color: var(--accent);
}

/* Project Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0);
    transition: var(--transition);
}

.gallery-item:hover::after {
    background: rgba(26, 26, 46, 0.3);
}

.gallery-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
    z-index: 1;
    transition: var(--transition);
}

.gallery-item:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* Featured gallery item */
.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* Before/After Slider */
.before-after-container {
    max-width: 900px;
    margin: 0 auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: var(--shadow-xl);
    background: #1a1a2e;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1a1a2e;
}

.ba-before {
    z-index: 1;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.ba-after {
    z-index: 0;
}

.ba-label {
    position: absolute;
    bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
}

.ba-before .ba-label {
    left: 1.5rem;
}

.ba-after .ba-label {
    right: 1.5rem;
}

/* Transformation Timeline - Before/During/After */
.transformation-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(26, 26, 46, 0.05);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.timeline-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-tab i {
    font-size: 1rem;
}

.timeline-tab:hover {
    color: var(--primary);
}

.timeline-tab.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.timeline-content {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #1a1a2e;
}

.timeline-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.timeline-panel.active {
    display: block;
}

.timeline-panel img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.timeline-panel-label {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    z-index: 5;
}

/* During Gallery (multiple images) */
.during-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.during-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.during-gallery img:hover {
    transform: scale(1.02);
}

/* Compare Mode (slider) */
.compare-mode {
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .timeline-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .timeline-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .timeline-tab span {
        display: none;
    }
    
    .timeline-tab i {
        margin: 0;
    }
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ba-handle-line {
    flex: 1;
    width: 3px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Videos */
.project-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.video-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-900);
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.video-item:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.75rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.4);
}

.video-item:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Panorama */
.panorama-container {
    max-width: 900px;
    margin: 0 auto;
}

.panorama-link {
    display: block;
}

.panorama-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    color: var(--white);
    text-align: center;
    transition: var(--transition);
}

.panorama-preview:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.panorama-preview i {
    font-size: 3rem;
    color: var(--accent);
}

.panorama-preview span {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Related Projects */
.related-projects {
    padding: 100px 0;
    background: var(--white);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.related-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.08);
}

.related-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .related-card-overlay {
    opacity: 1;
}

.related-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
}

.related-card-info {
    padding: 1.5rem;
}

.related-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.related-card:hover .related-card-info h3 {
    color: var(--accent-dark);
}

.related-card-info p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.related-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* Project CTA - Premium */
.project-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 32px;
    padding: 5rem 4rem;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.cta-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(201, 169, 98, 0.2);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-content h2 .highlight {
    color: var(--accent);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.cta-actions .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.cta-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.cta-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.deco-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.deco-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: 100px;
}

.deco-circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 200px;
    transform: translateY(-50%);
    background: rgba(201, 169, 98, 0.05);
}

/* Image Modal */
.image-modal,
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.image-modal.active,
.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 100%;
    max-height: 85vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.25rem;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-nav:hover {
    background: var(--accent);
    color: var(--primary);
}

.modal-prev {
    left: -70px;
}

.modal-next {
    right: -70px;
}

.modal-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* Video Modal */
.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--gray-900);
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer Simple */
.footer-simple {
    padding: 2rem 0;
    background: var(--primary);
    color: var(--white);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    height: 35px;
    filter: brightness(0) invert(1);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-card {
        padding: 4rem 3rem;
    }
    
    .cta-decoration {
        display: none;
    }
    
    .unified-card-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 60vh;
        padding: 100px 0 60px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-meta {
        gap: 0.5rem;
    }
    
    .meta-item {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .project-content {
        padding: 40px 0 60px;
    }
    
    .project-content > .container {
        padding: 0 1rem;
    }
    
    /* Unified Card Mobile */
    .project-unified-card {
        border-radius: 16px;
    }
    
    .unified-nav {
        padding: 0.75rem 1rem;
        top: 60px;
        border-radius: 16px 16px 0 0;
    }
    
    .unified-nav-inner {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .nav-pill {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    .nav-pill span {
        display: none;
    }
    
    .nav-pill i {
        font-size: 1rem;
        margin: 0;
    }
    
    .unified-card-content {
        padding: 1.5rem;
    }
    
    .section-title-inline {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .section-title-inline h3 {
        font-size: 1.25rem;
    }
    
    .section-hint {
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .section-divider {
        margin: 2rem 0;
    }
    
    /* Gallery Mobile */
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
    
    .gallery-item.featured {
        grid-column: span 2;
    }
    
    /* Description Mobile */
    .project-description-elegant p {
        font-size: 1rem;
    }
    
    .project-description-elegant p:first-of-type::first-letter {
        font-size: 2.5rem;
    }
    
    /* Before/After Mobile */
    .before-after-slider {
        border-radius: 12px;
    }
    
    .ba-handle-circle {
        width: 40px;
        height: 40px;
    }
    
    /* Videos Mobile */
    .project-videos-centered .video-item {
        border-radius: 12px;
    }
    
    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    /* Panorama Mobile */
    .pano-tips {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pano-tips span {
        font-size: 0.75rem;
    }
    
    /* Stats Mobile */
    .project-stats-floating {
        gap: 0.5rem;
    }
    
    .stat-chip {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Related & CTA */
    .related-projects {
        padding: 60px 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-cta {
        padding: 60px 0;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Modal Mobile */
    .modal-nav {
        width: 36px;
        height: 36px;
    }
    
    .modal-prev {
        left: 5px;
    }
    
    .modal-next {
        right: 5px;
    }
}

/* Fullscreen video on mobile */
@media (max-width: 768px) {
    .video-modal.fullscreen .video-modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
    }
    
    .video-modal.fullscreen .video-wrapper {
        padding-bottom: 0;
        height: 100%;
        border-radius: 0;
    }
    
    .video-modal.fullscreen .modal-close {
        top: 10px;
        right: 10px;
        z-index: 10;
    }
}

/* Gallery Premium Styles */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

/* Before/After Premium */
.before-after-container {
    max-width: 100%;
    margin: 0 auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.ba-label {
    position: absolute;
    bottom: 1.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 50px;
}

.ba-handle-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.before-after-slider:active .ba-handle-circle {
    transform: scale(1.1);
}

/* Videos Premium */
.project-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.video-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: all 0.4s ease;
}

.video-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.4);
}

.video-play-btn i {
    margin-left: 4px;
}

.video-item:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 50px rgba(201, 169, 98, 0.5);
}

.video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

/* MP4 Video Player */
.mp4-player {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
}

.video-modal.vertical-video .video-wrapper {
    padding-bottom: 0;
    height: 90vh;
    max-width: 400px;
    margin: 0 auto;
}

.video-modal.vertical-video .mp4-player {
    height: 100%;
    max-height: none;
}
