@import url('https://fonts.cdnfonts.com/css/grammatika');
@import url('https://fonts.cdnfonts.com/css/serious-rounded');

:root{
    --white : #FFFFFF;
    --black : #000000;

    --magenta : #FF00BB;
    --purple : #B700FF;

    --trans_white : rgba(255, 255, 255, 0.5);

    --font_main : 'GramatikaTrial', serif;
    --font_sub : 'seriousr2', sans-serif;
}

/* GramatikaTrial Font Faces */
@font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-BoldItalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-ExtraLightItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'GramatikaTrial';
    src: url('../fonts/GramatikaTrial-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }

html{
    scroll-behavior: smooth;
    font-size: 16px;
    font-family: var(--font_main);
    margin: 0;
}

body{
    margin: 0;
    background: var(--black);
    overflow: hidden;
}

.noise-overlay {
    position: relative;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,..."); /* Generated via JS */
    background-repeat: repeat;
    pointer-events: none; /* Allows interaction with content below */
    mix-blend-mode: overlay; /* Blend mode */
    opacity: 1; /* Adjust intensity */
    z-index: 9999; /* Ensure it's on top */
    transition: opacity 0.3s ease-in-out; /* Smooth transition for opacity changes */
    backdrop-filter: blur(70px);
}

.background_cont{
    width: 100vw;
    height: 100vh;
    z-index: 1;
    position: absolute;
}

.mouse_follow {
    position: fixed;
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100;
    transition: transform 0.05s ease-out; /* Smooth movement */
    mix-blend-mode: plus-lighter;
    filter: blur(50px);
    opacity: 1;
    display: block; /* Change from 'none' to 'block' */
}

.backdrop_div_1{
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    z-index: 0;
    background: linear-gradient(315deg, #FF01BC, #BB01FF);
    filter: blur(15vh);
    top: 5vh;
    left: 5vw;
    animation: bg_1 3.5s cubic-bezier(0,1,.33,1);
    animation-fill-mode: forwards !important;
    display: block; /* Change from 'none' to 'block' */
    opacity: 1;
}

.backdrop_div_2{
    position: absolute;
    width: 20vw;
    height: 20vw;
    border-radius: 50%;
    z-index: 0;
    background: linear-gradient(55deg, #FF01BC, #BB01FF);
    filter: blur(10vh);
    top: 20vh;
    left: 50vw;
    animation: bg_2 3.2s cubic-bezier(0,1,.33,1);
    animation-fill-mode: forwards !important;
    display: block; /* Change from 'none' to 'block' */
    opacity: 1;
}

.backdrop_div_3{
    position: relative;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    z-index: 0;
    background: linear-gradient(155deg, #FF01BC, #BB01FF);
    filter: blur(15vh);
    top: 70vh;
    left: 70vw;
    animation: bg_3 3.4s cubic-bezier(0,1,.33,1);
    animation-fill-mode: forwards !important;
    display: block; /* Change from 'none' to 'block' */
    opacity: 1;
}

/* Animation classes */
.animate-bg-1 {
    animation: bg_1 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    opacity: 1;
}

.animate-bg-2 {
    animation: bg_2 3.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    opacity: 1;
}

.animate-bg-3 {
    animation: bg_3 3.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    opacity: 1;
}

.animate-mouse {
    animation: mouse_follow 4s ease-out forwards !important;
}

@keyframes bg_1 {
    0% { 
        transform: translate(-120vw, 120vh);
        opacity: 0;
    }
    100% { 
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes bg_2 {
    0% { 
        transform: translate(190vw, -50vh);
        opacity: 0;
    }
    100% { 
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes bg_3 {
    0% { 
        transform: translate(120vw, 120vh);
        opacity: 0;
    }
    100% { 
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes mouse_follow {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.backdrop_blurry_cirl_inner{
    width: 100vw;
    height: 100vh;
    position: absolute;
}

.foreground{
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 1000000000;
}

.language{
    width: 100%;
    height: 100%;
    display: flex;
    margin: 5rem;
    justify-content: flex-end;
    align-items: flex-start;
}

.lang_switch{
    width: fit-content;
    height: fit-content;
    font-family: var(--font_sub);
    color: var(--trans_white);
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.lang_switch:hover{
    color: var(--white);
    transition: 0.3s;
}

.main{
    position: absolute;
    display: flex;
    width: 85vw;
    height: 60vh;
    padding: 150px;
    pointer-events: none;
    flex-direction: column;
    justify-content: space-between;
    align-content: flex-start;
    align-items: flex-start;
}

.title{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.title_above{
    margin: -4px 0;
    color: var(--white);
    font-family: var(--font_sub);
    font-size: 1.9rem;
}

.title_main{
    margin: -4px 0;
    color: var(--white);
    font-family: var(--font_main);
    font-size: 7rem;
    font-weight: 900;
}

.buttons{
    display: flex;
    gap: 20px;
}

.button_main{
    pointer-events: all;
    width: fit-content;
    height: fit-content;
    padding: 20px 70px;
    background-color: var(--white);
    border-radius: 500px;
    border: var(--white) 3px solid;
    font-family: var(--font_main);
    font-size: 1.2em;
    transition: 0.3s;
}

.button_main:hover{
    cursor: pointer;
    background-color: transparent;
    color: var(--white);
    border: var(--white) 3px solid;
    transition: 0.3s;
}

.button_secondary{
    pointer-events: all;
    width: fit-content;
    height: fit-content;
    padding: 20px 70px;
    background-color: transparent;
    border-radius: 500px;
    color: var(--white);
    border: var(--white) 3px solid;
    font-family: var(--font_main);
    font-size: 1.2em;
    transition: 0.3s;
}

.button_secondary:hover{
    cursor: pointer;
    background-color: var(--white);
    color: var(--black);
    border: var(--white) 3px solid;
    transition: 0.3s;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000000000000000000000000000000000000000;
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease-out;
  }

.loading-screen.fade-out {
    opacity: 0;
    display: none;
  }

  @media screen and (max-width: 768px) {
    html {
        font-size: 14px; /* Adjust font size for smaller screens */
    }

    body {
        overflow:hidden;

    }

    .main {
        width: 73vw;
        height: 70vh;
        padding: 50px 50px;
        flex-direction: column;
        align-items: center;
    }

    .loader_warning{
        display: none;
        opacity: 0;
    }

    .title_main {
        font-size: 4rem; /* Reduce title size */
    }

    .title_above {
        font-size: 1.5rem; /* Adjust subtitle size */
        text-align: center; /* Center align text */
        margin-bottom: 0.5em;
    }

    .buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Reduce gap between buttons */
        align-items: center; /* Center align buttons */
        width: 100%;
        padding: 0 10px;
    }

    .button_main, .button_secondary {
        width: 100%; /* Make buttons full width */
        padding: 15px 0; /* Adjust padding for smaller screens */
        font-size: 1rem; /* Adjust font size */
    }

    .language {
        margin: 2rem 0;
        font-size: 3rem;
        padding-right: 2rem;
    }

    .lang_switch {
        font-size: 1rem; /* Adjust font size */
    }

    .backdrop_div_1, .backdrop_div_2, .backdrop_div_3 {
        display: none; /* Hide backdrop elements on mobile */
    }

    .mouse_follow {
        display: none; /* Hide mouse-follow effect on mobile */
    }

    .loading-screen {
        justify-content: center; /* Center align loading screen content */
        align-items: center; /* Center align loading screen content */
    }

    @keyframes bg_1 {
        0% { top: 5vh; left: 5vw; }
        100% { top: 5vh; left: 5vw; }
    }
    
    @keyframes bg_2 {
        0% { top: 20vh; left: 50vw; }
        100% { top: 20vh; left: 50vw; }
    }
    
    @keyframes bg_3 {
        0% { top: 70vh; left: 70vw; }
        100% { top: 70vh; left: 70vw; }
    }
    
    @keyframes mouse_follow {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }

    .foreground{
        height: fit-content;
    }

    .loader_warning{
        display: block;
        opacity: 1;
    }
}