@import url('fonts.css');
@import url('cookie.css');

/* CSS Reset & Variables */
:root {
    --primary: #0099cc;
    --primary-text: #006b8f;
    /* WCAG AA compliant on white (> 4.5:1) */
    /* New pleasant light blue */
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #ffffff;
    --grey: #888888;
    --light-grey: #f4f4f4;
    --border-color: #333;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --transition: all 0.3s ease;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .hero-bg,
    .header-bg-video {
        display: none;
        /* Hide video */
    }

    /* Fallback background if video is hidden */
    .hero,
    .page-header.video-header {
        background-color: var(--darker);
        background-image: url('../images/hero_metalworking.png');
        /* Use poster/fallback */
        background-size: cover;
        background-position: center;
    }
}

/* Accessibility: Focus States */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
    /* Hide outline for mouse users ONLY if :focus-visible is supported */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.navbar {
    background-color: var(--light);
    color: var(--dark);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar a {
    color: var(--dark);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    display: inline-block;
    position: relative;
    /* Position relative for dropdown context */
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    font-size: 1rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--light-grey);
    color: var(--primary);
}

/* Show on hover for desktop (can also be handled by JS/CSS combination) */
.nav-menu li:hover .dropdown-menu {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--dark);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--primary-text);
}

.text-accent-link {
    color: var(--primary-text);
    text-decoration: underline;
}

.text-white {
    color: var(--light);
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
    color: var(--light);
}

.bg-dark {
    background-color: var(--darker);
    color: var(--light);
}

.bg-light {
    background-color: var(--light-grey);
}

.mt-5 {
    margin-top: 3rem;
}

/* Status Colors */
.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    /* Industrial keen */
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--light);
    color: var(--light);
}

.btn-outline:hover {
    background-color: var(--light);
    color: var(--dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.line {
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px 0;
    display: inline-block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    z-index: -1;
}

/* Video Toggle Button (Accessibility) */
.video-toggle-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.video-toggle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.video-toggle-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.hero-content h1 {
    /* Using fluid typography: Min 2rem, Pref 5vw, Max 4.5rem */
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 3px;
    /* Reduced slightly to prevent overflow */
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    color: var(--light);
    word-wrap: break-word;
    /* Ensure it wraps on narrow screens */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #ccc;
    font-family: var(--font-heading);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    color: var(--primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    5% {
        clip: rect(12px, 9999px, 59px, 0);
    }

    10% {
        clip: rect(48px, 9999px, 29px, 0);
    }

    15.0% {
        clip: rect(42px, 9999px, 73px, 0);
    }

    20% {
        clip: rect(63px, 9999px, 27px, 0);
    }

    100% {
        clip: rect(34px, 9999px, 3px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(12px, 9999px, 86px, 0);
    }

    5% {
        clip: rect(52px, 9999px, 20px, 0);
    }

    10% {
        clip: rect(32px, 9999px, 12px, 0);
    }

    15% {
        clip: rect(89px, 9999px, 16px, 0);
    }

    20% {
        clip: rect(2px, 9999px, 2px, 0);
    }

    100% {
        clip: rect(19px, 9999px, 3px, 0);
    }
}


/* Welcome Section */
.welcome-text p {
    margin-bottom: 20px;
    color: #555;
}

.welcome-text .lead {
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 700;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #1a1a1a;
    padding: 40px 30px;
    border: 1px solid #333;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 auto 25px auto;
    background: rgba(0, 153, 204, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.service-card:hover .icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--grey);
    margin-bottom: 25px;
}



/* Page Video Header */
.page-header.video-header {
    background: none;
    position: relative;
    overflow: hidden;
    height: 300px;
    /* Or whatever height matches your design */
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Adjust darkening */
    z-index: -1;
}

.relative-content {
    position: relative;
    z-index: 1;
}

/* Parallax Separator */
.parallax-separator {
    background: linear-gradient(rgba(0, 153, 204, 0.8), rgba(0, 153, 204, 0.8)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') fixed center/cover;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    text-align: center;
}

.separator-content h3 {
    font-size: 2.2rem;
    color: var(--light);
    margin-bottom: 30px;
    max-width: 800px;
}

/* About Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list i {
    color: var(--primary);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Contact Section */
.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--light);
    border: 1px solid #ccc;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(243, 79, 41, 0.2);
}

/* Footer */
.footer {
    background-color: var(--light);
    /* White background */
    color: var(--dark);
    /* Dark text */
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
    color: var(--dark);
    /* Dark links */
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: none !important;
        /* Hide header hamburger in favor of bottom nav */
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        background-color: var(--darker);
        flex-direction: column;
        padding: 100px 40px 40px 40px;
        /* Added side padding and bottom padding */
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        /* Enable vertical scrolling */
    }

    .nav-menu.active {
        right: 0;
    }

    /* Fix invisible links on mobile */
    .nav-menu li {
        margin: 20px 0;
        /* Add spacing */
    }

    .nav-menu a {
        color: var(--light) !important;
        /* White text on dark background */
        font-size: 1.5rem;
        /* Larger text for mobile */
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        display: none;
        /* Hidden by default toggled via JS */
        background-color: rgba(255, 255, 255, 0.1);
        /* Slightly lighter background */
        box-shadow: none;
        width: 100%;
        padding-left: 20px;
    }

    .dropdown-menu.show {
        display: block !important;
        /* Class to toggle visibility */
    }

    .dropdown-menu a {
        color: var(--light) !important;
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .nav-menu li:hover .dropdown-menu {
        display: none;
        /* Disable hover on mobile */
    }

    .nav-menu li.active .dropdown-menu,
    .dropdown-menu.show {
        display: block;
    }

    /* Ensure no specific overrides block visibility */
    .nav-menu .nav-link {
        display: block;
    }

    .navbar .logo img {
        height: 40px !important;
        width: auto;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        word-wrap: break-word;
        hyphens: auto;
    }

    .page-header h1 {
        font-size: clamp(1rem, 5vw, 2.5rem);
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
        hyphens: none;
        padding: 0 5px;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .machine-item {
        padding: 20px;
    }

    .machine-item h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .machine-info {
        min-width: 100%;
    }
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-position: center;
    background-size: cover;
    padding: 150px 0 60px 0;
    text-align: center;
    color: var(--light);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Machine List */
.machine-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.machine-item {
    background-color: var(--light-grey);
    padding: 30px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.machine-info {
    flex: 1;
    min-width: 300px;
}

.machine-image {
    flex: 0 0 400px;
    max-width: 100%;
}

.machine-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    box-shadow: none;
}

.machine-item h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.specs li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.specs li:last-child {
    border-bottom: none;
}

/* Job Listings */
.job-card {
    background-color: var(--light-grey);
    border: 1px solid #e0e0e0;
    margin-top: 30px;
    padding: 40px;
    border-radius: 4px;
    /* Slight softening for cards */
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
    flex-wrap: wrap;
    gap: 10px;
}

.job-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--dark);
}

.job-type {
    background-color: var(--darker);
    color: var(--light);
    padding: 5px 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-body h4 {
    margin-top: 20px;
    font-size: 1.2rem;
}

.job-body ul {
    margin: 20px 0;
}

.job-body li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-body li i {
    color: var(--primary);
}

.job-contact {
    margin-top: 40px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

.job-contact address {
    font-style: normal;
    margin-top: 15px;
    line-height: 1.6;
}

/* About Container */
.about-container {
    max-width: 800px;
    /* Optional: limit width for readability in single column */
    margin: 0 auto;
    text-align: center;
    /* Generally center align single column content if desired, or left */
}

.about-content {
    margin-bottom: 40px;
    /* Add space between text and image */
    text-align: left;
    /* Keep text left aligned? Or center? Let's stick to left for now but center the container if needed. */
}

/* Ensure about image is centered */
.about-image {
    text-align: center;
}

.about-image img {
    margin: 0 auto;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    /* Hidden by default (desktop) */
}

@media (max-width: 900px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--light);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        /* Above everything */
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--dark);
        background: none;
        border: none;
        font-size: 0.8rem;
        cursor: pointer;
        flex: 1;
        /* Distribute space */
    }

    .bottom-nav-item i {
        font-size: 1.5rem;
        margin-bottom: 5px;
        color: var(--primary);
    }

    .bottom-nav-item:hover,
    .bottom-nav-item:active {
        color: var(--primary);
    }

    .bottom-nav-item span {
        font-weight: 600;
    }

    /* Ensure content doesn't get hidden behind the bar */
    body {
        padding-bottom: 70px;
    }
}

/* Force Page Header to be White (Service Pages) */
.page-header h1 {
    color: var(--light) !important;
}

/* --- Capacity Status Page Styles --- */
.status-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary);
}

.status-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.progress-wrapper {
    width: 100%;
}

.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 99px;
    height: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    /* Default color */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: white;
    padding-right: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-bar::after {
    content: attr(data-label);
}

/* Specific colors based on load (can be set manually via class or logic) */
.progress-bar.bg-success {
    background-color: #28a745;
}

/* Green */
.progress-bar.bg-warning {
    background-color: #ffc107;
    color: #333;
}

/* Orange */
.progress-bar.bg-danger {
    background-color: #dc3545;
}

/* Red */

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: white;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

.text-muted {
    color: #6c757d !important;
}

/* Mobile Header Fix: Ensure H1 always fits in one line */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 7.5vw !important;
        white-space: nowrap;
        width: 100%;
        display: block;
        line-height: 1.2;
    }
}

/* Mobile Machine Item Fix: Ensure list fits in one line and does not overflow */
@media (max-width: 576px) {
    .machine-item {
        padding: 15px !important;
    }

    .machine-info {
        min-width: 0 !important;
        width: 100%;
        overflow: hidden;
        /* Ensure no overflow */
    }

    .specs li {
        font-size: 3.5vw !important;
        white-space: nowrap;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
}

/* Mobile Footer Fix: Single line links and copyright */
@media (max-width: 576px) {
    .footer-links {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 4.2vw !important;
        white-space: nowrap;
        margin: 0 1.5vw !important;
        /* Increased spacing */
    }

    .copyright {
        font-size: 3vw !important;
        white-space: nowrap;
        display: block;
        width: 100%;
    }

    .powered-by {
        font-size: 2.5vw !important;
        /* Slightly smaller than copyright */
        white-space: nowrap;
        display: block;
        width: 100%;
    }
}

.powered-by {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #333;
    font-weight: 300;
}

.powered-by a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.powered-by a:hover {
    color: var(--primary);
}