/* ==========================================================================
   INTERACTIVE BLOBS — Mouse Parallax Effect
   Brand-aligned organic shapes for Dot Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   BLOB CONTAINER
   -------------------------------------------------------------------------- */
.interactive-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* --------------------------------------------------------------------------
   BLOB BASE STYLES
   -------------------------------------------------------------------------- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* Organic Blob Shapes (using border-radius variations) */
.blob-organic {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 15s ease-in-out infinite;
}

.blob-organic-2 {
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    animation: blobMorph2 18s ease-in-out infinite;
}

.blob-organic-3 {
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    animation: blobMorph3 20s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   BLOB COLOR VARIANTS — Brand Colors
   -------------------------------------------------------------------------- */
.blob-primary {
    background: radial-gradient(circle, rgba(230, 44, 125, 0.4) 0%, rgba(230, 44, 125, 0) 70%);
}

.blob-secondary {
    background: radial-gradient(circle, rgba(59, 89, 151, 0.35) 0%, rgba(59, 89, 151, 0) 70%);
}

.blob-accent {
    background: radial-gradient(circle, rgba(121, 40, 202, 0.3) 0%, rgba(121, 40, 202, 0) 70%);
}

.blob-glow {
    background: conic-gradient(from 180deg at 50% 50%,
            rgba(230, 44, 125, 0.25) 0deg,
            rgba(59, 89, 151, 0.2) 120deg,
            rgba(121, 40, 202, 0.15) 240deg,
            rgba(230, 44, 125, 0.25) 360deg);
}

/* --------------------------------------------------------------------------
   BLOB SIZES
   -------------------------------------------------------------------------- */
.blob-xl {
    width: 600px;
    height: 600px;
}

.blob-lg {
    width: 450px;
    height: 450px;
}

.blob-md {
    width: 300px;
    height: 300px;
}

.blob-sm {
    width: 180px;
    height: 180px;
}

/* --------------------------------------------------------------------------
   BLOB POSITIONS
   -------------------------------------------------------------------------- */
.blob-1 {
    top: 5%;
    right: -10%;
}

.blob-2 {
    top: 40%;
    left: -15%;
}

.blob-3 {
    bottom: 10%;
    right: 20%;
}

.blob-4 {
    top: 60%;
    left: 30%;
}

.blob-5 {
    top: 15%;
    left: 50%;
}

/* --------------------------------------------------------------------------
   FLOATING PILLS / CHIPS (Interactive CTAs)
   -------------------------------------------------------------------------- */
.floating-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font-family: var(--md-sys-typescale-font-family-mono, 'JetBrains Mono', monospace);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(230, 44, 125, 0.3);
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    will-change: transform;
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
}

.floating-chip:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(230, 44, 125, 0.5);
}

.floating-chip-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--md-sys-color-on-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.floating-chip-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Chip Positions */
.chip-1 {
    top: 25%;
    right: 8%;
    transform: rotate(-12deg);
}

.chip-2 {
    bottom: 30%;
    left: 5%;
    transform: rotate(8deg);
}

.chip-3 {
    top: 70%;
    right: 15%;
    transform: rotate(-5deg);
}

/* --------------------------------------------------------------------------
   GEOMETRIC SHAPES (Engineering Aesthetic)
   -------------------------------------------------------------------------- */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.geo-circle {
    width: 200px;
    height: 200px;
    border: 2px solid var(--md-sys-color-primary);
    border-radius: 50%;
}

.geo-square {
    width: 150px;
    height: 150px;
    border: 2px solid var(--md-sys-color-secondary);
    transform: rotate(45deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(230, 44, 125, 0.1);
}

.geo-1 {
    top: 20%;
    right: 25%;
}

.geo-2 {
    bottom: 25%;
    left: 10%;
}

.geo-3 {
    top: 50%;
    right: 5%;
}

/* --------------------------------------------------------------------------
   BLOB MORPH ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes blobMorph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%;
    }

    75% {
        border-radius: 60% 40% 60% 40% / 70% 30% 50% 50%;
    }
}

@keyframes blobMorph2 {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    }

    33% {
        border-radius: 70% 30% 40% 60% / 60% 40% 60% 40%;
    }

    66% {
        border-radius: 30% 70% 60% 40% / 50% 50% 50% 50%;
    }
}

@keyframes blobMorph3 {

    0%,
    100% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }

    50% {
        border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    }
}

/* --------------------------------------------------------------------------
   FLOAT ANIMATION
   -------------------------------------------------------------------------- */
@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.float-slow {
    animation: gentleFloat 8s ease-in-out infinite;
}

.float-medium {
    animation: gentleFloat 6s ease-in-out infinite;
    animation-delay: -2s;
}

.float-fast {
    animation: gentleFloat 4s ease-in-out infinite;
    animation-delay: -1s;
}

/* --------------------------------------------------------------------------
   LIGHT MODE ADJUSTMENTS
   -------------------------------------------------------------------------- */
[data-theme="light"] .blob {
    opacity: 0.4;
}

[data-theme="light"] .blob-primary {
    background: radial-gradient(circle, rgba(230, 44, 125, 0.25) 0%, rgba(230, 44, 125, 0) 70%);
}

[data-theme="light"] .blob-secondary {
    background: radial-gradient(circle, rgba(59, 89, 151, 0.2) 0%, rgba(59, 89, 151, 0) 70%);
}

[data-theme="light"] .floating-chip-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--md-sys-color-on-surface);
}

[data-theme="light"] .geo-shape {
    opacity: 0.1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .blob-xl {
        width: 350px;
        height: 350px;
    }

    .blob-lg {
        width: 250px;
        height: 250px;
    }

    .floating-chip {
        padding: 10px 18px;
        font-size: 0.65rem;
    }

    .geo-shape {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   PERFORMANCE — Reduce Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .blob,
    .floating-chip,
    .geo-shape {
        animation: none;
        transition: none;
    }
}