/* -----------------------------------------------------------
   GOOFY MACHINE THEME - VARIABLES & RESET
----------------------------------------------------------- */
:root {
    --machine-blue: #2c3e50;
    --rust-orange: #d35400;
    --warning-yellow: #f1c40f;
    --factory-grey: #95a5a6;
    --oil-black: #1e272e;
    --steam-white: rgba(255, 255, 255, 0.7);
    --metal-gradient: linear-gradient(135deg, #bdc3c7 0%, #7f8c8d 100%);
    --blueprint-blue: #2980b9;
    --font-head: 'Bungee', cursive;
    --font-body: 'Rubik', sans-serif;
    --font-code: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #ecf0f1;
    background-image: radial-gradient(#bdc3c7 10%, transparent 10%);
    background-size: 20px 20px;
    color: var(--oil-black);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.highlight-rust {
    color: var(--rust-orange);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.section-padding {
    padding: 80px 0;
    position: relative;
}

/* -----------------------------------------------------------
   ANIMATIONS & KEYFRAMES
----------------------------------------------------------- */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes steam-rise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.5);
    }
}

@keyframes piston-move {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@keyframes conveyor {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 0;
    }
}

/* -----------------------------------------------------------
   PRELOADER
----------------------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--machine-blue);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.gear-system-loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.gear {
    position: absolute;
    color: var(--warning-yellow);
}

.big-gear {
    font-size: 60px;
    top: 0;
    left: 0;
    animation: spin 3s linear infinite;
}

.small-gear {
    font-size: 40px;
    bottom: 0;
    right: 0;
    color: var(--factory-grey);
    animation: spin-reverse 2s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: #fff;
    font-family: var(--font-code);
    animation: blink 1s infinite;
}

/* -----------------------------------------------------------
   HEADER - CONTROL PANEL
----------------------------------------------------------- */
.control-panel-header {
    background: var(--machine-blue);
    border-bottom: 5px solid var(--oil-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: white;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rivets-top,
.rivets-bottom {
    position: absolute;
    width: 100%;
    height: 5px;
    background-image: radial-gradient(circle, #7f8c8d 2px, transparent 2.5px);
    background-size: 20px 20px;
    left: 0;
}

.rivets-top {
    top: 2px;
}

.rivets-bottom {
    bottom: 2px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.brand-logo img {
    height: 50px;
    filter: invert(1);
}

.nav-dashboard {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-switchboard {
    display: flex;
    gap: 20px;
    list-style: none;
    background: #1a252f;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #555;
    box-shadow: inset 0 0 10px #000;
}

.nav-link {
    font-family: var(--font-head);
    font-size: 14px;
    text-transform: uppercase;
    color: #95a5a6;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--warning-yellow);
    text-shadow: 0 0 5px var(--warning-yellow);
    border: 1px dashed var(--warning-yellow);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Lever Button */
.lever-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #bdc3c7;
    border: 3px solid #000;
    border-radius: 4px;
    font-family: var(--font-head);
    font-weight: bold;
    position: relative;
    box-shadow: 4px 4px 0 #000;
    transition: all 0.1s;
    cursor: pointer;
}

.lever-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000;
}

.red-lever {
    background: #e74c3c;
    color: white;
}

.yellow-lever {
    background: var(--warning-yellow);
    color: var(--oil-black);
}

.lever-handle {
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.lever-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 15px;
    height: 4px;
    background: #555;
}

.mobile-toggle-valve {
    display: none;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
    font-family: var(--font-code);
}

.valve-wheel {
    font-size: 24px;
    color: var(--rust-orange);
    transition: transform 0.3s;
}

.mobile-toggle-valve:hover .valve-wheel {
    transform: rotate(90deg);
}

/* -----------------------------------------------------------
   HERO SECTION
----------------------------------------------------------- */
.hero-factory {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.95)), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDQwaDQwVjBIMHY0MHptMjAgMjBWMjBoMjB2MjBIMjB6TTAgMjBoMjBWMHwyMHoiIGZpbGw9IiMzNDQ5NWUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9nPjwvc3ZnPg==');
    color: white;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.machine-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border: 4px solid var(--factory-grey);
    position: relative;
}

.machine-box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--rust-orange);
    border: 2px solid #000;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-family: var(--font-code);
}

.gauge-cluster {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.gauge {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #555;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.needle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 45%;
    height: 2px;
    background: red;
    transform-origin: left center;
    transform: rotate(45deg);
    animation: gauge-twitch 2s infinite alternate;
}

.needle.speed {
    animation-duration: 0.5s;
    background: var(--rust-orange);
}

@keyframes gauge-twitch {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

.contraption {
    position: relative;
    height: 400px;
    width: 100%;
}

.big-wheel {
    font-size: 200px;
    color: var(--factory-grey);
    position: absolute;
    top: 50px;
    left: 20px;
}

.small-wheel {
    font-size: 100px;
    color: var(--rust-orange);
    position: absolute;
    top: 180px;
    left: 180px;
}

.spin-cw {
    animation: spin 10s linear infinite;
}

.spin-ccw {
    animation: spin-reverse 10s linear infinite;
}

.conveyor-belt {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(90deg, #333 0px, #333 20px, #555 20px, #555 40px);
    animation: conveyor 1s linear infinite;
    display: flex;
    align-items: flex-end;
}

.conveyor-belt .box {
    position: absolute;
    bottom: 20px;
    width: 60px;
    height: 40px;
    background: var(--warning-yellow);
    border: 2px solid #000;
    text-align: center;
    font-size: 10px;
    line-height: 40px;
    font-weight: bold;
    color: #000;
    animation: box-travel 4s linear infinite;
}

.conveyor-belt .box:nth-child(2) {
    animation-delay: 1.3s;
}

.conveyor-belt .box:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes box-travel {
    0% {
        left: -60px;
        opacity: 1;
    }

    90% {
        left: 100%;
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.pipe-stack {
    position: absolute;
    top: 0;
    right: 50px;
    width: 40px;
    height: 100px;
    background: linear-gradient(to right, #555, #999, #555);
    border: 2px solid #000;
    border-bottom: none;
}

.smoke {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--steam-white);
    border-radius: 50%;
    top: -20px;
    left: 5px;
    animation: steam-rise 2s infinite;
}

.s2 {
    animation-delay: 1s;
}

.btn-blueprint {
    display: inline-block;
    padding: 10px 20px;
    border: 2px dashed #fff;
    color: #fff;
    font-family: var(--font-code);
    margin-left: 20px;
}

.btn-blueprint:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* -----------------------------------------------------------
   SERVICES SECTION
----------------------------------------------------------- */
.services-assembly {
    background: #ecf0f1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-icon {
    font-size: 3rem;
    color: var(--machine-blue);
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--machine-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-pod {
    background: #fff;
    border: 3px solid var(--machine-blue);
    padding: 30px;
    text-align: center;
    position: relative;
    border-radius: 10px;
    box-shadow: 10px 10px 0 var(--factory-grey);
    transition: transform 0.3s;
}

.service-pod:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--rust-orange);
    margin-bottom: 20px;
    display: inline-block;
}

/* Hover Effects */
.service-pod:hover .gear-spin-hover {
    animation: spin 2s linear infinite;
}

.service-pod:hover .shake-hover {
    animation: shake 0.5s infinite;
}

.service-pod:hover .bounce-hover {
    animation: piston-move 0.5s infinite;
}

.service-pod:hover .spin-hover {
    animation: spin-reverse 2s infinite;
}

.pod-top-vent {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background: var(--warning-yellow);
    border: 2px solid #000;
    border-radius: 5px 5px 0 0;
}

/* -----------------------------------------------------------
   CALCULATOR SECTION
----------------------------------------------------------- */
.calculator-station {
    background: var(--machine-blue);
    color: white;
}

.calc-machine-frame {
    background: #34495e;
    border: 10px solid #7f8c8d;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.machine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #000;
    padding: 10px;
    border-radius: 5px;
}

.led-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.blink-red {
    background: #e74c3c;
    animation: blink 2s infinite;
}

.blink-green {
    background: #2ecc71;
    animation: blink 3s infinite;
}

.calc-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.input-zone label {
    display: block;
    font-family: var(--font-code);
    margin-bottom: 10px;
}

.slider-mechanic {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    background: #000;
    border-radius: 5px;
    outline: none;
    margin-bottom: 20px;
}

.slider-mechanic::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--warning-yellow);
    cursor: pointer;
    border: 2px solid #fff;
    border-radius: 50%;
}

.digital-readout {
    font-family: var(--font-code);
    color: var(--warning-yellow);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 20px;
    text-align: right;
}

.output-zone {
    background: #000;
    padding: 20px;
    border: 4px solid #95a5a6;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.screen-readout h4 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3rem;
    color: #2ecc71;
    text-shadow: 0 0 10px #2ecc71;
}

.gear-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 50px;
    color: #7f8c8d;
}

.spin-slow {
    animation: spin 8s linear infinite;
}

/* -----------------------------------------------------------
   PROCESS SECTION
----------------------------------------------------------- */
.process-blueprint {
    background-color: var(--blueprint-blue);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    color: white;
}

.timeline-conveyor {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-track {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step-gear {
    width: 50px;
    height: 50px;
    background: var(--warning-yellow);
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #000;
    font-size: 1.5rem;
    z-index: 2;
    font-family: var(--font-head);
}

.step-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 2px solid #fff;
    flex-grow: 1;
}

/* -----------------------------------------------------------
   REPORT SECTION
----------------------------------------------------------- */
.report-terminal {
    background: #1e272e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 20px;
}

.terminal-screen {
    background: #000;
    flex-grow: 1;
    padding: 20px;
    font-family: var(--font-code);
    color: #00d2d3;
    border: 2px solid #555;
    min-height: 250px;
}

.code-line {
    margin-bottom: 10px;
}

.green-text {
    color: #2ecc71;
    font-weight: bold;
}

.chart-mockup {
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.bar {
    width: 20px;
    background: #00d2d3;
    opacity: 0.7;
    animation: bar-grow 2s ease-out forwards;
}

@keyframes bar-grow {
    from {
        height: 0;
    }
}

.terminal-controls {
    width: 100px;
    background: #333;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.big-red-button {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
    border-radius: 50%;
    border: 4px solid #8e44ad;
    box-shadow: 0 5px 0 #000;
    cursor: pointer;
}

.big-red-button:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #000;
}

.keypad span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #555;
    margin: 2px;
}

/* -----------------------------------------------------------
   TESTIMONIALS
----------------------------------------------------------- */
.testimonials-vault {
    background: #ecf0f1;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.testimonial-card {
    background: #fff;
    min-width: 300px;
    padding: 30px;
    border: 2px solid #7f8c8d;
    position: relative;
    box-shadow: 5px 5px 0 #bdc3c7;
}

.rivet-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #95a5a6;
    border-radius: 50%;
    box-shadow: 1px 1px 0 #fff inset;
}

.tl {
    top: 5px;
    left: 5px;
}

.tr {
    top: 5px;
    right: 5px;
}

.bl {
    bottom: 5px;
    left: 5px;
}

.br {
    bottom: 5px;
    right: 5px;
}

.author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.avatar-gear {
    width: 40px;
    height: 40px;
    background: var(--rust-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* -----------------------------------------------------------
   LEGAL & TEXT PAGES STYLES
----------------------------------------------------------- */
.legal-clipboard-wrapper {
    background: #fff;
    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    border-top: 20px solid var(--machine-blue);
    /* The Clip */
}

.legal-clipboard-wrapper::before {
    content: '';
    /* Clip mechanism */
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
    background: #95a5a6;
    border-radius: 10px;
    border: 2px solid #000;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--machine-blue);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--rust-orange);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 15px;
    color: #444;
}

.legal-content ul {
    padding-left: 20px;
}

/* -----------------------------------------------------------
   CONTACT PAGE
----------------------------------------------------------- */
.contact-control-room {
    background: var(--machine-blue);
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-panel {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.info-item i {
    font-size: 24px;
    color: var(--warning-yellow);
}

.contact-form-machine {
    background: #ecf0f1;
    padding: 40px;
    border-radius: 5px;
    color: #333;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: var(--font-head);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    background: #fff;
    font-family: var(--font-body);
}

.form-group input:focus {
    border-color: var(--rust-orange);
    outline: none;
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
.footer-boiler {
    background: #2d3436;
    color: #bdc3c7;
    position: relative;
    padding-top: 60px;
    margin-top: 50px;
    border-top: 10px solid #000;
}

.top-pipes {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(90deg, #555 0, #555 50px, #444 50px, #444 100px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 50px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--warning-yellow);
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li i {
    color: var(--rust-orange);
    margin-right: 10px;
}

.social-gears {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.gear-link {
    width: 40px;
    height: 40px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px dashed #777;
    color: #fff;
}

.gear-link:hover {
    background: var(--rust-orange);
    animation: spin 1s linear infinite;
}

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.legal-links {
    margin-top: 10px;
}

.legal-links a:hover {
    color: var(--warning-yellow);
}

.separator {
    margin: 0 10px;
}

.steam-vents-bottom {
    position: absolute;
    bottom: 0;
    left: 10%;
    z-index: 1;
}

.vent {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(20px);
    position: absolute;
    bottom: -50px;
}

/* -----------------------------------------------------------
   LIVE CHAT
----------------------------------------------------------- */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    font-family: var(--font-body);
}

.chat-head {
    width: 60px;
    height: 60px;
    background: var(--rust-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #fff;
    transition: transform 0.3s;
}

.chat-head:hover {
    transform: scale(1.1);
}

.chat-bubble {
    position: absolute;
    right: 70px;
    top: 15px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    animation: piston-move 2s infinite;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #fff;
    border: 3px solid var(--machine-blue);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.chat-header {
    background: var(--machine-blue);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.chat-body {
    height: 200px;
    padding: 10px;
    background: #ecf0f1;
    overflow-y: auto;
}

.msg.bot {
    background: #dfe6e9;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.chat-input {
    padding: 10px;
    display: flex;
    border-top: 1px solid #ccc;
}

.chat-input input {
    flex-grow: 1;
    border: 1px solid #bdc3c7;
    padding: 5px;
}

.chat-input button {
    background: var(--rust-orange);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 768px) {
    .header-container {
        padding: 0 10px;
    }

    .nav-dashboard {
        display: none;
    }

    /* Hide standard nav */
    .mobile-toggle-valve {
        display: flex;
    }

    /* Show mobile toggle */

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contraption {
        display: none;
    }

    /* Hide complex visual on mobile */
    .machine-box::before {
        display: none;
    }

    .gauge-cluster {
        justify-content: center;
    }

    .calc-interface {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-gears {
        justify-content: center;
    }

    .report-terminal {
        flex-direction: column;
    }

    .terminal-controls {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu State */
.nav-dashboard.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--machine-blue);
    padding: 20px;
}