body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden; 
}

.content {
    position: relative;
    height: 100vh; /* Full height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.content video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the background */
    z-index: -1; /* Places the video behind other content */
}

.boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; 
    position: relative;
    z-index: 1; 
    padding: 20px;
}

.box {
    background: rgba(0, 0, 0, 0.5); /* Transparent grey background */
    color: white;
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Hides the paragraph initially */
    transition: transform 0.3s ease, height 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    height: 350px; 
}

.box:hover {
    transform: translateY(-10px); /* Moves the box up slightly on hover */
    height: 500px; /* Expands downwards to reveal the paragraph */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7); /* Stronger shadow on hover */
}

.box img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.box h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    font-weight: bold;
}

.box p {
    display: none; 
    margin: 10px 0 0;
    font-size: 14px;
}

.box:hover p {
    display: block;
}

@media (max-width: 768px) {
    .boxes {
        flex-direction: column; 
    }
}