﻿/* Services Section Styles - Modern Scroll Animations */

.services-section {
    position: relative;
    padding: 0;
    margin: 0;
    min-height: 800px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Background Video - HER ZAMAN GÖRÜNÜR, ANİMASYON YOK */
.services-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 1;
    /* Hep görünür */
}

.services-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.3;
    object-position: right center;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Services Container */
.services-container {
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
    z-index: 2;
}

/* Left Side - World and Vehicle */
.services-left {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Land-van Forklift (CSS-only choreography) */
.land-van-forklift {
    position: absolute;
    right: -8%;
    top: 18%;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.land-van-forklift .forklift-cabin {
    position: absolute;
    right: 120px;
    top: 35%;
    width: 360px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    opacity: 0;
    transform: translateX(100px);
    animation: none;
    transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease;
}

.land-van-forklift .forklift-tip {
    position: absolute;
    right: 420px;
    top: 62%;
    width: 280px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
    opacity: 0;
    transform: translateX(120px);
    animation: none;
    transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease;
}

.land-van-forklift .forklift-pallet {
    position: absolute;
    right: 510px;
    top: 42%;
    width: 275px;
    height: auto;
    z-index: 4;
    opacity: 0;
    transform: translateX(140px);
    animation: none;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

/* Responsive adjustments for forklift */
@media (max-width: 768px) {
    .land-van-forklift {
        right: -12%;
        top: 20%;
    }

    .land-van-forklift .forklift-cabin {
        right: 80px;
        width: 280px;
    }

    .land-van-forklift .forklift-tip {
        right: 320px;
        width: 220px;
    }

    .land-van-forklift .forklift-pallet {
        right: 380px;
        top: 48%;
        width: 250px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .land-van-forklift {
        right: -10%;
        top: 19%;
    }

    .land-van-forklift .forklift-cabin {
        right: 100px;
        width: 320px;
    }

    .land-van-forklift .forklift-tip {
        right: 370px;
        width: 250px;
    }

    .land-van-forklift .forklift-pallet {
        right: 450px;
        top: 49%;
        width: 275px;
    }
}

@keyframes lv-slide-in {
    from {
        opacity: 0;
        transform: translateX(120px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Palet bırakma JS ile yönetilecek */

/* ===== ANİMASYON ELEMENTLERİ - SCROLL İLE GELİR ===== */

/* Animation Ready State - Başlangıç durumu */
.animation-ready {
    opacity: 0;
    transform: translateY(80px) scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animated State - Görünür durum */
.animation-ready.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* World Container Animations */
.world-services-container.animation-ready {
    position: absolute;
    top: 8%;
    left: -5%;
    z-index: 3;
    transform: translateX(-120px) translateY(80px) rotate(-15deg) scale(0.6);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.world-services-container.animate-in {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
}

.world-services-image {
    width: 500px;
    height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    animation: servicesWorldRotate 25s linear infinite;
}

/* World Pulse Effect */
.world-services-container.world-pulse .world-services-image {
    /* Only rotate; disable pulsing to prevent size changes */
    animation: servicesWorldRotate 25s linear infinite;
}

@keyframes worldPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Continuous rotation for services-section world */
@keyframes servicesWorldRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Vehicle Container Animations */
.vehicle-container.animation-ready {
    position: absolute;
    z-index: 4;
    /* Start slightly from the right so it moves leftwards into place */
    transform: translateX(200px) translateY(100px) scale(0.5);
    transition: transform 2200ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms ease;
}

.vehicle-container.animate-in {
    /* End at rest, no overshoot/backtrack */
    transform: translateX(0) translateY(0) scale(1);
}

/* Push choreography helpers */
.services-left {
    overflow: visible;
}

.vehicle-container.vehicle-clone {
    z-index: 3;
    /* under current vehicle */
}

.vehicle-container.push-incoming {
    /* small nudge from right to left only */
    transform: translateX(40px) translateY(0) scale(1);
}

.vehicle-container.push-incoming.do-push {
    /* move leftwards to settle; no forward/back */
    transform: translateX(0) translateY(0) scale(1);
    transition: transform 2600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vehicle-container.push-target {
    /* previous vehicle sits slightly left so it can exit further left */
    transform: translateX(-40px) translateY(0) scale(1);
    transition: transform 2600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1600ms ease;
}

.vehicle-container.push-target.pushed-out {
    /* exit to the left, fade */
    transform: translateX(-320px) translateY(-20px) scale(0.92) rotate(-2deg);
    opacity: 0;
}

/* Vehicle specific positions */
.land-truck-vehicle {
    bottom: -5%;
}

.land-van-vehicle {
    bottom: -5%;
    left: 5%;
}

.air-vehicle {
    top: 25%;
    right: 0%;
}

.sea-vehicle {
    bottom: 0%;
    right: 10%;
}

.vehicle-image {
    width: 550px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

/* Truck + Minivan combo in first land section */
.land-truck-vehicle .vehicle-truck-left {
    position: absolute;
    bottom: 0px !important;
    width: 550px;
    left: -350px;
    z-index: 3;
}

.land-truck-vehicle .vehicle-minivan {
    position: absolute;
    bottom: 0px !important;
    width: 400px;
    z-index: 3;
}

@media (max-width: 1200px) {
    .land-truck-vehicle .vehicle-truck-left {
        left: -80px;
    }
}

@media (max-width: 1024px) {
    .land-truck-vehicle .vehicle-truck-left {
        left: -450px;
        width: 360px;
        top: 10px
    }

    .land-truck-vehicle .vehicle-minivan {
        width: 300px;
        left: -210px;
        top: -10px
    }
}

@media (max-width: 768px) {
    .land-truck-vehicle .vehicle-truck-left {
        left: -40px;
        width: 380px;
    }
}

@media (max-width: 568px) {
    .land-truck-vehicle .vehicle-truck-left {
        left: -100px;
        width: 260px;
        top: 10px
    }

    .land-truck-vehicle .vehicle-minivan {
        width: 220px;
        top: -10px
    }
}

@media (max-width: 448px) {
    .land-truck-vehicle .vehicle-truck-left {
        left: -100px;
        width: 260px;
        top: 10px
    }

    .land-truck-vehicle .vehicle-minivan {
        width: 220px;
        top: -10px;
        left: 10px;
    }


    .container-content h4 {
        font-size: 0.8rem;
    }
}

/* Vehicle Float Effect */
.vehicle-container.vehicle-float .vehicle-image {
    animation: vehicleFloat 4s ease-in-out infinite;
}

@keyframes vehicleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Right Side - Title and Containers */
.services-right {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    padding: 0 5% 0 2%;
    height: 100vh;
}

/* Services Title Animation - Eski konumuna göre */
.services-title.animation-ready {
    position: relative;
    text-align: center;
    margin-bottom: 80px;
    z-index: 10;
    transform: translateY(-50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    width: 100%;
    justify-content: end;
}

.services-title.animate-in {
    transform: translateY(0);
}

.services-title h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.services-title h2 .brand-name {
    color: #005cb9;
}

.services-title h2 .services-text {
    color: #2c3e50;
}

/* Containers Wrapper Animation */
.containers-wrapper.animation-ready {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: start;
    justify-content: center;
    /* enter from right to left */
    transform: translateX(80px) scale(0.9);
    transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms ease;
}

.containers-wrapper.animate-in {
    transform: translateX(0) scale(1);
}

/* Containers emphasis switch during push */
.containers-wrapper.containers-switch .service-container {
    filter: saturate(0.7) brightness(0.95);
}

.containers-wrapper.containers-switch .service-container.active-container {
    filter: saturate(1.2) brightness(1.05) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

/* Service Container Animations - Crane Style Positioning */
.service-container.animation-ready {
    position: absolute;
    cursor: pointer;
    transform: translateY(80px) rotate(15deg) scale(0.7);
    transition: all 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-container.animate-in {
    transform: translateY(0) rotate(0deg) scale(1);
}

/* Container Positioning - Crane Style (eski konumlar) */
.service-container:nth-child(1) {
    top: 0%;
    left: 0%;
    transform: rotate(-1deg);
}

.service-container:nth-child(2) {
    top: 0%;
    left: 20%;
    transform: rotate(-8deg);
}

.service-container:nth-child(3) {
    top: 0%;
    right: 25%;
    transform: rotate(8deg);
}

.service-container:nth-child(4) {
    top: 0%;
    right: 0%;
    transform: rotate(15deg);
}

/* Container Hover Effects */
.service-container.container-hover {
    transform: translateY(-10px) scale(1.05);
}

.container-image {
    width: 200px;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    animation: containerFloat 5s ease-in-out infinite;
}

/* Container Float Animasyonu */
@keyframes containerFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    25% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(-5px);
    }

    75% {
        transform: translateY(-10px);
    }
}

/* Container Content Animation */
.container-content.animation-ready {
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;
    color: white;
    text-align: center;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.container-content.animate-in {
    transform: translateY(0);
}

.container-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: numberPulse 4s ease-in-out infinite;
}

@keyframes numberPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}



.container-content p {
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Active Container - Özel Animasyon */
.service-container.active-container {
    z-index: 10;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .world-services-image {
        width: 450px;
        height: 450px;
    }

    .vehicle-image {
        width: 450px;
    }


    .services-title h2 {
        font-size: 3rem;
    }
}

@media (max-width: 1024.5px) {
    .services-section {
        min-height: 1200px;
    }

    .services-container {
        flex-direction: column-reverse;
        height: 100%;
        min-height: 100%;
    }

    .vehicle-image {
        width: 420px;
    }


    .services-left {
        flex: none;
        height: 50vh;
    }

    .services-right {
        flex: none;
        height: 50vh;
    }

    .services-title {
        top: 10%;
    }

    .container-content.animation-ready {
        height: 100%;
        position: absolute;
        top: 60%;
    }

    .container-content.animation-ready:nth-child(4) {
        height: 100%;
        position: absolute;
        top: 60%;
        left: 2000px;
        right: 0;
    }

    .world-services-container {
        position: relative;
        top: auto;
        left: auto;
        margin: 20px 0;
    }

    .vehicle-container {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 20px 0;
    }

    .containers-wrapper {
        justify-content: center;
    }

}

@media (max-width: 768px) {


    .services-section {
        min-height: 100vh;
    }



    .services-title h2 {
        font-size: 2.5rem;
    }

    .services-left {
        flex: none;

    }

    .services-right {
        flex: none;
        height: 50vh;
        top: 10%;
    }
}

@media (max-width: 568px) {
    .container-content h4 {
        font-size: 1rem
    }

    .container-image {
        width: 100px;
    }

    .container-content p {
        font-size: 1rem;
    }

    .container-number {
        font-size: 1rem;
    }

    .vehicle-image {
        width: 300px;
    }

    .service-container:nth-child(1) {
        top: 30%;
    }

    .service-container:nth-child(2) {
        top: 30%;
    }

    .service-container:nth-child(3) {
        top: 30%;
    }

    .service-container:nth-child(4) {
        top: 30%;
    }
}

/* Large desktop and ultra-wide refinements: enlarge world image on big monitors */
@media (min-width: 1400px) {
    .world-services-image {
        width: 650px;
        height: 650px;
    }
}

@media (min-width: 1600px) {
    .world-services-image {
        width: 720px;
        height: 720px;
    }
}

@media (min-width: 1920px) {
    .world-services-image {
        width: 800px;
        height: 800px;
    }

    .land-truck-vehicle {
        top: 50%;
    }

    .land-van-vehicle {
        top: 50%;
        left: 5%;
    }

    .air-vehicle {
        top: 25%;
        right: 0%;
    }

    .sea-vehicle {
        top: 50%;
        right: 10%;
    }
}