/*
Theme Name: Shabaily
Author: Matthew Shabaily
Version: 6.0
*/

/* ============ Root ============ */

:root {
}

/* ============ Globals ============ */

html {
  overflow-x: hidden;
}

body {
  position: relative;
  overflow: hidden;
  font-family: "Mulish";
}

/* ============ Containers ============ */

.flex-row {
  display: flex;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
}

/* ============ Wrapper ============ */

.wrapper {
  width: 85%;
}

*:has(> .wrapper) {
  align-items: center;
}

/* ============ Scrollbar ============ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ============ Animations ============ */

.circle {
  position: absolute;
  animation: spin 4s linear infinite;
}

.bubbles {
  position: absolute;
  animation: bob 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bob {
  0% {
    transform: translate(0, 0) rotate(var(--rotate));
  }
  25% {
    transform: translate(4px, -2px) rotate(var(--rotate));
  }
  50% {
    transform: translate(0, 0) rotate(var(--rotate));
  }
  75% {
    transform: translate(-4px, -2px) rotate(var(--rotate));
  }
  100% {
    transform: translate(0, 0) rotate(var(--rotate));
  }
}

/* ============ Effects ============ */

.light-effect {
  cursor: pointer;
  transition: filter 02s;
}

.pan-effect {
  cursor: pointer;
  transition: transform 0.2s;
}

.dim-effect {
  cursor: pointer;
  transition: opacity 0.2s;
}

.dim-effect:hover {
  opacity: 0.6;
}

.pan-effect:hover {
  transform: translate(1px);
}

.light-effect:hover {
  filter: brightness(1.2);
}

.body-dim {
  background: black;
  opacity: 0.4;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 6;
}

/* ============ Text ============ */

h1 {
  font-size: 37px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -1.48px;
}

p {
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 32px; /* 177.778% */
}

.text {
  gap: 25px;
}

/* ============ CTAs ============ */

.cta {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  border-radius: 15px;
  background: white;
  color: #023763 !important;
  font-size: 20px !important;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 30px;
  padding-block: 5px;
  padding-inline: 25px;
  align-self: start;
  transition: opacity 0.3s;
}

.cta:hover {
  opacity: 0.6;
}

/* ============ 404 ============ */

.error404 .support-services {
  height: 50vh !important;
}

.error404 .community-services {
  height: 50vh !important;
}

.error-404 {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
}

.error-404 .text {
  width: 85%;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 50px;
  height: 100%;
}

.error-404 .text h1 {
  color: white;
  font-size: 100px;
}

.error-404 .cta {
  align-self: center;
}

/* ============ Home ============ */

.home .logo img {
  width: 243px;
  height: 243px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.home .logo {
  align-self: start;
}

.community-services {
  position: relative;
  background: linear-gradient(90deg, #005395 0%, #023763 100%);
  height: 50vh;
  justify-content: center;
}

.support-services {
  position: relative;
  background: linear-gradient(270deg, #82aa3f 0%, #2f86b1 100%);
  height: 50vh;
  justify-content: center;
}

.home .wrapper {
  justify-content: space-between;
  width: 60%;
}

.home .text {
  width: 50%;
  gap: 45px;
}

.text * {
  color: white;
}

#circle-1 {
  left: -100px;
  top: -100px;
}

#circle-2 {
  right: -100px;
  bottom: -100px;
}

#bubbles-1 {
  --rotate: -90deg;
  left: 25px;
  bottom: 25px;
}

#bubbles-2 {
  --rotate: 0deg;
  right: 25px;
  top: 25px;
}

.home p {
  position: relative;
  margin-left: 20px;
}

.home p::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 100%;
  left: -15px;
  top: 0;
  background: #05c594;
}
