/* styles/hero.css */

/* Hero Section */
.hero {
    position: relative;
    background: url("../images/dnd-background.png") no-repeat center 20% / cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Dark overlay for better text contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* Hero title */
.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #cce7ff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hero button */
.hero-button {
    display: inline-block;
    background: rgb(0, 183, 255);
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Button hover effect */
.hero-button:hover {
    background: rgb(0, 150, 210);
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-button {
        font-size: 16px;
        padding: 12px 25px;
    }
}

/* Animation keyframes */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base animation setup */
.hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out forwards;
}

/* Stagger animations */
.hero-title {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.5s;
}

.hero-button {
    animation-delay: 0.8s;
}

/* Scroll Down Arrow */
.scroll-down {
    opacity: 0; /* Always start hidden */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #cce7ff;
    animation: bounce 2s infinite;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.scroll-down:hover {
    transform: translateX(-50%) translateY(0) scale(1.2);
    opacity: 1;
    text-shadow: 0 0 10px rgba(204, 231, 255, 0.8);
    transition: all 0.3s ease;
}

/* Bounce Animation */
@keyframes bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}
