

/*  ----------------------------------------------------------------------------
    about-advanced.css
    ----------------------------------------------------------------------------
*/

/* — Variables — */
:root {
  --accent:       #58a6ff;
  --panel:        rgba(255,255,255,0.05);
  --border:       rgba(255,255,255,0.2);
  --text:         #c9d1d9;
  --bg:           #0d1117;
  --radius:       16px;
  --heading:      #11333a; /* dark heading for Why Choose Us */
}

/* — Global & Reset — */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  margin: 0; padding: 0;
}

/* — Keyframes & SCROll Fade‑In — */
@keyframes fadeInUp   { to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px);} to { opacity:1; transform:translateY(0);} }

.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate.visible {
  animation: fadeInUp .6s ease forwards;
}

/* — Smooth Section Heading — */
.smooth-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInDown .8s ease-out forwards;
}

/* — Team Grid — */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 24px;
  margin: 60px 0;
}
.team-card {
  position: relative;
  padding-top: 100%; /* square */
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
}
.team-card:nth-child(1) { animation-delay: .1s; }
.team-card:nth-child(2) { animation-delay: .2s; }
.team-card:nth-child(3) { animation-delay: .3s; }
/* extend as needed for more cards */

.team-card .photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.team-card:hover .photo {
  transform: scale(1.1);
}
.team-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}
.team-card:hover .overlay {
  opacity: 1;
}
.team-card .info {
  position: absolute;
  left:16px; right:16px; bottom:16px;
  color:#fff; transform: translateY(20px);
  opacity:0; transition: opacity .4s, transform .4s;
}
.team-card:hover .info {
  opacity:1; transform: translateY(0);
}
.team-card .info h5 { margin:0; font-size:18px; color: var(--accent); }
.team-card .info p  { margin:4px 0 0; font-size:14px; color:#ddd; }


/* — “Not Just Clients” Carousel (JS‑driven) — */
.carousel-wrapper { position: relative; max-width:800px; margin:40px auto; }
.slides { position: relative; height:240px; overflow:hidden; }
.slide {
  position:absolute; top:0; left:0;
  width:100%; display:flex; align-items:center;
  opacity:0; transform: translateX(50px);
  transition: opacity .6s, transform .6s;
}
.slide.active {
  opacity:1; transform: translateX(0);
}
.slide-image {
  flex:0 0 35%; max-width:180px; margin-right:30px;
  border:4px solid #ec5c42; border-radius:50%;
  overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
.slide-image img { width:100%; height:auto; }
.slide-content .author { font-size:1.3rem; font-weight:700; margin:0; }
.slide-content .role   { color:#777; margin:4px 0 20px; }
.slide-content .quote  {
  position:relative; font-style:italic; line-height:1.6; margin:0;
}
.slide-content .quote::before {
  content:"“"; position:absolute; top:-10px; left:-20px; font-size:4rem; color:#ec5c42;
}

/* thumbnails nav */
.nav-thumbs { display:flex; justify-content:center; margin-top:20px; }
.nav-thumbs img {
  width:50px; height:50px; border-radius:50%; margin:0 6px;
  opacity:.5; cursor:pointer; transition:opacity .3s, border .3s;
}
.nav-thumbs img.active { opacity:1; border:2px solid #ec5c42; }


/* — Static Testimonials Grid + Nav‑Dots Fallback — */
.testimonials-wrap {
  display:flex; flex-wrap:wrap; gap:24px; justify-content:center; margin:40px 0;
}
.testimonial-card {
  position:relative; width:300px; height:360px; overflow:hidden;
  border-radius:16px; background:var(--panel); cursor:pointer;
}
.tc-image {
  position:absolute; inset:0; background-size:cover; background-position:center;
  filter:brightness(100%); transition:filter .4s;
}
.tc-info {
  position:absolute; bottom:30px; left:0; right:0;
  color:#fff; text-shadow:0 2px 6px rgba(0,0,0,0.6);
}
.tc-info h3 { margin:0; font-size:1.6rem; font-weight:700; color:var(--accent); }
.tc-info h5 { margin:4px 0 0; font-size:1.2rem; font-weight:600; color:var(--accent); }
.tc-text {
  position:absolute; inset:20px auto auto 20px;
  color:#fff; opacity:0; font-style:italic; line-height:1.5;
  transition:opacity .4s;
}
.testimonial-card:hover .tc-image { filter: brightness(40%); }
.testimonial-card:hover .tc-text  { opacity:1; }

/* nav‑dots fallback */
.testimonials-nav-dots { text-align:center; margin-top:24px; }
.testimonials-nav-dots .dot {
  display:inline-block; width:12px; height:12px; margin:0 6px;
  border-radius:50%; background:#ccc; cursor:pointer; transition:background .3s;
}
.testimonials-nav-dots .dot.active { background: var(--accent); }


/* — “Why Choose Us?” Alternating Media Blocks — */
.media-blocks { display:flex; flex-direction:column; gap:60px; margin:40px 0; }
.media-block {
  display:flex; align-items:center; gap:40px; flex-wrap:wrap;
}
.media-block.reverse { flex-direction:row-reverse; }
.media-icon {
  flex:0 0 80px; height:80px; border-radius:50%;
  background:linear-gradient(135deg,#4d9dd3,#ec5c42);
  background-size:200% 200%; background-position:0 50%;
  display:flex; align-items:center; justify-content:center;
  font-size:36px; color:#fff; transition:background-position .6s;
}
.media-block:hover .media-icon {
  background-position:100% 50%;
}
.media-text h3 {
  margin:0 0 10px; font-size:24px; color:var(--heading);
}
.media-text p { margin:0; font-size:16px; color:#555; line-height:1.6; }


/* — Teaser Icon Override — */
.teaser .teaser_icon {
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  transition: background .3s, transform .3s !important;
}
.teaser:hover .teaser_icon {
  background: var(--accent) !important;
  transform: scale(1.1) !important;
}
.teaser .teaser_icon i {
  color: var(--heading) !important;
}


/* — Counters: “k” in blue — */
.counter-add {
  color: var(--accent) !important;
}










/* at the very bottom of about-advanced.css, _after_ all other .testimonial-card rules */

.testimonial-card {
  display: none !important;
  flex: 0 0 100%; /* default mobile: 1 per view */
  max-width: 100%;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}
@media (min-width: 1200px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 24px);
    max-width: calc(33.333% - 24px);
  }
}

.testimonial-card.show {
  display: block !important;
}
#why-choose-us .media-block {
  display: flex;
  align-items: center;    /* vertically center icon and text */
  gap: 40px;
}

#why-choose-us .media-icon {
  /* ensure it’s a perfect circle and centered inside */
  display: flex;
  align-items: center;
  justify-content: center;
}

















/* About Page CSS - css/about.css */

/* Hover shine effect for about image */
.img-hover2 {
  position: relative;
  overflow: hidden;
}
.img-hover2::after {
  content: '';
  position: absolute;
  top: 0;
  left: -85%;
  height: 100%;
  width: 50%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  transform: skewX(-25deg);
  z-index: 2;
  pointer-events: none;
}
.img-hover2:hover::after {
  animation: shine 1s forwards;
}

@keyframes shine {
  to {
    left: 125%;
  }
}































/* ---------- DESKTOP LAYOUT ---------- */
#why-choose-us {
  padding: 40px 0;
}
#why-choose-us .why-container {
  position: relative;
  width: 90vw;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: url("images/whyus.jpeg") center/cover no-repeat;
  opacity: .9;
  overflow: hidden;
}

/* Centered title/text */
#why-choose-us .center-div {
  position: absolute;
  top: 50%; left: 50%;
  width: 70%;
  transform: translate(-50%, -50%);
  text-align: center;
}
#why-choose-us .center-div h2 {
  color: #fff; font-size: 1.5rem; margin-bottom: .5em;
}
#why-choose-us .center-div p {
  color: #eee; font-size: .9rem; line-height: 1.4;
}

/* Four absolute quadrants */
#why-choose-us .choices-desktop .choice {
  position: absolute;
  display: flex;
  align-items: center;
  transition: transform .3s;
  cursor: pointer;
}
#why-choose-us .choices-desktop .choice:hover {
  transform: scale(1.05);
}
/* positions */
#why-choose-us .left-top     { top: 8%;  left: 8%;  flex-direction: row-reverse; }
#why-choose-us .right-top    { top: 8%;  right: 8%; flex-direction: row; }
#why-choose-us .right-bottom { bottom: 8%; right: 8%; flex-direction: row; }
#why-choose-us .left-bottom  { bottom: 8%; left: 8%;  flex-direction: row-reverse; }

#why-choose-us .circle {
  flex: 0 0 60px; height: 60px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
#why-choose-us .circle img {
  width: 70%;
}
#why-choose-us .text {
  max-width: 120px; margin: 0 8px;
}
#why-choose-us .text h3 {
  font-size: .9rem; margin: 0; color: #263c41;
}
#why-choose-us .text p {
  font-size: .75rem; color: #999; margin: .3em 0 0; line-height: 1.2;
}

/* hide mobile grid on desktop */
.choices-mobile {
  display: none;
}

/* ---------- MOBILE LAYOUT ---------- */
@media (max-width: 600px) {
  /* shrink the big circle */
  #why-choose-us .why-container {
    width: 80vw;
    max-width: 300px;
    aspect-ratio: 1;
    margin-bottom: 20px;
  }
  /* hide absolute quadrants */
  #why-choose-us .choices-desktop {
    display: none;
  }
  /* show grid instead */
  .choices-mobile {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    max-width: 90vw;
    margin: 0 auto;
    padding-bottom: 20px;
  }
  .choice-mobile {
    display: flex; align-items: center;
    background: #fff; border-radius: 8px; padding: 8px;
  }
  .circle-mobile {
    flex: 0 0 40px; width: 40px; height: 40px;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .circle-mobile img {
    width: 60%;
  }
  .text-mobile {
    margin-left: 8px;
  }
  .text-mobile h3 {
    font-size: .85rem; margin: 0; color: #263c41;
  }
  .text-mobile p {
    font-size: .7rem; color: #666; margin: 4px 0 0; line-height: 1.2;
  }
}
/* Big circle container: make fully opaque */
#why-choose-us .why-container {
  opacity: 1;    /* was .9 */
}

/* Center text over image: make it black */
#why-choose-us .center-div h2,
#why-choose-us .center-div p {
  color: #000;   /* black */
}
.about-content p {
  color: #222222;       /* near-black for maximum contrast */
  font-weight: 500;      /* a bit thicker than normal */
  line-height: 1.8;
}

/* Make <strong> even bolder */
.about-content p strong {
  font-weight: 700;
  color: #000000;
}
