body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333;
    color: #fff;
    position: relative;
}

header {
    background-color: #2f2e2e;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header h2 {
    position: relative;
    display: inline-block;
}

header h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #15aa29;
    margin: 10px auto 0;
    transition: width 0.3s ease;
}

header:hover h2:after {
    width: 120px;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    perspective: 1000px;
}

.video {
    width: 560px;
    background: linear-gradient(145deg, #3a3a3a, #2d2d2d);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
}

.video:hover {
    transform: scale(1.05) translateZ(30px);
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.2);
}

.video:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(21, 170, 41, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video:hover:before {
    opacity: 1;
}

iframe {
    width: 100%;
    height: 315px;
    border: none;
    display: block;
}

.video-description {
    text-align: center;
    padding: 20px;
    background-color: #444;
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.video:hover .video-description {
    background-color: #15aa29;
    color: #fff;
}

footer {
    background-color: #1b1a1a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Home Link Styles */
.home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient(145deg, #1e1e1e, #333);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3),
                -5px -5px 15px rgba(60, 60, 60, 0.1);
    z-index: 9999;
    transition: all 0.3s ease;
    border: 1px solid rgba(21, 170, 41, 0.3);
}

.home-link:hover {
    color: #15aa29;
    background: linear-gradient(145deg, #2a2a2a, #222);
    box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.2),
                inset -3px -3px 5px rgba(60, 60, 60, 0.1);
    transform: translateY(2px);
}

/* Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 170, 41, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(21, 170, 41, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(21, 170, 41, 0);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video {
        width: 95%;
    }
    
    .home-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 15px;
        gap: 20px;
    }
    
    iframe {
        height: 240px;
    }
    
    .video-description {
        padding: 15px;
        font-size: 1rem;
    }
}
