/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  cursor: none;
  font-family: "Poppins", sans-serif;
  overflow-x: clip;
}

@media (max-width: 576px) {
  h1,
  .display-4,
  .display-5 {
    font-size: 1.8rem !important;
  }
  h2 {
    font-size: 1.4rem !important;
  }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
}

.cursor-dot.hovered {
  background-color: rgba(49, 189, 204, 0.5);
  transform: scale(4);
}

.cursor-dot.colorChange {
  background-color: black;
}
.cursor-outline.colorChange {
  border: 1px solid black;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #31bdcc;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(49, 189, 204, 0.5);
  transition: all 0.1s ease-out;
}

@media (max-width: 768px) {
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
}

a,
.accordion .accordion-button,
button,
.hover-target,
.btn {
  cursor: none !important;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(49, 189, 204, 0.7);
  z-index: 10;
}

.navbar-nav .active {
  color: #21409a !important;
  font-weight: 600 !important;
}

.offcanvas-body .active {
  color: rgb(84, 190, 206) !important;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    font-weight: 500;
    color: white;
    transition: color 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    color: black;
  }
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.btn-contact {
  color: white !important;
  background-color: #5d5e5ec6 !important;
}

.btn-contact:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .navbar-toggler {
    padding: 10px 16px;
  }
}

.offcanvas-dark {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.offcanvas-dark .offcanvas-header,
.offcanvas-dark .offcanvas-body .nav-link {
  color: white;
  text-align: center;
}

.offcanvas-body .navbar-nav .nav-link:hover {
  color: rgb(84, 190, 206);
}

.offcanvas-title img {
  height: 40px;
  width: auto;
}

.socials {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("public/landmarks-shanghai.jpg") no-repeat center center/cover;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0;
  margin-top: 0;
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }
}

.overlay-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #5d5e5ec6;
  padding: 40px;
  border-radius: 10px;
  right: -1%;
}
@media (max-width: 768px) {
  .overlay-text {
    right: auto;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }
}

.about-hero {
  height: 80vh;
  background: url("public/futuristic-business-scene-with-ultra-modern-ambiance.jpg")
    no-repeat center center/cover;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0;
  margin-top: 0;
}

@media (max-width: 768px) {
  .about-hero {
    height: 40vh;
  }
}

.about-hero .overlay-text {
  background-color: rgba(0, 0, 0, 0);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center !important;
}

@media (max-width: 768px) {
  .about-hero .overlay-text {
    top: 25%;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 22%;
  }
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid #ffffffc4;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: #ffffffc4;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

.scroll-text {
  color: #ffffffc4;
  font-size: 0.8rem;
  margin-top: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* About Section */
.about-section h1 {
  font-weight: 600;
  font-size: 4rem;
}

.about-section p {
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 600px;
}

.about-section img {
  margin-top: 3rem;
  height: 150px;
  width: auto;
}

@media (max-width: 768px) {
  .about-section h1 {
    margin-top: 1rem;
  }

  .about-section img {
    margin-top: 2rem;
  }
}

.know-more-btn {
  margin-top: 20px;
  padding: 8px 20px;
  background-color: #00000023;
  text-decoration: none;
  display: inline-block;
}

.know-more-btn:hover {
  background-color: rgb(49, 189, 204);
  color: #fff;
}

.timeline-container {
  position: relative;
  padding-bottom: 80px;
}

.timeline-line {
  position: absolute;
  top: 12%;
  left: 5%;
  width: 90%;
  height: 2px;
  background: rgb(49, 189, 204);
  z-index: 0;
}

.timeline-cap {
  position: absolute;
  top: 12%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  fill: rgb(49, 189, 204);
  z-index: 1;
}

.timeline-cap.start {
  left: 5%;
}

.timeline-cap.end {
  right: 5%;
}

.timeline-item {
  position: relative;
  text-align: center;
  flex: 1;
  z-index: 1;
}

.timeline-icon-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-icon {
  background: #fff !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-year {
  font-weight: 600;
  margin-top: 10px;
}

.timeline-text {
  font-size: 0.9rem;
  max-width: 200px;
  margin: 0 auto;
}

.discover-btn {
  text-decoration: none;
  color: black;
}

.discover-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: rgb(49, 189, 204);
  top: 55%;
  bottom: 0;
  left: 25%;
  transition: width 0.3s ease;
}

.discover-btn:hover {
  color: rgb(49, 189, 204);
}

.discover-btn:hover::after {
  width: 50%;
}

.about-details {
  margin-bottom: 4rem;
  margin-left: 3rem;
  margin-right: 3rem;
  margin: 3rem 3rem;
}

@media (max-width: 768px) {
  .timeline-items-wrapper {
    display: flex;
    overflow: auto;
    width: 100%;
    transition: transform 0.4s ease;
  }

  .timeline-item {
    min-width: 100%;
    flex-shrink: 0;
  }

  .timeline-cap {
    height: 16px;
    width: 16px;
    top: 12%;
    transform: translateY(-50%);
  }
}

/* Products Section */

.products-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: url("public/default-background.webp") center center/cover
    no-repeat;
  transition: background 0.5s ease;
}
.products-section.bg-1 {
  background-image: url("public/mobile-phone-woman-s-hand-indoor-image.webp");
}
.products-section.bg-2 {
  background-image: url("public/close-up-doctor-holding-wooden-cube.webp");
}
.products-section.bg-3 {
  background-image: url("public/side-view-woman-holding-paper.webp");
}
.products-section.bg-4 {
  background-image: url("public/high-tech-view-futuristic-earth.webp");
}

.products-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}

.products-wrapper {
  display: flex;
  flex-wrap: wrap;
  height: 560px;
  position: relative;
  z-index: 2;
}

.product-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  position: relative;
  transition: background 0.5s ease;
}

.product-col:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.product-title {
  font-weight: 700;
  font-size: 1.5rem;
  position: absolute;
  bottom: 0;
  transform: translateY(250%);
  transition: transform 0.5s ease-in-out;
}

.product-subtitle {
  font-weight: 500;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(+100%);
  transition: opacity 0.3s ease-out, transform 0.5s ease-in-out;
}

.country-icons img {
  width: 42px !important;
  height: 42px !important;
}

.product-col:hover .product-title {
  transform: translateY(0);
}

.product-col:hover .product-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.product-btn {
  margin-top: 15px;
  padding: 6px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: background 0.3s ease-out;
}

.product-col:hover {
  background: rgba(0, 0, 0, 0.2);
}

.products-section::before {
  content: "";
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  inset: 0;
}

.product-col > * {
  position: relative;
  z-index: 2;
}

.products-header {
  position: absolute;
  background-color: rgba(49, 189, 204, 0.7);
  width: 100%;
  top: 0;
  height: 15%;
  display: flex;
  align-items: center;
  z-index: 2;
  font-weight: 700;
}

@media (max-width: 768px) {
  .products-wrapper {
    display: block;
    height: auto;
  }

  .product-col {
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    margin-bottom: 20px;
    padding: 20px;
    color: #fff;
  }

  .product-col::after {
    display: none;
  }

  .product-title,
  .product-subtitle {
    transform: none !important;
    opacity: 1 !important;
    position: relative;
    text-align: left;
  }

  .products-section {
    background: none !important;
  }

  .products-section .overlay {
    display: none;
  }
}

/* Info Section */

.bg-color {
  background-color: rgba(49, 189, 204);
}

.info-logo {
  max-width: 100px;
  height: 60px;
}

.info-title {
  font-size: 1.5rem;
}

.info-description {
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .info-title {
    font-size: 1.3rem;
  }

  .info-description {
    font-size: 1rem;
  }
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("public/faq-background.webp") no-repeat center center/cover;
  backdrop-filter: blur(3px);
  position: relative;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23ec407a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 6l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 1rem;
  transform: rotate(0deg);
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-button {
  font-size: 1rem;
  font-weight: 500;
  padding-left: 0;
  padding-right: 2rem;
}

.accordion-body {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 1rem;
}

.qr-img {
  max-width: 300px;
  height: 300px;
}

/* Contact From */

.contact-image {
  width: 100%;
  height: 100%;
}

.contact-form {
  margin-top: 3rem;
}
.contact-form input,
.contact-form textarea {
  border: 2px solid rgb(49, 189, 204);
  border-radius: 8px;
}

.contact-form label {
  color: #6c757d;
}

.send-btn {
  background-color: #00000023;
  color: white;
  border-radius: 15px;
  padding: 10px 20px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: rgb(49, 189, 204) !important;
}

/* Embeded Map */
.map-responsive {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
  height: 0;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* footer */
.footer {
  background-color: rgb(49, 189, 204);
  padding: 0 4rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 0 2rem;
  }
}

.footer-logo {
  max-width: 250px;
  height: auto;
}

.footer-divider {
  width: 2px;
  height: 100px;
  background-color: white;
}

.qr-codes img {
  width: 120px;
  height: 120px;
}

/* For Tablets */
@media (width: 768px) {
  .footer-text {
    margin-top: 5rem;
  }

  .qr-codes {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .qr-codes div {
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }
}

/* Back to top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: linear-gradient(to right, teal, rgb(49, 189, 204));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  color: #fff;
}

/* Extra-Large Screens (XL: ≥1200px) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
  }

  .hero .overlay-text {
    padding: 60px;
    max-width: 800px;
  }

  .about-section h1 {
    font-size: 4rem;
  }
  .about-section p {
    font-size: 1.3rem;
    max-width: 700px;
  }

  .timeline-container {
    padding-bottom: 120px;
  }
  .timeline-text {
    max-width: 250px;
  }

  .products-wrapper {
    height: 600px;
  }

  .product-col:nth-child(4) .product-subtitle {
    margin-bottom: 1rem !important;
  }
  .product-col:nth-child(2) .product-title {
    margin-bottom: 0 !important;
  }
  .product-col:nth-child(3) .product-title {
    margin-bottom: 1rem !important;
  }
}

/* Extra-Extra-Large Screens (XXL: ≥1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .product-col:nth-child(4) .product-subtitle {
    margin-bottom: 2.5rem !important;
  }
  .product-col:nth-child(3) .product-title {
    margin-bottom: 0.5rem !important;
  }

  .footer {
    padding: 0 6rem;
  }
}

/* Ultra-HD / 4K Screens (≥2560px) */
@media (min-width: 2560px) {
  a {
    font-size: 1.8rem !important;
  }

  p {
    font-size: 1.8rem !important;
  }

  h1 {
    font-size: 6rem !important;
  }

  .container {
    max-width: 1600px;
    margin: 0 auto;
  }

  .navbar-brand img {
    height: 60px;
    width: auto;
  }

  .offcanvas-header img {
    height: 60px;
    width: auto;
  }
  .offcanvas-body .nav-link {
    font-size: 2rem !important;
  }

  .hero {
    height: 100vh;
  }
  .hero .overlay-text {
    padding: 80px;
    max-width: 1000px;
  }

  .about-section img {
    height: 200px;
  }

  .timeline-container {
    padding-top: 100px;
    padding-bottom: 160px;
  }
  .timeline-year {
    font-size: 2rem !important;
  }
  .timeline-line {
    top: 22%;
  }
  .timeline-cap {
    top: 22%;
  }
  .timeline-text {
    max-width: 300px;
  }

  .about-details p {
    font-size: 2rem !important;
  }

  .info-title {
    font-size: 2rem !important;
  }
  .info-description {
    font-size: 1.5rem !important;
  }
  .info-logo {
    max-width: 150px;
    height: 90px;
  }

  .products-wrapper {
    height: 800px;
  }
  .product-title {
    font-size: 2rem;
  }
  .product-subtitle {
    font-size: 1.6rem;
  }

  .accordion-header button {
    font-size: 1.8rem !important;
  }

  .accordion-body {
    font-size: 1.5rem;
  }

  .contact-form h2 {
    font-size: 6rem !important;
  }
  .contact-form p {
    font-size: 2.4rem !important;
  }
  .contact-form input,
  .contact-form label,
  .contact-form button,
  .contact-form textarea {
    font-size: 2rem !important;
  }

  .footer h5 {
    font-size: 2rem;
  }

  .footer-logo {
    max-width: 300px;
    height: auto;
  }

  .footer {
    padding: 0 8rem;
  }

  .qr-codes img {
    width: 180px;
    height: 180px;
  }

  .qr-codes {
    font-size: xx-large;
  }
}
