/* src/views/styles/cross-platform.css */

.cross-platform-section {
    background: transparent;
    padding: 60px 0 20px 0;
    position: relative;
    overflow: hidden;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

/* Background Wireframe / Grid */
.cross-platform-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.cross-platform-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
    gap: 60px;
}

.cp-text {
    flex: 1;
    max-width: 500px;
}

.cp-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cp-text p {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Device Cluster */
.cp-devices {
    flex: 1.5;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS Mockups */
.mockup {
    position: absolute;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 6px solid #1e293b;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.mockup i {
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}
.mockup span {
    font-weight: 600;
    color: #94a3b8;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.mockup:hover {
    transform: scale(1.05) translateY(-10px) !important;
    z-index: 10 !important;
    box-shadow: 0 35px 60px -15px rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
}

/* iMac */
.mockup.imac {
    width: 450px;
    height: 280px;
    border-bottom: 30px solid #cbd5e1;
    border-radius: 16px 16px 0 0;
    left: 0;
    top: 50px;
    z-index: 2;
    transform: perspective(1000px) rotateY(15deg);
}

.mockup.imac::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
    background: #94a3b8;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    z-index: -1;
}

/* iPad */
.mockup.ipad {
    width: 240px;
    height: 320px;
    right: 20px;
    top: 20px;
    z-index: 1;
    border: 12px solid #0f172a;
    border-radius: 20px;
    transform: perspective(1000px) rotateY(-10deg);
}

/* MacBook */
.mockup.macbook {
    width: 380px;
    height: 240px;
    bottom: 20px;
    left: 120px;
    z-index: 3;
    border-bottom: 20px solid #94a3b8;
    border-radius: 12px 12px 0 0;
}
.mockup.macbook::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: -10px;
    width: calc(100% + 20px);
    height: 15px;
    background: #64748b;
    border-radius: 0 0 10px 10px;
    z-index: -1;
}

/* VR Headset */
.mockup.vr-headset {
    width: 240px;
    height: 140px;
    bottom: 30px;
    left: -20px;
    z-index: 6;
    border: 10px solid #cbd5e1;
    border-radius: 70px;
    background: #0f172a;
    transform: perspective(1000px) rotateY(25deg) rotateZ(-5deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.mockup.vr-headset::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05), transparent 40%),
                radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05), transparent 40%);
    border-radius: 70px;
    z-index: 1;
}
.mockup.vr-headset i {
    z-index: 2;
}

/* iPhone */
.mockup.iphone {
    width: 130px;
    height: 260px;
    bottom: -30px;
    right: 120px;
    z-index: 4;
    border: 8px solid #334155;
    border-radius: 30px;
}
.mockup.iphone::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 18px;
    background: #334155;
    border-radius: 0 0 10px 10px;
    z-index: 5;
}

/* Partners Marquee Section */
.partners-section {
    background: white;
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.partners-section::before,
.partners-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.partners-section::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}
.partners-section::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee-container {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-container:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 100px;
    padding: 0 50px;
}

.partner-logo, .partner-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.partner-badge img {
    height: 70px; /* Slightly larger since it's a badge */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(100%) opacity(70%); /* Same grey/black look as other logos */
    transition: all 0.4s ease;
}

.partner-badge:hover img {
    filter: grayscale(0%) opacity(100%); /* Full color on hover */
    transform: scale(1.1); /* Keep the nice hover scale */
}

.partner-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Makes white backgrounds transparent against the white container */
    filter: grayscale(100%) opacity(70%); /* Professional grey/black look */
    transition: all 0.4s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%) opacity(100%); /* Full color on hover */
    transform: scale(1.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1024px) {
    .cross-platform-content {
        flex-direction: column;
        text-align: center;
    }
    .cp-text {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .cp-devices {
        transform: scale(0.6);
        width: 100%;
        height: 300px;
    }
}

/* Zig-Zag Features Section */
.zigzag-section {
    background-color: #ffffff;
    padding: 80px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.zigzag-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.zigzag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.zigzag-text {
    flex: 1;
    max-width: 500px;
}

.zigzag-text h2 {
    font-size: 2.5rem;
    color: #1e3a8a; /* Deep blue from reference */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.zigzag-text p {
    font-size: 1.1rem;
    color: #86868b;
    line-height: 1.6;
}

.zigzag-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.zigzag-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Responsive adjustments for zig-zag */
@media (max-width: 900px) {
    .zigzag-row,
    .zigzag-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .zigzag-text {
        max-width: 100%;
    }

    .zigzag-text h2 {
        font-size: 2rem;
    }
}
