/* Importing Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Bungee+Outline&family=Poppins:ital,wght@0,400;0,600;0,700;1,500&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* Light Theme Colors */
  --color-hue-primary: 208;
  --color-text-primary: hsl(var(--color-hue-primary), 92%, 54%);
  --color-text-secondary: hsl(var(--color-hue-primary), 91%, 55%);
  --color-text-heading: black;
  --color-text-muted: #9ca7b6;
  --color-text-input: #8c9aaf;
  --color-text-hover: hsl(var(--color-hue-primary), 77%, 48%);
  --color-bg-primary: hsla(var(--color-hue-primary), 50%, 50%, 6.5%);
  --color-bg-white: white;
  --color-bg-hover: hsla(var(--color-hue-primary), 50%, 50%, 14%);
  --color-navbar-primary: hsl(var(--color-hue-primary), 17%, 79%);
  --color-input-shadow: hsla(var(--color-hue-primary), 92%, 54%, 0.169);
}

body.dark {
  /* Dark Theme Colors */
  --color-hue-primary: 208;
  --color-text-primary: hsl(var(--color-hue-primary), 92%, 54%);
  --color-text-secondary: hsl(var(--color-hue-primary), 91%, 55%);
  --color-text-heading: white;
  --color-text-muted: hsl(var(--color-hue-primary), 12%, 46%);
  --color-text-input: hsl(var(--color-hue-primary), 10%, 55%);
  --color-text-hover: hsl(var(--color-hue-primary), 77%, 48%);
  --color-bg-primary: hsla(var(--color-hue-primary), 22%, 50%, 11%);
  --color-bg-white: hsl(var(--color-hue-primary), 30%, 16.5%);
  --color-bg-hover: hsla(var(--color-hue-primary), 22%, 50%, 18.5%);
  --color-navbar-primary: hsl(var(--color-hue-primary), 10%, 47%);
  --color-input-shadow: hsla(var(--color-hue-primary), 92%, 58%, 0.2);
}

.dark .logo img.logo-forDark {
  opacity: 1;
  transition: all 0.7s ease;
}

.dark .logo img.logo-forLight {
  opacity: 0;
  transition: all 0.7s ease;
}

.logo img.logo-forDark {
  opacity: 0;
  transition: all 0.7s ease;
}

.logo img.logo-forLight {
  opacity: 1;
  transition: all 0.7s ease;
}

.dark #dashed-wave {
  opacity: 0.3;
}

.background {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: hsl(var(--color-hue-primary), 30%, 16.5%, 80%);
  z-index: 2;
  opacity: 0;
  transition: all 0.7s ease;
}

.dark .background {
  opacity: 1;
}

a {
  text-decoration: none;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 4;
}

header .container {
  max-width: 82rem;
  margin: 0 auto; /* Centerize elements */
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: flex-end;
}

header ul {
  display: flex;
  align-items: center;
  list-style: none;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 3rem;
}

.logo .images {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.logo img {
  height: 2.25rem;
  grid-column: 1/2;
  grid-row: 1/2;
  margin-right: 0.8rem;
}

.logo img.logo-forDark {
  opacity: 0;
}

.logo h2 {
  color: var(--color-text-heading);
  font-size: 1.55rem;
  margin-top: 2px;
  transition: all 0.7s ease;
}

.logo h2 span {
  color: var(--color-text-primary);
  transition: all 0.7s ease;
}

.nav-link {
  margin-left: 5.5rem;
  padding: 0px 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navbar-primary);
  transition: all 0.7s ease;
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link.theme-toggle {
  cursor: pointer;
}

.theme-toggle .fa-moon {
  display: none;
}

.theme-toggle .fa-sun {
  display: inline;
}

.dark .theme-toggle .fa-moon {
  display: inline;
}

.dark .theme-toggle .fa-sun {
  display: none;
}

.contact-form-section {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg-white);
  transition: all 0.7s ease;
}

.contact-form-container {
  height: clamp(700px, 100dvh, 100dvh);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.contact-form-container > div {
  grid-column: 1/2;
  grid-row: 1/2;
}

.left {
  width: 100%;
  max-width: 80rem;
  margin: 0px auto;
  padding: 4rem 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  position: relative;
  z-index: 3;
}

.contact-heading h1 {
  font-weight: 600;
  color: var(--color-text-heading);
  font-size: 3.5rem;
  line-height: 0.9;
  white-space: nowrap;
  margin-bottom: 1.2rem;
  transition: all 0.7s ease;
}

.contact-heading h1 span {
  color: var(--color-text-primary);
  transition: all 0.7s ease;
}

.text {
  color: var(--color-text-muted);
  line-height: 1.1;
  font-size: 1rem;
  transition: all 0.7s ease;
}

.text a {
  color: var(--color-text-primary);
  transition: all 0.7s ease;
}

.text a:hover {
  color: var(--color-text-hover);
}

.form-wrapper {
  max-width: 32rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.55rem;
  column-gap: 2rem;
  row-gap: 1rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper.full-width {
  grid-column: span 2;
}

.contact-input {
  width: 100%;
  padding: 1.35rem 1.35rem calc(0.75rem - 2px) 1.35rem;
  background-color: var(--color-bg-primary);
  border: none;
  outline: none;
  border-radius: 1.25rem;
  color: var(--color-text-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  box-shadow: 0 0 0 0px var(--color-input-shadow);
  transition: all 0.3s ease;
}

.contact-input:hover {
  background-color: var(--color-bg-hover);
}

.input-wrapper label {
  position: absolute;
  top: 50%;
  left: calc(1.35rem + 2px);
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-wrapper .input-icon {
  position: absolute;
  top: 50%;
  right: calc(1.35rem + 2px);
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-text-input);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

textarea.contact-input {
  resize: none;
  width: 100%;
  min-height: 9.375rem;
}

textarea.contact-input ~ label {
  top: 1.2rem;
  transform: none;
}

textarea.contact-input ~ .input-icon {
  top: 1.3rem;
  transform: none;
}

.input-wrapper.focus .contact-input {
  background-color: var(--color-bg-primary);
  border: 2px solid var(--color-text-secondary);
  box-shadow: 0 0 0 5px hsla(var(--color-hue-primary), 91%, 55%, 0.11);
  transition: all 0.3s ease;
}

.input-wrapper.focus label {
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
}

.input-wrapper.focus .input-icon {
  color: var(--color-text-secondary);
  transition: all 0.7s ease;
}

.input-wrapper.shrink-placeholder label {
  font-size: 0.66rem;
  top: 0.75rem;
  transform: translateY(0);
}

.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  grid-column: span 2;
}

.btn {
  display: inline-block;
  padding: 1.1rem 2rem;
  background-color: var(--color-text-primary);
  color: white;
  border-radius: 2.5rem;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.7s ease;
}

.btn:hover {
  background-color: var(--color-text-hover);
}

.btn.upload {
  position: relative;
  background-color: var(--color-bg-primary);
  transition: all 0.7s ease;
}

.btn.upload span {
  color: var(--color-text-muted);
  transition: all 0.7s ease;
}

.btn.upload:hover {
  background-color: var(--color-bg-hover);
}

.btn.upload input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  pointer-events: none;
}

.image-wrapper {
  position: relative;
  grid-column: 2;
}

.side-image {
  position: absolute;
  height: 130%;
  left: 60%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.7s ease;
}

.dark .side-image {
  transform: translate(-50%, -50%) scale(1.7);
}

.wave-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 100%;
  background-color: var(--color-bg-white);
  filter: blur(0px);
  transition: all 0.7s ease;
}

.wave-wrap svg {
  position: absolute;
  height: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) scaleX(1);
  left: calc(100% - 2px);
  transform-origin: left;
  transition: all 0.7s ease;
}

#wave {
  fill: var(--color-bg-white);
  height: 100%;
  transition: all 0.7s ease;
}

.dark .wave-wrap svg {
  transform: translateY(-50%) scaleX(0);
  transition: all 0.7s ease;
}

.dark .wave-wrap {
  transform: scale(1.8);
  filter: blur(55px);
}

.dashed-wave {
  position: absolute;
  z-index: 3;
  height: 130%;
  bottom: 60%;
  left: -1.75rem;
  transform: translateY(50%);
}

#dashed-wave {
  fill: none;
  stroke: var(--color-navbar-primary);
  stroke-width: 1px;
  stroke-dasharray: 6.5;
  opacity: 0.8;
  transition: all 0.7s ease;
}

@media (max-width: 1000px) {
  .logo {
    margin-right: 1rem;
  }

  .logo img {
    height: 30px;
    margin-right: 0.7rem;
  }

  .logo h2 {
    font-size: 1.3rem;
  }

  .nav-link {
    margin-left: 3.5rem;
    padding: 0 0.8rem;
    font-size: 0.9rem;
  }

  .nav-link.theme-toggle {
    font-size: 1rem;
  }

  .contact-heading h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    white-space: normal;
  }

  .text {
    font-size: 0.9rem;
  }

  .contact-form {
    display: grid;
    margin-top: 1.9rem;
    column-gap: 0.8rem;
    row-gap: 0.65rem;
  }

  .contact-input {
    border-radius: 1rem;
    font-size: 0.87rem;
    padding: 1.5rem 1.2rem calc(0.75rem - 2px) 1.2rem;
  }

  .input-wrapper label {
    font-size: 0.91rem;
    left: calc(1.2rem + 2px);
  }

  .input-wrapper .input-icon {
    font-size: 1.1rem;
    /* left: calc(1.2rem + 2px); */
  }

  textarea.contact-input label {
    top: 1.2rem;
  }

  textarea.contact-input .input-icon {
    top: 1.33rem;
  }

  .input-wrapper.focus .contact-input {
    box-shadow: 0 0 0 3.5px var(--color-input-shadow);
  }

  .input-wrapper.input-wrapper.shrink-placeholder label {
    font-size: 0.61rem;
  }

  .contact-buttons {
    column-gap: 0.8rem;
    margin-top: 0.45rem;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 0.87rem;
  }

  .dashed-wave {
    bottom: 55%;
    left: -10px;
  }

  #dashed-wave {
    stroke-width: 0.7px;
    stroke-dasharray: 6;
  }

  .wave-wrap {
    transform: translateX(-10%);
  }

  .wave-wrap svg {
    height: calc(110% + 10px);
    transform: translate(-5%, -50%);
  }
}

@media (max-width: 650px) {
  /* @media (max-width: 720px) { */
  header .container {
    height: 50px;
  }

  .left {
    padding: 50px 1.5rem 0;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .form-wrapper {
    width: 100%;
    padding: 1rem 0;
  }

  header ul {
    justify-content: space-between;
    width: 100%;
  }

  .logo {
    margin-right: 0;
  }

  .nav-link {
    margin-left: 0;
  }

  .right {
    display: none;
  }
}

@media (max-width: 440px) {
  .input-wrapper {
    grid-column: span 2;
  }

  .contact-buttons {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .contact-heading h1 {
    font-size: 1.9rem;
    line-height: 1;
  }

  .logo img {
    height: 25px;
    margin-right: 0.7rem;
  }

  .logo h2 {
    font-size: 1.15rem;
  }
}
