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

body {
  font-family: 'Chakra Petch', sans-serif;
  line-height: 1.5;
  color: white;
  background-color: whitesmoke;
  overflow-x: hidden;
}

/* ---------- Header Section ---------- */
.container-header {
  position: relative;
  height: 400px;
  background: url("images/pexels-googledeepmind-17483907.jpg") center/cover no-repeat;
}

/* Navigation */

/* logo */
.navbar-logo {
  height: 40px;
  width: auto;
  cursor: pointer;
}

/* Navbar container */
.header {
  position: fixed;
  top: 0;
  left: 0; /* Align to left edge */
  width: 100%; /* Stretch full width */
  display: flex;
  justify-content: space-between; /* Logo left, links right */
  align-items: center;
  padding: 10px 60px; /* Adjust horizontal padding as needed */
  z-index: 10;
  background: transparent;
  text-shadow: 0 0 1px black;
}

/* Subtle background overlay */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.header:hover::before {
  opacity: 1;
}

/* navigation links */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* arrange horizontally */
  gap: 20px;
}

/* navigation links as list elements */
.nav-links li {
  margin: 0;
}

/* navigation links style */
.nav-links a {
  text-decoration: none;
  color: #373851;
  font-weight: bold;
  font-size: 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #7c6ddf;
}

/* ---------- Hero Section ---------- */
#title {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: whitesmoke;
  font-size: 3rem;
  text-shadow: 0 0 1px black;
}

#sub-title {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: whitesmoke;
  font-size: 1.8rem;
  text-shadow: 0 0 1px black;
}

/* ---------- General Container ---------- */
.container-frontContent {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

/* ---------- Sub-container Squares ---------- */
.sub-container {
  flex: 1 1 280px;
  max-width: 320px;
  background-color: white;
  color: black;
  border-radius: 30px;
  box-shadow: 0 0 15px 5px rgb(123, 104, 238, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}


.img_sub_container {
  width: 80%;
  max-width: 200px;
  height: auto;
}

.text_sub_container {
  color: black;
  text-align: center;
  margin-top: 10px;
  font-size: 1rem;
}

.text_sub_container.contact--Left--Align{
  font-size: 1.5rem;
  text-align: left;
  
}



/* ---------- Use Cases Section (2 Columns) ---------- */
.container-frontContent.alt {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  color: whitesmoke;
  padding: 40px 20px;
}

.container-frontContent.alt.reverserow{
  flex-direction: row-reverse;
}

.left-column {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.right-column {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image {
  max-width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 0 15px 5px rgb(123, 104, 238, 0.5);
}

.roundimg {
  max-width: 80%;
  height: auto;
  border-radius: 30px;


}

.sub-containerIntro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Company Memo Section ---------- */
.sub-containerDescription {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.sub-containerDashboard {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sub-containerDashboard img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ---------- Button ---------- */
#btn-signUp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  color: white;
  background: #7c6ddf;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#btn-signUp:hover {
  background: rgb(123, 104, 238);
  transform: translateY(-2px);
}

#btn-signUp.small{

  width: 200px;
}


/* ---------- Footer ---------- */
.footer {
  color: whitesmoke;
  background-color: #7c6ddf;
  box-shadow: 0 0 15px 5px rgba(123, 104, 238, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  font-family: 'Inter', sans-serif;
}

/* CONTACT ROW */
#footerContact {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.6;
}

/* CONTACT ITEMS */
#footerContact p {
  margin: 0.3rem 0;
  flex: 1;
  min-width: 200px;
}

.footer a {
  color: white;
  text-decoration: none;
}

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

/* COPYRIGHT LINE */
#footerCopyright {
  text-align: center;
  font-size: 0.9rem;
  color: #e6e6e6;
  margin-top: 0.5rem;
}

/* Optional divider */
.footer-divider {
  width: 80%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 1rem 0;
}



/* ---------- ABOUT ---------- */
/* ---------- Hero ---------- */

.container-header-about {
  position: relative; 
  height: 400px;
  display: flex; 
  justify-content: center; 
  align-items: center; 
}

.background-video {
  object-fit: cover; 
}

.overlay {
  background-color: #7b68ee; 
  opacity: 0.5; 
}


.background-video,
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
}

.container-header-about .content {
  z-index: 1; 
  color: white;
  text-align: center;
}

.sub-container-about {
  box-shadow: 0 0 15px 5px rgba(102, 99, 117, 0.5)
}



/* ---------- flipping card section ---------- */


.card {
  margin: 0 auto;
  width: 500px;
  height: 500px;
  perspective: 1000px;
  margin-bottom: 100px;
}

.card__inner {
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
}

.card__inner.is-flipped {
  transform: rotateY(180deg);
}

.card__face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}




.card__face--front {
  background: linear-gradient(135deg, #8f46a5 0%, #7c6ddf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}


.card__face--front:hover {
  color: #373851;
  transform: translateY(-5px);
}


.card__face--front h2 {
  color: whitesmoke;
  font-size: 32px;
}

.card__face--back {
  transform: rotateY(180deg);
}

.card__face--back img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* fits image without cropping */
  display: block;
}



/* */
/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  #title {
    font-size: 2.2rem;
  }

  #sub-title {
    font-size: 1.4rem;
  }

  .header {
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #7b68ee;
  }

  .nav-links {
    gap: 10px; /* tighter link spacing */
  }

  .container-frontContent {
    margin-top: 60px;
  }

  .sub-container {
    flex: 1 1 100%;
  }

  @media (max-width: 768px) {
    .card {
      width: 90vw;     
      height: 90vw;     
      max-width: 400px; 
      max-height: 400px;
    }
  }

  @media (max-width: 360px) {
    .card {
      width: 95vw;
      height: 95vw;
      max-width: 300px;
      max-height: 300px;
    }
  }
}


/* ---------- Bouncing effect ---------- */

.sub-container.bounce {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%   { transform: translateY(0) scale(1); } /* starting position */
  30%  { transform: translateY(-30px) scale(1.05); } /* jump up by 30px and increase scale a bit */
  50%  { transform: translateY(0) scale(0.95); } /* goes back to original position with a slightly smaller size */
  70%  { transform: translateY(-15px) scale(1.02); } /* adds second bounce up  */
  100% { transform: translateY(0) scale(1); } /* return to start position and normal size  */
}