@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: Poppins, serif;
  background-color: rgb(255, 255, 253);
  overflow-x: hidden;
  background-image: url(/img/triangle_pattern.webp);
  background-repeat: repeat;
  margin: 0px;
  padding: 0px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/*_________________________________________________________*/

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 3% 0;
}

.contact-page {
  position: relative;
  width: 100%;
  height: auto;
  text-align: center;
  flex: 1;
}

.page-header {
  text-align: center;
  margin: 30px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #333;
}

.page-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.separator {
  width: 150px;
  height: 3px;
  background-color: #326092;
  margin: 20px auto;
  border-radius: 2px;
}

/*----------------------------------------------------*/

.content-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 1500px;
  margin: 0 auto;
  min-height: 50vh;
}

.hidden {
  display: none;
}

.contact-form {
  width: 100%;
  max-width: 800px;
  background: rgba(245, 245, 245, 0.95);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
}

.wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.field {
  position: relative;
  margin-bottom: 2.2rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  color: #333;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
}

.field select, .field textarea {
  resize: none;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-image: linear-gradient(90deg, #ff5733, #33d9ff, #b833ff);
  border-image-slice: 1;
  box-shadow: 0 0 8px rgba(255, 87, 51, 0.3);
  background: rgba(255, 255, 255, 1);
}

.field label {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 16px;
  color: #666;
  pointer-events: none;
  transition: all 0.3s ease;
}

.field input:focus + label,
.field select:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: -20px;
  font-size: 13px;
  color: #ff5733;
}

.field.message textarea {
  height: 200px;
}

.field textarea::placeholder {
  color: transparent;
}

.field label {
  top: -20px;
  font-size: 13px;
  color: #ff5733;
}

.field textarea:focus::placeholder {
  color: #666;
}

.field textarea:not(:placeholder-shown) + label {
  top: -20px;
}

.button-area {
  display: flex;
  justify-content: flex-end;
}

.button-area span {
  display: block;
  color: red;
  margin-top: 10px;
  margin-right: 30px;
}

.error-bubble {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background-color: #ff6f61;
  color: white;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  white-space: nowrap;
}

.error {
  position: relative;
}

.error-bubble:before {
  content: "";
  position: absolute;
  top: -5px;
  left: 10px;
  width: 10px;
  height: 10px;
  background-color: #ff6f61;
  transform: rotate(45deg);
  z-index: -1;
}

.button-area button {
  background: linear-gradient(135deg, #ff5733, #b833ff);
  color: #fff;
  border: none;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease, transform 0.2s ease;
}

.button-area button:hover {
  background: linear-gradient(135deg, #b833ff, #33d9ff);
  transform: translateY(-2px);
}

/*----------------------------------------------------*/

.contact-info {
  width: 100%;
  max-width: 450px;
  height: 50%;
  background: #f7f9fc;
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-chat {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-chat--youtube { background: #ff0000; }
.social-chat--twitch { background: #9146ff; }
.social-chat--discord { background: #5865f2; }
.social-chat--instagram { background: #e1306c; }

.social-chat:hover {
  transform: scale(1.1);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

/*----------------------------------------------------*/

.contact-info h3 {
  color: #313131;
  margin-top: 20px;
  font-size: 1.2rem;
  text-align: center;
  margin: 3px;
}

.dialogue {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.info-img-left {
  width: 120px;
  height: auto;
}

.info-img-right {
  width: 120px;
  height: auto;
}

.info-img-right {
  order: 2;
  margin-left: 15px;
}

.info-img-left {
  order: -1;
  margin-right: 15px;
  margin-top: 17px;
}

/*----------------------------------------------------*/

.bubble {
  position: relative;
  background: #e0e7ff;
  border-radius: 15px;
  padding: 15px;
  max-width: 250px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bubble p {
  font-size: 0.9rem;
  color: #333;
  margin: 0 0 10px;
  text-align: center;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background-color: #5865F2;
  color: #ffffff;
  border: 2px solid #5865F2;
  border-radius: 9999px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0px 5px 15px rgba(88, 101, 242, 0.3);
  overflow: hidden;
  position: relative;
}

.discord-button .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.discord-button .texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.discord-button .text-1 {
  font-size: 0.75rem;
  line-height: 1rem;
  opacity: 0.8;
}

.discord-button .text-2 {
  font-weight: 600;
  font-size: 1rem;
}

.discord-button:hover {
  background-color: #4752c4;
  border-color: #4752c4;
  color: #ffffff;
  box-shadow: 0px 8px 20px rgba(88, 101, 242, 0.5);
  transform: scale(1.05);
}

.discord-button:hover .icon {
  transform: scale(1.2);
}

.discord-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
}

.discord-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.animated-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #ff5733;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0px 5px 15px rgba(255, 87, 51, 0.3);
}

.animated-button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  font-size: 1.5rem;
  animation: icon-spin 3s infinite linear;
}

.animated-button .button-text {
  position: relative;
  z-index: 1;
  animation: text-pulse 1.5s infinite alternate;
  margin-left: 10px
}

@keyframes text-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@keyframes icon-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animated-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
  border-radius: 50%;
  z-index: 0;
}

.animated-button:hover {
  background-color: #ff4500;
  color: #fff;
  box-shadow: 0px 8px 20px rgba(255, 87, 51, 0.5);
}

.animated-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.8;
}

.info-button {
  padding: 8px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #0d6efd;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.info-button:hover {
  background-color: #025ce3;
}

.bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.info-img-left + .bubble::after {
  border-width: 10px 15px 10px 0;
  border-color: transparent #e0e7ff transparent transparent;
  left: -14px;
  top: 70px;
}

.info-img-right + .bubble::after {
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent #e0e7ff;
  right: -14px;
  top: 50px;
}


/*-------------------------------------------------*/

.social-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 3%;
}

.social-chat {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-chat--youtube { background: #ff0000; }
.social-chat--twitch { background: #9146ff; }
.social-chat--discord { background: #5865f2; }
.social-chat--instagram { background: #e1306c; }

.social-chat:hover {
  transform: scale(1.1);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/

/*█▀█ █▀▀ █▀ █▀█ █▀█ █▄ █ █▀ █ █ █ █▀▀
  █▀▄ ██▄ ▄█ █▀▀ █▄█ █ ▀█ ▄█ █ ▀▄▀ ██▄*/

@media (max-width: 480px) {
 
    main {
      margin: 15% 0;
    }

    .page-header h1 {
      font-size: 1.8rem;
    }
    
    .page-header p {
      font-size: 0.8rem;
    }

  /*----------------------------------------------------*/

    .content-container {
      flex-direction: column;
      align-items: center; 
      gap: 20px;
      height: auto;
      padding: 15px;
    }
  
    .contact-form {
      padding: 3rem 0.75rem;
    }
  
    .field input,
    .field select,
    .field textarea {
      width: calc(100% - 20px);
      padding: 0.7rem;
      font-size: 0.8rem;
    }
  
    .field.message textarea {
      height: 120px;
    }

    .button-area {
      justify-content: center;
    }

    /*----------------------------------------------------*/
  
    .contact-info {
      max-width: 98%;
      height: 50%;
      padding: 30px;
      margin-top: 0;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .info-img-left {
      width: 100px;
    }
    
    .info-img-right {
      width: 100px;
    }

    .bubble {
      max-width: 140px;
    }
    
    .bubble p {
      font-size: 0.7rem;
    }

    .discord-button {
      padding: 0.5rem 1.1rem;
    }

    .discord-button .icon {
      font-size: 1.2rem;
    }
  
    .discord-button .text-2 {
      font-size: 0.8rem;
    }
    .animated-button {
      padding: 0.5rem 1.2rem;
      font-size: 0.8rem;
      line-height: 1rem;
    }

    .animated-button .icon {
      font-size: 1.2rem;
    }

/*-------------------------------------------------*/

.social-chat {
  width: 35px;
  height: 35px;
  font-size: 1rem;
}
  }
  
  /*_________________________________________________________*/

@media (min-width: 481px) and (max-width: 768px) {

  main {
    margin: 7% 0;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .page-header p {
    font-size: 0.9rem;
  }

  .content-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }

  .contact-form {
    width: 95%;
    padding: 4rem 1rem;
  }

  .field input,
  .field select,
  .field textarea {
    width: calc(100% - 20px);
    padding: 0.9rem;
  }

  .field.message textarea {
    height: 150px;
  }

  .contact-info {
    max-width: 80%;
    height: 60%;
    padding: 20px;
    margin-top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .button-area {
    justify-content: center;
  }
}

  /*_________________________________________________________*/

@media (min-width: 769px) and (max-width: 1024px) {

  .page-header h1 {
    font-size: 2.4rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }

  main {
    margin: 5% 0;
  }

  .content-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }

  .contact-form {
    max-width: 90%;
    padding: 3rem;
  }

  .contact-info {
    max-width: 500px;
    height: 50%;
    padding: 20px;
    margin-top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .field input,
  .field select,
  .field textarea {
    width: 100%;
    padding: 0.9rem;
  }

  .field.message textarea {
    height: 200px;
  }

  .button-area {
    justify-content: flex-end;
  }
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/

/* █▀▄ ▄▀█ █▀█ █▄▀   ▀█▀ █ █ █▀▀ █▀▄▀█ █▀▀
   █▄▀ █▀█ █▀▄ █ █    █  █▀█ ██▄ █ ▀ █ ██▄ */


body.dark-theme {
  background-color: #322d39;
  }

/*-------------------------------------------------*/

body.dark-theme .page-header h1 {
  color: #e7e7e7;
}

body.dark-theme .page-header p {
  color: #f6f6f6;
}

body.dark-theme .separator {
  background-color: #74b7ff;
}

body.dark-theme .contact-info h3 {
color: #e7e7e7;
}
/*-------------------------------------------------*/

body.dark-theme .contact-form {
  background: #423B5C;
}

body.dark-theme .field input,
body.dark-theme .field select,
body.dark-theme .field textarea {
  background: #36304A;
  color: #f1f1f1;
}

body.dark-theme .field input:hover,
body.dark-theme .field select:hover,
body.dark-theme .field textarea:hover,
body.dark-theme .field input:focus,
body.dark-theme .field select:focus,
body.dark-theme .field textarea:focus {
  box-shadow: 0 0 7px rgba(111, 178, 255, 0.37);
  background: #2c283d;
}

body.dark-theme .field label {
  color: #73bbff;
}

body.dark-theme .field.error input,
body.dark-theme .field.error select,
body.dark-theme .field.error textarea {
  border-color: #ff5f5f;
}

body.dark-theme .field.error label {
  color: #ff5f5f;
}

body.dark-theme .button-area button {
  background: linear-gradient(135deg, #5a73ee, #834de7);
  color: #fff;
}

body.dark-theme .button-area button:hover {
  background: linear-gradient(135deg, #e042ab, #3990d2);
}

/*-------------------------------------------------*/

body.dark-theme .contact-info {
  background: #4b4368;
}

body.dark-theme .bubble {
  background: #36304A;
}

body.dark-theme .bubble p {
  color: #fafafa;
}

body.dark-theme .info-img-left + .bubble::after {
  border-color: transparent #36304A transparent transparent;
}

body.dark-theme .info-img-right + .bubble::after {
  border-color: transparent transparent transparent #36304A;
}
