* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #2a3132;
  font-family: "Space Grotesk", sans-serif;
  color: #fff;
  line-height: 1.5;
}

.hidden { display: none!important;}

.main-padding {
  padding: 4rem 2rem;
}

.top-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  font-size: 1.5rem;
  color: #ff5473;
  font-weight: 700;
}

nav.menu {
  padding: 15px 10px 0 0;
  display: none;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 0;
  margin: 0;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  padding-left: 25px;
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #ff5473;
  border-radius: 50%;
  transform: translateY(150%) scale(0);
  opacity: 0;
  transition: all 0.2s ease;
}

.menu a:hover::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.particles-container {
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  transition: left 15s linear, top 15s linear;
}

.hero-container {
  position: relative;
  z-index: 10;
  text-align: center;
  height: 100vh;
}

.hero-block {
  color: white;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  align-content: center;
  height: 90%;
}

.hero-social-icons {
  margin-top: 2rem;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-block p {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3.5rem;
  line-height: 1.5;
}

.color-x {
  color: #ff5473;
  font-size: 2.5rem;
  line-height: 1.1;
}

.hero-btn a,
.project-info a {
  padding: 10px 20px;
  border: 1px solid #ffffff;
  color: #ffffff;
  margin: 0 10px 20px;
  display: inline-block;
  transition: all 0.4s ease;
  font-weight: 600;
}

.hero-btn a:hover,
.hero-btn a:active,
.project-info a:hover,
.project-info a:active {
  transform: scale(1.1);
  color: #ff5473;
  border: 1px solid #ff5473;
}

.fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-1 {
  animation-delay: 0.3s;
}
.fade-2 {
  animation-delay: 1s;
}
.fade-3 {
  animation-delay: 2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  left: 0;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 9px;
}
.menu-toggle span:nth-child(3) {
  top: 18px;
}

.menu-toggle.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  background-color: #ab3148;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  padding: 3rem 2rem;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  align-content: center;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
}

.mobile-menu .social-icons {
  justify-content: center;
  margin-top: 4rem;
}

.top-wrap div.open {
  position: fixed;
  right: 32px;
}

main h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

main h2 span {
  color: #ff5473;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6rem;
}

.text-section {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s ease, transform 1s ease;
  animation: fadeInUp 3s forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 50%;
}

.main-hero-padding {
  padding: 2rem;
}

.project-wrap {
  padding: 3rem 0;
}

.about-text {
  flex: 1 1 45%;
  font-size: 1.2rem;
  line-height: 1.6;
}

.about-img {
  flex: 1 1 45%;
  position: relative;
  min-height: 300px;
  /* border: 10px solid #ff5473;*/
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 1s ease, transform 1s ease;
  border-radius: 0 50px;
  animation: fadeInUp 3s forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 50%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 50%;
  padding: 0 4px;
}

.second-column {
  margin-top: 1rem;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
}

.img1 {
  top: 15%;
  left: -7%;
  z-index: 3;
}

.img2 {
  top: -20%;
  left: 25%;
  z-index: 2;
}

.img3 {
  top: 30%;
  left: 55%;
  z-index: 1;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  margin: 0 auto;
}

.grid-item {
  border: 2px dashed rgb(184 184 184 / 40%);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 3s forwards;
  animation-timeline: view();
  animation-range: entry 50% cover 70%;
}

.grid-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 5px;
}

.grid-item p {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0;
}

.project-image-container {
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(80px);
  animation: fadeInUp 3s forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 50%;
}

.project-image-image {
  transition: transform 0.4s ease;
  transform-origin: right center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-first {
  box-shadow: 0 4px 20px rgb(13 128 84 / 30%);
}

.project-image-image:hover {
  transform: scale(1.05);
}

.project-info {
  width: 100%;
  align-content: center;
}

.project-info a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid;
  border-style: solid rgb(42, 49, 50);
  color: #2a3132;
  margin: 0px 20px 20px 0;
  text-align: center;
}

.project-info p {
  border-left: 4px solid #ff5473;
  padding-left: 1.2rem;
  display: block;
  font-size: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.bg-fff {
  background: #fff;
  color: #2a3132;
}

.top-contact {
  background: rgb(214 53 82);
  padding: 2rem 2rem 2rem 3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  border-radius: 0 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
}

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

footer {
  text-align: center;
}

footer p {
  font-size: 0.9rem;
}

.boldP {
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0;
}

.underP {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.social-icons {
  display: flex;
}

.social-icon {
  height: 47px;
  width: 47px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 100%;
  background-color: transparent;
  margin: 0 0.2rem;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.social-icon:hover {
  border: 2px solid rgba(255, 255, 255);
  background-color: #fff;
}

.social-icon svg {
  fill: #fff;
  transition: all 0.3s ease;
  margin: 6px auto;
}

.social-icon:hover svg {
  fill: rgb(214 53 82);
}

footer #logo {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.contact-form-wrap {
  margin: 0 auto;
  max-width: 640px;
}

.contact-form-wrap p {
  text-align: center;
}

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

.form-group input,
.form-group textarea {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 10px 20px;
}

.form-group label {
  font-size: 1.2rem;
  margin: 20px 0 10px;
  opacity: 0.6;
}

input,
textarea {
  caret-color: #ff5473;
  color: #ffffff;
  font-size: 1.2rem;
  background-color: #2a3132;
}

input::placeholder,
textarea::placeholder {
  color: #566365;
  opacity: 1;
}

input:hover,
textarea:hover {
  border: 1px solid #d1d1d1;
}

input:focus,
textarea:focus {
  border: 1px solid #ff5473;
  box-shadow: 0 0 3px 0 #ff5473;
}

input:-webkit-autofill {
  -webkit-box-shadow: none !important;
  -webkit-text-fill-color: white !important;
  caret-color: #ff5473;
  transition: background-color 5000s ease-in-out 0s;
}

.form-group button {
  cursor: pointer;
  color: #2a3132;
  font-size: 1rem;
  font-weight: 600;
  background-color: #fff;
  margin: 50px auto 0;
  padding: 10px 20px;
  width: 50%;
  transition: all 0.3s ease;
}

.form-group button:hover,
.form-group button:active {
  background-color: #ff5473;
  color: #fff;
}

#contact {
  padding-bottom: 4rem;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

@media (max-width: 360px) {
  .hero-btn a,
  .project-info a {
    margin: 0 4px 20px;
  }
}

@media (min-width: 769px) {
  #logo {
    font-size: 2rem;
  }

  nav.menu {
    display: block;
  }

  .mob-menu {
    display: none;
  }

  .hero-block {
    height: 80%;
    justify-content: center;
  }

  h1 {
    margin-bottom: 5.5rem;
    font-size: 3rem;
  }

  .color-x {
    font-size: 4rem;
  }

  main h2 {
    margin-bottom: 2rem;
    font-size: 3rem;
  }

  .main-padding {
    padding: 4rem 4rem 10rem;
  }

  .main-hero-padding {
    padding: 2rem 4rem;
  }

  .mobile-menu {
    display: none;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .grid-item p {
    font-size: 1rem;
  }

  .project-image-container {
    left: 4rem;
  }

  .project {
    flex-direction: row;
  }

  .project-info p {
    font-size: 1rem;
  }

  .project-info {
    width: 80%;
  }

  h3 {
    font-size: 2rem;
  }

  .project-info a {
    min-width: 120px;
  }

  .top-contact {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .about-text,
  .about-img {
    flex: 1 1 100%;
  }

  .arrow-icon {
    transform: rotate(90deg);
  }

  .menu-toggle {
    display: block;
  }
}

/* Submit form message*/
#form-status {
  margin-top: 0.5rem;
  min-height: 1.2em;
  transition: opacity 180ms ease;
  opacity: 1;
  font-size: 0.95rem;
}

#form-status.success {
  color: #155724;
  background: #d4edda;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
#form-status.error {
  color: #721c24;
  background: #f8d7da;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* optional: subtle fade-in */
#form-status:not(:empty) {
  opacity: 1;
}
