
#page1 {
    isolation: isolate;
    max-width: min(980px, calc(100vw - 2rem));
    padding-top: clamp(5.5rem, 9vh, 7rem);
}

#page1::before,
#page1::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

#page1::before {
    top: -6rem;
    right: auto;
    bottom: -3rem;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 134, 44, 0.10), transparent 25rem),
        radial-gradient(circle at 16% 36%, rgba(255, 80, 24, 0.11), transparent 16rem),
        radial-gradient(circle at 84% 48%, rgba(67, 154, 175, 0.12), transparent 20rem),
        linear-gradient(180deg, rgba(8, 16, 20, 0.26), rgba(6, 5, 5, 0.78));
    filter: saturate(1.05);
}

#page1::after {
    top: -2rem;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background-image:
        radial-gradient(circle, rgba(255, 164, 72, 0.62) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(84, 178, 195, 0.36) 0 1.2px, transparent 2.2px);
    background-size: 86px 96px, 132px 146px;
    background-position: 12px 20px, 58px 70px;
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: emberFieldDrift 14s linear infinite;
}

@keyframes emberFieldDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -32px, 0); }
}

    /* Existing styles for video container */
    .video-container {
        width: min(100%, 620px);
        margin: clamp(20px, 3vh, 34px) auto 18px;
        text-align: center;
        background: linear-gradient(145deg, rgba(14, 16, 17, 0.90), rgba(8, 7, 7, 0.76));
        padding: clamp(10px, 1.5vw, 16px);
        border: 1px solid rgba(255, 122, 45, 0.14);
        border-radius: 10px;
        box-shadow: 0 0 18px rgba(255, 88, 25, 0.10), 0 10px 30px rgba(0, 0, 0, 0.42);
        color: #fff;
    }

    .video-container iframe {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: min(54vh, 349px);
        border-radius: 8px;
        border: none;
        margin: 0 auto 12px;
        background: #050505;
    }

    /* Click-to-YouTube thumbnail (replaces the iframe — see 1_first_contact.html).
       Same visual frame as the old iframe, with a hover lift and a YouTube
       play button overlay. Opens the video on YouTube.com in a new tab. */
    .youtube-thumbnail {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        margin: 0 auto 12px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 0 14px rgba(255, 100, 30, 0.14), 0 5px 15px rgba(0, 0, 0, 0.4);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.4s ease;
    }
    .youtube-thumbnail:hover,
    .youtube-thumbnail:focus-visible {
        transform: scale(1.01);
        box-shadow: 0 0 24px rgba(255, 100, 30, 0.28), 0 8px 22px rgba(0, 0, 0, 0.5);
    }
    .youtube-thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.86) contrast(1.03) saturate(0.9);
        background: #1a1a1a;
    }
    .youtube-thumbnail .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        width: clamp(58px, 9vw, 78px);
        height: auto;
        transform: translate(-50%, -50%);
        pointer-events: none;
        filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.6));
        transition: transform 0.3s ease;
    }
    .youtube-thumbnail .play-button svg { width: 100%; height: 100%; }
    .youtube-thumbnail .yt-play-bg {
        fill: #212121;
        fill-opacity: 0.82;
        transition: fill 0.3s ease, fill-opacity 0.3s ease;
    }
    .youtube-thumbnail:hover .yt-play-bg,
    .youtube-thumbnail:focus-visible .yt-play-bg {
        fill: #ff0000;
        fill-opacity: 1;
    }
    .youtube-thumbnail:hover .play-button { transform: translate(-50%, -50%) scale(1.06); }

    .video-subtitle {
        margin-top: 4px;
        font-size: clamp(0.9rem, 1.4vw, 1rem);
        font-weight: 600;
        color: #e6b867;
        font-family: 'Poppins', sans-serif;
    }

    .scroll-indicator {
        text-align: center;
        font-size: 1.2rem;
        color: #888;
        margin: 20px 0;
    }

    /* ====================================
       Mystical Symbol (Neon Triangle)
       ==================================== */

/* Center parent container */
.mystical-symbol {
    display: flex; /* Use flexbox */
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    margin: 15px auto; /* Center horizontally */
    position: relative;
    width: 100px; /* Base size */
    height: 100px;
    text-align: center; /* Align content inside */
        transition: transform 2.5s ease-in-out; /* Smooth rotation */
            transform: none !important;


}


/* Rotate all elements on hover */
.mystical-symbol:hover {
    animation: none;
    transform: rotate(360deg) !important;
}

/* Hover Effect: Rotate Smoothly */
.triangle:hover {


    transform:  rotate(360deg); /* Rotate while staying centered */
}

/* Triangle styling */
.triangle {
    position: absolute;
    top: 20px;
    left: 0%;
    transform: translateX(-50%); /* Offset horizontally to center */
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 75px solid #ff7733; /* Gold with a reddish tint */
    animation: colorPulse 6s ease-in-out infinite, scalePulse 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 12px rgba(255, 119, 51, 0.8)); /* Stronger reddish glow */
        transition: transform 1.5s ease-in-out; /* Smooth rotation */

}



/* Soft, subtle glow background */
.soft-glow {
    position: absolute;
    width: 480px; /* Increased 50% */
    height: 480px; /* Increased 50% */
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    animation: glowPulse 6s ease-in-out infinite alternate;
    z-index: -1;
    opacity: 1; /* More transparent blue glow */
}



/* Subtle scaling pulse */
@keyframes scalePulse {
    0%, 100% {
        transform: scale(0.88);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Soft pulsating glow animation */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.75; /* Slightly stronger glow */
        transform: scale(1.4); /* Larger radius pulse */
    }
}





/* Hover-triggered text container */
.hover-text {
    position: absolute;
    top: 45.5%;
    left: 30%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0);
    white-space: nowrap;
    pointer-events: none; /* Prevent interaction */
    opacity: 0; /* Initially invisible */
    animation: none; /* No animation until hover */
    font-style: italic; /* Make the text italic */

}



/* Hover-triggered text container */
.hover-text2 {
    position: absolute;
    top: 45.5%;
    left: 58%; /* Position text to the right of the mystical-symbol */
    transform: translateY(-50%);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0);
    white-space: nowrap;
    pointer-events: none; /* Prevent interaction */
    opacity: 0; /* Initially invisible */
    animation: none; /* No animation until hover */
    font-style: italic; /* Make the text italic */
}


/* Activate text animation on hover */
.mystical-symbol:hover + .hover-text{
    animation: textCycle 6s ease-in-out infinite;
}

.mystical-symbol:hover ~ .hover-text2 {
    animation: textCycle2 6s ease-in-out infinite;
}


/* Keyframes for text animation */
@keyframes textCycle {
    0% {
        opacity: 0;
        content: "Breath In";
        color: rgba(255, 255, 255, 0.9); /* Visible white */
    }
    30% {
            content: "Breath In";
        opacity: 1; /* Text appears quickly */
    }

    45% {
                content: "Breath In";
        opacity: 0.77; /* Text appears quickly */
    }
    52% {
        content: "Breath Out";
        opacity: 0.4;
    }

    58% {
        content: "Breath Out";
        opacity: 0;
    }

    75% {

        content: "Breath Out";
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

    /* Keyframes for text animation */
@keyframes textCycle2 {
    0% {
        opacity: 0;
        content: "Breath Out";
        color: rgba(255, 255, 255, 0.9); /* Visible white */
    }

    40% {
        content: "Breath Out";
        opacity: 0;
    }

     58% {
        content: "Breath Out";
        opacity: 0.2;
    }


    65% {
        content: "Breath Out";
        opacity: 0.5;
        color: rgba(255, 255, 255, 0.9); /* Visible white */
    }


    75% {

        content: "Breath Out";
        opacity: 1;
        color: rgba(255, 255, 255, 0.9); /* Visible white */
    }

    88% {

        content: "Breath Out";
        opacity: 1;
        color: rgba(255, 255, 255, 0.9); /* Visible white */
    }

    95% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}



    .anvil-animation {
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: fadeIn 0.8s ease-in-out forwards;

}


.anvil-container {
    position: relative;
    width: 300px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    top: -13%;
    left: -1%;
}

.anvil {
    position: relative;
    width: 150px;
    height: 60px;
    background: linear-gradient(to bottom, #4b4b4b, #2b2b2b);
    clip-path: polygon(0% 80%, 20% 80%, 30% 100%, 70% 100%, 80% 80%, 100% 80%, 90% 40%, 10% 40%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    top: 0px;

}

.hammer {
    position: absolute;
    width: 60px;
    height: 20px;
    background: linear-gradient(to bottom, #5a5a5a, #3b3b3b);
    top: 37%;
    left: 77%;
    transform: translateX(-50%);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hammer::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 10px;
    height: 65px;
    background: linear-gradient(to bottom, #3b3b3b, #1b1b1b);
    transform: translateX(-50%);
    border-radius: 5px;
}



.sparks {
    position: absolute;
    overflow: visible;
    bottom: 50px;
    left: 63%;
    top: 75.5%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spark {
    position: absolute;
    background-color: #ff4500;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(0px); /* Adds a glowing effect */
}

@keyframes spark-animation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(100px * (random() - 0.5)), calc(-100px * random())) scale(0);
        opacity: 0;
    }
}









/* Scroll back top */


/* Scroll-to-Top Button */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px; /* Circular button size */
    height: 60px;
    display: none; /* Initially hidden */
    opacity: 0; /* Fade-in on visibility */
    cursor: pointer;
    z-index: 9999;
    background: rgba(30, 30, 30, 0.8); /* Semi-transparent dark circle */
    border-radius: 50%; /* Makes it a perfect circle */
    box-shadow: 0 0 15px rgba(255, 60, 60, 0.4); /* Glowing effect */
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto; /* Ensure it's clickable */

}

/* Hover Effect for the Circle */
#scrollToTop:hover {
    transform: scale(1.1); /* Slightly enlarges the button */
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.6); /* Intensifies glow */

}

/* Lines Inside the Button */
#scrollToTop .line {
    position: absolute;
    background: rgba(255, 60, 60, 1); /* Glowing red lines */
    height: 4px;
    border-radius: 2px; /* Smooth edges */
    /* drop-shadow instead of box-shadow: the burning glow is animated every
       frame; drop-shadow rides the compositor and stays off the paint pipeline. */
    filter: drop-shadow(0 0 4px rgba(255, 60, 60, 0.8));
    animation: burn 1.5s linear infinite; /* Continuous glow effect */
    transform-origin: center center;
}

/* Line 1 (Left Slash) */
#scrollToTop .line-1 {
    width: 0; /* Starts with no width */
    bottom: 30px; /* Centered vertically */
    left: 25.4px; /* Positioned on the left */
    transform: rotate(45deg); /* Rotated to form a slash leaning right */
    animation: drawLine1 0.5s forwards ease-out, burn 1.5s linear infinite;
}

/* Line 2 (Right Slash) */
#scrollToTop .line-2 {
    width: 0; /* Starts with no width */
    bottom: 30px;
    left: 5.2px;
    transform: rotate(-45deg); /* Rotated to form a slash leaning left */
    animation: drawLine2 0.5s forwards ease-out 0.3s, burn 1.5s linear infinite;
}

/* Animations for Drawing Lines */
@keyframes drawLine1 {
    0% { width: 0; }
    100% { width: 30px; } /* Fully drawn left slash */
}
@keyframes drawLine2 {
    0% { width: 0; }
    100% { width: 30px; } /* Fully drawn right slash */
}

/* Burning Effect Animation. filter:drop-shadow stays on the compositor —
   the older box-shadow form forced a full repaint of the button every frame. */
@keyframes burn {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(255, 60, 60, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 60, 60, 1));
    }
}

/* Smoothly Show and Hide the Button */
#scrollToTop.show {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
#scrollToTop.hide {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}


.language-buttons {
    position: fixed;
    top: 55px;
    left: 10px;
    z-index: 9999;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 1rem 2rem;
    margin-bottom: 1rem;
    /* Glow animation on the whole container */
    animation: glow 3s ease-in-out infinite alternate, fadeIn 1s ease-in-out forwards;
  }

  .language-buttons .lang-btn {
    background: linear-gradient(90deg, #ff4500, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    margin: 0 5px;
    transition: transform 0.2s;
  }

  .language-buttons .lang-btn:hover {
    transform: scale(1.1);
  }




/************************************************************
 * MOBILE SETUP
 ************************************************************/

@media only screen and (max-width: 768px) {
    .anvil-animation {
        height: 105px; /* 70% of original height */
    }

    .anvil-container {
        width: 210px; /* 70% of original width */
        height: 105px; /* 70% of original height */
        top: -13.5%; /* Adjust proportionally */
        left: -0.7%; /* Adjust proportionally */
    }

    .anvil {
        width: 105px; /* 70% of original width */
        height: 42px; /* 70% of original height */
        clip-path: polygon(0% 80%, 20% 80%, 30% 100%, 70% 100%, 80% 80%, 100% 80%, 90% 40%, 10% 40%);
        box-shadow: 0 5.6px 14px rgba(0, 0, 0, 0.5); /* Adjust shadow size */
    }

    .hammer {
        width: 42px; /* 70% of original width */
        height: 14px; /* 70% of original height */
        top: 33.3%; /* Adjust proportionally */
        left: 77%; /* Same position */
        transform: translateX(-50%);
        box-shadow: 0 2.8px 7px rgba(0, 0, 0, 0.3); /* Adjust shadow size */
    }

    .hammer::after {
        width: 7px; /* 70% of original width */
        height: 45.5px; /* 70% of original height */
        top: 14px; /* Adjust proportionally */
        left: 50%;
        transform: translateX(-50%);
    }

    .sparks {
        bottom: 35px; /* 70% of original bottom position */
        left: 60%; /* Same position */
        top: 75%; /* Adjust proportionally */
    }


.language-buttons {
    top: 43px;
    left: 8px;
    font-size: 1rem;
    margin: 1rem 1rem;
    margin-bottom: 1rem;
  }


  .language-buttons .lang-btn {
    margin: 0 1px;
  }

}
