/* Slide 3 - Clients Section with Magnetic Reveal Grid */

.slide-brands {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.clients-container {
    width: 100%;
    max-width: 1400px;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    height: 100vh;
    box-sizing: border-box;
    min-height: 0;
}

.clients-title {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.clients-title.animate {
    animation: fadeInUp 1s ease-out forwards;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px 40px;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
}

/* Client Zone */
.client-zone {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}

/* Touch devices - show pointer cursor */
@media (hover: none) and (pointer: coarse) {
    .client-zone {
        cursor: pointer;
    }
}

/* Entrance animation - cards hover/enter the screen */
.client-zone.enter-animate {
    animation: cardEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Placeholder - subtle outline that appears on hover */
.client-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.client-zone:hover .client-placeholder,
.client-zone.magnetic-active .client-placeholder,
.client-zone.mobile-clicked .client-placeholder {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Instructional Text - HOVER ME / CLICK ME */
.client-instruction {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

/* Show "HOVER ME" on desktop, hide on touch devices */
.client-instruction .hover-text {
    display: inline;
}
.client-instruction .click-text {
    display: none;
}

/* Touch devices - show "CLICK ME" instead */
@media (hover: none) and (pointer: coarse) {
    .client-instruction .hover-text {
        display: none;
    }
    .client-instruction .click-text {
        display: inline;
    }
}

/* Hide instruction text on interaction */
.client-zone:hover .client-instruction,
.client-zone.magnetic-active .client-instruction,
.client-zone.mobile-clicked .client-instruction {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Client Logo - Hidden by default */
.client-logo {
    position: absolute;
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    opacity: 0;
    transform: scale(0.3) rotate(5deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 2;
}

/* Reveal states */
.client-zone.magnetic-active .client-logo,
.client-zone:hover .client-logo,
.client-zone.mobile-clicked .client-logo {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: grayscale(100%) brightness(1);
}

/* Ripple effect */
.client-zone::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.client-zone.magnetic-reveal::before {
    opacity: 1;
    transform: scale(2);
    animation: rippleExpand 0.8s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Magnetic pull effect */
.client-zone.magnetic-pull {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 50px 30px;
    }
}

@media (max-width: 768px) {
    .clients-container {
        padding: 20px 15px;
        height: 100vh;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }

    .clients-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
        margin-top: 10px;
        letter-spacing: 0.08em;
        line-height: 1.3;
        flex-shrink: 0;
        text-align: center;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 12px;
        padding: 0;
        width: 100%;
        max-width: 100%;
        flex: 1;
        min-height: auto;
        overflow: visible;
        display: grid;
        align-content: start;
        margin-bottom: 20px;
    }

    .client-zone {
        aspect-ratio: 1;
        min-height: auto;
        max-height: 150px;
    }

    .client-instruction {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    .client-logo {
        width: 70%;
        height: 70%;
    }
}

@media (max-width: 480px) {
    .clients-container {
        padding: 15px 10px;
        height: 100vh;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }

    .clients-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        margin-top: 8px;
        letter-spacing: 0.06em;
        line-height: 1.2;
        padding: 0;
        flex-shrink: 0;
        text-align: center;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px;
        padding: 0;
        width: 100%;
        max-width: 100%;
        flex: 1;
        min-height: auto;
        overflow: visible;
        display: grid;
        align-content: start;
        margin-bottom: 15px;
    }

    .client-zone {
        aspect-ratio: 1;
        min-height: auto;
        max-height: 120px;
    }

    .client-instruction {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }

    .client-logo {
        width: 65%;
        height: 65%;
    }
}

@media (max-width: 360px) {
    .clients-container {
        padding: 10px 6px;
    }

    .clients-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .clients-grid {
        gap: 6px 5px;
    }
}

/* Animation for title fade in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* YouTube Icon - Bottom Right */
.youtube-icon-link {
    position: absolute;
    bottom: 80px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    opacity: 0.7;
}

.youtube-icon-link:hover {
    transform: scale(1.1);
    opacity: 1;
}

.youtube-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.youtube-icon-link:hover .youtube-icon {
    filter: brightness(1);
}

/* Responsive YouTube Icon */
@media (max-width: 768px) {
    .youtube-icon-link {
        bottom: 20px;
        right: 20px;
    }
    
    .youtube-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .youtube-icon-link {
        bottom: 15px;
        right: 15px;
    }
    
    .youtube-icon {
        width: 35px;
        height: 35px;
    }
}
