.main-hero {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    color: white;
    text-align: center;
    z-index: 10;
    border-radius: 10px;
}

.hero-contact {
    font-size: 2rem !important;
    color: white;
}

.hero-text-wrapper {
    position: relative;
    display: inline-block;
    margin-top: -60px;
    z-index: 5; /* above logo */
}
.hero-dragon {
    font-family: "Cinzel", serif;
    font-size: 10rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: 2px;
    position: relative;
    z-index: 10;
    margin-top: 20px;
    color: white;
    margin-left: -10px;
    animation: swingIn 1.5s ease forwards;
    animation-delay: 0.3s;
    transform-origin: left bottom; /* moved here */
    box-shadow: 0 50px 60px rgba(13, 221, 9, 0.25);
}

@keyframes swingIn {
    0% {
        opacity: 0;
        transform: rotate(-90deg);
    }
    60% {
        opacity: 1;
        transform: rotate(15deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}
.hero-top-text {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    opacity: 0;
    animation: swingIn 1.5s ease forwards;
    animation-delay: 0.3s;
    transform-origin: left bottom; /* pivot for swing */
}
.hero-movers {
    font-family: "Cinzel", serif;
    font-size: 10rem;
    margin: -10px 0 0 0;
    font-weight: 700;
    letter-spacing: 10px;
    position: relative;
    z-index: 10;
    color: white;
    margin-left: 2px;
    opacity: 0; /* start invisible */
    animation: fadeSlideUp 3.8s ease forwards; /* animate in */
    animation-delay: 0.5s; /* slight delay for stagger */
}
.overlay {
    background: rgba(0, 0, 0, 0.4);
    margin: 0 auto; /* center it */
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-logo-wrapper {
    position: absolute;
    bottom: -320px;
    left: 50%;
    transform: translateX(-50%);
    width: 570px;
    height: 270px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    user-select: none;
    pointer-events: none;
    /* Fade-in animation */
    opacity: 0; /* start hidden */
    animation: fadeIn 5s ease forwards; /* 2s fade-in */
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.hero-logo {
    width: 340px;
    height: auto;
    color: white;
}
/* Below styles for paragraphs and button */
.main-hero p {
    font-size: 1.25rem;
    margin: 20px 0;
}

.hero-cta {
    margin-top: 30px;
}
.hero-tagline {
    position: relative;
    font-size: 2rem !important;
    font-weight: 300;
    color: #f0f0f0;
    margin-top: 10px;
    max-width: 500px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.4); /* dark transparent backdrop */
    padding: 10px 15px; /* space around text */
    border-radius: 6px; /* soften edges */
    font-family: "DM Serif Display", serif;
    left: 90px;
}
.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #989696, #0e0e0f);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-right: 20px;
}
.hero-btn:hover {
    background: linear-gradient(135deg, #5d5959, #d9d9dd);
    transform: translateY(-3px);
    box-shadow: 0 50px 60px rgba(13, 221, 9, 0.25);
}
.hero-btngroup {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #989696, #0e0e0f);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-right: 20px;
}
@media screen and (max-width: 1024px) {
    .hero-dragon {
        font-family: "Cinzel", serif;
        font-size: 6rem;
        margin: 0;
        font-weight: 400;
        letter-spacing: 2px;
        position: relative;
        z-index: 10;
        margin-top: 20px;
        color: white;
        margin-left: -10px;
        animation: swingIn 1.5s ease forwards;
        animation-delay: 0.3s;
        transform-origin: left bottom; /* moved here */
        box-shadow: 0 50px 60px rgba(13, 221, 9, 0.25);
    }
    .hero-movers {
        font-family: "Cinzel", serif;
        font-size: 6rem;
        margin: -10px 0 0 0;
        font-weight: 700;
        letter-spacing: 10px;
        position: relative;
        z-index: 10;
        color: white;
        margin-left: 10px;
        opacity: 0; /* start invisible */
        animation: fadeSlideUp 3.8s ease forwards; /* animate in */
        animation-delay: 0.5s; /* slight delay for stagger */
    }
    .hero-tagline {
        position: relative;
        font-size: 2rem !important;
        font-weight: 300;
        color: #f0f0f0;
        margin-top: 10px;
        max-width: 500px;
        line-height: 1.5;
        background: rgba(0, 0, 0, 0.4); /* dark transparent backdrop */
        padding: 10px 15px; /* space around text */
        border-radius: 6px; /* soften edges */
        font-family: "DM Serif Display", serif;
        left: -10px;
    }
    .hero-text-wrapper {
        position: relative;
        display: inline-block;
        margin-top: -100px;
        z-index: 5; /* above logo */
    }
    /* Clouds layer */
    .clouds {
        position: absolute;
        top: -0px;
        left: 0;
        width: 400%;
        height: 250px;
        background: url("/img/clouds.png") repeat-x;
        background-size: contain;
        animation: moveClouds 40s linear infinite;
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8) 70%,
            rgba(0, 0, 0, 0) 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8) 70%,
            rgba(0, 0, 0, 0) 100%
        );
    }
    @keyframes moveClouds {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-66%); /* move more to cover mobile width */
        }
    }
}
