/* #region Тіло */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: black;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;  
    user-select: none;
    scrollbar-width: 0px;
    overflow: -moz-scrollbars-none;
    overflow: hidden;
    pointer-events: none;
}

body::-webkit-scrollbar {
    width: 0px;
}

img, a {
    -webkit-user-drag: none;
    -moz-window-dragging: none;
}

@font-face {
    font-family: 'Orpheus';
    src: url('Fonts/Orpheus.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Crooker';
    src: url('Fonts/Crooker.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orchis Prima';
    src: url('Fonts/OrchisPrima-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orchis Prima';
    src: url('Fonts/OrchisPrima-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orchis Prima';
    src: url('Fonts/OrchisPrima-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orchis Prima';
    src: url('Fonts/OrchisPrima-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Orchis Prima';
    src: url('Fonts/OrchisPrima-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Kyiv Type Sans';
    src: url('Fonts/KyivTypeSans.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --scale-factor: 2.7;
}
/* #endregion */

/* #region Анімація */
.fade-out {
    opacity: 0;
    transition: opacity 0.7s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animated {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease;
    will-change: opacity, transform;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s 0.7s, opacity 0.7s ease;
    will-change: opacity, transform;
}

@keyframes flicker {
    0% { box-shadow: 0 0 40px 20px rgba(240, 200, 255, 0.8); }
    50% { box-shadow: 0 0 60px 30px rgba(240, 200, 255, 0.7); }
    100% { box-shadow: 0 0 40px 20px rgba(240, 200, 255, 0.8); }
}

@keyframes flicker-brightness {
    0% {
        filter: blur(10px) brightness(0.3);
    }
    50% {
        filter: blur(10px) brightness(1.2);
    }
    100% {
        filter: blur(10px) brightness(0.3);
    }
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(0) scale(1);
	}
	25% {
		opacity: 1;
	}
	to {
		opacity: 0;
		transform: translateY(-10em) scale(0);
	}
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes moveUpAndFade {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(150%);
        opacity: 0;
    }
}

.visible2 {
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.hidden2 {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
/* #endregion */

/* #region Екран завантаження */
#space-container {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% -90%, rgb(137, 43, 226) 15%, transparent 50%), 
                radial-gradient(circle at 80% 170%, rgb(137, 43, 226) 15%, transparent 50%),
                url('Images/Clouds.png');
    background-color: rgb(28, 17, 41);
    background-repeat: no-repeat, no-repeat, repeat-x;
    background-position: center center, center center, 0% center;
    background-blend-mode: normal, normal, overlay;
    background-size: cover, cover, cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-family: 'Crooker', sans-serif;
    flex-direction: column;
    -webkit-mask-image: linear-gradient(to top, transparent, black 50%);
    mask-image: linear-gradient(to top, transparent, black 50%);
}

#space-flying-text h1, #flying-text-container p {
    display: inline-block;
    white-space: nowrap;
}

#space-container h1 {
    font-size: 2.6vw;
    margin-bottom: 1.1vw;
    margin-top: 0px;
}

#space-container p {
    font-size: 2.1vw;
    opacity: 0.75;
    margin: 0px;
}

.float-text {
    color: rgb(191, 169, 218);
    display: inline-block;
    animation: floatAnimation 3s ease-in-out infinite;
    animation-fill-mode: forwards;
}

#space-container .response-button {
    cursor: pointer;
    color: rgb(143, 123, 176);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    pointer-events: auto;
}

#space-container .response-button:hover {
    color: rgb(244, 238, 255);
    text-shadow: 
        0 0 30px rgba(143, 123, 176, 1),
        0 0 40px rgba(103, 87, 133, 1),
        0 0 50px rgba(63, 52, 83, 1);
}

.stars {
    transition: transform 1.2s ease-in;
    position: relative;
    width: 101vw;
    top: 0px;
    left: 0px;
    height: 101vh;
}

.stars.moved {
    transform: translateY(-150vh);
    display: none;
}

.cloud {
    transform: translateY(0);
    position: absolute;
    bottom: -56%;
    left: 28%;
    scale: 2.7;
    background-image:
        url('Images/Cloud1.png');
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 5s ease-in;
    filter: blur(7px);
}
/* #endregion */

/* #region Головний екран */
#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -100;
}

.fire {
	font-size: 24px;
	filter: blur(0.02em);
	-webkit-filter: blur(0.02em);
    position: absolute;
	width: 10em;
	height: 12em;
    top: 36%;
    left: 43.7%;
    z-index: 30;
    pointer-events: auto;
}

.particle {
    will-change: transform, opacity;
    animation: rise 1s ease-in infinite;
    background-image: radial-gradient(white 20%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0;
    position: absolute;
    bottom: 0;
    width: 5em;
    height: 5em;
    z-index: 14;
}

.glow-effect-blue {
    position: absolute;
    width: 1200px;
    height: 200px;
    background: radial-gradient(circle, rgba(88, 0, 146, 0.6) 20%, rgba(0, 150, 255, 0) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: blur(50px);
    z-index: 11;
    top: 56%;
}

.glow-effect-white {
    position: absolute;
    width: 250px;
    height: 100px;
    background: radial-gradient(circle, rgb(230, 200, 255) 100%, rgba(88, 0, 146, 0) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: blur(5px);
    animation: flicker 1.7s infinite alternate;
    z-index: 12;
    top: 59%;
}

.curved-text {
    position: absolute;
    top: 65%;
    z-index: 11;
}

.curved-text svg {
    width: 100%;
    height: auto; 
    display: block;
}

.curved-text text {
    fill: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4))
           drop-shadow(0 0 20px rgba(   255, 255, 255, 0.3))
           drop-shadow(0 0 30px rgba(255, 255, 255, 0.2))
           drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
}

.moon {
    position: absolute;
    height: 55%;
    width: 55%;
    top: 3%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('Images/Слой 2.svg');
    filter: drop-shadow(0 0 20px #8010ffe6); /*#ff81fde6 */
    z-index: 8;
}

.moon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48%;
    height: 48%;
    background: radial-gradient(circle, #b881ffe6, transparent); /*253, 181, 255 */
    transform: translate(-50%, -50%);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 9;
}

.forest {
    position: absolute;
    height: 40%;
    width: 40%;
    top: 13%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('Images/Forest.svg');
    z-index: 11;
}

.black {
    position: absolute;
    background-color: black;
    height: 60%;
    width: 100%;
    bottom: 0px;
    z-index: 10;
}

.ufo1 {
    position: absolute;
    height: 7%;
    width: 7%;
    top: 9%;
    left: 42%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('Images/Ufo.svg');
    rotate: -5deg;
    z-index: 10;
    filter: blur(1.5px);
}

.ufo2 {
    position: absolute;
    height: 9%;
    width: 9%;
    top: 14%;
    left: 49%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('Images/Ufo.svg');
    rotate: 5deg;
    z-index: 10;
    filter: blur(1.5px);
}

.campfire {
    position: absolute;
    height: 10%;
    width: 10%;
    top: 59%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('Images/Campfire.svg');
    filter: drop-shadow(0px 6px 2px rgb(0, 0, 0)) brightness(1);
    opacity: 1;
    transition: opacity 1.8s ease, filter 1.8s ease;
    z-index: 13;
}

/* #endregion */

/* #region Паралакс */
#parallax-container {
    position: absolute;
    top: 68%;
    width: 110%;
    height: 110%;
    z-index: 15;
    animation: flicker-brightness 1.7s infinite alternate;
    filter: blur(15px) brightness(0.2);
    transition: filter 2s ease;
    box-sizing: border-box;
    will-change: transform;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
}
/* #endregion */

/* #region Інший екран */
#another-content {
    position: absolute;
    top: 130vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    z-index: 16;
}

.cave {
    background-image: url('Images/DALL13.webp');
    height: 100%;
    width: 100%;
    position: absolute;
    filter: drop-shadow(0px 6px 2px rgb(0, 0, 0)) brightness(1) saturate(1);
    z-index: 1;
}

.cave::before,
.cave::after {
    content: "";
    position: absolute;
    z-index: 2;
}

.cave::before {
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, black, transparent);
}

.cave::after {
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, black, transparent);
}

.side-shadow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%; 
    z-index: 2;
    pointer-events: none;
}

.left-shadow {
    left: 0;
    background: linear-gradient(to right, black, transparent);
}

.right-shadow {
    right: 0;
    background: linear-gradient(to left, black, transparent);
}

.title {
    position: relative;
    top: -15px;
    text-align: center;
    font-family: 'Orpheus', serif;
    font-size: 100px;
    font-weight: normal;
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4))
        drop-shadow(0 0 20px rgba(   255, 255, 255, 0.3))
        drop-shadow(0 0 30px rgba(255, 255, 255, 0.2))
        drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
    z-index: 2;
}

#fireflies-container {
    position: absolute;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    z-index: 1;
}

.firefly {
    transition: opacity 2s ease;
    will-change: transform, opacity, filter;
}
/* #endregion */

/* #region Agglomeration*/
.glassmorphism-panel {
    z-index: 2;
    height: 82vh;
    width: 86%;
    background: rgba(255, 255, 255, 0.048);
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    font-weight: semibold;
    backdrop-filter: blur(10px);
    font-size: 14px;
    line-height: 2;
    box-shadow: 0 0 10px 10px rgba(13, 1, 24, 0.747);
    overflow-y: hidden;
    pointer-events: auto;
}

.project-container {
    position: relative;
    width: 258px;
    height: 258px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgb(0, 0, 0);
}

.project-container img {
    width: 101%;
    height: 101%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease, filter 0.5s ease; 
}

.project-container:hover img {
    transform: scale(1.1);
    filter: blur(10px); 
}

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.664);
    transition: bottom 0.5s ease;
    padding: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 15px 15px;
}

.project-container:hover .overlay {
    bottom: 0;
}

.overlay p {
    margin-top: 0px;
    font-family: 'Kyiv Type Sans';
    font-weight: 400;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    padding: 0px;
}

.overlay a {
    font-family: 'Kyiv Type Sans';
    color: #000000;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.overlay a:hover {
    background: rgba(255, 255, 255, 0.808);
}
/* #endregion */

/* #region Свічення назв */
.glow-1 h1 {
    font-family: 'Orchis Prima';
    color: #bb45f7;
    margin: 0;
    padding: 0px;
    font-size: 25px;
    font-weight: 600;
    text-shadow: 0 0 10px #660099,
                 0 0 20px #6b238e, 
                 0 0 30px #6b238e, 
                 0 0 40px #6b238e, 
                 0 0 70px #6b238e, 
                 0 0 100px #6b238e;
}

.glow-2 h1 {
    font-family: 'Orchis Prima';
    color: #b0b0b0;
    margin: 0;
    padding: 0px;
    font-size: 25px;
    font-weight: 600;
    text-shadow: 0 0 10px #2e5542,
                 0 0 20px #2a4f3e, 
                 0 0 30px #2a4f3e, 
                 0 0 40px #2a4f3e, 
                 0 0 70px #2a4f3e, 
                 0 0 100px #2a4f3e;
}
/* #endregion */

/* #region Mobile Sites IS THE WORST THING IN DA WOLD bzzzz*/
/* @media (max-width: 600px) {
    #space-container h1 {
        font-size: 5vw;
        margin-bottom: 4vw;
    }

    #space-container p {
        font-size: 4vw;
        margin-top: 4vw;
        margin-bottom: 4vw;
    }
} */
/* #endregion */