/* =======================
   Global Variables
======================= */
:root {
  --primary-red: #c3323a;
  --card-bg: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* =======================
   Base Styles
======================= */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  background-color: #fff;
  color: #333;
}
@font-face {
  font-family: 'Hermosa';
  src: url('../fonts/hermosa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* =======================
   Navbar
======================= */
.navbar {
  background: var(--primary-red);
}

.navbar-brand,
.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #f39c12 !important;
}

.logo-circle {
  width: 40px;         /* adjust size */
  height: 40px;
  border-radius: 50%;  /* makes it circular */
  object-fit: cover;   /* keeps image aspect ratio */
}


/* =======================
   Carousel
======================= */
.carousel-item img {
  height: 100vh;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  border-radius: 10px;
}

/* =======================
   Stats Section
======================= */
.stats-section {
  background: url('assets/dotted-bg.png') no-repeat center center / cover;
}

.stat-card {
  position: relative;
  border-radius: 15px;
  background: var(--card-bg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary-red) 0 10px,
    transparent 10px 20px
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: moveBorder 2s linear infinite;
}

@keyframes moveBorder {
  from { background-position: 0 0; }
  to   { background-position: 40px 0; }
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-card h2 {
  font-size: 4rem;
  margin: 0.5rem 0;
}

.stat-card p {
  font-size: 12px;
}

.stat-card .icon i {
  background: #fceaea;
  padding: 15px;
  border-radius: 50%;
}

/* =======================
   Section Title
======================= */
.section-title {
  display: inline-block;
  font-size: 2.8rem;
  color: var(--primary-red);
  position: relative;
  padding-bottom: 10px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 600;
   letter-spacing: 0.5px;
  font-style: normal;/* change to Pacifico, Great Vibes, etc. */
}



/* Animated dotted underline */
.section-title::after {
 
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    #c3323a 0 10px,
    transparent 10px 20px
  );
  background-size: 40px 4px;
  animation: moveDots 1s linear infinite;
}

@keyframes moveDots {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 0;
  }
}



.section-title-profile {
  display: inline-block;
  font-size: 2.5rem;
  color: var(--primary-red);
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
  margin: 0 auto 40px auto;
  text-align: center;
    font-family: 'Hermosa', cursive;
  font-weight: 400;
  font-style: normal;/* change to Pacifico, Great Vibes, etc. */
  margin-left: 1rem;
}


/* Animated dotted underline */
.section-title-profile::after {
 
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    #c3323a 0 10px,
    transparent 10px 20px
  );
  background-size: 40px 4px;
  animation: moveDots 1s linear infinite;
}

@keyframes moveDots {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 0;
  }
}

/* =======================
   Team Fancy Card
======================= */
.team-fancy-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 30px 20px;
  text-align: center;
  min-height: 440px;
}

.team-fancy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.team-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-card-link:hover {
  text-decoration: none;
}

.profile-name {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.profile-role {
  font-size: 1.1rem;
  font-weight: 400;
  color: #6c757d;
  letter-spacing: 0.5px;
}

/* =======================
   Team Image Wrapper
======================= */
.image-wrapper {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;

}

.overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--primary-red);
  background: linear-gradient(135deg, #fff5f5, #ffe0e0);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
  z-index: 10;  
}

.image-wrapper:hover .overlay {
  opacity: 1;
  transform: scale(1);
}

.plus {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-red);
  transition: opacity 0.3s ease;
}

/* =======================
   Social Icons
======================= */
.icons {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.icons a {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-red);
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

/* Cross layout */
.icons a:nth-child(1) { top: 10px; left: 50%; transform: translateX(-50%); }
.icons a:nth-child(2) { bottom: 10px; left: 50%; transform: translateX(-50%); }
.icons a:nth-child(3) { left: 10px; top: 50%; transform: translateY(-50%); }
.icons a:nth-child(4) { right: 10px; top: 50%; transform: translateY(-50%); }

.image-wrapper:hover .icons {
  opacity: 1;
}

.icons a:hover {
  background: var(--primary-red);
  color: #fff;
}


/* =======================
   Text Slide Section
======================= */
.textslide-solution {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.textsslide-hoverbox {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.hover-circle {
  width: 160px;
  height: 160px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.hover-circle:hover {
  transform: scale(1.1);
}

/* =======================
   Marquee Section
======================= */
.mycustom-marque {
  background: linear-gradient(135deg, #fff5f5, #ffe0e0);
  padding: 25px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
}

.scrolling-wrap {
  display: inline-flex;
  min-width: 200%;
  animation: scroll 15s linear infinite;
}

.comm {
  display: inline-flex;
  gap: 16px;
}

.comm span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
}

.comm span:nth-child(even) {
  color: #fff;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.meeting-card {
  background: #fff;
  border-left: 5px solid #c3323a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meeting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Wrapper */
.profile-wrapper {
  max-width: 1100px;
  padding: 20px;
  margin: 0 auto;   /* ✅ centers horizontally */
  animation: fadeInUp 1s ease both;
}

/* Profile Card Layout */
.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 35px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  border: 3px solid var(--primary-red);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 1.5s ease both;
}

.profile-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Profile Left Card */
.profile-left {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Profile Image */
.profile-left .profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
  z-index: 1;
  position: relative;
  transition: transform 0.4s ease;
  object-fit: cover !important;
  
}

.profile-left .profile-img:hover {
  transform: scale(1.05);
}

/* Name */
.profile-left .profile-name {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: black;
  z-index: 1;
  position: relative;
}

/* Role */
.profile-left .profile-role {
  font-size: 1rem;
  font-weight: 500;
  color: black;
  z-index: 1;
  position: relative;
  letter-spacing: 0.5px;
}

/* Right Section */
.profile-right h3 {
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-red);
  position: relative;
}

.profile-right h3::after {
  content: "";
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #fff5f5, #ffe0e0);
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: 3px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 25px;
  margin-top: 20px;
}

.details-grid div {
  font-size: 2rem;
  background: rgba(255,255,255,0.08);
  padding: 14px 16px;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.details-grid div:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
}

.details-grid span {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 6px;
}

/* Social */
.profile-social {
  margin-top: 35px;
  text-align: center;
}

.profile-social a {
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  line-height: 52px;
  margin: 0 12px;
  font-size: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-social a:hover {
  transform: scale(1.2) rotate(8deg);
  background: var(--primary-red);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ✅ RESPONSIVENESS */
@media (max-width: 992px) {
  .profile-card {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 25px;
  }
  .profile-right h3 {
    font-size: 1.8rem;
    text-align: center;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .profile-left .profile-img {
    width: 120px;
    height: 120px;
  }
  .profile-left .profile-name {
    font-size: 1.3rem;
  }
  .profile-left .profile-role {
    font-size: 1.3rem;
  }
  .profile-right h3 {
    font-size: 1.5rem;
  }
  .details-grid div {
    font-size: 1.5rem;
    padding: 12px;
  }
  .profile-social a {
    width: 44px;
    height: 44px;
    font-size: 18px;
    line-height: 44px;
    margin: 0 8px;
  }
}

/* =======================
   Responsive Footer
   Ensures footer content stacks and centers on small devices
   ======================= */
@media (max-width: 768px) {
  footer {
    padding: 18px 12px;
    text-align: center;
  }
  footer .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  footer .container p {
    margin: 0;
    line-height: 1.2;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  footer {
    padding: 14px 8px;
  }
  footer .container p {
    font-size: 13px;
  }
}

/* =======================
   Partners filter responsive tweaks
   Ensures filter control fits on small screens and is centered
   ======================= */
@media (max-width: 768px) {
  /* center the filter row */
  #partners .d-flex.justify-content-end.mb-4 {
    justify-content: center !important;
  }
  /* make the form take full width and stack label above the select */
  #partners .d-flex.justify-content-end.mb-4 form {
    width: 100%;
    max-width: 340px;
    padding: 0 12px;
  }
  #partners .d-flex.justify-content-end.mb-4 .d-flex.align-items-center {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  #partners label[for="sortSelect"] {
    display: block;
    margin-bottom: 4px;
  }
  #partners select.form-select {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  /* a bit tighter on very small screens */
  #partners .d-flex.justify-content-end.mb-4 form {
    max-width: 280px;
    padding: 0 8px;
  }
}

/* =======================
   Profile Page Responsiveness
   Adjusts `.profile-card` and children for tablet and mobile
   ======================= */
@media (max-width: 992px) {
  .profile-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 22px;
  }
  .profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
  }
  .profile-right {
    padding: 8px 6px;
  }
}

@media (max-width: 768px) {
  .profile-left .profile-img {
    width: 130px;
    height: 130px;
  }
  .profile-left .profile-name {
    font-size: 1.4rem;
  }
  .profile-left .profile-role {
    font-size: 1rem;
  }
  .profile-card {
    padding: 20px;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 576px) {
  .profile-left .profile-img {
    width: 110px;
    height: 110px;
  }
  .profile-card {
    padding: 16px;
    gap: 12px;
  }
  .profile-right h3 {
    font-size: 1.5rem;
    text-align: center;
  }
  .details-grid div {
    font-size: 1.4rem;
    padding: 10px;
  }
}

/* Footer responsive rules added above; tested for stacking and spacing on small screens */

/* Profile responsiveness rules added above. */

.about-us {
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  border: 3px solid var(--primary-red);
    border-radius: 20px;
}

/* Product Grid */
.product-img {
  width: 100%;             /* full width of column */
  height: 200px;           /* fixed height */
  object-fit: cover;       /* crop and cover without distortion */
  border-radius: 12px;     /* rounded corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
