/* ═══════════════ SCROLL PROGRESS BAR ═══════════════ */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #7ecbf5);
    z-index: 9999;
    pointer-events: none;
}

/* ═══════════════ HERO CANVAS ═══════════════ */

.hero {
    position: relative;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ═══════════════ HERO OVERLAY ═══════════════ */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 18, 30, 0.75) 0%,
        rgba(20, 35, 55, 0.65) 50%,
        rgba(10, 18, 30, 0.8) 100%
    );
    pointer-events: none;
}

/* ═══════════════ SVG WAVE DIVIDERS ═══════════════ */

.wave-divider {
    display: block;
    line-height: 0;
    margin-top: -2px;
    margin-bottom: -2px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ═══════════════ CTA BUTTON SVG BORDER ═══════════════ */

.cta-button--enhanced {
    position: relative;
    overflow: visible;
}

.cta-border-svg {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    pointer-events: none;
    overflow: visible;
}

.cta-border-rect {
    fill: none;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cta-button--enhanced:hover .cta-border-rect {
    opacity: 1;
}

/* ═══════════════ MAGNETIC BLOB BUTTON ═══════════════ */

.magnetic-wrap {
    display: inline-block;
    padding: 24px;
    cursor: pointer;
}

.cta-button--blob {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    will-change: transform;
}

.blob-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.blob-path {
    fill: var(--color-accent);
    transition: fill 0.3s ease;
}

.cta-button--blob:hover .blob-path {
    fill: var(--color-primary-light);
}

.btn-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 500;
    font-size: var(--font-size-md);
    pointer-events: none;
}

/* ═══════════════ SERVICE CARD 3D TILT ═══════════════ */

.service-card {
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(74, 158, 218, 0.15) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

/* ═══════════════ FLOATING DECORATIONS (AMPLIFIED) ═══════════════ */

.floating-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#about,
#process {
    position: relative;
    overflow: hidden;
}

#about .about-content,
#process .container {
    position: relative;
    z-index: 1;
}

.deco-hexagon {
    position: absolute;
}

@keyframes floatDeco {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-24px) rotate(8deg); }
}

.deco-1 {
    top: -20px;
    right: -10px;
    animation: floatDeco 8s ease-in-out infinite;
}

.deco-2 {
    bottom: 40px;
    left: 5%;
    animation: floatDeco 11s ease-in-out infinite reverse;
}

.deco-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--color-accent);
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.18; }
    50% { transform: scale(1.4); opacity: 0.35; }
}

.deco-dot-1 { width: 10px; height: 10px; top: 20%; right: 10%; animation: pulseDot 4s ease-in-out infinite; }
.deco-dot-2 { width: 7px; height: 7px; top: 60%; right: 20%; animation: pulseDot 4s ease-in-out infinite -1.5s; }
.deco-dot-3 { width: 12px; height: 12px; bottom: 20%; left: 15%; animation: pulseDot 4s ease-in-out infinite -3s; }

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 640px) {
    .wave-divider svg {
        height: 36px;
    }

    .floating-decoration {
        display: none;
    }

    .service-card {
        will-change: auto;
    }

    .magnetic-wrap {
        padding: 0;
    }

    .cta-button--blob {
        background: var(--color-accent);
        border-radius: 8px;
    }

    .blob-svg {
        display: none;
    }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */

@media (prefers-reduced-motion: reduce) {
    #scroll-progress {
        display: none;
    }

    #hero-canvas,
    .ai-canvas {
        display: none;
    }

    .deco-hexagon, .deco-dot {
        animation: none !important;
    }

    .cta-border-rect {
        transition: none !important;
    }

    .service-card::after {
        display: none;
    }

    .blob-svg {
        display: none;
    }

    .cta-button--blob {
        background: var(--color-accent);
        border-radius: 8px;
    }
}
