/* ========================================
   PROJECT DETAILS PAGE - PREMIUM STYLING
   Detailed project showcase pages
   ======================================== */

/* ===== PROJECT HERO SECTION ===== */
.project-hero-detailed {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--bg-dark);
}

.project-hero-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-hero-gallery .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-hero-gallery .hero-slide.active {
    opacity: 1;
}

.project-hero-gallery .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.3) 0%,
        rgba(10, 22, 40, 0.5) 50%,
        rgba(10, 22, 40, 0.95) 100%
    );
    z-index: 2;
}

.project-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(209, 160, 4, 0.2) 0%, rgba(209, 160, 4, 0.1) 100%);
    border: 1px solid var(--gold-primary);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-badge i {
    font-size: 1rem;
}

.project-hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.project-hero-location {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.project-hero-location i {
    color: var(--gold-primary);
}

.project-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-stat-value {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-primary);
}

/* Hero Navigation Dots */
.hero-nav-dots {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-dot.active,
.hero-nav-dot:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: scale(1.2);
}

/* ===== PROJECT DETAILS GRID ===== */
.project-details-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.project-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content */
.project-main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.content-block {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(209, 160, 4, 0.1);
}

.content-block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gold-primary);
}

.content-block-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 12px;
    font-size: 1.4rem;
    color: var(--bg-dark);
}

.content-block-header h2 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Scope of Work List */
.scope-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.scope-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.scope-list li:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.scope-list li i {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.material-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.material-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(209, 160, 4, 0.15);
}

.material-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(209, 160, 4, 0.2) 0%, rgba(209, 160, 4, 0.05) 100%);
    border-radius: 50%;
    font-size: 1.6rem;
    color: var(--gold-primary);
}

.material-item h4 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.material-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== SIDEBAR ===== */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(209, 160, 4, 0.1);
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-card-header i {
    color: var(--gold-primary);
    font-size: 1.3rem;
}

.sidebar-card-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

/* Project Info Card */
.project-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Investment Card */
.investment-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(209, 160, 4, 0.05) 100%);
    border: 2px solid rgba(209, 160, 4, 0.3);
}

.investment-amount {
    text-align: center;
    padding: 20px 0;
}

.investment-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.investment-value {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.investment-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-family: var(--font-secondary);
    font-size: 3rem;
    color: var(--gold-primary);
    opacity: 0.5;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    text-align: center;
}

.cta-card h3 {
    color: var(--bg-dark) !important;
    margin-bottom: 15px;
}

.cta-card p {
    color: rgba(10, 22, 40, 0.8);
    margin-bottom: 25px;
}

.cta-card .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-card .btn-cta:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.cta-phone a {
    color: var(--bg-dark);
    text-decoration: none;
}

/* ===== BEFORE/AFTER GALLERY ===== */
.before-after-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.before-after-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: ew-resize;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-slider .after-image {
    clip-path: inset(0 50% 0 0);
}

.comparison-slider .slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--gold-primary);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.comparison-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, transparent 100%);
    z-index: 5;
}

.comparison-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
}

.comparison-label.before {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.comparison-label.after {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

/* ===== PROJECT GALLERY ===== */
.project-gallery-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 22, 40, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-overlay i {
    font-size: 2rem;
    color: var(--gold-primary);
}

/* ===== RELATED PROJECTS ===== */
.related-projects-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.related-project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
}

.related-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(209, 160, 4, 0.15);
}

.related-project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.related-project-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold-primary);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.related-project-content {
    padding: 25px;
}

.related-project-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.related-project-card:hover .related-project-content h3 {
    color: var(--gold-primary);
}

.related-project-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.related-project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-project-meta i {
    color: var(--gold-primary);
}

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23d1a004" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.5;
}

.final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.final-cta-content h2 {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.final-cta-content h2 span {
    color: var(--gold-primary);
}

.final-cta-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gold-gradient);
    color: var(--bg-dark);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(209, 160, 4, 0.3);
}

.btn-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(209, 160, 4, 0.4);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--gold-primary);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
    background: rgba(209, 160, 4, 0.1);
    transform: translateY(-3px);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease;
}

.lightbox-nav:hover {
    color: var(--gold-primary);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 1;
    }
}

@media (max-width: 992px) {
    .project-hero-detailed {
        min-height: 70vh;
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
    }
    
    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scope-list {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-hero-detailed {
        min-height: 60vh;
    }
    
    .project-hero-content {
        padding: 40px 20px 60px;
    }
    
    .project-quick-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-sidebar {
        grid-template-columns: 1fr;
    }
    
    .content-block {
        padding: 30px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-slider {
        height: 300px;
    }
    
    .hero-nav-dots {
        bottom: 100px;
        right: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-cta,
    .btn-secondary-cta {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-hero-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stat-value {
        font-size: 1.2rem;
    }
    
    .investment-value {
        font-size: 1.6rem;
    }
}
