@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #ffffff;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

#video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover; /* Ensures the video covers the screen */
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff; /* White text color */
  text-align: center;
  z-index: 1;
  padding: 0 1rem; 
}

.text-overlay h1 {
  font-size: 8vw; 
  font-family: 'Outfit', sans-serif;
  margin-top: 10%; 
  margin-bottom: 5%;
}

.intro-section {
  position: relative;
  height: 100vh;
}

#typing-effect {
  border-right: 2px solid black; /* Cursor style */
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 4.5s steps(40, end) forwards, blink-caret .75s step-end infinite;
}

/* Typing keyframe */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Cursor blink keyframe */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: rgb(9, 237, 100) }
}

.gradient-period {
  background: linear-gradient(to bottom, #a0ff70 0%, #00ff7f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.progress-container {
  width: 100%;
  height: 6px;
  background-color: #f3f3f3;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background-color: #4caf50;
  width: 0;
}

.arrowd {
  position: absolute;
  top: calc(50% + 9.2vw); 
  left: 50%;
  transform: translateX(-50%) scale(0.7); 
  font-size: 6vw; 
}


@media (max-width: 1200px) {
  .text-overlay h1 {
    font-size: 6vw;
  }
  .arrowd {
    top: calc(50% + 7.5vw);
    font-size: 5vw;
  }
}

@media (max-width: 768px) {
  .text-overlay h1 {
    font-size: 5vw;
  }
  .arrowd {
    top: calc(50% + 6vw);
    font-size: 4.5vw;
  }
}

@media (max-width: 480px) {
  .text-overlay h1 {
    font-size: 4vw;
  }
  .arrowd {
    top: calc(50% + 5vw);
    font-size: 4vw;
  }
}
