.hero-section {
    padding: 0;
    margin: 0; /* Ensure no margin */
    margin-top: -100px; /* Pull up to cover navbar space */
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100vh; /* Full viewport height */
    top: 0; /* Start from very top */
}

.hero-container {
    max-width: 100%;
    margin: 0;
    position: relative;
    height: 100vh;
}

.hero-video {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none; /* Prevent interaction issues */
    will-change: auto; /* Optimize rendering */
    backface-visibility: hidden; /* Prevent rendering issues */
    -webkit-backface-visibility: hidden;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    z-index: 2;
    padding: 40px 60px;
    max-width: 800px;
    width: auto;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(5px);
    animation: fadeInLeft 1.5s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    margin-left: 0;
    padding-left: 0;
    font-weight: 900;
    letter-spacing: 3px;
    white-space: nowrap;
    animation: fadeInText 1.8s ease-out 0.3s both;
    text-transform: uppercase;
    color: #5a3d8f;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    text-stroke: 1px rgba(255, 255, 255, 0.8);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 40px;
    margin-left: 0;
    padding-left: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    animation: fadeInText 2s ease-out 0.6s both;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-actions .join-btn {
    background: linear-gradient(45deg, #ff4d00, #ff6a2e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.hero-actions .join-btn:hover {
    background: linear-gradient(45deg, #ff6a2e, #ff4d00);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,77,0,0.4);
}

.hero-actions .view-more-btn {
    background: rgba(140, 112, 220, 0.2);
    color: white;
    border: 2px solid #8c70dc;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.hero-actions .view-more-btn:hover {
    background: rgba(140, 112, 220, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(140, 112, 220, 0.4);
}

/* Overlay for better text readability */
.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Scroll Indicator - Larger and violet color */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 1s ease-out 1s both;
    cursor: pointer;
}

.scroll-mouse {
    width: 40px;
    height: 65px;
    border: 3px solid #8c70dc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-mouse:hover {
    border-color: #a594e9;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(140, 112, 220, 0.6);
}

.scroll-wheel {
    width: 6px;
    height: 12px;
    background: #8c70dc;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 35px;
    }
}

.scroll-text {
    color: #8c70dc;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(140, 112, 220, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        height: 70vh;
    }

    .hero-content {
        padding: 30px 20px;
        max-width: 100%;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        white-space: normal;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions .join-btn,
    .hero-actions .view-more-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px 15px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 80%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-content h1 {
        font-size: 1.8rem;
        white-space: normal;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1rem;
    }
}
