@font-face {
  font-family: "Montserrat";
  src: url("./typefaces/Montserrat-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("./typefaces/Montserrat-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("./typefaces/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

:root {
  --midnight-blue: #00001b;
  --electric-blue: #000f37;
  --active-teal: #00aaa0;
  --live-yellow: #fff7bd;
  --white: #ffffff;
  --black: #000000;
  --light-gray: #f4f4f4;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  color: var(--white);
  background-color: var(--midnight-blue);
  background: radial-gradient(
    ellipse at bottom left,
    var(--live-yellow) 0%,
    var(--active-teal) 10%,
    var(--electric-blue) 45%,
    var(--midnight-blue) 70%
  );
  background-attachment: fixed !important;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

@property --glow-size-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --glow-size-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 45%;
}

@property --x-pos {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.moving-ellipse-bg {
  background: radial-gradient(
    circle at bottom left,
    var(--live-yellow) var(--glow-size-1),
    var(--active-teal) calc(var(--glow-size-1) + 10%),
    var(--electric-blue) var(--glow-size-2),
    var(--midnight-blue) calc(70% - var(--glow-size-1))
  );

  animation: breatheCircle 15s ease-in-out infinite alternate;
}

@keyframes breatheCircle {
  0% {
    --glow-size-1: 0%;
    --glow-size-2: 35%;
  }
  50% {
    --glow-size-1: 7%;
    --glow-size-2: 50%;
  }
  100% {
    --glow-size-1: 0%;
    --glow-size-2: 35%;
  }
}

body::before {
  content: "";
  position: fixed;
  left: -20%;
  top: 80%;
  transform: translateY(-50%);
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--active-teal), var(--live-yellow));
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: url("./img/WEA_Brandmark_White.svg");
  mask-image: url("./img/WEA_Brandmark_White.svg");
  -webkit-mask-size: 100vh;
  mask-size: 100vh;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: blur(1000px) opacity(0.1);
  scroll-behavior: smooth;
  overflow-y: scroll;
  scroll-snap-type: y proximity;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  width: 100%;
}

.hero-text-container {
  width: 50%;
}

.text-align-left {
  text-align: left;
}

.hero,
.services,
.contact,
.about {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background: transparent;
}

.about-us-text {
  font-size: 1.2rem;
}

.hero {
  margin-top: 77px;
}

.card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  width: 320px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.about-us-card {
  width: 70%;
}

input,
textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  color: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: #ccc;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
}

.cta-button {
  background-color: var(--active-teal);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  margin-top: 2rem;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #2b8a94;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.service-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-cards .card img {
  height: 60px;
  margin-bottom: 1rem;
}

.contact-img {
  height: 280px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.card h3 {
  font-size: 1.5rem;
  color: var(--white);
}

.contact-details-container {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-details {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.phone-contact-details {
  margin-bottom: 0.6rem;
}

.contact-card-name {
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
}

.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-info {
  font-size: 1rem;
  word-break: break-all;
  text-align: center;
  margin: 0;
}

.email-info {
  font-size: 0.75rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

button[type="submit"] {
  background-color: var(--midnight-blue);
  color: var(--white);
  padding: 0.8rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #123456;
}

/* #region Nav */

header {
  position: fixed;
  width: 100%;
  box-sizing: border-box;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 27, 0.3);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--white);
}

/* #endregion */

/* #region electrons */

.electron {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  background-color: var(--active-teal);
  border-radius: 50%;
  offset-path: rect(0 100% 100% 0 round 10px);
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 0 3px var(--midnight-blue));
}

.electron-1 {
  animation: moveElectron 8s linear infinite;
}

.electron-2 {
  animation: moveElectron 14s linear infinite;
  animation-delay: -2s;
}

.electron-3 {
  animation: moveElectron 22s linear infinite;
  animation-delay: -5s;
}

.electron-4 {
  animation: moveElectron 8s linear infinite;
  animation-delay: -3s;
}

.electron-5 {
  animation: moveElectron 14s linear infinite;
  animation-delay: -10s;
}

.electron-6 {
  animation: moveElectron 22s linear infinite;
  animation-delay: -1s;
}

.electron-7 {
  animation: moveElectron 8s linear infinite;
  animation-delay: -2s;
}

.electron-8 {
  animation: moveElectron 14s linear infinite;
  animation-delay: -4s;
}

.electron-9 {
  animation: moveElectron 22s linear infinite;
  animation-delay: -3s;
}

@keyframes moveElectron {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}
/* #endregion */

.copy-contact-info {
  position: relative;
  cursor: pointer;
}

.copy-contact-info .tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.copy-contact-info:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-popup {
  background-color: var(--live-yellow); /* Green background */
  color: var(--midnight-blue);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease forwards;
  transition: opacity 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* #region 768vw */

@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }

  .nav-links {
    position: absolute;
    top: 77px;
    left: 0;
    flex-direction: column;
    background-color: var(--midnight-blue);
    width: 100vw;
    text-align: center;
    transition: max-height 0.3s ease-in-out;
    gap: 0;
    max-height: 0;
    overflow: hidden;
  }

  .nav-links.active {
    max-height: 160px;
    height: fit-content;
  }

  .nav-links li {
    padding: 1rem 0;
    border-bottom: rgba(255, 255, 255, 0.296) 0.5px solid;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-us-text {
    font-size: 1rem;
  }

  .about-us-card {
    width: 100%;
  }

  .hero-text-container {
    width: 100%;
  }

  .contact {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    padding-bottom: 100px;
  }

  .service-cards {
    gap: 1rem;
  }

  .service-cards .card {
    padding: 1rem;
    width: 270px;
    font-size: 1rem;
  }

  .service-cards .card img {
    height: 50px;
    margin-bottom: 0.75rem;
  }

  .service-cards .card h3 {
    font-size: 1.25rem;
    margin: 1rem 0;
  }

  .about-us-text {
    font-size: 0.92rem;
  }

  .copy-contact-info:hover .tooltip {
    visibility: hidden;
  }
}

/* #endregion */
