/* Basic breakdown of the styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Background Image & Animation */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using a high quality Stupa image from Unsplash */
    background-image: url('../img/heritage_stupa_background_1770892064769.png');
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
    animation: zoomEffect 20s infinite alternate ease-in-out;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
        /* Slight zoom in */
    }
}

/* Overlay to darken the background for better text visibility */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14, 28, 44, 0.6), rgba(47, 28, 14, 0.4), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

/* Content Styles */
.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
}

.title-container {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

/* Main Title Animations Enhancement */
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    /* Removed the global floatText in favor of per-character */
}

/* Character styling (generated by script.js) */
.main-title .char {
    display: inline-block;
    /* Required for transforms */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        text-shadow 0.3s ease,
        color 0.3s ease;
    cursor: default;

    /* Subtle continuous idle animation */
    animation: gentleFloat 5s ease-in-out infinite;
    /* Reset text-shadow for precise control on hover */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hover Effect - "Animate like this" */
.main-title .char:hover {
    transform: translateY(-15px) scale(1.1) rotate(5deg);
    color: #f0e6d2;
    /* Light cream gold */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(214, 64, 64, 0.6);
    z-index: 10;
    /* Bring to front */
}

/* Keyframes for gentle float (idle state) */
@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    margin-top: 10px;
    font-weight: 300;
}

/* Red Separator Lines */
.separator-line {
    width: 60px;
    height: 2px;
    background-color: #d64040;
    /* Reddish color from screenshot */
    margin: 10px auto;
    /* Centered with margin */
    display: block;
    transform-origin: center;
}

.separator-line.top {
    margin-bottom: 20px;
}

.separator-line.bottom {
    margin-top: 20px;
    display: block;
}

/* Footer Section */
.footer {
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer .techweaver {
    color: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }
}
