/* Unified Overlay System - Gradient Style */
.overlay,
.overlay-5,
.overlay-4,
.overlay-3,
.overlay-2 {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.overlay-2 {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.overlay-3 {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.overlay-4 {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.overlay-5 {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* YODEZEEN-Inspired Hero */
.yodezeen-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.yodezeen-hero-image,
.yodezeen-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yodezeen-hero-video {
    z-index: 0;
}

.yodezeen-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

.yodezeen-hero-content {
    position: relative;
    padding: 15px 30px;
    color: #fff;
    z-index: 2;
}

.yodezeen-hero-title {
    font-size: 120px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.yodezeen-hero-meta {
    display: flex;
    gap: 60px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .yodezeen-hero {
        min-height: 500px;
    }
    .yodezeen-hero-content {
        padding: 40px 20px;
    }
    .yodezeen-hero-title {
        font-size: 60px;
    }
    .yodezeen-hero-meta {
        flex-direction: column;
        gap: 15px;
    }
}

/* Project Info Bar */
.project-info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
}

.project-info-bar .info-item {
    padding: 40px 30px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.project-info-bar .info-item:last-child {
    border-right: none;
}

.project-info-bar .info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-info-bar .info-value {
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .project-info-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-info-bar .info-item {
        padding: 25px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .project-info-bar .info-item:nth-child(2n) {
        border-right: none;
    }
}

/* Content Sections */
.yodezeen-content-section {
    padding: 20px 0;
}

.yodezeen-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.yodezeen-section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.yodezeen-section-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .yodezeen-content-section {
        padding: 60px 0;
    }
    .yodezeen-content-wrapper {
        padding: 0 20px;
    }
    .yodezeen-section-title {
        font-size: 32px;
    }
    .yodezeen-section-text {
        font-size: 16px;
    }
}

/* Full Width Image/Video */
.yodezeen-full-image {
    width: 100%;
    margin: 8px 0;
}

.yodezeen-full-image img,
.yodezeen-full-image video {
    width: 100%;
    height: auto;
    display: block;
}

.yodezeen-full-image video {
    background: #000;
}

/* Stats Section */
.yodezeen-stats {
    padding: 100px 60px;
    background: #f8f8f8;
}

.yodezeen-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.yodezeen-stat-item {
    text-align: center;
}

.yodezeen-stat-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
}

.yodezeen-stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    font-weight: 600;
}

@media (max-width: 768px) {
    .yodezeen-stats {
        padding: 60px 20px;
    }
    .yodezeen-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .yodezeen-stat-number {
        font-size: 48px;
    }
}

/* Project Gallery Slider */
.project-gallery-section {
    padding: 100px 0;
    background: #fff;
}

.project-gallery-section .section-title {
    margin-bottom: 60px;
}

.project-gallery-section .section-title h6 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-weight: 600;
    opacity: 0.6;
}

.project-gallery-section .section-title h2 {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.project-gallery-slider.owl-carousel {
    margin-top: 0;
}

.project-gallery-slider .owl-stage-outer {
    overflow: visible;
}

.project-gallery-slider .single-project-item {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin: 0 2.5px;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.project-gallery-slider .single-project-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.project-gallery-slider .single-project-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.5s ease;
}

.project-gallery-slider .single-project-item:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

.project-gallery-slider .project-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    z-index: 2;
}

.project-gallery-slider .project-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 3;
}

.project-gallery-slider .single-project-item:hover .project-icon {
    transform: translate(-50%, -50%) scale(1);
}

.project-gallery-slider .project-icon i {
    font-size: 24px;
    color: #000;
}

.project-gallery-slider .hover-info {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.project-gallery-slider .single-project-item:hover .hover-info {
    transform: translateY(0);
    opacity: 1;
}

.project-gallery-slider .hover-info h4 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.project-gallery-slider .hover-info h4 span {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.8;
    text-transform: none;
    letter-spacing: 0.05em;
}

.project-gallery-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.project-gallery-slider .owl-nav button {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    font-size: 20px !important;
    color: #000 !important;
    pointer-events: all;
    transition: all 0.3s ease;
}

.project-gallery-slider .owl-nav button:hover {
    background: #fff !important;
    transform: scale(1.1);
}

.project-gallery-slider .owl-nav .owl-prev {
    left: 30px;
}

.project-gallery-slider .owl-nav .owl-next {
    right: 30px;
}

.project-gallery-slider .owl-dots {
    margin-top: 40px;
    text-align: center;
}

.project-gallery-slider .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.project-gallery-slider .owl-dots .owl-dot.active {
    background: #000;
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .project-gallery-section {
        padding: 60px 0;
    }
    .project-gallery-section .section-title h2 {
        font-size: 32px;
    }
    .project-gallery-slider .single-project-item {
        height: 400px;
        margin: 0 2.5px;
    }
    .project-gallery-slider .project-inner {
        padding: 30px 20px;
    }
    .project-gallery-slider .hover-info h4 {
        font-size: 22px;
    }
    .project-gallery-slider .hover-info h4 span {
        font-size: 14px;
    }
    .project-gallery-slider .owl-nav button {
        display: none !important;
    }
    .project-gallery-slider .project-icon {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 0.9;
    }
    .project-gallery-slider .hover-info {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

/* Smooth Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent scrolling when lightbox is open */
body.mfp-open {
    overflow: hidden !important;
}

body.mfp-open #smooth-wrapper,
body.mfp-open #smooth-content {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    body.mfp-open {
        touch-action: none !important;
        -webkit-overflow-scrolling: auto !important;
        overflow: hidden !important;
        height: 100vh !important;
    }

    body.mfp-open * {
        touch-action: none !important;
    }

    .mfp-wrap {
        touch-action: pan-y !important;
        position: fixed !important;
    }

    .mfp-container {
        touch-action: pan-y !important;
        position: fixed !important;
    }

    .mfp-bg {
        position: fixed !important;
    }
}

/* Magnific Popup z-index fixes */
.mfp-bg {
    z-index: 99999 !important;
}

.mfp-wrap {
    z-index: 100000 !important;
}

.mfp-container {
    z-index: 100001 !important;
}

@media (max-width: 768px) {
    body.mfp-open .header-area {
        z-index: 1 !important;
    }

    body.mfp-open #smooth-wrapper {
        z-index: 1 !important;
    }
}

/* Video player styling in lightbox */
.mfp-video-wrapper {
    max-width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfp-video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    background: #000;
}

@media (max-width: 768px) {
    .mfp-video {
        max-width: 100vw;
        max-height: 80vh;
    }
}

/* Back to All Projects Section */
.back-to-projects-section {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-to-projects-wrapper {
    text-align: center;
}

.back-to-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 20px 50px;
    border: 2px solid #0a0a0a;
    text-decoration: none;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.back-to-projects-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    transition: left 0.4s ease;
    z-index: 0;
}

.back-to-projects-btn:hover::before {
    left: 0;
}

.back-to-projects-btn .btn-text,
.back-to-projects-btn .btn-icon-left,
.back-to-projects-btn .btn-icon-right {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.back-to-projects-btn:hover .btn-text,
.back-to-projects-btn:hover .btn-icon-left,
.back-to-projects-btn:hover .btn-icon-right {
    color: #fff;
}

.back-to-projects-btn .btn-icon-left,
.back-to-projects-btn .btn-icon-right {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-projects-btn .btn-icon-left {
    opacity: 0;
    transform: translateX(20px);
}

.back-to-projects-btn:hover .btn-icon-left {
    opacity: 1;
    transform: translateX(0);
}

.back-to-projects-btn .btn-icon-right {
    transform: rotate(-45deg);
}

.back-to-projects-btn:hover .btn-icon-right {
    transform: rotate(0deg);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .back-to-projects-section {
        padding: 60px 0;
    }

    .back-to-projects-btn {
        padding: 15px 35px;
        font-size: 14px;
        gap: 15px;
    }

    .back-to-projects-btn .btn-icon-left,
    .back-to-projects-btn .btn-icon-right {
        font-size: 20px;
    }
}

/* Move plus icon to bottom-right corner */
.project-gallery-slider .project-icon {
    position: absolute;
    bottom: 40px;
    right: 40px;
    top: auto;
    left: auto;
    transform: scale(0);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 3;
}

.project-gallery-slider .single-project-item:hover .project-icon {
    transform: scale(1);
}

.project-gallery-slider .project-icon i {
    font-size: 24px;
    color: #000;
}

/* Keep hover info in bottom-left */
.project-gallery-slider .hover-info {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.project-gallery-slider .single-project-item:hover .hover-info {
    transform: translateY(0);
    opacity: 1;
}

.project-gallery-slider .hover-info h4 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.project-gallery-slider .hover-info h4 span {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.8;
    text-transform: none;
    letter-spacing: 0.05em;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .project-gallery-slider .project-icon {
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        /* Always visible on mobile */
        transform: scale(1) !important;
        opacity: 0.9;
    }

    .project-gallery-slider .project-icon i {
        font-size: 20px;
    }

    /* Hover info always visible on mobile */
    .project-gallery-slider .hover-info {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}
/* =================================
   FIX OWL CAROUSEL ON MOBILE/TABLET
   ================================= */

/* Fix Owl Carousel overflow issues */
.project-gallery-slider.owl-carousel,
.project-slider.owl-carousel {
    width: 100% !important;
    overflow: hidden !important;
}

.project-gallery-slider .owl-stage-outer,
.project-slider .owl-stage-outer {
    overflow: hidden !important;
    width: 100% !important;
}

.project-gallery-slider .owl-stage,
.project-slider .owl-stage {
    display: flex !important;
}

/* Fix for tablets and mobile - disable ScrollSmoother conflicts */
@media (max-width: 1024px) {
    #smooth-wrapper {
        overflow: visible !important;
        height: auto !important;
        transform: none !important;
    }

    #smooth-content {
        overflow: visible !important;
        height: auto !important;
        transform: none !important;
    }

    .project-gallery-slider,
    .project-slider {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Ensure carousel containers don't break */
    .project-gallery-section .container-fluid,
    #featured-works-section .container-fluid,
    #featured-works-section .container {
        overflow: hidden !important;
    }
}
