html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: linear-gradient(135deg, #000000 0%, #29336c 100%);
    color: white;
    padding: 0.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #29336c;
    font-weight: 800;
}

nav {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    /* Vertically center list items within the nav bar */
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    /* Ensure consistent vertical centering across all nav items */
    display: inline-flex;
    align-items: center;
}

nav a:hover {
    color: #c0c0c0;
}

/* Emphasized Contact pill in nav */
.nav-contact-cta {
    display: inline-block;
    background: #facc15; /* yellow */
    color: #1f2937; /* dark text for contrast */
    padding: 0.5rem 1rem;
    border-radius: 999px; /* pill shape */
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(250, 204, 21, 0.15);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-contact-cta:hover {
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.25);
}

.nav-contact-cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.hero {
    background-image: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(41,51,108,0.75) 30%, rgba(74,90,158,0.65) 100%), url('images/hero.jpg');
    background-size: cover, cover;
    background-position: center;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: multiply;
    color: white;
    padding: 180px 2rem 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(192, 192, 192, 0.30) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.30) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    font-weight: 800;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    opacity: 0.95;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #29336c;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #e8e8e8 0%, #ffffff 100%);
}

section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.services{

}

.services h2
{
    text-align: center;
}

.services .services-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(41, 51, 108, 0.15);
    border-color: rgba(192, 192, 192, 0.5);
}

.service-card h3 {
    color: #29336c;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.service-card p {
    color: #475569;
    line-height: 1.8;
}

.service-card.material-handling {
    position: relative;
    overflow: hidden; /* ensures background image pseudo-element stays within rounded corners */
}

.service-card.material-handling::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/material-handling.jpg') center/cover no-repeat;
    opacity: 0; /* hidden by default */
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card.material-handling:hover::after {
    opacity: 0.15; /* mostly transparent image on hover */
}

.service-card.custom-automation {
    position: relative;
    overflow: hidden; /* ensures background image pseudo-element stays within rounded corners */
}

.service-card.custom-automation::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/custom-automation.jpg') center/cover no-repeat;
    opacity: 0; /* hidden by default */
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card.custom-automation:hover::after {
    opacity: 0.15; /* mostly transparent image on hover */
}

.service-card.build-to-print {
    position: relative;
    overflow: hidden; /* ensures background image pseudo-element stays within rounded corners */
}

.service-card.build-to-print::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/build-to-print.jpg') center/cover no-repeat;
    opacity: 0; /* hidden by default */
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card.build-to-print:hover::after {
    opacity: 0.15; /* mostly transparent image on hover */
}

.service-card.parts-service {
    position: relative;
    overflow: hidden; /* ensures background image pseudo-element stays within rounded corners */
}

.service-card.parts-service::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/parts-service.jpg') center/cover no-repeat;
    opacity: 0; /* hidden by default */
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card.parts-service:hover::after {
    opacity: 0.15; /* mostly transparent image on hover */
}

.wheelift-section {
    background: linear-gradient(135deg, rgba(41, 51, 108, 0.85) 0%, rgba(74, 90, 158, 0.92) 100%), url('images/transporters.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: normal;
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
    box-shadow: 0 10px 40px rgba(41, 51, 108, 0.3);
}

.wheelift-section h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.wheelift-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.95;
}

.doerfer-section {
    margin-top: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid rgba(192,192,192,0.35);
    border-left: 4px solid #29336c;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 6px 18px rgba(41,51,108,0.08);
    overflow: clip;
}

.doerfer-section img.doerfer-logo {
    height: 40px;
    width: auto;
    max-width: 100%; /* Ensure it scales down if needed */
    object-fit: contain;
    filter: none;
}

.doerfer-section .doerfer-header {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    gap: 0.5rem; /* consistent spacing between items */
}

.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.industry-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 120px;
}

.industry-tag:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 20px rgba(41, 51, 108, 0.15);
    border-color: rgba(192, 192, 192, 0.5);
}

.cta-section {
    background: linear-gradient(135deg, #000000 0%, #29336c 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.contact-section {
    background: #f8fafc;
}

.contact-section h2 {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    background: linear-gradient(135deg, #29336c 0%, #4a5a9e 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 1.5rem;
}

.contact-card h3 {
    color: #29336c;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.contact-card a {
    color: #29336c;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #000000;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    color: #29336c;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e8e8e8 0%, #ffffff 100%);
}

footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 2.5rem;
}

footer p {
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 40px;
    }

    .hidden-mobile {
        display: none;
    }

    .nav-link-hidden-mobile {
        display: none;
    }

    .doerfer-section .doerfer-header {
        flex-direction: column;
        font-size: 1.2rem;
    }
}
