/* ─────────────────────────────────────────
   HOME SERVICES SECTION (Cloud Style)
   ───────────────────────────────────────── */

.services-section {
    padding: 100px 0;
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
}

/* ── Integrated Trust Bar (Phase 6.2) ── */
.trust-bar-integrated {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* trust-section wrapper */
.trust-section {
    overflow: visible;
}

.trust-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.trust-item:hover {
    transform: translateY(-5px);
    color: var(--blue);
}

.trust-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--blue), var(--turquoise));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 209, 193, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 209, 193, 0.3);
}

.trust-logo {
    height: 40px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-logo {
    transform: scale(1.1);
}


/* Background image handling (Faz 6.2 compatibility) */
.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/uploads/uniqtrading-services.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.services-container {
    position: relative;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: 64px;
}

.services-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 209, 193, 0.1);
    color: var(--turquoise-dk);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
}

.services-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 12px;
}

.services-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 800px; /* Genişletildi (Phase 6.2) */
    margin-inline: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Card ── */
.service-card-new {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 40px 32px 32px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 340px;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.03);
}

.service-card-new::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--turquoise));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.service-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1);
    border-color: transparent;
}

.service-card-new:hover::before {
    transform: scaleX(1);
}

/* ── Background Icon ── */
.service-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    color: #0369a1;
    opacity: 0.05;
    transition: all 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.service-bg-icon svg {
    width: 100%;
    height: 100%;
}

.service-card-new:hover .service-bg-icon {
    opacity: 0.15;
    color: #0369a1;
    transform: scale(1.1) rotate(-5deg);
}

/* ── Per-Card Hover Animations ── */

/* Ocean Freight — floating ship */
.service-card-new:hover .bg-ocean {
    animation: shipFloat 2s ease-in-out infinite;
}

@keyframes shipFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(2deg);
    }

    50% {
        transform: translateY(-4px) rotate(-1.5deg);
    }

    75% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* Warehousing — forklift loading bounce */
.service-card-new:hover .bg-warehouse {
    animation: warehouseLift 1.5s ease-in-out infinite;
}

@keyframes warehouseLift {

    0%,
    100% {
        transform: translateY(0) scaleY(1);
    }

    30% {
        transform: translateY(-12px) scaleY(1.03);
    }

    50% {
        transform: translateY(-6px) scaleY(0.98);
    }

    70% {
        transform: translateY(-10px) scaleY(1.02);
    }
}

/* Customs — stamp press */
.service-card-new:hover .bg-customs {
    animation: stampPress 1.2s ease-in-out infinite;
}

@keyframes stampPress {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    20% {
        transform: scale(1.12) rotate(-3deg);
    }

    40% {
        transform: scale(0.95) rotate(1deg);
    }

    60% {
        transform: scale(1.05) rotate(-1deg);
    }

    80% {
        transform: scale(1) rotate(0deg);
    }
}

/* Door-to-Door — truck driving */
.service-card-new:hover .bg-truck {
    animation: truckDrive 1.8s ease-in-out infinite;
}

@keyframes truckDrive {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    15% {
        transform: translateX(6px) translateY(-2px);
    }

    30% {
        transform: translateX(10px) translateY(0);
    }

    50% {
        transform: translateX(6px) translateY(-3px);
    }

    70% {
        transform: translateX(2px) translateY(0);
    }

    85% {
        transform: translateX(-2px) translateY(-1px);
    }
}

/* End-to-End — globe spin */
.service-card-new:hover .bg-globe {
    animation: globeSpin 3s linear infinite;
}

@keyframes globeSpin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Bonded — shield pulse */
.service-card-new:hover .bg-shield {
    animation: shieldPulse 1.6s ease-in-out infinite;
}

@keyframes shieldPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* ── Text Content ── */
.service-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
}

.service-tagline {
    font-size: 0.88rem;
    color: #0369a1;
    font-weight: 500;
    margin: 0 0 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.service-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #0369a1;
    border-radius: 50%;
}

.service-card-new .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0369a1;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.service-card-new:hover .service-link {
    gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-section {
        padding: 48px 0;
    }

    .services-header {
        margin-bottom: 32px;
    }

    .services-title {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-new {
        padding: 28px 24px 24px;
        min-height: unset;
    }

    .service-bg-icon {
        width: 100px;
        height: 100px;
    }
}

/* ── About Us Mini Section (Homepage) ── */
.about-mini-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.about-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-mini-image {
    position: relative;
}

.about-mini-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.08);
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    right: -40px;
    background: var(--navy);
    color: #fff;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.25);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.exp-year {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--turquoise);
}

.exp-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-mini-content .section-label {
    margin-bottom: 12px;
}

.about-mini-content .section-title {
    font-size: 2.4rem;
    margin-bottom: 24px;
    color: var(--navy);
}

.about-excerpt {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.about-features-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.feat-item svg {
    color: var(--turquoise);
}

/* Responsive About Mini */
@media (max-width: 1024px) {
    .about-mini-grid {
        gap: 40px;
    }
    .about-mini-content .section-title {
        font-size: 2.2rem;
    }
    .experience-badge {
        right: -20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .about-mini-section {
        padding: 60px 0;
    }
    .about-mini-grid {
        grid-template-columns: 1fr;
    }
    .about-mini-image {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .about-mini-image img {
        height: 300px;
    }
    /* Experience badge — absolute yerine relative, taşma önlendi */
    .experience-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 16px;
        width: fit-content;
        animation: none;
    }
}

/* ── Trust Bar Responsive ── */
@media (max-width: 768px) {
    .trust-bar-integrated {
        padding: 24px 0;
        margin-bottom: 32px;
    }
    .trust-flex {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .trust-flex::-webkit-scrollbar {
        display: none;
    }
    .trust-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: 120px;
        font-size: 0.78rem;
        gap: 10px;
    }
    .trust-logo {
        max-width: 80px;
        height: 28px;
    }
    .trust-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}