/* ================= LOGO ================= */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 100px;
  max-height: 60px;
  object-fit: contain;
}

/* =====================================================
   ABOUT US – FINAL FIX (IMPORTANT OVERRIDE)
   ===================================================== */

/* Force equal height layout */
.about-grids {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* Each card behaves like a column */
.about-grid {
  display: flex !important;
  flex-direction: column !important;
}

/* Stretch content evenly */
.about-info {
  flex: 1 !important;
}

/* Force same height description text */
.about-info p {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important; /* Desktop lines */
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Mobile optimization */
@media screen and (max-width: 480px) {
  .about-info p {
    -webkit-line-clamp: 4 !important;
  }
}

/* =====================================================
   ABOUT US – IMAGE STYLING (IMPORTANT OVERRIDE)
   ===================================================== */

.about-image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Desktop */
.about-img {
  width: 200px !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 15px !important;
}

/* Tablet */
@media screen and (max-width: 991px) {
  .about-img {
    width: 160px !important;
    height: 160px !important;
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  .about-img {
    width: 130px !important;
    height: 130px !important;
  }
}

.about-desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.read-more-btn {
  padding: 0 !important;
  font-size: 14px !important;
  color: #337ab7 !important;
}

/* ================= ABOUT MODAL STYLING ================= */

.about-modal .modal-content {
  border-radius: 15px;
  overflow: hidden;
}

/* Header */
.about-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-close {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 28px;
  opacity: 1;
  color: #fff;
}

.about-close span {
  display: block;
  line-height: 1;
}

.about-modal-header h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.about-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-close {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 28px;
  opacity: 1;
  color: #000;
}

.about-close span {
  display: block;
  line-height: 1;
}

/* Body */
.about-modal-body {
  padding: 25px;
  align-items: center;
}

/* Image */
.about-modal-img {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Text */
.about-modal-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

/* Mobile */
@media (max-width: 767px) {
  .about-modal-body {
    text-align: center;
  }

  .about-modal-desc {
    margin-top: 20px;
  }
}

.stats-info .stats-grid {
  margin-bottom: 40px !important;
}

@media (max-width: 768px) {
  .stats-info .stats-grid {
    margin-bottom: 25px !important;
  }
}

/*-- Why --*/

.why {
  padding: 100px 0 !important;
}

.why h3 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 50px !important;
  text-align: center !important;
}

.why-grid {
  text-align: center !important;
  margin-bottom: 40px !important;
}

/* Image & Hover Effect */
.why-effect a {
  position: relative !important;
  display: inline-block !important;
}

.why-effect img {
  width: 150px !important;
  height: 150px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Hover circles */
.why-effect a::before,
.why-effect a::after {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 180px !important;
  height: 180px !important;
  border: 2px solid #ffeb3b !important;
  border-radius: 50% !important;
  content: "" !important;
  opacity: 0 !important;
  transition: transform 0.4s, opacity 0.4s !important;
  transform: translate(-50%, -50%) scale(0.2) !important;
}

.why-effect a::after {
  width: 165px !important;
  height: 165px !important;
  border-width: 6px !important;
  transform: translate(-50%, -50%) scale(0.8) !important;
}

.why-effect a:hover::before,
.why-effect a:hover::after {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.why-grid h4 {
  margin: 35px 0 20px !important;
}

.why-grid p {
  color: #000 !important;
  padding: 0 5px !important;
  line-height: 30px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .why-effect img {
    width: 125px !important;
    height: 125px !important;
  }

  .why-effect a::before {
    width: 150px !important;
    height: 150px !important;
  }

  .why-effect a::after {
    width: 135px !important;
    height: 135px !important;
  }
}

/*-- //Why --*/

/* ============================= */
/* MODAL BASE FOR PORTFOLIO HOME PAGE*/
/* ============================= */
#portfolioModal .modal-content {
  border-radius: 22px !important;
  border: none !important;
  overflow: hidden !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
}

/* ============================= */
/* MODAL HEADER */
/* ============================= */
#portfolioModal .modal-header {
  position: relative;
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* center title */
  padding: 18px 24px !important;
  background: linear-gradient(135deg, #3a7bd5, #6a11cb);
  border-bottom: none !important;
}

#portfolioModal .modal-title {
  margin: 0 auto !important;
  text-align: center;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

/* Close button */
#portfolioModal .close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px !important;
  opacity: 0.9 !important;
  color: #fff !important;
}

/* ============================= */
/* BODY */
/* ============================= */
#portfolioModal .modal-body {
  padding: 28px !important;
}

/* ============================= */
/* IMAGE */
/* ============================= */
#portfolioModal .text-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
}

#modalImage {
  max-height: 330px !important;
  max-width: 90% !important;
  border-radius: 18px !important;
  object-fit: cover !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.35s ease !important;
}

#modalImage:hover {
  transform: scale(1.04);
}

/* ============================= */
/* DETAILS */
/* ============================= */
.details-column {
  display: flex !important;
  align-items: flex-start !important;
}

.details-wrapper {
  width: 100% !important;
  background: #fafafa !important;
  padding: 26px !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.details-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #e5e5e5 !important;
  color: #222 !important;
}

/* ============================= */
/* DESCRIPTION */
/* ============================= */
.portfolio-details {
  font-size: 16px !important;
  color: #444 !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  padding-right: 12px !important;
  display: block !important;
}

/* ============================= */
/* BULLET LIST */
/* ============================= */
.portfolio-details ul {
  padding-left: 0 !important;
  margin-top: 16px !important;
}

/* Desktop only: 2 columns */
@media (min-width: 768px) {
  .portfolio-details ul {
    columns: 2;
    column-gap: 36px;
  }
}

.portfolio-details li {
  list-style: none !important;
  position: relative !important;
  padding-left: 32px !important;
  margin-bottom: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
  break-inside: avoid;
}

/* Check icon */
.portfolio-details li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.15em;
  color: #28a745;
  font-size: 16px;
}

/* Hover animation (desktop only) */
@media (hover: hover) {
  .portfolio-details li:hover {
    transform: translateX(4px);
    transition: 0.25s ease;
  }
}

/* ============================= */
/* SCROLLBAR */
/* ============================= */
.portfolio-details::-webkit-scrollbar {
  width: 6px;
}

.portfolio-details::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}

/* ============================= */
/* MOBILE FIXES (CRITICAL) */
/* ============================= */
@media (max-width: 767px) {
  #portfolioModal .modal-body {
    padding: 20px !important;
  }

  .details-column {
    display: block !important;
  }

  #modalImage {
    max-height: 220px !important;
    max-width: 100% !important;
  }

  .details-wrapper {
    padding: 20px !important;
    margin-top: 10px !important;
  }

  .details-title {
    font-size: 20px !important;
  }

  /* FULL reset for list */
  .portfolio-details {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .portfolio-details ul {
    columns: auto !important;
    column-count: 1 !important;
    column-gap: normal !important;
  }

  .portfolio-details li {
    transform: none !important;
    break-inside: auto !important;
  }
}

/* ============================= */
/* LARGE MODAL */
/* ============================= */
@media (min-width: 992px) {
  #portfolioModal .modal-dialog {
    max-width: 1200px !important;
    width: 90% !important;
  }
}

/* ============================= */
/* Z-INDEX */
/* ============================= */
.modal {
  z-index: 1055 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

/* ============================= */
/* DETAILS NAV MENU HIDE ON DESKTOP */
/* ============================= */

/* Hide DETAILS on desktop */
.nav-details-mobile {
  display: none !important;
}

/* Show DETAILS only on mobile */
@media (max-width: 767px) {
  .nav-details-mobile {
    display: block !important;
  }
}

.stats-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fafafa;
}

.counter {
  font-size: 36px;
  font-weight: bold;
}

.stats-suffix {
  font-size: 28px;
  font-weight: 600;
  margin-left: 4px;
}

/* Social dropdown styling */
.social-dropdown li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 15px !important;
}

.social-dropdown i {
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
}

/* Optional hover effect */
.social-dropdown li a:hover {
    background-color: #4072b9 !important;
    color: #fff !important;
}

.social-dropdown li a:hover i {
    color: #fff !important;
}

