/* ===============================
   PORTFOLIO PREVIEW SECTION
   =============================== */

.preview-section {
    padding: 100px 0;
    text-align: center;
}

.main-img {
    width: 1000px;
    position: relative;
    z-index: 2;
    display: block;

    /* strong top rounding */
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;

    overflow: hidden;

    -webkit-mask-image:
        /* 🔥 HEAVY bottom fade (covers ~half image) */
        linear-gradient(
            to top,
            transparent 0%,          /* fully gone */
            rgba(0,0,0,0.8) 20%,    /* strong fade */
            rgba(0,0,0,0.95) 35%,   /* almost visible */
            black 55%,              /* main visible starts here */
            black 80%,              /* keep upper strong */
            rgba(0,0,0,0.3) 95%,    /* soft top feather */
            transparent 100%
        ),

        /* side feather (keep subtle) */
        linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 10%, black 20%),
        linear-gradient(to left, transparent 0%, rgba(0,0,0,0.4) 10%, black 20%);

    mask-image:
        linear-gradient(
            to top,
            transparent 0%,
            rgba(0,0,0,0.8) 20%,
            rgba(0,0,0,0.95) 35%,
            black 55%,
            black 80%,
            rgba(0,0,0,0.3) 95%,
            transparent 100%
        ),
        linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 10%, black 20%),
        linear-gradient(to left, transparent 0%, rgba(0,0,0,0.4) 10%, black 20%);

    -webkit-mask-composite: destination-in;
    mask-composite: intersect;

    opacity: 0.95;
    filter: drop-shadow(0 30px 60px rgba(127, 0, 255, 0.2));
}

.main-img-container {
    position: relative;
    display: inline-block;
}

.orbit-particle {
    z-index: 1;
    pointer-events: none;
    animation: floatParticle 5s ease-in-out infinite alternate;
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 14px rgba(255,255,255,0.9);
}

/* tiny round particles */
.dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* 4-point sparkle */
.sparkle {
    width: 10px;
    height: 10px;
}

.sparkle::before,
.sparkle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 10px rgba(255,255,255,0.7);
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.sparkle::before {
    width: 2px;
    height: 10px;
}

.sparkle::after {
    width: 10px;
    height: 2px;
}

/* diamond star */
.diamond {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.9);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(255,255,255,0.65);
}
.diamond::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(255,255,255,0.65);
}

/* particle positions around the earth */
.p1  { top: 12%; left: -4%;  animation-delay: 0s; }
.p2  { top: 22%; right: -3%; animation-delay: 1s; }
.p3  { top: 40%; left: -6%;  animation-delay: 2s; }
.p4  { top: 55%; right: -5%; animation-delay: 1.5s; }
.p5  { top: 8%;  right: 12%; animation-delay: 2.5s; }
.p6  { bottom: 18%; left: 10%; animation-delay: 0.8s; }
.p7  { top: 18%; left: 20%; animation-delay: 1.2s; }
.p8  { top: 65%; right: 15%; animation-delay: 2.8s; }
.p9  { bottom: 10%; right: -6%; animation-delay: 0.6s; }
.p10 { top: 35%; right: 5%; animation-delay: 1.9s; }
.p11 { bottom: 25%; left: -4%; animation-delay: 2.2s; }
.p12 { top: 5%; left: 35%; animation-delay: 1.4s; }

.p13 { top: 14%; right: 22%; animation-delay: 0.7s; }
.p14 { top: 48%; left: 8%; animation-delay: 2.6s; }
.p15 { bottom: 12%; left: 28%; animation-delay: 1.1s; }
.p16 { top: 28%; right: -4%; animation-delay: 3s; }

.p17 { top: 9%; left: 12%; animation-delay: 1.8s; }
.p18 { top: 58%; right: 24%; animation-delay: 0.9s; }
.p19 { bottom: 8%; left: 40%; animation-delay: 2.4s; }
.p20 { top: 30%; left: -5%; animation-delay: 1.6s; }

@keyframes floatParticle {
    0% {
        opacity: 0.25;
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        opacity: 0.95;
        transform: translate(4px, -8px) scale(1.15);
    }
    100% {
        opacity: 0.4;
        transform: translate(-3px, -14px) scale(0.95);
    }
}

/* scrolling wrapper */
.marquee-wrapper {
    overflow: hidden;
    padding: 60px 0;
}

.marquee-row {
    display: flex;
    margin-bottom: 30px;
}

.marquee-track {
    display: flex;
    gap: 60px;
}

/* logos */
.marquee-track img {
    height: 50px;

    opacity: 0.25;
    filter: grayscale(100%);

    transition: all .3s ease;
}

/* hover highlight */
.marquee-track img:hover {
    opacity: 0.8;
    filter: none;
    transform: scale(1.1);
}

/* animation */
.scroll-right .marquee-track {
    animation: marquee-right 25s linear infinite;
}

.scroll-left .marquee-track {
    animation: marquee-left 25s linear infinite;
}

@keyframes marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
