html,
body {
  margin: 0;
  padding: 0;
  scroll-padding-top: 5rem;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

p {
  max-width: 60ch;
  /* 70 characters wide */
  font-size: 1.2em;
  /* Adjust the font size as needed */
  line-height: 1.5;
  /* Optional: Improve readability */
  margin: 0 auto;
  /* Center the paragraph if desired */
  padding: 0 10px;
  /* Optional: Add padding for better spacing */
  word-wrap: break-word;
  /* Ensures long words will wrap onto the next line */
}

/* Preloader styling */
:where(#preloader) {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  /* Ensure it's on top of other elements */
  opacity: 1;
  transition: opacity 0.5s ease;
  /* Add transition for the fade-out */
}

/* Spinner styling */
#preloader .spinner img {
  width: 150px;
  /* Adjust the size as needed */
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

header {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: white;
}

.logo {
  margin: 30px 0 35px 0;
  /* width: 12rem; */
  height: 200%;
}

.nav {
  display: flex;
  justify-content: space-around;
  width: 30%;
  transition: all 400ms;
}

.navlink {
  list-style: none;
  margin: 0 5px;
}

.navlink a {
  color: #000000;
  text-decoration: none;
  font-size: 1.2em;
}

.navlink a:hover {
  color: #239eef;
  transition: color 0.3s ease;
}

.burger {
  font-size: 1.2em;
  display: none;
}

.footer {
  background-color: white;
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-info a {
  text-decoration: none;
  color: black;
  /* Default color */
  transition: color 0.3s ease;
  /* Smooth color transition */
}

.contact-info a:hover {
  color: #239eef;
  /* Color on hover */
}

.social-media a {
  color: #000;
  font-size: 1.5em;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #239eef;
}

#Home {
  width: 100vw;
  /* Full width of the viewport */
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding-top: 5em;
}

#Home video {
  width: 75vw;
  /* 90% of the viewport width */
  height: auto;
  /* Maintain aspect ratio */

  /* Ensure video does not exceed 90% of viewport height */
}

#Home iframe {
  width: 75vw; /* Set width to 75% of the viewport width */
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
  height: auto; /* Let the height adjust automatically based on the aspect ratio */
  border: none; /* Optional: remove border */
}

#About {
  display: flex;
  flex-direction: column;
  /* Stack items vertically */
  align-items: center;
  /* Center items horizontally */
  text-align: center;
  /* Center text inside the div */
  padding: 20px;
  /* Optional: Add padding if needed */
}

#About .logo {
  width: 100%;
  /* Ensure the logo width is responsive */
  max-width: 400px;
  /* Optional: Set a max-width to prevent it from becoming too large */
  height: auto;
  /* Maintain aspect ratio */
  margin-bottom: 20px;
  /* Space between logo and text */
}

#About p {
  max-width: 800px;
  /* Control the width of the text */
  font-size: 1.2em;
  /* Adjust font size if needed */
  line-height: 1.5;
  /* Improve readability */
  margin: 0 auto;
  /* Center the paragraph horizontally */
  padding: 0 10px;
  /* Optional: Add padding for better spacing */
  padding-bottom: 40px;
  word-wrap: break-word;
  /* Ensure long words wrap onto the next line */
}

.services-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
  /* border: 2px solid #000; */
  padding: 20px;
  text-align: center;
  max-width: 600px;
  margin: auto;
}

.services-nav {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  font-weight: bolder;
  max-width: 600px;
}

/* Default styling for service items */
.services-nav li {
  cursor: pointer;
  padding: 10px 20px;
  /* Add padding for a button-like appearance */
  color: #000000;
  /* Default color for service items */
  background-color: #f0f0f0;
  /* Light background color */
  border-radius: 5px;
  /* Rounded corners */
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  /* Align items side by side */
}

/* Styling for the highlighted service item */
.services-nav li.highlighted {
  color: #239eef;
  /* Highlight color */
  font-weight: bold;
  /* Optional: make highlighted item bold */
}

.services-nav li:hover {
  background-color: #239eef;
  /* Background color on hover */
  color: white;
  /* Text color on hover */
  border-radius: 5px;
  /* Keep rounded corners on hover */
}

/* Media query for smaller screens */
@media screen and (max-width: 600px) {
  html,
  body {
    overflow-x: hidden; /* Reapply in the media query */
  }

  .services-nav {
    flex-direction: column;
    align-items: center;
    /* Center items horizontally */
  }

  .services-nav li {
    display: block;
    /* Stack items vertically */
    width: 100%;
    /* Full width for each item */
    text-align: center;
    /* Center text */
    margin-bottom: 10px;
    /* Space between items */
  }
}

.service-content {
  margin-top: 20px;
}

.service-content h1 {
  font-size: 24px;
}

.service-wrapper {
  display: flex;
  align-items: flex-start;
  /* Align items to the top */
}

.service-image {
  max-width: 50%;
  /* Adjust size as needed */
  margin-right: 20px;
  /* Space between image and text */
}

.service-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically if needed */
}

@media screen and (max-width: 768px) {
  html,
  body {
    overflow-x: hidden; /* Reapply in the media query */
  }

  .service-wrapper {
    flex-direction: column;
    align-items: center;
    /* Center items horizontally */
  }

  .service-image {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    /* Add space between the image and text */
  }

  .service-text {
    text-align: center;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 1em auto;
  /* Center the grid and add vertical margin */
  max-width: 1200px;
  /* Set maximum width for the grid */
  /* Optional: Add padding if needed */
  padding: 0 10px;
  /* Add horizontal padding for better spacing */
}

/* .portfolio-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
} */

.portfolio-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  /* Add transition for smooth effect */
}

.portfolio-item:hover {
  box-shadow: 0px 0px 30px 20px rgba(234, 0, 255, 0.7);
}

.portfolio-item img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensures the image behaves as a block element */
  margin: 0 auto;
  /* Centers the image horizontally */
}

.portfolio-item iframe {
  width: 100%;
  height: 200px;
  display: block;
  /* Ensures the image behaves as a block element */
  margin: 0 auto;
  /* Centers the image horizontally */
}

.portfolio-item h2 {
  margin-top: 10px;
  font-size: 1.5em;
}

.portfolio-item p {
  margin-top: 5px;
  font-size: 1em;
}

@media screen and (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 678px) {
  .burger {
    display: block;
  }

  .nav {
    margin: 0;
    background: white;
    position: absolute;
    right: 0; /* Position the nav to the right side */
    top: 70px;
    width: 25%;
    min-height: 85vh;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px;
    transition: opacity 400ms ease-in-out, visibility 400ms ease-in-out;
    opacity: 0; /* Start as invisible */
    visibility: hidden; /* Set visibility to hidden */
  }

  .nav.nav-active {
    opacity: 1; /* Make it visible */
    visibility: visible; /* Change visibility to visible */
  }

  .navlink {
    text-align: center;
  }
}

.section-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center horizontally */
  justify-content: flex-start;
  /* Align items at the top */
  /* min-height: 100vh; Ensure it takes up at least the full viewport height */
  padding: 0;
  /* No extra padding around the section */
  margin: 0;
  /* No margin around the section */
}

.section-wrapper > div {
  /* width: 80%; */
  /* Adjust the width of the content */
  /* max-width: 1200px; */
  /* Optional: Max width to prevent stretching too wide */
  padding: 20px;
  /* Padding inside each section */
  /* border-bottom: 1px solid #ddd; Border between sections */
  text-align: center;
  /* Center text inside each section */
  background-color: #f9f9f9;
  /* Optional: Background color for contrast */
  border-radius: 0;
  /* No rounded corners to ensure borders touch */
}

.section-wrapper > div:nth-child(odd) {
  background-color: white;
  width: 80%;
  max-width: 1200px;
}

.section-wrapper > div:nth-child(even) {
  background-color: #239eef;
  color: white;
  width: 100%;
  /* Ensure full width */
  max-width: 100vw;
  /* Prevent exceeding viewport width */
  margin: 1em 0;
  /* Vertical margins only */
  box-sizing: border-box;
  /* Include padding and border in width */
  padding: 0 1em;
  /* Optional: Add horizontal padding inside the element */
  padding-bottom: 2em;
  /* Add more padding at the bottom */
}

/* Remove the border from the last section */
.section-wrapper > div:last-child {
  border-bottom: none;
}

h1,
p {
  text-align: center;
}

label {
  display: block;
  margin: 1em 0 0.2em;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.3em;
  font-size: 20px;
  background-color: #fbfbfb;
  border: solid 1px #ccc;
  resize: vertical;
}

textarea {
  min-height: 180px;
}

select {
  color: #239eef;
}

input[type="checkbox"] {
  display: inline;
  width: auto;
  color: #239eef;
}

input[type="submit"] {
  background: black;
  margin: 1em 0 0;
  color: white;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease-out;
}

/* input:focus,
input:hover,
select:focus,
select:hover,
textarea:focus,
textarea:hover {
  background: #239eef;
} */

/* hover and focus states */
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: #239eef;
  outline: none;
}

.hubspot-contact p {
  margin-bottom: 20px;
  /* Adjust the value as needed */
}
