* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: url('files/teslafon.png') center center / cover no-repeat;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
.menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 160px;
    flex-wrap: wrap;
}
.menu-item {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.menu-item:hover {
    color: #f0c0c0;
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #850c22, #b02c3a);
    border-radius: 8px;
    min-width: 230px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 20;
}
.submenu li a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: background 0.3s;
    white-space: nowrap;
}
.submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item.show > .submenu {
    display: block;
}


@media (max-width: 768px) {
    .menu-list {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
    .menu-item {
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }
    .submenu {
        position: relative;
        transform: none;
        width: 90%;
        margin: 5px auto 0 auto;
        left: 0;
        min-width: 0;
    }
    .submenu li a {
        padding: 10px 0;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .menu-item:hover > .submenu {
        display: block;
    }
}

@media (max-width: 768px) {
    .menu-item.show > .submenu {
        display: block;
        position: static;
        transform: none;
        width: 100%;
    }
}