/* ==========================================================
   ANIMWEB TECHNOLOGIES — SHOWCASE / EFFECTS / FILLER MODULES
   Code editor, browser preview, marquee, quote, ambient layers
   ========================================================== */

/* ============= GLOBAL TECH PATTERNS ============= */

/* Repeating tech grid pattern (used as section background) */
.tech-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 142, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 142, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Soft dot grid (alternative pattern) */
.dot-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(77, 142, 255, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

/* Floating code symbols (used in showcase) */
.floating-symbols {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-symbols .fs {
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 700;
    color: rgba(77, 142, 255, 0.12);
    font-size: clamp(2rem, 4vw, 3.2rem);
    user-select: none;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(77, 142, 255, 0.1);
    animation: floatSym 14s ease-in-out infinite;
    will-change: transform;
}

.floating-symbols .fs-1  { top: 10%;  left: 5%;   animation-delay: 0s;   }
.floating-symbols .fs-2  { top: 20%;  right: 8%;  animation-delay: 1.5s; }
.floating-symbols .fs-3  { top: 60%;  left: 4%;   animation-delay: 3s;   }
.floating-symbols .fs-4  { top: 75%;  right: 6%;  animation-delay: 4.5s; font-size: 2rem; }
.floating-symbols .fs-5  { top: 35%;  left: 12%;  animation-delay: 2s;   }
.floating-symbols .fs-6  { top: 50%;  right: 14%; animation-delay: 1s;   }
.floating-symbols .fs-7  { top: 85%;  left: 22%;  animation-delay: 5s; font-size: 4rem; }
.floating-symbols .fs-8  { top: 18%;  left: 40%;  animation-delay: 6s;   }
.floating-symbols .fs-9  { top: 70%;  right: 28%; animation-delay: 2.5s; font-size: 1.6rem; }
.floating-symbols .fs-10 { top: 8%;   right: 32%; animation-delay: 3.8s; }

@keyframes floatSym {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    50%      { transform: translate(20px, -28px) rotate(8deg); opacity: 1; }
}

/* ============= SHOWCASE SECTION ============= */

.showcase {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    background:
        linear-gradient(180deg, transparent, rgba(30, 107, 255, 0.04) 50%, transparent);
}

.showcase .container {
    position: relative;
    z-index: 2;
}

.build-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
    margin-bottom: 60px;
}

/* ============= IDE / CODE WINDOW ============= */

.ide-window,
.browser-window {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(10, 16, 36, 0.85));
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(30, 107, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    transition: transform var(--transition);
}

.ide-window:hover,
.browser-window:hover {
    transform: translateY(-6px);
}

/* Glow underneath each window */
.ide-window::before,
.browser-window::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(77, 142, 255, 0.6), transparent 50%, rgba(30, 107, 255, 0.4));
    z-index: -1;
    filter: blur(14px);
    opacity: 0.5;
}

/* Title bar (shared between IDE and browser) */
.win-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--color-border);
}

.win-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.win-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
}

.dot.d-r { background: #ff5f56; }
.dot.d-y { background: #ffbd2e; }
.dot.d-g { background: #27c93f; }

.win-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.win-tabs::-webkit-scrollbar { display: none; }

.win-tabs .tab {
    padding: 6px 12px;
    border-radius: 6px 6px 0 0;
    font-size: 0.78rem;
    color: var(--color-text-dim);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
}

.win-tabs .tab i { color: var(--color-blue-light); font-size: 0.7rem; }

.win-tabs .tab.active {
    background: rgba(77, 142, 255, 0.1);
    color: var(--color-white);
    border-bottom: 2px solid var(--color-blue-light);
}

.win-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #4ade80;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}

/* Code body */
.code-body {
    display: grid;
    grid-template-columns: auto 1fr;
    background: #0a1024;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.55;
    min-height: 320px;
    overflow: hidden;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    color: rgba(255, 255, 255, 0.2);
    border-right: 1px solid var(--color-border);
    user-select: none;
    text-align: right;
    font-size: 0.74rem;
}

.line-numbers span { line-height: 1.55; }

.code-area {
    padding: 16px 18px;
    margin: 0;
    overflow-x: auto;
    color: #c8d3ec;
    white-space: pre;
    font-size: 0.78rem;
}

.code-area .cl {
    display: block;
    animation: codeAppear 0.4s both;
}

.code-area .cl:nth-child(1)  { animation-delay: 0.1s; }
.code-area .cl:nth-child(2)  { animation-delay: 0.2s; }
.code-area .cl:nth-child(3)  { animation-delay: 0.3s; }
.code-area .cl:nth-child(4)  { animation-delay: 0.4s; }
.code-area .cl:nth-child(5)  { animation-delay: 0.5s; }
.code-area .cl:nth-child(6)  { animation-delay: 0.6s; }
.code-area .cl:nth-child(7)  { animation-delay: 0.7s; }
.code-area .cl:nth-child(8)  { animation-delay: 0.8s; }
.code-area .cl:nth-child(9)  { animation-delay: 0.9s; }
.code-area .cl:nth-child(10) { animation-delay: 1.0s; }
.code-area .cl:nth-child(11) { animation-delay: 1.1s; }
.code-area .cl:nth-child(12) { animation-delay: 1.2s; }
.code-area .cl:nth-child(13) { animation-delay: 1.3s; }
.code-area .cl:nth-child(14) { animation-delay: 1.4s; }

@keyframes codeAppear {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Syntax highlighting */
.code-area .kw  { color: #c084fc; }   /* keywords purple */
.code-area .fn  { color: #4d8eff; }   /* functions blue */
.code-area .cls { color: #fbbf24; }   /* classes amber */
.code-area .str { color: #4ade80; }   /* strings green */
.code-area .prop{ color: #93c5fd; }   /* properties light blue */
.code-area .cmt { color: #6b7a99; font-style: italic; }
.code-area .caret {
    background: var(--color-blue-light);
    color: var(--color-blue-light);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.ide-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--color-border);
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.ide-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ide-foot i {
    color: var(--color-blue-light);
    font-size: 0.7rem;
}

.ide-foot span:first-child i { color: #22c55e; }

/* ============= BROWSER WINDOW ============= */

.browser-bar {
    background: rgba(0, 0, 0, 0.45);
}

.url-bar {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-family: var(--font-mono);
}

.url-bar i.fa-lock { color: #4ade80; font-size: 0.72rem; }
.url-bar i.refresh { margin-left: auto; cursor: pointer; transition: transform var(--transition); color: var(--color-text-dim); }
.url-bar:hover i.refresh { color: var(--color-blue-light); transform: rotate(90deg); }

.browser-body {
    height: 320px;
    background: linear-gradient(180deg, #0a1024 0%, #050a14 100%);
    position: relative;
    overflow: hidden;
}

.browser-hero {
    position: relative;
    padding: 30px 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.bh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    pointer-events: none;
}

.bh-blob-1 {
    width: 200px;
    height: 200px;
    background: rgba(30, 107, 255, 0.5);
    top: -50px;
    left: -50px;
    animation: blob1 8s ease-in-out infinite;
}

.bh-blob-2 {
    width: 240px;
    height: 240px;
    background: rgba(77, 142, 255, 0.4);
    bottom: -80px;
    right: -60px;
    animation: blob2 10s ease-in-out infinite;
}

@keyframes blob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes blob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -40px) scale(0.95); }
}

.bh-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(30, 107, 255, 0.15);
    border: 1px solid rgba(77, 142, 255, 0.4);
    border-radius: var(--radius-pill);
    color: var(--color-blue-light);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    backdrop-filter: blur(10px);
}

.bh-pill .ldot {
    width: 6px;
    height: 6px;
    background: var(--color-blue-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-blue-light);
    animation: pulse 2s infinite;
}

.bh-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-white);
}

.bh-title span {
    background: linear-gradient(135deg, #ffffff 0%, #4d8eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bh-row {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.bh-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    color: var(--color-text);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.bh-card:hover {
    background: rgba(30, 107, 255, 0.15);
    border-color: var(--color-blue);
    transform: translateY(-2px);
}

.bh-card i {
    color: var(--color-blue-light);
    font-size: 0.72rem;
}

.bh-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.bh-btn {
    padding: 7px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: default;
}

.bh-btn.primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(30, 107, 255, 0.4);
}

.bh-btn.ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    border: 1px solid var(--color-border);
}

.browser-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(77, 142, 255, 0.1);
    overflow: hidden;
}

.browser-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-blue-light), transparent);
    width: 50%;
    animation: progressSweep 2.6s ease-in-out infinite;
}

@keyframes progressSweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ============= BUILD BEAM (data flowing between IDE→Browser) ============= */

.build-beam {
    position: relative;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, rgba(77, 142, 255, 0.1), rgba(77, 142, 255, 0.6), rgba(77, 142, 255, 0.1));
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(77, 142, 255, 0.5);
    overflow: hidden;
}

.beam-pulse {
    position: absolute;
    top: 0;
    left: -30%;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: beamFlow 1.6s linear infinite;
    box-shadow: 0 0 14px #ffffff;
}

@keyframes beamFlow {
    0%   { left: -30%; }
    100% { left: 100%; }
}

/* ============= PROCESS ROW ============= */

.process-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
    margin-top: 80px;
    position: relative;
}

.proc-cell {
    padding: 26px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.proc-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.6s var(--transition);
}

.proc-cell:hover {
    transform: translateY(-6px);
    border-color: var(--color-blue);
    background: rgba(30, 107, 255, 0.06);
}

.proc-cell:hover::before { width: 100%; }

.proc-num {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.proc-cell h4 { margin-bottom: 8px; font-size: 1.1rem; }
.proc-cell p { color: var(--color-text-muted); font-size: 0.88rem; line-height: 1.65; }

.proc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-light);
    font-size: 1.2rem;
    opacity: 0.5;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(6px); opacity: 1; }
}

/* ============= TECH STACK MARQUEE ============= */

.stack-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(30, 107, 255, 0.03) 50%, transparent);
}

.stack-section .container { position: relative; z-index: 1; }

.marquee-track-wrap {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    flex-shrink: 0;
}

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

.m-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    transition: all var(--transition);
}

.m-pill:hover {
    background: var(--color-blue-soft);
    border-color: var(--color-blue);
    color: var(--color-white);
    transform: translateY(-2px);
}

.m-pill i {
    color: var(--color-blue-light);
    font-size: 1.15rem;
}

/* ============= QUOTE / TESTIMONIAL SECTION ============= */

.quote-section {
    position: relative;
    overflow: hidden;
}

.quote-block {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    background:
        linear-gradient(145deg, rgba(30, 107, 255, 0.08), rgba(10, 62, 184, 0.02));
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

.quote-block::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(77, 142, 255, 0.4), transparent 50%, rgba(30, 107, 255, 0.3));
    z-index: -1;
    filter: blur(16px);
    opacity: 0.6;
}

.quote-icon {
    color: var(--color-blue-light);
    font-size: 2.2rem;
    margin-bottom: 14px;
    opacity: 0.7;
}

.quote-block blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-white);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.quote-author {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.qa-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-primary);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(30, 107, 255, 0.4);
}

.qa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qa-info { text-align: left; line-height: 1.3; }
.qa-info strong { color: var(--color-white); font-size: 0.95rem; display: block; }
.qa-info span { color: var(--color-text-muted); font-size: 0.8rem; }

/* Decorative floating squares */
.qa-deco {
    position: absolute;
    border: 2px solid rgba(77, 142, 255, 0.25);
    border-radius: 12px;
    pointer-events: none;
    animation: floatSquare 14s ease-in-out infinite;
}

.qa-d1 { width: 60px; height: 60px; top: 18%; left: 8%; animation-delay: 0s; transform: rotate(15deg); }
.qa-d2 { width: 40px; height: 40px; bottom: 22%; right: 10%; animation-delay: 3s; transform: rotate(-25deg); border-radius: 50%; }
.qa-d3 { width: 30px; height: 30px; top: 65%; left: 15%; animation-delay: 6s; transform: rotate(45deg); }

@keyframes floatSquare {
    0%, 100% { transform: translate(0, 0) rotate(15deg); opacity: 0.5; }
    50%      { transform: translate(15px, -20px) rotate(45deg); opacity: 0.9; }
}

/* ============= RESPONSIVE ============= */

@media (max-width: 1100px) {
    .build-stage {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .build-beam {
        width: 4px;
        height: 60px;
        background: linear-gradient(180deg, rgba(77, 142, 255, 0.1), rgba(77, 142, 255, 0.6), rgba(77, 142, 255, 0.1));
    }
    .beam-pulse {
        top: -30%;
        left: 0;
        width: 100%;
        height: 30%;
        background: linear-gradient(180deg, transparent, #ffffff, transparent);
        animation: beamFlowVert 1.6s linear infinite;
    }
    @keyframes beamFlowVert {
        0%   { top: -30%; }
        100% { top: 100%; }
    }

    .process-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .proc-arrow { display: none; }
}

@media (max-width: 768px) {
    .ide-window, .browser-window { transform: none !important; }
    .code-body { min-height: 260px; font-size: 0.7rem; }
    .code-area { font-size: 0.7rem; padding: 12px 14px; }
    .line-numbers { padding: 12px 8px; font-size: 0.66rem; }
    .browser-body { height: 260px; }
    .bh-title { font-size: 1.15rem; }
    .ide-foot { gap: 12px; font-size: 0.66rem; padding: 8px 12px; }
    .win-tabs .tab { font-size: 0.7rem; padding: 5px 10px; }

    .process-row { grid-template-columns: 1fr; }

    .floating-symbols .fs { font-size: 1.6rem; }
    .floating-symbols .fs-7 { font-size: 2.4rem; }

    .quote-block { padding: 1.75rem; }
    .quote-author { flex-direction: column; padding: 14px; }
    .qa-info { text-align: center; }

    .qa-deco { display: none; }
}

@media (max-width: 480px) {
    .marquee-content { gap: 10px; padding-right: 10px; }
    .m-pill { padding: 10px 18px; font-size: 0.85rem; }

    .win-tabs .tab:nth-child(n+2) { display: none; }
    .win-status { display: none; }
}
