/* --- Existing Animations --- */
@keyframes nebula-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%);
    }

    50% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(150%);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(50px, 9999px, 30px, 0);
    }

    15% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    25% {
        clip: rect(90px, 9999px, 60px, 0);
    }

    30% {
        clip: rect(60px, 9999px, 40px, 0);
    }

    35% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    40% {
        clip: rect(40px, 9999px, 10px, 0);
    }

    45% {
        clip: rect(80px, 9999px, 50px, 0);
    }

    50% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    55% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    60% {
        clip: rect(30px, 9999px, 60px, 0);
    }

    65% {
        clip: rect(70px, 9999px, 40px, 0);
    }

    70% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    75% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    80% {
        clip: rect(40px, 9999px, 50px, 0);
    }

    85% {
        clip: rect(60px, 9999px, 30px, 0);
    }

    90% {
        clip: rect(10px, 9999px, 70px, 0);
    }

    95% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 90px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(60px, 9999px, 50px, 0);
    }

    5% {
        clip: rect(10px, 9999px, 20px, 0);
    }

    10% {
        clip: rect(80px, 9999px, 90px, 0);
    }

    15% {
        clip: rect(40px, 9999px, 60px, 0);
    }

    20% {
        clip: rect(20px, 9999px, 10px, 0);
    }

    25% {
        clip: rect(70px, 9999px, 40px, 0);
    }

    30% {
        clip: rect(30px, 9999px, 80px, 0);
    }

    35% {
        clip: rect(90px, 9999px, 30px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 70px, 0);
    }

    45% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    50% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    55% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    60% {
        clip: rect(60px, 9999px, 90px, 0);
    }

    65% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    70% {
        clip: rect(40px, 9999px, 50px, 0);
    }

    75% {
        clip: rect(30px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(70px, 9999px, 20px, 0);
    }

    85% {
        clip: rect(50px, 9999px, 40px, 0);
    }

    90% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    95% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 50px, 0);
    }
}

@keyframes border-flow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
        /* Blue */
    }

    50% {
        box-shadow: 0 0 25px rgba(247, 37, 133, 0.6);
        /* Pink */
    }

    100% {
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
        /* Blue */
    }
}

.reactor-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.reactor-core {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fff, var(--accent-pink));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-pink);
    animation: pulse-glow 2s infinite alternate;
    z-index: 10;
}

.reactor-ring {
    border: 4px solid rgba(67, 97, 238, 0.3);
    border-top: 4px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.2);
}

.ring-3 {
    border: 2px dashed rgba(247, 37, 133, 0.5);
}

.reactor-particles span {
    background: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

/* Holo Target */
.holo-circle {
    border: 2px solid rgba(247, 37, 133, 0.3);
    box-shadow: 0 0 10px rgba(247, 37, 133, 0.1);
}

.c-1 {
    border-top: 2px solid var(--accent-pink);
}

.c-2 {
    border-bottom: 2px solid var(--accent-blue);
}

/* Orbital Network */
.network-core {
    background: var(--accent-blue);
    box-shadow: 0 0 30px var(--accent-blue);
}

.satellite {
    background: var(--accent-pink);
    box-shadow: 0 0 15px var(--accent-pink);
}

@keyframes pulse-network {

    0%,
    100% {
        box-shadow: 0 0 30px var(--accent-blue);
    }

    50% {
        box-shadow: 0 0 50px var(--accent-blue);
    }
}

.ring-1 {
    width: 120px;
    height: 120px;
    animation: rotate 4s linear infinite;
}

.ring-2 {
    width: 160px;
    height: 160px;
    animation: rotate-reverse 7s linear infinite;
}

.ring-3 {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(112, 0, 255, 0.5);
    animation: rotate 12s linear infinite;
}

.reactor-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-purple);
}

.reactor-particles span:nth-child(1) {
    top: 0;
    left: 50%;
    animation: orbit 3s linear infinite;
}

.reactor-particles span:nth-child(2) {
    bottom: 0;
    right: 50%;
    animation: orbit 4s linear infinite reverse;
}

.reactor-particles span:nth-child(3) {
    top: 50%;
    left: 0;
    animation: orbit 5s linear infinite;
}

.reactor-particles span:nth-child(4) {
    bottom: 50%;
    right: 0;
    animation: orbit 6s linear infinite reverse;
}

@keyframes rotate {
    0% {
        transform: rotateX(60deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: rotateX(-60deg) rotateZ(360deg);
    }

    100% {
        transform: rotateX(-60deg) rotateZ(0deg);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(80px) rotate(-360deg);
    }
}

/* --- Holo Target --- */
.holo-target {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.holo-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(112, 0, 255, 0.3);
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.1);
}

.c-1 {
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--accent-purple);
    animation: spin 10s linear infinite;
}

.c-2 {
    width: 70%;
    height: 70%;
    border-bottom: 2px solid var(--accent-cyan);
    animation: spin-reverse 8s linear infinite;
}

.c-3 {
    width: 40%;
    height: 40%;
    border-left: 2px solid #fff;
    animation: spin 5s linear infinite;
}

.holo-crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
}

.holo-crosshair::before,
.holo-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
}

.holo-crosshair::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.holo-crosshair::after {
    height: 100%;
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* --- Bespoke Animations (Premium Glow Upgrade) --- */
.orbital-network {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 10px rgba(76, 201, 240, 0.2));
    /* Container Glow */
}

.network-core {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #fff, var(--accent-cyan));
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-cyan), 0 0 50px rgba(76, 201, 240, 0.4);
    /* Core Glow */
    z-index: 10;
    animation: pulse-network 2s infinite;
}

.orbit-path {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.1);
    /* Soft Path Glow */
}

.op-1 {
    width: 140px;
    height: 140px;
    animation: spin 8s linear infinite;
    border-color: rgba(76, 201, 240, 0.3);
}

.op-2 {
    width: 240px;
    height: 240px;
    animation: spin-reverse 12s linear infinite;
    border-color: rgba(114, 9, 183, 0.3);
}

.satellite {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-purple), 0 0 5px #fff;
    /* Satellite Glow */
    transform: translateX(-50%);
}

.op-1 .satellite:nth-child(2) {
    top: auto;
    bottom: -10px;
    background: var(--accent-cyan);
    border-color: #fff;
    box-shadow: 0 0 15px var(--accent-cyan);
}

.op-2 .satellite:nth-child(2) {
    top: auto;
    bottom: -10px;
}

.op-2 .satellite:nth-child(3) {
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
}

.op-2 .satellite:nth-child(4) {
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    left: auto;
    background: var(--accent-pink);
    border-color: #fff;
    box-shadow: 0 0 15px var(--accent-pink);
}

@keyframes pulse-network {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--accent-cyan);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 50px var(--accent-cyan);
    }
}

/* Holo Stack */
.stack-layer {
    background: rgba(67, 97, 238, 0.1);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.2);
    color: var(--accent-blue);
}

.l-2 {
    background: rgba(247, 37, 133, 0.1);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

/* Digital Pulse */
.pulse-circle {
    border: 2px solid var(--accent-blue);
}

.pc-2 {
    border-color: var(--accent-pink);
}

/* Sonar Target */
.sr-1 {
    border-color: var(--accent-blue);
}

.sr-2 {
    border-color: var(--accent-pink);
}

.sr-3 {
    border-color: var(--accent-blue);
}

/* Live Graph */
.gb-2 {
    background: var(--accent-pink);
}

.gb-3 {
    background: var(--accent-blue);
}

/* SERP Ranker */
.item-3 {
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.2);
}

.item-3::before {
    background: var(--accent-blue);
}

@keyframes climb-up {
    50% {
        box-shadow: 0 0 30px var(--accent-blue);
    }
}

/* Holo Globe */
.globe-ring {
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 5px var(--accent-blue);
}

.gr-4 {
    border-color: var(--accent-pink);
}

/* Holo Stack (Premium Upgrade) */
.stack-layer {
    position: absolute;
    width: 100%;
    height: 140px;
    background: rgba(10, 15, 28, 0.6);
    /* Darker glass */
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    box-shadow:
        0 0 15px rgba(76, 201, 240, 0.2),
        inset 0 0 20px rgba(76, 201, 240, 0.1);
    /* Inner/Outer Glow */
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: monospace;
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.l-1 {
    bottom: 0;
    transform: translateZ(0);
    animation: float-stack 4s ease-in-out infinite;
    z-index: 1;
}

.l-2 {
    bottom: 40px;
    transform: translateZ(40px);
    background: rgba(10, 15, 28, 0.6);
    border-color: var(--accent-purple);
    box-shadow:
        0 0 15px rgba(114, 9, 183, 0.2),
        inset 0 0 20px rgba(114, 9, 183, 0.1);
    animation: float-stack 4s ease-in-out infinite 0.5s;
    z-index: 2;
    text-shadow: 0 0 10px var(--accent-purple);
}

.l-3 {
    bottom: 80px;
    transform: translateZ(80px);
    background: rgba(10, 15, 28, 0.6);
    border-color: var(--accent-pink);
    box-shadow:
        0 0 15px rgba(247, 37, 133, 0.2),
        inset 0 0 20px rgba(247, 37, 133, 0.1);
    animation: float-stack 4s ease-in-out infinite 1s;
    z-index: 3;
    text-shadow: 0 0 10px var(--accent-pink);
}

@keyframes float-stack {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Digital Pulse (Premium Upgrade) */
.digital-pulse {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.2));
}

.pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 15px var(--accent-cyan), inset 0 0 10px rgba(0, 240, 255, 0.2);
    /* Glow */
    animation: ripple 3s infinite linear;
}

.pc-2 {
    animation-delay: 1s;
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px var(--accent-pink), inset 0 0 10px rgba(247, 37, 133, 0.2);
}

.pc-3 {
    animation-delay: 2s;
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple), inset 0 0 10px rgba(114, 9, 183, 0.2);
}

.pen-icon {
    font-size: 4rem;
    color: #fff;
    z-index: 5;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    /* Icon Glow */
    animation: bob 2s ease-in-out infinite;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 4px;
    }

    100% {
        width: 100%;
        height: 100%;
        opacity: 0;
        border-width: 0px;
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    50% {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* Sonar Target (Premium Upgrade) */
.sonar-target {
    position: relative;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.1);
}

.sonar-ring {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    /* Fixed opacity */
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.1);
}

.sr-1 {
    width: 140px;
    height: 140px;
    border-color: rgba(76, 201, 240, 0.5);
    animation: rotate-sonar 10s linear infinite;
}

.sr-2 {
    width: 190px;
    height: 190px;
    border-color: rgba(247, 37, 133, 0.5);
    animation: rotate-sonar-rev 15s linear infinite;
}

.sr-3 {
    /* New outer ring */
    width: 240px;
    height: 240px;
    border: 2px solid var(--accent-blue);
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
    animation: pulse-ring 2s infinite;
}

@keyframes rotate-sonar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-sonar-rev {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.4;
    }
}

.center-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 25px var(--accent-cyan);
    z-index: 10;
    animation: blink-dot 1s infinite alternate;
}

@keyframes blink-dot {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Live Graph (Premium Upgrade) */
.live-graph {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 150px;
    width: 200px;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.graph-bar {
    width: 20px;
    background: var(--gradient-main);
    border-radius: 4px 4px 0 0;
    animation: grow-bar 3s ease-in-out infinite;
    transform-origin: bottom;
    box-shadow: 0 0 15px var(--accent-blue);
    /* Bar Glow */
}

.gb-1 {
    height: 40%;
    animation-delay: 0s;
}

.gb-2 {
    height: 70%;
    animation-delay: 0.2s;
    background: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple);
}

.gb-3 {
    height: 50%;
    animation-delay: 0.4s;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.gb-4 {
    height: 90%;
    animation-delay: 0.6s;
}

.gb-5 {
    height: 60%;
    animation-delay: 0.8s;
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

@keyframes grow-bar {

    0%,
    100% {
        transform: scaleY(1);
        filter: brightness(1);
    }

    50% {
        transform: scaleY(0.5);
        filter: brightness(0.8);
    }
}

/* --- NEW: SEO SERP Ranker --- */
.serp-ranker {
    position: relative;
    width: 240px;
    height: 200px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.serp-bar {
    width: 60%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 25px;
}

.serp-item {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.serp-item::before {
    content: '';
    width: 40%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Positions */
.item-1 {
    top: 60px;
    animation: drop-down 4s ease-in-out infinite;
}

.item-2 {
    top: 100px;
}

.item-3 {
    top: 140px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    animation: climb-up 4s ease-in-out infinite;
    z-index: 10;
}

.item-3::before {
    background: var(--accent-cyan);
    width: 60%;
}

@keyframes climb-up {
    0% {
        top: 140px;
        transform: scale(1);
    }

    20% {
        transform: scale(1.05);
    }

    50% {
        top: 60px;
        transform: scale(1);
        box-shadow: 0 0 30px var(--accent-cyan);
    }

    90% {
        top: 60px;
    }

    100% {
        top: 140px;
    }
}

@keyframes drop-down {
    0% {
        top: 60px;
    }

    50% {
        top: 100px;
        opacity: 0.5;
    }

    90% {
        top: 100px;
    }

    100% {
        top: 60px;
    }
}

/* --- Contact Page Enhancements --- */

/* 1. Holo-Globe */
.holo-globe {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: rotate-globe 10s linear infinite;
}

.globe-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-cyan);
    opacity: 0.7;
}

.gr-1 {
    transform: rotateY(0deg);
}

.gr-2 {
    transform: rotateY(60deg);
}

.gr-3 {
    transform: rotateY(120deg);
}

.gr-4 {
    transform: rotateX(90deg);
    border-color: var(--accent-purple);
}

@keyframes rotate-globe {
    0% {
        transform: rotateX(15deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(15deg) rotateY(360deg);
    }
}

/* 2. Contact Timeline */
.contact-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
    padding: 20px 0;
}

.contact-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    padding: 10px;
    text-align: center;
    width: 30%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, border-color 0.3s;
}

.timeline-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.1);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.timeline-step:nth-child(2) .step-icon {
    background: rgba(112, 0, 255, 0.1);
    color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.2);
}

.timeline-step h5 {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #fff;
}

.timeline-step p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* 3. Form Focus Glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.05);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Particle Burst (Applied via JS) */
.input-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-burst 0.5s ease-out forwards;
}

@keyframes particle-burst {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* --- RESTORED: SEO Search Matrix --- */
.seo-matrix {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    transform: rotateX(45deg) rotateZ(45deg);
    transform-style: preserve-3d;
}

.matrix-block {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    animation: block-pulse 3s infinite;
}

.matrix-block.win {
    background: var(--accent-cyan);
    box-shadow: 0 0 30px var(--accent-cyan);
    animation: block-rise 3s infinite;
    z-index: 10;
    border: none;
}

.matrix-scan {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 10px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0.8;
    animation: scan-matrix 3s ease-in-out infinite;
    box-shadow: 0 0 20px var(--accent-purple);
    filter: blur(4px);
    transform: translateZ(20px);
}

@keyframes block-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes block-rise {

    0%,
    100% {
        transform: translateZ(0);
    }

    50% {
        transform: translateZ(40px);
    }
}

@keyframes scan-matrix {
    0% {
        top: -20%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 120%;
        opacity: 0;
    }
}

/* --- WORDPRESS: CMS Stack (Isometric Blocks) --- */
.cms-stack {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(45deg);
}

.cms-block {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(67, 97, 238, 0.2);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.2);
    transition: transform 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #fff;
}

.block-1 {
    transform: translateZ(0);
    background: rgba(16, 20, 38, 0.8);
    animation: stack-1 4s infinite;
}

.block-2 {
    transform: translateZ(40px);
    background: rgba(155, 93, 229, 0.3);
    border-color: var(--accent-purple);
    animation: stack-2 4s infinite;
}

.block-3 {
    transform: translateZ(80px);
    background: rgba(247, 37, 133, 0.3);
    border-color: var(--accent-pink);
    animation: stack-3 4s infinite;
}

.wp-icon {
    transform: rotateZ(-45deg) rotateX(-60deg);
    /* Counter-rotate icon to face viewer */
}

@keyframes stack-1 {

    0%,
    100% {
        transform: translateZ(0);
    }

    50% {
        transform: translateZ(-20px);
    }
}

@keyframes stack-2 {

    0%,
    100% {
        transform: translateZ(40px);
    }

    50% {
        transform: translateZ(60px);
    }
}

@keyframes stack-3 {

    0%,
    100% {
        transform: translateZ(80px);
    }

    50% {
        transform: translateZ(120px);
    }
}

/* --- CMS Stack: Responsive Scaling --- */
/* Tablet: scale down slightly */
@media (max-width: 1024px) {
    .visual-placeholder {
        overflow: visible;
        height: auto;
        min-height: 240px;
        padding: 20px 0;
    }

    .cms-stack {
        transform: rotateX(60deg) rotateZ(45deg) scale(0.85);
        transform-origin: center center;
    }
}

/* Mobile: scale down further and centre cleanly */
@media (max-width: 768px) {
    .visual-placeholder {
        overflow: visible;
        height: auto;
        min-height: 200px;
        padding: 30px 0 10px;
    }

    .cms-stack {
        transform: rotateX(60deg) rotateZ(45deg) scale(0.65);
        transform-origin: center center;
        margin: 0 auto;
    }
}

/* Small mobile: scale down even more */
@media (max-width: 480px) {
    .cms-stack {
        transform: rotateX(60deg) rotateZ(45deg) scale(0.5);
        transform-origin: center center;
    }

    .visual-placeholder {
        min-height: 160px;
    }
}

: Conversion Funnel --- */ .funnel-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.funnel-layer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.fl-1 {
    width: 200px;
    height: 40px;
    border-color: var(--accent-blue);
    animation: pulse-border 3s infinite;
}

.fl-2 {
    width: 140px;
    height: 40px;
    border-color: var(--accent-purple);
    animation: pulse-border 3s infinite 0.5s;
}

.fl-3 {
    width: 80px;
    height: 40px;
    border-color: var(--accent-pink);
    animation: pulse-border 3s infinite 1s;
    background: rgba(247, 37, 133, 0.2);
}

.conversion-particle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: drop-convert 2.5s infinite linear;
}

.cp-2 {
    animation-delay: 0.8s;
    left: 45%;
}

.cp-3 {
    animation-delay: 1.6s;
    left: 55%;
}

@keyframes drop-convert {
    0% {
        top: -10px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 160px;
        opacity: 0;
        transform: scale(0.5);
    }
}


/* --- SMO: Social Grid --- */
.social-grid {
    position: relative;
    width: 240px;
    height: 240px;
}

.s-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    animation: node-pulse 3s infinite;
}

.sn-1 {
    top: 20px;
    left: 100px;
}

.sn-2 {
    top: 90px;
    left: 30px;
    animation-delay: 0.5s;
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.sn-3 {
    top: 90px;
    left: 170px;
    animation-delay: 1s;
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.sn-4 {
    top: 180px;
    left: 60px;
    animation-delay: 1.5s;
}

.sn-5 {
    top: 180px;
    left: 140px;
    animation-delay: 2s;
    border-color: #fff;
    color: #fff;
}

.s-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    height: 2px;
    transform-origin: left center;
}

.sl-1 {
    width: 90px;
    top: 40px;
    left: 120px;
    transform: rotate(135deg);
}

.sl-2 {
    width: 90px;
    top: 40px;
    left: 120px;
    transform: rotate(45deg);
}

.sl-3 {
    width: 140px;
    top: 110px;
    left: 50px;
    transform: rotate(0deg);
}

.sl-4 {
    width: 80px;
    top: 110px;
    left: 50px;
    transform: rotate(65deg);
}

@keyframes node-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px currentColor;
    }
}


/* --- ANALYTICS: Data Dashboard --- */
.data-dashboard {
    position: relative;
    width: 240px;
    height: 180px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.db-bar {
    width: 30px;
    background: var(--gradient-main);
    border-radius: 4px 4px 0 0;
    animation: bar-grow-2 3s ease-out infinite;
    transform-origin: bottom;
}

.db-1 {
    height: 40%;
    animation-delay: 0s;
}

.db-2 {
    height: 70%;
    animation-delay: 0.2s;
    background: var(--accent-purple);
}

.db-3 {
    height: 50%;
    animation-delay: 0.4s;
    background: var(--accent-cyan);
}

.db-4 {
    height: 90%;
    animation-delay: 0.6s;
}

.db-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.db-line svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px #fff);
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw-line 4s linear infinite;
}

@keyframes bar-grow-2 {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.6);
    }
}

@keyframes draw-line {
    0% {
        stroke-dashoffset: 500;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -500;
    }
}


/* --- CONTENT: Content Flow (Typewriter) --- */
.content-flow {
    position: relative;
    width: 220px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cf-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 4px;
    animation: type-line 2s ease-out infinite;
    width: 0;
}

.cf-header {
    height: 12px;
    background: var(--accent-cyan);
    margin-bottom: 20px;
    width: 60%;
    animation: type-line 2s ease-out infinite forwards;
}

.cf-1 {
    width: 90%;
    animation-delay: 0.5s;
    background: var(--accent-purple);
}

.cf-2 {
    width: 80%;
    animation-delay: 1s;
}

.cf-3 {
    width: 95%;
    animation-delay: 1.5s;
    background: var(--accent-pink);
}

.cf-cursor {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-cursor 1s infinite;
}

@keyframes type-line {
    0% {
        width: 0;
        opacity: 0.5;
    }

    100% {
        width: var(--w, 100%);
        opacity: 1;
    }
}

@keyframes pulse-cursor {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* --- HOME: Growth Rocket (Premium Glow Upgrade) --- */
.growth-rocket-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.1));
    /* Container Glow */
}

.rocket-ship {
    position: absolute;
    font-size: 4rem;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 25px var(--accent-cyan));
    /* Stronger Glow */
    z-index: 10;
    offset-path: path('M20,200 Q150,100 280,0');
    offset-rotate: auto 45deg;
    animation: rocket-trajectory 4s ease-in-out infinite;
}

/* Fallback for browsers without offset-path */
@supports not (offset-path: path('M0,0')) {
    .rocket-ship {
        animation: rocket-trajectory-fallback 4s ease-in-out infinite;
    }
}

.exhaust-plume {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 20px;
    /* Wider plume */
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-pink), var(--accent-purple), transparent);
    border-radius: 50%;
    filter: blur(12px);
    /* Softer blur */
    opacity: 0.8;
    animation: exhaust-pulse 0.2s infinite alternate;
    box-shadow: 0 0 20px var(--accent-pink);
    /* Plume Glow */
}

.star-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 12px var(--accent-cyan);
    /* Star Glow */
    animation: star-pass 1.5s linear infinite;
}

.s-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.s-2 {
    top: 30%;
    left: 80%;
    animation-delay: 0.4s;
}

.s-3 {
    top: 60%;
    left: 10%;
    animation-delay: 0.8s;
}

.s-4 {
    top: 80%;
    left: 70%;
    animation-delay: 1.2s;
}

.s-5 {
    top: 50%;
    left: 50%;
    animation-delay: 0.2s;
    width: 2px;
    height: 2px;
}

.growth-milestone {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Base Glow */
    transition: all 0.3s ease;
}

.gm-1 {
    bottom: 50px;
    left: 20px;
    animation: milestone-light 4s infinite 0.5s;
}

.gm-2 {
    bottom: 120px;
    left: 150px;
    animation: milestone-light 4s infinite 1.8s;
}

.gm-3 {
    bottom: 250px;
    left: 280px;
    animation: milestone-light 4s infinite 3.5s;
}

.result-label {
    position: absolute;
    top: 10px;
    right: -10px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    /* Gradient BG */
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.6);
    /* Label Glow */
    animation: label-pop 4s infinite 3.6s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.growth-graph-line {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.growth-graph-line svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
    stroke-dasharray: 10, 5;
    /* Match the offset-path curve visually */
}

.graph-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    stroke: var(--accent-cyan);
    /* Make the path light up */
    opacity: 0.5;
    animation: draw-graph 4s ease-in-out infinite;
}

@keyframes rocket-trajectory {
    0% {
        offset-distance: 0%;
        opacity: 0;
        transform: scale(0.5);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes rocket-trajectory-fallback {

    /* Fallback approximate positions - Lifted up */
    0% {
        bottom: 100px;
        left: 20px;
        opacity: 0;
        transform: rotate(45deg) scale(0.5);
    }

    10% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }

    100% {
        bottom: 300px;
        left: 280px;
        opacity: 0;
        transform: rotate(45deg) scale(1.5);
    }
}

@keyframes milestone-light {
    0% {
        background: var(--bg-card);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: none;
        transform: translate(-50%, -50%) scale(1);
    }

    10% {
        background: #fff;
        border-color: var(--accent-cyan);
        box-shadow: 0 0 15px var(--accent-cyan);
        transform: translate(-50%, -50%) scale(1.3);
    }

    100% {
        background: #fff;
        border-color: var(--accent-cyan);
        box-shadow: 0 0 15px var(--accent-cyan);
        transform: translate(-50%, -50%) scale(1);
    }

    /* Stay lit */
}

@keyframes label-pop {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes exhaust-pulse {
    0% {
        height: 40px;
        opacity: 0.9;
    }

    100% {
        height: 70px;
        opacity: 0.5;
    }
}

@keyframes star-pass {
    0% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(300px) scale(1.5);
        opacity: 0;
    }
}

@keyframes draw-graph {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* --- SEO: SERP Climber (New Bespoke Animation) --- */
.serp-climber {
    position: relative;
    width: 260px;
    height: 320px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.serp-row {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
}

.serp-row::before {
    content: '';
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-right: 10px;
}

.serp-row::after {
    content: '';
    width: 60%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* The Winner Row */
.serp-row.winner {
    position: absolute;
    width: calc(100% - 40px);
    /* Account for padding */
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    z-index: 10;
    bottom: 20px;
    /* Start at bottom */
    animation: rank-up 4s ease-in-out infinite;
}

.serp-row.winner::before {
    background: #fff;
}

.serp-row.winner::after {
    background: rgba(255, 255, 255, 0.8);
}

/* Competitor Rows (Shifting Down) */
.serp-row.competitor {
    animation: shift-down 4s ease-in-out infinite;
}

.r-1 {
    animation-delay: 0s;
}

.r-2 {
    animation-delay: 0.1s;
}

.r-3 {
    animation-delay: 0.2s;
}

.r-4 {
    animation-delay: 0.3s;
}

@keyframes rank-up {
    0% {
        transform: translateY(0);
        bottom: 20px;
    }

    20% {
        transform: translateY(0);
        bottom: 20px;
    }

    50% {
        transform: translateY(-208px) scale(1.05);
        bottom: 20px;
    }

    /* Move up to top slot */
    80% {
        transform: translateY(-208px) scale(1.05);
        bottom: 20px;
    }

    100% {
        transform: translateY(0);
        bottom: 20px;
    }
}

@keyframes shift-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    20% {
        transform: translateY(0);
        opacity: 1;
    }

    40% {
        transform: translateY(52px);
        opacity: 0.5;
    }

    /* Move down to make space */
    60% {
        transform: translateY(52px);
        opacity: 0.5;
    }

    80% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}