/* Font Import */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat/Montserrat-Light.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat/Montserrat-SemiBold.ttf");
  font-weight: 600;
  font-style: normal;
}

/* General Styles */
html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 18px;
}

.content {
  max-width: 1600px;
  margin: 20px auto;
}

a {
  text-decoration: none;
  color: #d16c44;
}

.container {
  width: 90%;
  margin: 0 auto;
}

h1 {
  font-size: 44px;
  color: #333;
  margin-bottom: 20px;
  margin-top: 0px;
}

h2 {
  font-size: 36px;
  color: #333;
  margin-bottom: 20px;
  margin-top: 0px;
}

h3 {
  font-size: 26px;
  color: #333;
  margin-bottom: 10px;
  margin-top: 5px;
}

p {
  font-size: 18px;
  line-height: 24px;
  margin: 0;
}

/* HEADER START */
header {
  background-color: rgba(229, 239, 237, 0.8); /* Semi-transparent background */
  -webkit-backdrop-filter: blur(6px); /* Safari */
  backdrop-filter: blur(6px); /* Blur effect */
  position: sticky; /* Sticky header */
  top: 0; /* Stick to the top of the viewport */
  width: 100%; /* Full width */
  z-index: 100; /* Keep it above other content */
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  display: block;
  width: 400px; /* Adjust as needed */
}

/* Menu Icon (Burger Icon) */
header .menu-icon {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 25px;
  height: 18px;
  position: absolute; /* Position it absolutely within the header */
  right: 20px; /* Position it on the far right */
  top: 50%;
  transform: translateY(-50%); /* Center vertically */
}

header .menu-icon div {
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* Navigation Menu */
header nav {
  display: flex;
  align-items: center;
}

header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin-left: 30px;
}

header nav ul li:first-child {
  margin-left: 0;
}

header nav ul li a {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #d16c44;
}

/* Contact Button */
header nav .contact-button {
  margin-left: 30px;
  padding: 10px 20px;
  background-color: #d16c44;
  border: none;
  border-radius: 10px;
  color: #eaeaea;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

header nav .contact-button:hover {
  background-color: #b85a37;
}

/* HEADER END */

/* MAIN CONTENT */
main {
  padding: 20px 0 60px;
  padding-top: 0px;
  background-size: cover;
  background-position: center;
  color: #f6f6f6;
  text-align: center;
  display: block;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure the wrapper fills the viewport */
}

.page-content {
  flex: 1; /* Allow content to grow and push the footer down */
}

/* Footer Styles */
footer {
  flex-shrink: 0;
  width: 100%;
  background-color: #e5efed;
  padding: 20px 0;
  color: #333;
  text-align: center;
  border-top: 1px solid #eaeaea;
  font-family: "Montserrat", sans-serif;
  /* Remove position absolute */
  position: relative;
  bottom: 0;
}

footer {
  position: relative; /* Ensure the footer is in normal document flow */
  bottom: auto;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 10px;
}

.footer-logo img {
  width: 180px;
}

.footer-bottom p {
  font-size: 14px;
}

.footer-contact p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.footer-contact a {
  text-decoration: none;
  color: #d16c44;
  font-size: 16px;
}

.footer-bottom {
  font-size: 14px;
  color: #555;
  display: flex;
  justify-content: center;
}

.footer-bottom a {
  color: #d16c44;
  text-decoration: none;
  margin: 0 5px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* FOOTER END */

/* Burger Icon Animation */
header .menu-icon.open .bar1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

header .menu-icon.open .bar2 {
  opacity: 0;
}

header .menu-icon.open .bar3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

header .menu-icon div {
  transition: all 0.3s ease;
}

/* SCROLL ANMINATION */

.carousel {
  margin: 0 auto;
  padding: 20px 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;

  > * {
    flex: 0 0 100%;
  }
}

.group {
  display: flex;
  gap: 20px;
  /* Add padding to the right to create a gap between the last and first card. */
  padding-right: 20px;
  will-change: transform;
  /* We should be nice to the browser - let it know what we're going to animate. */
  animation: scrolling 60s linear infinite;
}

.card {
  width: 100%;
  color: #f6f6f6;
  border-radius: 24px;
  box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.explanation {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.mockup {
  text-align: left;
  position: relative;
  align-self: center;
}

.iphone {
  max-width: 400px;
}

.iMac {
  max-width: 600px;
}

.iphone-filler {
  position: relative;
  background-image: url("images/Iphone/ChenotMobileFill.jpg");
  background-size: cover;
  margin-left: 50px;
  margin-right: 50px;
}

.mockup-text {
  display: flex;
  width: 1200px;
  color: #333;
  align-items: center;
  text-align: justify;
}

.flex-colum {
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
  border-radius: 24px;
  margin: 20px;
  padding: 40px;
}

.card img {
  width: 150px;
  height: 150px;
}

.banner {
  display: flex;
  justify-content: center;
  background-image: url("images/mockUps/mockupHeader2.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.hero {
  font-weight: 600;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 1600px;
  height: 500px;
  padding-left: 20px;
}

.hero-info {
  display: flex;
  padding: 4px;
  box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
  text-align: center;
  justify-content: center;
}

.hero-info-text-width {
  width: 1600px;
}

.hero-info h3 {
  color: #333;
}

.hero-info-text {
  color: #333;
  font-size: 18px;
}

/* Blur overlay for the left part with gradient */
.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%; /* Blur only until the middle of the image */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0) 100%
  );
  backdrop-filter: blur(2px); /* Blur strength */
  z-index: 1;
}

.rotating-text {
  position: relative;
  z-index: 2;
  font-size: 36px;
  color: #f6f6f6;
  text-align: left;
  max-width: 70%;
}

.rotating-text p {
  display: inline-flex;
  margin: 0;
  vertical-align: top;
  font-weight: 600;
  font-size: 40px;
  position: relative;
}

.card-view {
  display: flex;
  justify-content: center;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 6%;
  padding: 20px;
  border-radius: 12px;
  padding-top: 60px;
  padding-bottom: 40px;
}

.image-card {
  max-width: 640px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.1) 5px 5px 20px 0;
  display: flex;
  flex-direction: column;
}

.image-card:hover {
  transform: scale(1.005);
  box-shadow: rgba(0, 0, 0, 0.2) 10px 10px 30px 0;
}

.image-section img {
  width: 100%;
  display: block;
}

.text-section {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  color: #333;
}

.text-section h4 {
  margin: 0;
}

.text-section span {
  font-size: 24px;
  color: #333;
}

.word {
  font-size: 60px;
  position: absolute;
  display: flex;
  opacity: 0;
  transform: translateY(-80px);
}

.letter {
  transform-origin: center center 25px;
}

.letter.out {
  transform: rotateX(90deg);
  transition: 0.32s cubic-bezier(0.6, 0, 0.7, 0.2);
}

.letter.in {
  transition: 0.38s ease;
}

.letter.behind {
  transform: rotateX(-90deg);
}

.alizarin {
  color: #e74c3c;
}

.wisteria {
  color: #8e44ad;
}

.peter-river {
  color: #3498db;
}

.emerald {
  color: #2ecc71;
}

.sun-flower {
  color: #f1c40f;
}

.diagram {
  max-width: 1200px;
}

.diagram img {
  display: flex;
  align-self: center;
  width: 100%;
  padding-bottom: 20px;
  padding-top: 20px;
}

.guestJurney {
  max-width: 1000px;
}

.guestJurney img {
  width: 100%;
}

.compatibility {
  padding-top: 20px;
  max-width: 1200px;
}

.compatibility img {
  width: 100%;
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* DIAGRAM CAROUSELL START */

.line-container {
  max-width: 1200px;
  height: 600px;
  overflow: hidden;
  position: relative;
  justify-content: center;
  align-items: center;
  display: none !important;
}

.image-line {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.image-line img {
  width: 250px;
  object-fit: cover;
  margin: 0 5px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  /* Hidden by default */
  position: absolute;
}

.image-line img.center {
  transform: translateX(0) scale(1.2);
  filter: none;
  opacity: 1;
  z-index: 2;
}

.image-line img.left {
  transform: translateX(-250px) scale(0.8);
  filter: blur(5px);
  opacity: 0.6;
  z-index: 1;
}

.image-line img.right {
  transform: translateX(250px) scale(0.8);
  filter: blur(5px);
  opacity: 0.6;
  z-index: 1;
}

.image-line img.hidden {
  opacity: 0;
  transform: scale(0.6);
  z-index: 0;
}

.buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 4;
}

.buttons button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

.buttons button:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* DIAGRAM CAROUSELL END */

/* 404 START */
.page_404 {
  padding: 40px 0;
  background: white;
  text-align: center;
}

.page_404 img {
  width: 40%;
}

.link_404 {
  padding: 10px 20px;
  background-color: #d16c44;
  border: none;
  border-radius: 20px;
  color: #eaeaea;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-self: center;
}
.contant_box_404 {
  margin-top: 0px;
}

.contant_box_404 p {
  padding-bottom: 20px;
}

.text {
  display: flex;
}
/* 404 END */

@media (max-width: 970px) {
  .logo img {
    display: block;
    width: 200px; /* Adjust as needed */
  }

  .explanation {
    flex-direction: column;
    align-items: center;
  }

  .hero-info-text {
    text-align: justify;
  }

  .limiter {
    height: 95%;
  }

  .mockup-text {
    width: 100%;
    align-self: center;
    vertical-align: middle;
    text-align: justify;
  }

  .word {
    font-size: 40px;
    transform: translateY(-40px);
  }

  .flex-colum {
    margin: 0px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 0px;
  }

  .iphone-filler {
    margin: 0;
    width: 80%;
  }

  .iMac {
    width: 100%;
  }

  .hero {
    position: relative;
    background-color: rgba(
      0,
      0,
      0,
      0.1
    ); /* Darken the image by adding a semi-transparent black overlay */
    height: 100%;
    padding: 20px;
    padding-top: 30px;
  }

  .rotating-text {
    position: relative;
    z-index: 2; /* Ensure text stays above the dark overlay */
    font-size: 30px;
    padding-top: 20px;
  }

  .mockup {
    margin-bottom: 20px;
  }

  .diagram img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Show the burger icon */
  header .menu-icon {
    display: flex;
  }

  /* Hide the navigation menu by default */
  header nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 65px; /* Adjust based on header height */
    right: 0;
    background-color: rgba(229, 239, 237); /* Semi-transparent */
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
  }

  /* When the menu is active */
  header nav.active {
    display: flex;
    padding: 10px;
  }
  .rotating-text {
    position: relative;
    z-index: 2; /* Ensure text stays above the dark overlay */
    font-size: 20px;
    padding-top: 20px;
  }

  .card-container {
    flex-direction: column;
    gap: 40px;
  }
  .image-card {
    align-self: center;
    width: 100%;
  }

  .card img {
    width: 80px;
    height: 80px;
  }

  .carousell-h {
    padding-left: 10px;
    padding-right: 10px;
  }

  #reverse-colum {
    flex-direction: column-reverse;
  }

  .line-container {
    display: flex !important;
  }

  .diagram {
    display: none;
  }
}

/* MOBILE STYLES */
@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font: 18px;
  }
  /* Adjust the logo size for mobile */
  .logo img {
    width: 180px; /* Adjust as needed */
  }

  .iMac {
    max-width: 500px;
  }

  .hero-info-text {
    text-align: justify;
  }

  .explanation {
    flex-direction: column;
  }

  .hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1, 5); /* Additional dark overlay */
    z-index: 1;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    align-items: flex-end; /* Align menu items to the right */
  }

  header nav ul li {
    margin: 10px 0;
  }

  header nav ul li a {
    font-size: 20px;
    color: #333;
    text-shadow: 0 0 2px rgba(255, 255, 255);
  }


  .iphone {
    max-width: 300px;
  }

  .iMac {
    max-width: 400px;
  }

  .flex-colum {
    margin: 0px;
    margin-bottom: 20px;
    padding: 10px;
  }

  .mockup-text {
    width: 100%;
  }

  .footer-container {
    gap: 0px;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .footer-contact p {
    text-align: center;
  }

  .footer-logo img {
    width: 20%;
  }
  .page_404 img {
    width: 100%;
  }
}

 /* Modal styling */
 .modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  min-height: 200px;
  color: black;
}

.modal-header {
  display: flex;
  justify-content: end;
}

.modal-body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  min-height: 150px;
}

.modal-footer {
  display: flex;
  justify-content: center;
}

.modal-close {
  display: flex;
  border: none;
  background-color: transparent;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background-color: lightgray;
}

.btn {
  margin-left: 30px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.btn:hover {
  margin-left: 30px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: #b3b1b1;
}

.btn-primary {
  color: white;
  background-color: #479787;
}
.btn-primary:hover {
  background-color: #3d8173;
}
