* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    
}

.logo {
    display: block;
    width: 100px;
    height: 100px;
}

nav {
    margin: 0;
    padding: 0;
    background: transparent;
}

.menuItems {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menuItems li {
    margin: 0;
}

.menuItems a {
    position: relative;
    text-decoration: none;
    color: #807979;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    transition: color 0.5s ease-in-out;
}

.menuItems a::before {
    content: attr(data-item);
    position: absolute;
    inset: 0;
    width: 0;
    overflow: hidden;
    color: #ff5454;
    transition: width 0.5s ease-in-out;
    
}

.menuItems a:hover::before {
    width: 100%;
}
.name {
    margin: 25px;
    font-size: 96px;
    left: 25%;
    color: #ccc;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 1s ease-in-out;
    position: relative;
}

.name::before {
    content: attr(data-item);
    transition: all 1s ease-in-out;
    color: #ff5454;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    overflow: hidden;
}

.name:hover::before {
    width: 100%;
}
.description {
    margin: 25px auto;
    font-size: 20px;
    max-width: 800px;
    text-align: center;
    color: #c5c201;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 1s ease-in-out;
    position: relative;

    
}

.more {
    margin: 25px auto;
    font-size: 20px;
    max-width: 800px;
    text-align: center;
    color: #c50101;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 1s ease-in-out;
    position: relative;

    
}

body {
    background-image: url('img/background.png');
    background-repeat: no-repeat; /* prevents repeating */
    background-size: cover;       /* ensures the image covers the entire page */
    background-attachment: fixed; /* keeps the image fixed during scrolling */
    background-position: center;  /* centers the image */
}

.slider {
    width: min(1100px, calc(100% - 24px));
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slider > div {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
}

.slider > div > * {
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
}

.slider a {
    display: block;
    position: relative;
    overflow: visible;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.slider a:hover {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.slider a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    opacity: 0;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
    pointer-events: none;
}

.slider a:hover::after {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 12px 24px rgba(0, 0, 0, 0.18);
}

.slider img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slider a:hover img {
    transform: scale(1.02);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.slider > div > img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.row-4 {
    justify-content: center;
}

.row-4 a {
    max-width: 360px;
}

.bosch-logo-wrap {
    position: relative;
    display: block;
}

.bosch-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bosch-trigger img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bosch-logo-wrap:hover .bosch-trigger img {
    transform: scale(1.02);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.bosch-logo-wrap:hover {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.bosch-logo-wrap {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.bosch-popup {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%) translateX(6px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 240px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.35s ease;
    z-index: 12;
}

.bosch-popup.open {
    opacity: 1;
    max-height: 260px;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.bosch-popup a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f5f5f5;
    transition: background 0.2s ease, color 0.2s ease;
}

.bosch-popup a:hover {
    background: #ffe2e2;
    color: #d84343;
}

.nav-dropdown {
    position: relative;
}

.products-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 8px;
    width: 320px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    max-height: 0;
    overflow: visible;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.35s ease;
    z-index: 10;
}

.products-popup.open {
    opacity: 1;
    max-height: 420px;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.products-popup a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f5f5f5;
    transition: background 0.2s ease, color 0.2s ease;
}

.products-popup a:hover {
    background: #ffe2e2;
    color: #d84343;
}
.submenu {
    position: relative;
}

.bosch-submenu {
    position: absolute;
    right: calc(100% - 10px);
    top: 0;

    width: 220px;
    padding: 10px;

    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);

    display: none;
    flex-direction: column;
    gap: 8px;

    margin-right: 10px; /* space between menus */
    z-index: 20;
}

.submenu:hover .bosch-submenu {
    display: flex;
}

.bosch-submenu a {
    background: #f5f5f5;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.bosch-submenu a:hover {
    background: #ffe2e2;
    color: #d84343;
}