:root {
    --welcome-bg: #1A1A1A;
    --welcome-text-color: #DEDCDD;
    --overlay-color: rgba(14, 14, 14, 0.7);
    --typing-char-color: #DEDCDD;
    --typing-cursor-color: #DEDCDD;
    --typing-speed: 0.05s;
    --erasing-speed: 0.02s;
    --stay-time: 8s;
    --blink-speed: 1s;
    --typing-delay-after-erase: 1s;
    --text-offset-x: 150px;
    --text-offset-y: -150px;
    --smoke-background: #DEDCDD;
    --smoke-text: #0E0E0E;
    --smoke-font-size: 19px;
    --smoke-duration: 1s;
    --smoke-move: 12px;
    --smoke-move-y: -8px;
    --smoke-blur: 4px;
    --smoke-shadow: 0 2px 8px -1px rgba(21, 25, 36, 0.32);
    --smoke-shadow-hover: 0 4px 20px -2px rgba(21, 25, 36, 0.5);
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
body {
    font-family: sans-serif;
    display: grid;
    place-items: center;
    min-height: 100vh;
    background-color: var(--welcome-bg);
    color: var(--welcome-text-color);
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 0;
}

.logo-image {
    display: block;
    width: 600px;
    height: auto;
    margin: 0 auto;
    position: absolute;
    top: 64%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(-3px) translateY(-180px);
    z-index: 1;
}

.welcome-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 324px;
    left: 643px;
    z-index: 2;
    width: auto;
    height: auto;
}

.text-container {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: auto;
    white-space: nowrap;
    z-index: 1;
    margin-bottom: 15px;
}

.typing-animation-text {
    font-size: 23.2px;
    color: var(--welcome-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    direction: ltr;
    margin: 0;
    transform: none;
}

.typing-animation-text span {
    display: inline-block;
    opacity: 0;
    animation: characterAppear 0.3s ease-out forwards;
}

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

.typing-animation-text::after {
    content: '|';
    color: var(--typing-cursor-color);
    animation: cursor-blink var(--blink-speed) infinite step-end;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-animation-text.finished {
    animation: text-blink var(--blink-speed) infinite step-end;
}

@keyframes text-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    color: #DEDCDC;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    box-sizing: border-box;
    z-index: 1;
}

.footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .logo-image {
        width: 340px;
        margin: 0 auto;
        position: absolute;
        top: 408px;
        left: center;
        transform: translate(-50%, -50%) translateX(-10px) translateY(-80px);
        z-index: 1;
    }

    .welcome-details {
        position: absolute;
        top: 319px;
        left: 71%;
        transform: translate(-50%, -50%) translateY(50px);
        z-index: 1;
        width: auto;
        height: auto;
    }

    .text-container {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: auto;
        margin-bottom: 10px;
    }

    .typing-animation-text {
        font-size: 0.8em;
        margin: 0;
        transform: none;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }
}

html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.button {
    padding: 13px 13px;
    font-family: 'Roboto', Arial;
    font-weight: 500;
    line-height: var(--smoke-font-size);
    border-radius: 24px;
    display: inline-block;
    outline: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: var(--smoke-font-size);
    letter-spacing: .5px;
    background: var(--smoke-background);
    color: var(--smoke-text);
    box-shadow: var(--smoke-shadow);
    transform: translateY(var(--y, 0));
    transition: transform var(--smoke-duration) ease, box-shadow var(--smoke-duration) ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    position: relative;
    z-index: 3;
}

.custom-smoke-button {
    position: absolute;
    top: 310px;
    left: 50%;
    transform: translate(-50%, -50%) translateY(100px);
}

.button div {
    display: flex;
}

.button span {
    display: block;
    backface-visibility: hidden;
    font-style: normal;
}

.button.smoke {
    --y: 0;
    --background: var(--smoke-background);
    --text: var(--smoke-text);
    --shadow: var(--smoke-shadow);
}

.button.smoke:hover {
    --y: 0;
    --shadow: var(--smoke-shadow-hover);
}

.button.smoke:hover span {
    animation: smoke var(--smoke-duration) linear var(--d);
}

@keyframes smoke {
    45%,
    55% {
        filter: blur(var(--smoke-blur));
    }
    50%,
    50.1% {
        opacity: 0;
    }
    25%,
    75% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(var(--smoke-move)) translateY(var(--smoke-move-y));
    }
    50.1% {
        transform: translateX(calc(var(--smoke-move) * -1));
    }
}

@media (min-width: 1920px) {
    .logo-image {
        width: 1400px;
        top: 64%;
        transform: translate(-50%, -50%) translateX(-3px) translateY(-200px);
    }

    .welcome-details {
        top: 640px;
        left: 69%;
        transform: translate(-50%, -50%);
        width: auto;
        height: auto;
    }

    .text-container {
        margin-bottom: 20px;
    }

    .typing-animation-text {
        font-size: 53px;
        display: none !important;
    }

    .custom-smoke-button {
        top: 725px;
        left: 50%;
        padding: 30px 30px;
        transform: translate(-50%, -50%);
        font-size: 25px;
    }

    footer {
        padding: 25px;
        font-size: 1.0rem;
    }
}

:root {
  --scale-factor: 1;
  --min-scale: 0.6;
  --max-scale: 2.66;
}

@media (min-width: 64rem) {
  :root {
    --scale-factor: calc(0.6 + (100vw - 64rem) / (240rem - 64rem) * (2.66 - 0.6));
    --scale-factor: clamp(var(--min-scale), var(--scale-factor), var(--max-scale));
  }
}

.logo-image, .welcome-details, .custom-smoke-button {
  will-change: transform;
  backface-visibility: hidden;
}

@media (-webkit-min-device-pixel-ratio: 2) {
  body {
    -webkit-font-smoothing: antialiased;
  }
}

@media (min-width: 120rem) {
  :root {
    --scale-factor: 1;
    --logo-width: 1400px;
    --logo-offset-x: -3px;
    --logo-offset-y: -200px;
    --welcome-top: 780px;
    --typing-font: 50px;
    --button-top: 850px;
    --typing-text-offset-x: -50px;
  }
  .typing-text-animation {
    transform: translateX(var(--typing-text-offset-x));
  }
}
@media (min-width: 160rem) and (min-height: 90rem) {
  :root {
    --scale-factor: 1.33;
  }
}

@media (min-width: 240rem) and (min-height: 135rem) {
  :root {
    --scale-factor: 2;
  }
}

@media (min-width: 256rem) and (min-height: 144rem) {
  :root {
    --scale-factor: 2.13;
  }
}

@media (min-width: 320rem) and (min-height: 180rem) {
  :root {
    --scale-factor: 2.66;
  }
}

@media (min-width: 120rem) {
  .logo-image {
    width: calc(var(--logo-width) * var(--scale-factor));
    transform: translate(-50%, -50%) 
              translateX(calc(var(--logo-offset-x) * var(--scale-factor)))
              translateY(calc(var(--logo-offset-y) * var(--scale-factor)));
  }
  
  .welcome-details {
    top: calc(var(--welcome-top) * var(--scale-factor));
  }
  
  .typing-animation-text {
    font-size: calc(var(--typing-font) * var(--scale-factor));
  }
  
  .custom-smoke-button {
    top: calc(var(--button-top) * var(--scale-factor));
  }
}
