/* Slide 4: Services with Photo Collage */
.slide-services {
    background: #000000;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Background Animation */
.services-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 170, 170, 0.3);
    border-radius: 50%;
    animation: floatParticle 20s infinite ease-in-out;
}

.bg-particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.bg-particle:nth-child(2) {
    left: 20%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.bg-particle:nth-child(3) {
    left: 35%;
    top: 10%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.bg-particle:nth-child(4) {
    left: 50%;
    top: 80%;
    animation-delay: 1s;
    animation-duration: 28s;
}

.bg-particle:nth-child(5) {
    left: 65%;
    top: 30%;
    animation-delay: 3s;
    animation-duration: 26s;
}

.bg-particle:nth-child(6) {
    left: 75%;
    top: 70%;
    animation-delay: 5s;
    animation-duration: 24s;
}

.bg-particle:nth-child(7) {
    left: 85%;
    top: 15%;
    animation-delay: 2.5s;
    animation-duration: 27s;
}

.bg-particle:nth-child(8) {
    left: 15%;
    top: 85%;
    animation-delay: 1.5s;
    animation-duration: 29s;
}

.bg-particle:nth-child(9) {
    left: 40%;
    top: 50%;
    animation-delay: 3.5s;
    animation-duration: 23s;
}

.bg-particle:nth-child(10) {
    left: 60%;
    top: 5%;
    animation-delay: 0.5s;
    animation-duration: 31s;
}

.bg-particle:nth-child(11) {
    left: 25%;
    top: 40%;
    animation-delay: 4.5s;
    animation-duration: 25s;
}

.bg-particle:nth-child(12) {
    left: 70%;
    top: 55%;
    animation-delay: 2.2s;
    animation-duration: 28s;
}

.bg-particle:nth-child(13) {
    left: 5%;
    top: 45%;
    animation-delay: 1.8s;
    animation-duration: 26s;
}

.bg-particle:nth-child(14) {
    left: 90%;
    top: 65%;
    animation-delay: 3.2s;
    animation-duration: 24s;
}

.bg-particle:nth-child(15) {
    left: 55%;
    top: 25%;
    animation-delay: 4.2s;
    animation-duration: 27s;
}

@keyframes floatParticle {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.5;
    }

    50% {
        transform: translate(-20px, -80px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translate(40px, -30px) scale(1.1);
        opacity: 0.6;
    }
}

/* Animated Background Lines */
.bg-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 170, 170, 0.1) 20%,
            rgba(255, 170, 170, 0.15) 50%,
            rgba(255, 170, 170, 0.1) 80%,
            transparent 100%);
    animation: linePulse 8s ease-in-out infinite;
}

.bg-line-1 {
    left: 15%;
    animation-delay: 0s;
}

.bg-line-2 {
    left: 50%;
    animation-delay: 2.5s;
    animation-duration: 10s;
}

.bg-line-3 {
    left: 85%;
    animation-delay: 5s;
    animation-duration: 12s;
}

@keyframes linePulse {
    0%,
    100% {
        opacity: 0.1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(1.1);
    }
}

.services-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Left Side: Photo Collage */
.photo-collage-wrapper {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* TURNON Text Overlay for Services Slide */
.services-turnon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: transparent;
    text-transform: uppercase;
    font-weight: 900;
    z-index: 10;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.services-turnon-text span:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    transition: 0.5s;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    overflow: hidden;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.photo-collage-wrapper:hover .services-turnon-text span:nth-child(1) {
    transform: translateY(-18px);
}

.services-turnon-text span:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    transition: 0.5s;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    overflow: hidden;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.photo-collage-wrapper:hover .services-turnon-text span:nth-child(2) {
    transform: translateY(18px);
}

.services-turnon-text span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scaleY(0);
    width: 91%;
    color: #000000;
    background: #ffaaaa;
    font-size: 0.25em;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-align: center;
    padding-left: 20px;
    margin-left: 5px;
    transition: 0.5s;
    white-space: nowrap;
    overflow: hidden;
}

.photo-collage-wrapper:hover .services-turnon-text span:nth-child(3) {
    transform: translateY(-50%) scaleY(1);
}

.photo-collage {
    width: 100%;
    height: 200%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
}

.collage-row {
    display: flex;
    width: 100%;
    gap: 20px;
    height: 280px;
    flex-shrink: 0;
}

.collage-item.collage-left,
.collage-item.collage-right {
    flex: 1;
    width: 50%;
    height: 100%;
}

.collage-scroll {
    animation: scrollUpCollage 40s linear infinite;
}

.photo-collage-wrapper::before,
.photo-collage-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 10;
    pointer-events: none;
}

.photo-collage-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.8) 30%, rgba(10, 10, 10, 0.4) 60%, rgba(10, 10, 10, 0) 100%);
    height: 200px;
}

.photo-collage-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 100%);
}

.collage-item {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 170, 170, 0.3);
}

/* First set of items (main content) - visible immediately */
/* Items in first 5 rows (rows 1-5) */
.collage-scroll .collage-row:nth-child(n+1):nth-child(-n+5) .collage-item {
    opacity: 1;
}

/* Second set of items (duplicates) - fade in as they enter from top */
/* Items in duplicate rows (rows 6-10) */
.collage-scroll .collage-row:nth-child(n+6):nth-child(-n+10) .collage-item {
    opacity: 0;
    animation: fadeInCollageScroll 2.5s ease-out forwards;
}

/* Fade-in timing for second set - starts when they're entering from top */
.collage-scroll .collage-row:nth-child(6) .collage-item {
    animation-delay: 0.5s;
}

.collage-scroll .collage-row:nth-child(7) .collage-item {
    animation-delay: 0.6s;
}

.collage-scroll .collage-row:nth-child(8) .collage-item {
    animation-delay: 0.7s;
}

.collage-scroll .collage-row:nth-child(9) .collage-item {
    animation-delay: 0.8s;
}

.collage-scroll .collage-row:nth-child(10) .collage-item {
    animation-delay: 0.9s;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

@keyframes fadeInCollage {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollUpCollage {
    0% {
        transform: translateY(calc(-50% + 0px));
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fadeInCollageScroll {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Right Side: Services Content */
.services-content-wrapper {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.services-content {
    width: 100%;
    padding: 60px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
}

.services-content.animate {
    animation: slideInFromRightWithFade 1.2s ease-out 0.3s forwards;
}

/* Services scroll removed - now static */

.single-service {
    animation: none;
}

.single-service .service-item {
    opacity: 0;
    animation: fadeInSingle 1.2s ease forwards;
}

/* Gradient overlays removed - no longer needed for static content */

.service-item {
    text-align: left;
    position: relative;
    opacity: 1;
}

.service-item:nth-child(1) {
    animation-delay: 0.3s;
}

.service-item:nth-child(2) {
    animation-delay: 0.5s;
}

.service-item:nth-child(3) {
    animation-delay: 0.7s;
}

.service-title {
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
}

.service-description {
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-align: left;
}

.service-description br {
    line-height: 0.1;
    height: 0;
    margin: 0;
    padding: 0;
    display: block;
}

@keyframes fadeInService {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes fadeInScroll {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSingle {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRightWithFade {
    0% {
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
    }

    60% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Slide 4 */
@media (max-width: 1024px) {
    .services-content {
        padding: 40px 30px;
        gap: 30px;
    }

    .service-title {
        font-size: 1.75rem;
    }

    .service-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }

    .photo-collage-wrapper {
        width: 100%;
        height: 40%;
    }

    .services-turnon-text {
        font-size: 3em;
    }

    .photo-collage {
        padding: 15px;
        gap: 8px;
    }

    .collage-row {
        height: 200px;
        gap: 12px;
    }

    .services-content-wrapper {
        width: 100%;
        height: 60%;
    }

    .services-content {
        padding: 30px 20px;
        gap: 25px;
        top: 50%;
        transform: translateY(-50%);
    }

    .service-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .photo-collage-wrapper {
        width: 100%;
        height: 40%;
    }

    .services-turnon-text {
        font-size: 2em;
    }

    .photo-collage {
        padding: 10px;
        gap: 5px;
    }

    .collage-row {
        height: 150px;
        gap: 8px;
    }

    .services-content-wrapper {
        width: 100%;
        height: 60%;
    }

    .services-content {
        padding: 20px 15px;
        gap: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .service-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .service-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}
