/* ===== Global Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ===== Base Header Styling ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2.3rem 4rem;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 25, 0);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  pointer-events: none;
}

/* ===== Logo & Text Container ===== */
.header .bot-name {
  position: absolute;
  left: 4vw;
  top: 10%;
  margin: 0;
  display: flex;
  align-items: center;
  transform: translate(0, -10px);
}

/* ===== Logo Styling ===== */
.header .bot-name img,
#botLogo {
  height: 80px;
  margin-right: -20px;
  user-select: none;
  pointer-events: none;
}

/* ===== Bot Name Text ===== */
.header .bot-name h1,
#botText {
  font-size: clamp(18px, 3vw, 34px);
  font-weight: bold;
  margin: 0;
  transform: translate(-20px, 8px);
  background: linear-gradient(to top right, #4156FD, #60B6E5);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  user-select: none;
  pointer-events: auto;
}

/* ===== Clickable Container ===== */
#botName {
  display: flex;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
}

/* ===== Falling Letters ===== */
.falling-letter {
  position: fixed;
  z-index: 1000;
  font-size: clamp(18px, 3vw, 34px);
  font-weight: bold;
  background: linear-gradient(to top right, #4156FD, #60B6E5);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  user-select: none;
  pointer-events: none;
}

/* Ultra Small Devices: Phones < 321px */
@media (max-width: 320px) {
  .header {
    padding: 0.8rem 1rem;
  }
  
  .header .bot-name {
    top: 14%;
    transform: translateY(-5px);
  }
  
  .header .bot-name img,
  #botLogo {
    height: 36px;
    margin-right: -8px;
  }
  
  .header .bot-name h1,
  #botText,
  .falling-letter {
    font-size: 14px;
    transform: translate(-8px, 4px);
  }
}

/* Extra Small Devices: Phones 321px–359px */
@media (min-width: 321px) and (max-width: 359px) {
  .header {
    padding: 1rem 1rem;
  }
  .header .bot-name {
    top: 14%;
    transform: translate(0, -5px);
  }
  .header .bot-name img, #botLogo {
    height: 40px;
    margin-right: -10px;
  }
  .header .bot-name h1, #botText, .falling-letter {
    font-size: 16px;
    transform: translate(-10px, 5px);
  }
}

/* Small Phones: 360px–479px */
@media (min-width: 360px) and (max-width: 479px) {
  .header {
    padding: 1.2rem 1.5rem;
  }
  .header .bot-name {
    top: 13%;
    transform: translate(0, -6px);
  }
  .header .bot-name img, #botLogo {
    height: 45px;
    margin-right: -12px;
  }
  .header .bot-name h1, #botText, .falling-letter {
    font-size: 18px;
    transform: translate(-12px, 6px);
  }
}

/* Small Devices: 480px–767px */
@media (min-width: 480px) and (max-width: 767px) {
  .header {
    padding: 1.5rem 2rem;
  }
  .header .bot-name {
    top: 12%;
    transform: translate(0, -7px);
  }
  .header .bot-name img, #botLogo {
    height: 55px;
    margin-right: -14px;
  }
  .header .bot-name h1, #botText, .falling-letter {
    font-size: 22px;
    transform: translate(-15px, 6px);
  }
}

/* Tablets: 768px–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .header {
    padding: 2rem 3rem;
  }
  .header .bot-name {
    top: 11%;
    transform: translate(0, -8px);
  }
  .header .bot-name img, #botLogo {
    height: 65px;
    margin-right: -16px;
  }
  .header .bot-name h1, #botText, .falling-letter {
    font-size: 26px;
    transform: translate(-18px, 7px);
  }
}

/* Laptops: 1024px–1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header {
    padding: 2.3rem 4rem;
  }
  .header .bot-name {
    top: 10%;
    transform: translate(0, -10px);
  }
  .header .bot-name img, #botLogo {
    height: 75px;
    margin-right: -20px;
  }
  .header .bot-name h1, #botText, .falling-letter {
    font-size: 28px;
    transform: translate(-20px, 8px);
  }
}

/* Desktops: 1280px–1439px */
@media (min-width: 1280px) and (max-width: 1439px) {
  .header {
    padding: 2.3rem 5rem;
  }
  .header .bot-name {
    top: 9%;
    transform: translate(0, -10px);
  }
  .header .bot-name img, #botLogo {
    height: 80px;
    margin-right: -19px;
  }
  .header .bot-name h1, #botText, .falling-letter {
    font-size: 30px;
    transform: translate(-22px, 9px);
  }
}

/* Large Desktops: 1440px–1919px */
@media (min-width: 1440px) and (max-width: 1919px) {
  .header {
    padding: 2.5rem 6rem;
  }
  .header .bot-name {
    top: 9%;
    transform: translate(0, -10px);
  }
  .header .bot-name img, #botLogo {
    height: 85px;
    margin-right: -21px;
  }
  .header .bot-name h1, #botText, .falling-letter {
    font-size: 32px;
    transform: translate(-25px, 9px);
  }
}

/* Ultra-Wide Screens: 1920px+ */
@media (min-width: 1920px) {
  .header {
    padding: 3rem 7rem;
  }
  .header .bot-name {
    top: 8%;
    transform: translate(0, -10px);
  }
  .header .bot-name img, #botLogo {
    height: 90px;
    margin-right: -28px;
  }
  .header .bot-name h1, #botText, .falling-letter {
    font-size: 34px;
    transform: translate(-28px, 10px);
  }
}
