/* Portfolio Page Specific Styles */

/* Base overrides and layout */
.py-6 {
    padding-top: clamp(3rem, 8vw, 8rem);
    padding-bottom: clamp(3rem, 8vw, 8rem);
}

.font-light {
    font-weight: 300;
}

/* Cinematic Hero Section */
.portfolio-hero-section {
    position: relative;
    min-height: 80vh;
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 991px) {
    .portfolio-hero-section {
        min-height: 80vh;
        padding-top: 120px;
    }
}

.portfolio-hero-section .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.portfolio-hero-section .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    transform: scale(1.05);
    animation: zoomOutSlow 20s infinite alternate linear;
}

@keyframes zoomOutSlow {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

.portfolio-hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.2) 50%, #050505 100%);
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 4;
}

.scroll-line {
    width: 100px;
    height: 1px;
    background: rgba(197, 160, 89, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30px;
    background: var(--color-primary);
    animation: scrollSlide 2s infinite ease-in-out;
}

@keyframes scrollSlide {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(100px); }
}

/* Featured Projects Showcase */
.featured-projects {
    background: #050505;
}

.featured-project-row {
    position: relative;
    margin-bottom: clamp(4rem, 10vw, 10rem);
}

.featured-project-row:last-child {
    margin-bottom: 0;
}

.featured-img-wrapper {
    position: relative;
    height: clamp(400px, 60vw, 800px);
    overflow: hidden;
    border-radius: 4px;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.featured-img-wrapper:hover img {
    transform: scale(1.03);
}

.featured-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,5,5,0.8) 0%, transparent 40%);
}

.featured-project-row.reverse .featured-img-overlay {
    background: linear-gradient(270deg, rgba(5,5,5,0.8) 0%, transparent 40%);
}

@media (max-width: 991px) {
    .featured-img-overlay, .featured-project-row.reverse .featured-img-overlay {
        background: linear-gradient(180deg, transparent 0%, rgba(5,5,5,0.9) 100%);
    }
}

.featured-content-panel {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    margin-left: -10vw;
    z-index: 2;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.featured-project-row.reverse .featured-content-panel {
    margin-left: 0;
    margin-right: -10vw;
}

@media (max-width: 991px) {
    .featured-content-panel, .featured-project-row.reverse .featured-content-panel {
        margin: -10vw 1rem 0 1rem;
    }
}

/* Luxury Portfolio Grid */
.portfolio-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.portfolio-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: clamp(300px, 40vw, 450px);
    cursor: pointer;
}

.grid-item.col-lg-8 .portfolio-card {
    height: clamp(400px, 50vw, 600px);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    opacity: 0.8;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
    background: linear-gradient(0deg, rgba(197, 160, 89, 0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.portfolio-card-content {
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .portfolio-card-content {
    transform: translateY(0);
}

/* Before & After Showcase */
.transformation-section {
    background: #0a0a0a;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: clamp(300px, 45vw, 600px);
    border-radius: 4px;
    overflow: hidden;
    cursor: ew-resize;
    container-type: inline-size;
}

.before-after-container img {
    width: 100cqw;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.before-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Initial split */
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid var(--color-primary);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%; /* Initial split */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: #000;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

.label-before, .label-after {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 4;
}

.label-before {
    left: 1rem;
}

.label-after {
    right: 1rem;
}

/* Case Study Section */
.case-study-section {
    background: #050505;
}

.case-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/recent-tranform4.jpeg') center/cover;
    filter: brightness(0.3);
    z-index: 1;
}

@media (min-width: 992px) {
    .case-bg-image {
        width: 60%;
        filter: brightness(0.8);
    }
    
    .case-bg-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, #050505 100%);
    }
}

.case-study-panel {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Client Testimonials */
.achievements-section {
    background: #0a0a0a;
}

.stat-luxury-card {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
}

.stat-luxury-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.3);
    background: rgba(30, 30, 30, 0.6);
}

.stat-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
    filter: blur(30px);
    transition: all 0.4s ease;
}

.stat-luxury-card:hover .stat-glow {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(197, 160, 89, 0.25) 0%, transparent 70%);
}

.testimonial-card-luxury {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    height: 100%;
    transition: all 0.4s ease;
}

.testimonial-card-luxury:hover {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(197, 160, 89, 0.2);
    transform: translateY(-5px);
}

/* Premium CTA Section */
.premium-cta-section {
    background: #000;
}

.cta-bg-glow {
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.cta-glass-panel {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3rem);
    border-radius: 4px;
}

@media (max-width: 1366px) {
.portfolio-hero-section {
    position: relative;
    min-height: 47vh;
}}

@media (max-width: 576px) {
    .portfolio-hero-section {
        position: relative;
        min-height: 36vh;
                padding-top: 20px;
    }
}