/* ============================================
   RayaTork Realistic 3D Industrial Pipe System
   Professional industrial actuator and pipe animation
   ============================================ */

/* Loading Overlay */
.rayatork-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        #010d19 0%,
        #010d19 50%,
        #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.rayatork-loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Exit animation - overlay fades out immediately */
.rayatork-loader-overlay.exiting {
    animation: exitFade 0.8s ease-out forwards;
}

@keyframes exitFade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Fade out loader content (everything except logo) */
.rayatork-loader.fading {
    animation: contentFadeOut 0.8s ease-out forwards;
}

@keyframes contentFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Loading Container */
.rayatork-loader {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 40px;
}

/* ==================== COMPANY NAMES (SMALL) ==================== */

.company-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
}

.company-name-persian {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    direction: rtl;
}

.company-name-english {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(180, 180, 180, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ==================== 3D PIPE SYSTEM ==================== */

.pipe-system {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

/* Pipe Common Styles */
.pipe {
    position: absolute;
    overflow: visible;
}

/* ==================== HORIZONTAL PIPES ==================== */

.pipe.horizontal {
    height: 60px;
    width: 42%;
}

.pipe.horizontal .pipe-body {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    bottom: 0;
    background: linear-gradient(to bottom,
        #505050 0%,
        #787878 5%,
        #a0a0a0 15%,
        #c8c8c8 30%,
        #d0d0d0 45%,
        #b8b8b8 55%,
        #888888 70%,
        #606060 85%,
        #404040 95%,
        #505050 100%
    );
    border-radius: 30px;
    box-shadow:
        inset 0 8px 15px rgba(255, 255, 255, 0.4),
        inset 0 -10px 20px rgba(0, 0, 0, 0.7),
        0 15px 30px rgba(0, 0, 0, 0.5);
}

.pipe.horizontal .pipe-highlight {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    height: 18px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    border-radius: 30px 30px 0 0;
    display: none; /* Hide pipe highlight - water fills the pipe instead */
}

.pipe.horizontal .pipe-shadow {
    position: absolute;
    bottom: 8px;
    left: 10px;
    right: 10px;
    height: 18px;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
    border-radius: 0 0 30px 30px;
}

.pipe.horizontal .pipe-seam {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%
    );
    transform: translateY(-50%);
}

/* ==================== VERTICAL PIPES ==================== */

.pipe.vertical {
    width: 60px;
    height: 32%;
}

.pipe.vertical .pipe-body {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    bottom: 15px;
    background: linear-gradient(to right,
        #505050 0%,
        #787878 5%,
        #a0a0a0 15%,
        #c8c8c8 30%,
        #d0d0d0 45%,
        #b8b8b8 55%,
        #888888 70%,
        #606060 85%,
        #404040 95%,
        #505050 100%
    );
    border-radius: 30px;
    box-shadow:
        inset 0 8px 15px rgba(255, 255, 255, 0.4),
        inset 0 -10px 20px rgba(0, 0, 0, 0.7),
        0 15px 30px rgba(0, 0, 0, 0.5);
}

.pipe.vertical .pipe-highlight {
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 18px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    border-radius: 30px 0 0 30px;
    display: none; /* Hide pipe highlight - water fills the pipe instead */
}

.pipe.vertical .pipe-shadow {
    position: absolute;
    right: 8px;
    top: 10px;
    bottom: 10px;
    width: 18px;
    background: linear-gradient(to left,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
    border-radius: 0 30px 30px 0;
}

.pipe.vertical .pipe-seam {
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
}

/* ==================== PIPE FLANGES ==================== */

.pipe-flange {
    position: absolute;
    background:
        radial-gradient(circle at 30% 30%,
            #888888 0%,
            #606060 40%,
            #404040 100%
        );
    box-shadow:
        inset 0 4px 8px rgba(255, 255, 255, 0.3),
        inset 0 -4px 12px rgba(0, 0, 0, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.pipe.horizontal .pipe-flange {
    width: 30px;
    height: 80px;
    top: -10px;
    border-radius: 8px;
}

.pipe.horizontal .flange-left {
    left: 0;
}

.pipe.horizontal .flange-right {
    right: 0;
}

.pipe.vertical .pipe-flange {
    width: 80px;
    height: 30px;
    left: -10px;
    border-radius: 8px;
}

.pipe.vertical .flange-top {
    top: 0;
}

.pipe.vertical .flange-bottom {
    bottom: 0;
}

/* Flange bolt holes (decorative) */
.pipe-flange::before,
.pipe-flange::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle,
        #1a1a1a 0%,
        #303030 40%,
        #404040 100%
    );
    border-radius: 50%;
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(255, 255, 255, 0.2);
}

.pipe.horizontal .pipe-flange::before {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.pipe.horizontal .pipe-flange::after {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.pipe.vertical .pipe-flange::before {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.pipe.vertical .pipe-flange::after {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==================== PIPE POSITIONING ==================== */

.pipe-inlet {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.pipe-outlet {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.pipe-top-branch {
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
}

.pipe-bottom-branch {
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
}

/* ==================== REALISTIC WATER FLOW ==================== */

.water-flow {
    position: absolute;
    opacity: 0;
    overflow: visible;
}

/* Horizontal Water */
.pipe.horizontal .water-flow {
    top: 8px;
    left: 15px;
    right: 15px;
    bottom: 8px;
    border-radius: 25px;
    background: linear-gradient(90deg,
        rgba(33, 212, 253, 0.7) 0%,
        rgba(0, 201, 255, 0.9) 30%,
        rgba(0, 154, 187, 1) 50%,
        rgba(0, 201, 255, 0.9) 70%,
        rgba(33, 212, 253, 0.7) 100%
    );
    box-shadow:
        inset 0 -4px 10px rgba(33, 212, 253, 0.5),
        0 0 20px rgba(0, 201, 255, 0.4);
}

/* Vertical Water */
.pipe.vertical .water-flow {
    left: 8px;
    top: 15px;
    right: 8px;
    bottom: 15px;
    border-radius: 25px;
    background: linear-gradient(180deg,
        rgba(33, 212, 253, 0.7) 0%,
        rgba(0, 201, 255, 0.9) 30%,
        rgba(0, 154, 187, 1) 50%,
        rgba(0, 201, 255, 0.9) 70%,
        rgba(33, 212, 253, 0.7) 100%
    );
    box-shadow:
        inset 0 -4px 10px rgba(33, 212, 253, 0.5),
        0 0 20px rgba(0, 201, 255, 0.4);
}

/* Water Bubbles */
.water-bubble {
    position: absolute;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(200, 240, 255, 0.6) 40%,
        rgba(33, 212, 253, 0.3) 100%
    );
    border-radius: 50%;
    opacity: 0;
}

/* Horizontal bubbles */
.pipe.horizontal .water-bubble {
    width: 12px;
    height: 12px;
}

.pipe.horizontal .bubble-1 {
    top: 20%;
    left: 15%;
    animation: bubbleFloatH1 2s ease-in-out infinite;
}

.pipe.horizontal .bubble-2 {
    top: 60%;
    left: 45%;
    animation: bubbleFloatH2 2.5s ease-in-out infinite 0.5s;
}

.pipe.horizontal .bubble-3 {
    top: 35%;
    left: 75%;
    animation: bubbleFloatH3 2.2s ease-in-out infinite 1s;
}

@keyframes bubbleFloatH1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    50% { transform: translate(30px, -5px) scale(1.2); opacity: 0.6; }
    80% { opacity: 0.8; }
    100% { transform: translate(60px, 0) scale(1); opacity: 0; }
}

@keyframes bubbleFloatH2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.7; }
    50% { transform: translate(-20px, 5px) scale(1.1); opacity: 0.5; }
    80% { opacity: 0.7; }
    100% { transform: translate(-40px, 0) scale(1); opacity: 0; }
}

@keyframes bubbleFloatH3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.9; }
    50% { transform: translate(15px, 3px) scale(1.3); opacity: 0.7; }
    80% { opacity: 0.9; }
    100% { transform: translate(30px, 0) scale(1); opacity: 0; }
}

/* Vertical bubbles */
.pipe.vertical .water-bubble {
    width: 10px;
    height: 10px;
}

.pipe.vertical .bubble-1 {
    left: 25%;
    top: 20%;
    animation: bubbleFloatV1 2s ease-in-out infinite;
}

.pipe.vertical .bubble-2 {
    left: 60%;
    top: 50%;
    animation: bubbleFloatV2 2.3s ease-in-out infinite 0.7s;
}

@keyframes bubbleFloatV1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    50% { transform: translate(-3px, 20px) scale(1.2); opacity: 0.6; }
    80% { opacity: 0.8; }
    100% { transform: translate(0, 40px) scale(1); opacity: 0; }
}

@keyframes bubbleFloatV2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.7; }
    50% { transform: translate(4px, -15px) scale(1.1); opacity: 0.5; }
    80% { opacity: 0.7; }
    100% { transform: translate(0, -30px) scale(1); opacity: 0; }
}

/* Water Shimmer */
.water-shimmer {
    position: absolute;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    opacity: 0;
}

.pipe.horizontal .water-shimmer {
    top: 15%;
    left: 0;
    right: 0;
    height: 25%;
    border-radius: 20px;
}

.pipe.horizontal .shimmer-1 {
    animation: shimmerH 2s ease-in-out infinite;
}

.pipe.horizontal .shimmer-2 {
    animation: shimmerH 2s ease-in-out infinite 1s;
}

@keyframes shimmerH {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 0.4; transform: translateX(100%); }
}

.pipe.vertical .water-shimmer {
    left: 15%;
    top: 0;
    bottom: 0;
    width: 25%;
    border-radius: 20px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
}

.pipe.vertical .shimmer-1 {
    animation: shimmerV 2s ease-in-out infinite;
}

@keyframes shimmerV {
    0%, 100% { opacity: 0; transform: translateY(-100%); }
    50% { opacity: 0.4; transform: translateY(100%); }
}

/* ==================== SEQUENTIAL WATER FLOW ANIMATIONS ==================== */
/* Water flows controlled by actuator: LEFT → UP → RIGHT → DOWN */

/* Phase 1 (0-20%): Handle points LEFT - inlet water flows in */
.water-inlet {
    animation: flowInlet 3.5s ease-in-out forwards;
}

@keyframes flowInlet {
    0% {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
    }
    18%, 100% {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Phase 2 (22-45%): Handle points UP - top branch water flows out */
.water-top-branch {
    animation: flowTopBranch 3.5s ease-in-out forwards;
}

@keyframes flowTopBranch {
    0%, 22% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
    40%, 100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

/* Phase 3 (47-70%): Handle points RIGHT - outlet water flows out */
.water-outlet {
    animation: flowOutlet 3.5s ease-in-out forwards;
}

@keyframes flowOutlet {
    0%, 47% {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
    }
    65%, 100% {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Phase 4 (72-100%): Handle points DOWN - bottom branch water flows out */
.water-bottom-branch {
    animation: flowBottomBranch 3.5s ease-in-out forwards;
}

@keyframes flowBottomBranch {
    0%, 72% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    90%, 100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* ==================== INDUSTRIAL BALL VALVE ACTUATOR ==================== */

.actuator-valve {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    z-index: 20;
}

/* Valve Body */
.valve-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.valve-body-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background:
        radial-gradient(circle at 35% 35%,
            #707070 0%,
            #585858 30%,
            #404040 60%,
            #2a2a2a 100%
        );
    border-radius: 50%;
    box-shadow:
        inset 0 10px 25px rgba(255, 255, 255, 0.2),
        inset 0 -12px 30px rgba(0, 0, 0, 0.8),
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 0 8px rgba(80, 80, 80, 0.4),
        0 0 0 12px rgba(60, 60, 60, 0.3);
    animation: valveActivate 3.5s ease-in-out forwards;
}

@keyframes valveActivate {
    0%, 20% {
        box-shadow:
            inset 0 10px 25px rgba(255, 255, 255, 0.2),
            inset 0 -12px 30px rgba(0, 0, 0, 0.8),
            0 20px 50px rgba(0, 0, 0, 0.7),
            0 0 0 8px rgba(80, 80, 80, 0.4),
            0 0 0 12px rgba(60, 60, 60, 0.3);
    }
    25%, 100% {
        box-shadow:
            inset 0 10px 25px rgba(255, 255, 255, 0.2),
            inset 0 -12px 30px rgba(0, 0, 0, 0.8),
            0 20px 50px rgba(0, 0, 0, 0.7),
            0 0 0 8px rgba(80, 80, 80, 0.4),
            0 0 0 12px rgba(60, 60, 60, 0.3),
            0 0 50px rgba(33, 212, 253, 0.9),
            0 0 80px rgba(33, 212, 253, 0.6),
            0 0 120px rgba(0, 154, 187, 0.4);
    }
}

.valve-body-highlight {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    border-radius: 50%;
}

.valve-body-shadow {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at 70% 70%,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 100%
    );
    border-radius: 50%;
}

/* Valve Ports (connection points) */
.valve-port {
    position: absolute;
    width: 35px;
    height: 35px;
    background:
        radial-gradient(circle,
            #505050 0%,
            #383838 50%,
            #202020 100%
        );
    border-radius: 50%;
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.8),
        inset 0 -2px 5px rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

.port-left {
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.port-right {
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.port-top {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.port-bottom {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Ball/Core with Logo */
.valve-ball {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%,
            #909090 0%,
            #707070 30%,
            #505050 70%,
            #303030 100%
        );
    box-shadow:
        inset 0 8px 20px rgba(255, 255, 255, 0.3),
        inset 0 -8px 25px rgba(0, 0, 0, 0.7),
        0 15px 35px rgba(0, 0, 0, 0.6);
    animation: ballRotate 3.5s ease-in-out forwards;
    z-index: 10;
}

@keyframes ballRotate {
    /* Ball rotates in sync with handle to control flow direction */
    0%, 20% {
        transform: translate(-50%, -50%) rotate(270deg);
    }
    20%, 45% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    45%, 70% {
        transform: translate(-50%, -50%) rotate(450deg);
    }
    70%, 100% {
        transform: translate(-50%, -50%) rotate(540deg);
    }
}

.ball-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    border-radius: 50%;
    overflow: visible;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ball-inner.exiting {
    z-index: 100;
}

.valve-logo {
    width: 95%;
    height: 95%;
    object-fit: contain;
    animation: logoGlow 2s ease-in-out infinite, logoCounterRotate 3.5s ease-in-out forwards;
}

.valve-logo.exiting {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 100000;
    animation: logoExitUpscale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Counter-rotate logo to keep it upright while ball rotates */
@keyframes logoCounterRotate {
    0%, 20% {
        transform: rotate(-270deg);
    }
    20%, 45% {
        transform: rotate(-360deg);
    }
    45%, 70% {
        transform: rotate(-450deg);
    }
    70%, 100% {
        transform: rotate(-540deg);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7));
    }
}

@keyframes logoExitUpscale {
    0% {
        transform: translate(-50%, -50%) rotate(-540deg) scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7));
    }
    100% {
        transform: translate(-50%, -50%) rotate(-540deg) scale(8);
        opacity: 0;
        filter: drop-shadow(0 0 150px rgba(255, 255, 255, 0));
    }
}

/* Actuator Handle */
.valve-handle {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 80px;
    z-index: 5;
    animation: handleRotate 3.5s ease-in-out forwards;
    transform-origin: 50px 140px;
}

@keyframes handleRotate {
    /* Phase 1: Handle points LEFT - inlet active (270°) */
    0%, 20% {
        transform: translateX(-50%) rotate(270deg);
    }
    /* Rotate to UP */
    20%, 22% {
        transform: translateX(-50%) rotate(360deg);
    }
    /* Phase 2: Handle points UP - top branch active (360°/0°) */
    22%, 45% {
        transform: translateX(-50%) rotate(360deg);
    }
    /* Rotate to RIGHT */
    45%, 47% {
        transform: translateX(-50%) rotate(450deg);
    }
    /* Phase 3: Handle points RIGHT - outlet active (450° = 90°) */
    47%, 70% {
        transform: translateX(-50%) rotate(450deg);
    }
    /* Rotate to DOWN */
    70%, 72% {
        transform: translateX(-50%) rotate(540deg);
    }
    /* Phase 4: Handle points DOWN - bottom branch active (540° = 180°) */
    72%, 100% {
        transform: translateX(-50%) rotate(540deg);
    }
}

.handle-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background: linear-gradient(to bottom,
        #606060 0%,
        #404040 50%,
        #303030 100%
    );
    border-radius: 8px 8px 4px 4px;
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.2),
        inset 0 -3px 8px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.5);
}

.handle-arm {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 50px;
    background: linear-gradient(to right,
        #505050 0%,
        #707070 30%,
        #606060 50%,
        #404040 70%,
        #303030 100%
    );
    border-radius: 6px;
    box-shadow:
        inset 2px 0 5px rgba(255, 255, 255, 0.3),
        inset -2px 0 8px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.4);
}

.handle-grip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background:
        radial-gradient(circle,
            #707070 0%,
            #505050 50%,
            #383838 100%
        );
    border-radius: 50%;
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 8px rgba(0, 0, 0, 0.7),
        0 5px 15px rgba(0, 0, 0, 0.5);
}

.handle-grip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg,
        #404040 0%,
        #303030 50%,
        #202020 100%
    );
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Mounting Bolts */
.valve-bolt {
    position: absolute;
    width: 16px;
    height: 16px;
    background:
        radial-gradient(circle,
            #505050 0%,
            #383838 40%,
            #252525 100%
        );
    border-radius: 50%;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        inset 0 -1px 3px rgba(255, 255, 255, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.6);
}

.valve-bolt::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 2px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.bolt-1 {
    top: 15%;
    left: 15%;
}

.bolt-2 {
    top: 15%;
    right: 15%;
}

.bolt-3 {
    bottom: 15%;
    left: 15%;
}

.bolt-4 {
    bottom: 15%;
    right: 15%;
}

/* ==================== PROGRESS BAR ==================== */

.progress-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right,
        rgba(33, 212, 253, 0.7) 0%,
        rgba(0, 201, 255, 1) 50%,
        rgba(33, 212, 253, 0.7) 100%
    );
    background-size: 200% 100%;
    animation:
        progressFill 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        progressShine 1.5s ease-in-out infinite;
    box-shadow:
        0 0 15px rgba(33, 212, 253, 0.6),
        0 0 30px rgba(0, 201, 255, 0.4);
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.progress-text {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 255, 255, 0.2);
    margin-top: 8px;
}

.progress-label {
    direction: rtl;
    letter-spacing: 1px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .company-name {
        font-size: 40px;
        letter-spacing: 10px;
    }

    .pipe-system {
        max-width: 550px;
        height: 350px;
    }

    .pipe.horizontal {
        height: 50px;
    }

    .pipe.vertical {
        width: 50px;
    }

    .actuator-valve {
        width: 150px;
        height: 150px;
    }

    .valve-handle {
        top: -50px;
        width: 80px;
        height: 70px;
    }

    .progress-container {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 32px;
        letter-spacing: 6px;
    }

    .pipe-system {
        max-width: 450px;
        height: 300px;
    }

    .pipe.horizontal {
        height: 45px;
    }

    .pipe.vertical {
        width: 45px;
    }

    .actuator-valve {
        width: 130px;
        height: 130px;
    }

    .valve-handle {
        top: -40px;
        width: 70px;
        height: 60px;
    }

    .progress-container {
        max-width: 320px;
    }

    .progress-text {
        font-size: 14px;
    }
}
