* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

.hover-scale:hover {
  transform: scale(1.05);
}
.hover-scale {
  transition: transform 0.8s ease;
}

.scale-in {
  transform: scale(1.05);
}

/* Body */
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  margin: 0;
  padding: 0;
  background-color: #e0e0e0;
  color: #333;
  max-width: 100vw;
  overflow-x: hidden;
}

/* General elements (h2, p, etc.) */
h2 {
  font-size: 2.88rem;
  font-weight: 500;
  margin-bottom: 2rem;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 0.3rem solid #f69320;
}

h3 {
  font-size: 2.4rem;
  font-weight: 600;
  color: #222;
  margin: 4rem 0 2rem 0;
}

h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2rem 0 2rem 0;
}

h5 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

span {
  display: block;
  width: 40%;
}

p {
  font-size: 2rem;
  color: #555;
  line-height: 1.4;
  letter-spacing: 0.4px;
}
ul {
  margin: 5rem 0 4.5rem 0;
}

li {
  font-size: 1.8rem;
  margin: 1.5rem 0 0px 5rem;
}

/* Header */
header {
  position: relative;
  padding: 2rem 0;
  border-bottom: 0.2rem solid #e0e0e0;
  text-align: center;
  padding: 0.5rem;
}

.logo {
  width: 20%;
  display: block;
  margin: 0 auto;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.main-nav ul li {
  list-style: none;
  margin-top: 5rem;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 400;
  padding: 0.5rem 1.5rem;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #f69320;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  background-color: #2177e1b7;
  /* opacity: 0.8; */
  background-image: repeating-radial-gradient(
      circle at 0 0,
      transparent 0,
      #02197e 14px
    ),
    repeating-linear-gradient(#02197ee3, #02197e);
  min-height: 85vh;
  animation: hueCycle 10s ease-in-out infinite alternate;
}

@keyframes hueCycle {
  0% {
    filter: hue-rotate(350deg);
  }

  100% {
    filter: hue-rotate(460deg);
  }
}

.hero h1 {
  color: #fff;
  font-size: 7rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 6px 6px 12px rgba(0, 0, 0, 0.3),
    9px 9px 18px rgba(0, 0, 0, 0.2);
}

.contrast-helper {
  display: flex;
  flex-direction: column;
  justify-self: flex-start;
  gap: 0rem;
  padding: 3rem;
  /* background-color: #2222221c; */
  border-radius: 1rem;
}

.content-slider {
  /* Keeps it in the same space */
  /* min-height: 150px; */
  display: flex;
  justify-content: center;
  justify-items: center;
  align-items: center;
  width: 80rem;
  min-height: 18rem;
  color: #e0e0e0;
  margin: 0 auto;
  padding: 1rem 3rem;
  border-radius: 1rem;
}

.content-display {
  display: flex;
  justify-content: center;
  opacity: 0; /* Start hidden */
  transition: opacity 1s ease; /* Fade transition */
  font-size: 1.8rem; /* For readability */
  letter-spacing: 1.1px;
  line-height: 1.2;
  text-shadow: 0.3rem 0.3rem 0.6rem rgba(0, 0, 0, 0.4),
    0.6rem 0.6rem 1.2rem rgba(0, 0, 0, 0.3),
    0.9rem 0.9rem 1.8rem rgba(0, 0, 0, 0.2);
}

.content-display.active {
  opacity: 1; /* Show the active content */
}

/* Main */
main {
  width: 100%;
  margin: 0 auto;
  background-color: #e0e0e0;
  overflow-x: hidden;
  z-index: 1;
}

/* Section */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60rem;
  padding: 8rem 0;
}

.service-section {
  background-color: #f69320;
}

.section-container {
  width: 80%;
}

.section-item-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-width: 100%;
}

.price-tier {
  text-align: center;
  flex: 1;
  max-width: 40rem;
  min-width: 25rem;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 6px 6px 12px rgba(0, 0, 0, 0.3),
    9px 9px 18px rgba(0, 0, 0, 0.2);
}

.price-tier:hover {
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 12px 12px 12px rgba(0, 0, 0, 0.3),
    18px 18px 18px rgba(0, 0, 0, 0.2);
}

.price-list {
  list-style: none;
}

.price {
  position: relative; /* Establishes a positioning context */
  padding: 0.1rem;
  font-size: 1.8rem;
  font-weight: 1000;
  color: #000; /* Text color */
  overflow: hidden; /* Ensures pseudo-element doesn't overflow */
  z-index: 1;
}

.price::after {
  content: ""; /* Creates an empty pseudo-element */
  position: absolute; /* Allows for positioning */
  top: 0; /* Aligns to the top */
  left: 0; /* Aligns to the left */
  right: 0; /* Stretches to the right */
  bottom: 0; /* Stretches to the bottom */
  background-color: #8bc540d3; /* Slightly transparent color for effect */
  transform: skew(-30deg); /* Skewing effect */
  z-index: -3; /* Places it behind the text */
}

/* Service items */

.service-item {
  width: 20%;
  transition: box-shadow 0.3s ease;
}

.service-item figcaption {
  color: #222;
}

.service-item-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.service-item h3 {
  color: #222;
}

.service-img {
  height: 200px;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 6px 6px 12px rgba(0, 0, 0, 0.3),
    9px 9px 18px rgba(0, 0, 0, 0.2);
  border-radius: 1.8rem;
}

/* .service-img-container {
  background-color: #2a3b8fd3;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 6px 6px 12px rgba(0, 0, 0, 0.3),
    9px 9px 18px rgba(0, 0, 0, 0.2);
} */

/* Portfolio */
.portfolio {
  background-color: #8cc540;
}

.sub-heading-container {
  font-size: 0;
}

.portfolio h2 {
  border-color: #90298d;
}

.portfolio-thumbs {
  display: flex;
  justify-content: space-evenly;
}

.site-thumbnails {
  height: 30rem;
  margin-top: 4rem;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Sit on top */
  left: 0%;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(255, 255, 255, 0.849); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
  padding: 8rem;
  margin: 0 auto;
}

.modal-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 60%;
  max-height: 60%;
}

.close {
  position: absolute;
  top: 2rem;
  right: 3.5rem;
  color: #222;
  font-size: 4rem;
  font-weight: 700;
  cursor: pointer;
}

#modal-caption {
  font-size: 4rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-top: 1.5rem;
}

#modal-link {
  display: block;
  margin: 2rem auto;
  text-align: center;
}

figcaption {
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 2rem;
  text-align: center;
}

/* Pricing */
.pricing {
  background-color: #e0e0e0;
}

.pricing-heading {
  margin-bottom: 5rem;
}

.pricing-heading,
.optional-extras h2 {
  color: #222;
  border-color: #8cc540;
}

.pricing p,
.pricing h3 {
  color: #e0e0e0;
}

.price-tier {
  border-left: 0.5rem solid #8cc540;
  background-color: #222222;
  padding: 2.5rem;
  min-height: 25rem;
}

.basic {
  border-color: #fedd10;
}

.standard {
  border-color: #f69320;
}

.premium {
  border-color: #90298d;
}

#included {
  color: #eb2227;
  margin-top: 5rem;
}

.optional-extras {
  margin-top: 8rem;
}

.optional-extras p,
.optional-extras h3 {
  color: #222;
}

/* Button */
a.button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #eb2227;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

a.button:hover {
  background-color: #f69320;
}

.contact {
  padding: 5rem;
  padding-bottom: 10rem;
  background-color: #90298d;
}

.contact h2 {
  color: #fff;
  border-color: #fedd10;
}

.contact-form {
  background-color: #fff;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 6px 6px 12px rgba(0, 0, 0, 0.3);
  max-width: 50%; /* Make it full width within the container */
  margin: 0 auto;
  /* margin-top: 50px; */
}

.form-group {
  margin-bottom: 2rem;
}

label {
  font-size: 1.8rem;
  color: #333;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  transition: border 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border: 1px solid #8cc540;
  outline: none;
}

.submit-button {
  background-color: #f69320;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 1.5rem;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #eb2227;
}

.error-message {
  color: red;
  font-size: 0.9em;
  display: none; /* Hidden by default */
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: #222;
  color: #ddd;
  min-height: 30rem;
  padding: 3rem 0;

  /* margin-top: 20px; */
}

footer a {
  color: #fedd10;
  text-decoration: none;
}

footer a:hover {
  color: #f69320;
}

.footer-logo {
  width: 10%;
}

figure {
  margin: 0;
  padding: 0;
}

#form-message {
  display: none;
  background-color: #e0e0e0;
  width: 50%;
  margin: 0 auto;
  padding: 2.5rem;
  margin-top: 5rem;
  border-radius: 1rem;
}
