.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%; /* Ensure the container takes full height */
    overflow: hidden;
    z-index: 1; /* Lower z-index */
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the container */
}

.hero-content {
    position: absolute; /* Change to absolute to overlay on video */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Higher z-index */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* Darker background for better readability */
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: floatAnimation 3s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #fff;
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-30px);
    }
    60% {
        transform: translateX(-50%) translateY(-15px);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        margin-top: 2rem; /* Add top margin to move the title lower */
    }

    .hero-description {
        margin-top: 1rem; /* Add top margin to move the description lower */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 1rem;
        margin-top: 1rem; /* Add top margin to move the buttons lower */
    }

    .cta-btn, .secondary-btn {
        width: 100%;
        text-align: center;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .video-container {
        height: 100%; /* Ensure the container takes full height */
        padding-bottom: 0; /* Remove aspect ratio padding */
    }

    #hero-video {
        height: 100%;
        width: 100%;
        object-fit: cover; /* Ensure the video covers the container */
    }

    .scroll-indicator {
        bottom: 1rem; /* Move the scroll indicator lower */
    }
}