@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Presets */
:root {
  --primary: #1494ef;
  --secondary: #5f2ad2;
  --theme: rgb(255, 255, 255);
  --theme-alt: rgb(0, 0, 0);
  --shadow: 0px 0px 15px 0px #868686;
}
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins";
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--theme);
  color: var(--theme-alt);
}

/* Utils */
.btn {
  background: linear-gradient(to left, var(--primary), var(--secondary));
  color: #fff !important;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
}
.btn:hover{
  border: none;
}

.desktop-none {
  display: none !important;
}
.text-justify {
  text-align: justify !important;
}
.half {
  width: 50%;
}
.text-color {
  color: var(--primary) !important;
}
.text-theme {
  color: var(--theme-alt) !important;
}
.text-gradient {
  font-weight: bold;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* For Firefox */
  background-clip: text;
  color: transparent;
}
.bg-theme {
  background-color: var(--theme) !important;
  color: var(--theme-alt) !important;
}
.bg-color {
  background-color: var(--primary);
}
.bg-gradient {
  background: linear-gradient(
    to right,
    var(--secondary),
    var(--primary)
  ) !important;
  color: var(--theme);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
.fade-right {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}
.fade-left {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-left.show {
  opacity: 1;
  transform: translateX(0);
}
.rich-animate {
  opacity: 0;
  transform: translateY(50px) scale(0.9) rotateX(10deg);
  transition: opacity 0.9s ease-out,
    transform 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.rich-animate.show {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}
.lift-up-down {
  display: inline-block;
  animation: lift 3s ease-in-out infinite;
}

@keyframes lift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
/* Animation ends */

.ic-heading {
  padding: 40px;
  font-weight: 600;
  font-size: 40px;
  text-align: center;
}
.transparent-card {
  padding: 20px;
  text-align: left;
  border-radius: 60px 0 60px 0;
  background-color: var(--theme);
  border: 1px solid #4f4f4f;
  color: var(--theme-alt);
  transition: all 0.5s ease;
}
.transparent-card img {
  border-radius: 50px 0 50px 0;
}
.transparent-card:hover {
  transform: translateY(-5px);
}
.transparent-card i {
  color: var(--primary);
  font-size: 30px;
  margin-bottom: 20px;
}
.shadow {
  box-shadow: var(--shadow) !important;
}
.fcard {
  width: 100%;
  max-width: 300px; /* keeps it from being too wide on large screens */
  aspect-ratio: 3 / 4; /* keeps height proportional to width */
  perspective: 1000px;
  margin: 0 auto; /* center cards in their column */
}

.fcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.fcard:hover .fcard-inner {
  transform: rotateY(180deg);
}

.fcard-front,
.fcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem; /* slightly smaller for smaller screens */
  color: #fff;
  text-align: center;
  text-shadow: 0px 0px 10px black;
}

.fcard-front h4 {
  background-color: rgba(0, 0, 0, 0.39);
  padding: 10px;
  border-radius: 10px;
  font-size: 1.1rem;
}

/* Card backgrounds */
.fcard-front.n1 {
  background-image: url("../imgs/home/n2.jpg");
}
.fcard-front.n2 {
  background-image: url("../imgs/home/n3.jpg");
}
.fcard-front.n3 {
  background-image: url("../imgs/home/n4.jpg");
}
.fcard-front.n4 {
  background-image: url("../imgs/home/n5.jpg");
}

.fcard-front {
  background-size: cover;
  background-position: center;
}

.fcard-back {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: rotateY(180deg);
  font-size: 0.95rem;
  padding: 15px;
}

@media (max-width: 768px) {
  .fcard {
    max-width: 100%;
  }
  .fcard-front h4 {
    font-size: 0.95rem;
  }
  .fcard-back {
    font-size: 10px;
  }
}

/* Elements */
header {
  background-color: var(--theme);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  text-decoration: none;
  color: var(--theme-alt);
  font-weight: 500;
}

nav a:hover {
  border-bottom: 1px solid var(--primary);
}

nav a.active {
  border-bottom: 1px solid var(--primary);
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown button */
.dropbtn {
  cursor: pointer;

  display: inline-block;
}

/* Highlight parent if active */
.dropdown.active .dropbtn {
  border-bottom: 1px solid var(--primary);
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--theme);
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1000;
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  border-bottom: 1px solid var(--primary);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.theme-btn {
  border: none;
  background-color: unset;
  font-size: 20px;
  color: var(--theme-alt);
}
.offcanvas {
  background-color: var(--theme);
  color: var(--theme-alt);
}
.btn-close {
  color: var(--theme-alt) !important;
}

.form-section {
  display: none;
}
.form-section.active {
  display: block;
}

/* Homepage */
.hero-content {
  max-width: 500px;
  padding: 100px 0;
}
.hero-content .btns {
  display: flex;
  gap: 30px;
}
.hero img {
  width: 400px;
}

.ace-home {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ace-home .cards {
  padding: 0;
  height: 250px;
  width: 300px;
  border-radius: 15px;
  background-size: cover;
}
.ace-a {
  background-image: url("https://images.unsplash.com/photo-1743796055664-3473eedab36e?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=774");
}
.ace-c {
  background-image: url("https://images.unsplash.com/photo-1585336261022-680e295ce3fe?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=870");
}
.ace-e {
  background-image: url("https://images.unsplash.com/photo-1591617870684-6e861e6a48ad?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=892");
}
.ace-home .card-inner {
  padding: 20px;
  padding-bottom: 50px;
  height: 100%;
  background-color: #1494efd0;
  border: none;
  margin: 0;
  border-radius: 15px;
  color: var(--theme);
}
.ace-home .card h2 {
  font-weight: bold;
}

.home-icon-card img {
  width: 100%;
}

.home-cta {
  background: linear-gradient(to top, var(--secondary), var(--primary));
}
.home-cta div {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.27);
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 0.3);
}
.home-cta a {
  color: #fff !important;
}
.accordion-button {
  background-color: var(--primary) !important;
  color: #fff !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}
/* Change the arrow color when expanded */
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.logo-slider {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.logo-track {
  display: inline-flex;
  align-items: center;
  animation: scroll 20s linear infinite;
}
.logo-track img {
  width: 100px !important;
  height: auto !important;
  margin: 0 40px;
  transition: filter 0.3s ease;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* For all pages */
.page-hero {
  padding: 50px;
  background-image: url("../imgs/about/bg.jpg");
  color: #fff;
  background-size: cover;
}
.page-hero.bg-ai-services {
  background-image: url("../imgs/AI\ Services.jpg");
  background-position: center;
}
.page-hero.bg-training {
  background-image: url("../imgs/training\ program.png");
  background-position: center;
  background-size: cover;
}
@media (max-width: 500px) {
  .page-hero.bg-training {
    background-image: url("../imgs/training\ program.png");
    background-position: left;
  }
}
.page-hero.bg-ai-solutions {
  background-position: top;
  background-image: url("../imgs/AI\ Solu.jpg");
}
.page-hero.bg-career {
  background-position: right;
  background-image: url("../imgs/Career.jpg");
}
.page-hero.bg-contact {
  background-position: bottom;
  background-image: url("../imgs/Contact\ us.jpg");
}
.page-hero.bg-case-study {
  background-image: url("../imgs/Case\ Study.jpg");
  background-position: bottom;
}
.page-hero.bg-emerging {
  background-image: url("../imgs/Emerging\ Learning.jpg");
  background-position: top;
}

/* About Page */
.member-card {
  padding: 20px;
}
.member-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-head img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid var(--primary);
}

/* AI - Services */
.service-card {
  transition: transform 0.3s ease;
  height: 100%;
  border: none;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.roadmap-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 30px;
}
.roadmap-item:before {
  content: "";
  position: absolute;
  left: 20px;
  top: 30px;
  bottom: -10px;
  width: 2px;
  background: #dee2e6;
}
.roadmap-item:last-child:before {
  display: none;
}
.roadmap-number {
  position: absolute;
  left: 0;
  top: -5px;
  width: 40px;
  height: 40px;
  background: #0d6efd;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.deliverable-item {
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}
.deliverable-item:last-child {
  border-bottom: none;
}
.card-header-custom {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: white;
  font-weight: 600;
}

/* AI Soluions */
.icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.6) 0%,
    rgba(13, 202, 240, 0.6) 100%
  );
  z-index: 1;
}

.card i.standalone-icon {
  transition: transform 0.3s ease;
}
.card-img-top {
  height: 200px;
}

.card:hover i.standalone-icon {
  transform: scale(1.1);
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--theme-gradient);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.bg-light-custom {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.badge-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  color: var(--theme-color);
}

/* Emerging */

/* Contact Page */
.contact-banner {
  background-image: url("../imgs/contact/01.jpg");
  padding: 50px;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--theme);
}
.contact-flex {
  display: flex;
  padding: 20px;
  justify-content: space-around;
  align-items: start;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-flex .start {
  width: 500px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-info {
  display: flex;
  gap: 10px;
  padding: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.info-card {
  background-color: var(--secondary);
  color: #fff;
  width: 180px;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
}
.contact-flex .info i {
  font-size: 20px;
}
.contact-pic-2 {
  width: 400px;
  border-radius: 30px;
}

footer {
  color: white !important ;
}
footer i {
  color: white;
}
footer a {
  color: white;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1100px) {
  .mobile-none {
    display: none !important;
  }
  .desktop-none {
    display: inline-block !important;
  }

  .logo-div {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .ic-heading {
    font-size: 30px;
  }

  /* Homepage */
  .hero-content {
    text-align: center;
  }
  .hero-content .btns {
    gap: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .hero img {
    width: 80%;
  }
  .home-cta {
    padding: 20px;
  }
  .ace-home {
    justify-content: center;
  }
  .faqs {
    padding: 20px;
  }

  /* About Page */
  .about-hero img {
    width: 280px;
  }
  .about-values {
    width: 300px;
  }
  .about-partner img {
    display: none;
  }

  /* AI - Services */

  /* Contact */
  .contact-flex {
    padding: 10px;
  }
  .contact-flex .start {
    padding: 10px;
  }
  .contact-info {
    justify-content: center;
  }
  .info-card {
    width: 150px;
    padding: 10px;
  }
  form {
    width: 100%;
  }
  .contact-pic-2 {
    width: 100%;
  }
}

/* Added styles */
.transition-all {
  transition: all 0.3s ease;
}

.list-group-item:hover {
  transform: translateX(5px);
  background-color: rgba(var(--primary), 0.05) !important;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow) !important;
}

.carousel {
  display: flex;
  justify-content: center;
  margin: 20px;
}

.carousel-inner {
  width: 100%; /* take full width */
  max-width: 800px; /* optional: limit max width */
}

.carousel-item img {
  width: 100%;
  height: 300px; /* fixed height for all certificates */
  object-fit: contain; /* keeps certificate aspect ratio without cropping */
  /* background: #f8f9fa; */
  border-radius: 8px;
}

.partner-logos {
  height: 50px;
}

.custom-list {
  list-style: none; /* remove default bullets */
  padding-left: 0;
}

.custom-list li {
  position: relative;
  padding-left: 30px; /* space for the icon */
  margin-bottom: 0.5rem;
}

.custom-list li::before {
  content: "\f058"; /* Font Awesome check-circle unicode */
  font-family: "Font Awesome 5 Free";
  font-weight: 900; /* for solid icons */
  color: #28a745; /* green color */
  position: absolute;
  left: 0;
  top: 0;
}

/* Floating Action Button Container */
.fab-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}

/* Main FAB Button */
.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

/* When active, rotate main button */
.fab-main.active {
  transform: rotate(45deg);
}

/* Hidden by default */
.fab-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Show on active */
.fab-options.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Option Buttons */
.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, background 0.3s;
}

.fab-btn:hover {
  transform: scale(1.1);
}

/* Button Colors */
.whatsapp {
  background: #25d366;
}

.locate {
  background: #d80d0d;
}

.linkedin {
  background: #0077b5;
}

.progress-bar {
  transition: width 0.4s ease;
}
.form-section {
  display: none;
}
.form-section.active {
  display: block;
}

.member-card {
  transition: all 0.4s ease-in-out;
}

.member-card .hover-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(200%);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 1s ease;
  background: rgba(0, 0, 0, 0.85);
}
.member-head {
  display: flex;
  flex-direction: column;
}

.member-card:hover .hover-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.member-card:hover .hover-content::-webkit-scrollbar {
  width: 0;
}

.member-card:hover .member-head {
  opacity: 0.1;
}

.our-values .icon {
  margin-right: 10px !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hover zoom effect */
.zoom-img {
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.zoom-img:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.carousel-item {
  overflow: hidden;
}

/* Fullscreen modal zoom */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 1055;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  cursor: zoom-out;
}

.zoomed-img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.zoom-close:hover {
  color: #ff5555;
}
@media (max-width: 455px) {
  .zoomed-img {
    margin: 50px auto;
  }
}

p {
  cursor: default;
}

.opportunity div {
  width: 300px;
}

.offcanvas-body .nav-item {
  border-bottom: 1px solid #888;
}

.above {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 40px;
}

@media (max-width: 765px) {
  .footer-logo {
    width: 100%;
  }
}

.testimonial-card {
  margin: 20px;
  max-width: 700px;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
}

.step-number {
  width: 30px;
  height: 30px;
  min-width: 30px; /* ✅ prevents shrinking */
  min-height: 30px; /* ✅ prevents shrinking */
  background-color: #0d6efd;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0; /* ✅ MOST IMPORTANT */
  aspect-ratio: 1 / 1;
}

.training-last {
  font-size: small;
}

/* Responsive form labels */
.form-label {
  font-weight: 500;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* Inputs & textarea */
.form-control-lg {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  padding: 0.75rem 1rem;
}

/* Card safety on small screens */
@media (max-width: 576px) {
  .card {
    border-radius: 1rem;
  }
}

/* Expertise cards */
.expertise-card {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* Text scaling */
.expertise-card h6 {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

.expertise-card small {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Mobile spacing safety */
@media (max-width: 576px) {
  .expertise-card {
    text-align: center;
  }
}
