a.header-logo-3 img,
a.header-logo-2 img,
a.header-logo img {
  width: 150px;
}

.thumb-realisations img,
.thumb.application-mobile img,
.scroll-on-hover {
  width: 100%;
  height: auto !important;
  transition: transform 8s linear;
  display: block;
}

.thumb-realisations:hover .scroll-on-hover {
  transform: translateY(calc(-100% + 360px));
}


.thumb-realisations,
.thumb-realisations {
  height: 360px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}


/* Responsive Styles */
@media (max-width: 768px) {
  .thumb-realisations {
    margin-bottom: 20px;
  }

  .thumb-realisations {
    height: 350px;
  }

  .thumb-realisations:hover .scroll-on-hover {
    transform: translateY(calc(-100% + 250px));
  }

  .universal-btn-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .universal-btn-wrapper a {
    width: 80%;
    text-align: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .thumb-realisations {
    height: 300px;
  }

  .thumb-realisations:hover .scroll-on-hover {
    transform: translateY(calc(-100% + 200px));
  }

  .ReussitesModal .modal-content {
    max-width: 95%;
  }

  .ReussitesModal .close {
    font-size: 30px;
    left: 15px;
  }
}

.service-thumb img {
  width: 100%;
  height: 170px;
}


/* Case study home design  */

.case-study-wrapper .case-study-box-items .thumb {
  position: relative;
}

.case-study-wrapper .case-study-box-items .thumb .post-box-items {
  position: absolute;
  top: 30px;
  right: 30px;
}

.case-study-wrapper .case-study-box-items .thumb .post-box-items ul {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-study-wrapper .case-study-box-items .thumb .post-box-items ul li a {
  border-radius: 33px;
  border: .5px solid var(--white);
  background: radial-gradient(258.86% 216.49% at -18.48% -74.46%, #fff6, #fff0);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  padding: 11px 15px;
  line-height: 1;
  display: inline-block;
}

.case-study-wrapper .case-study-box-items .thumb .number {
  left: 30px;
  bottom: 30px;
  position: absolute;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--header);
}

.case-study-wrapper .case-study-box-items .thumb .project-title {
  position: absolute;
  bottom: 30px;
  right: 30px;
}

/* .case-study-wrapper .case-study-box-items .thumb img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
} */

/* Modal Styles */
.ReussitesModal {
  padding-top: 15px;
  display: none;
  position: fixed;
  z-index: 1000;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.ReussitesModal .modal-content {
  width: 80%;
  height: auto;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
}

.ReussitesModal .modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  z-index: 9;
}

.ReussitesModal .close {
  position: fixed;
  left: 50px;
  top: 10px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}


@media (max-width: 480px) {
  .image-container {
    height: 200px;
  }

  .image-container:hover .scroll-on-hover {
    transform: translateY(calc(-100% + 200px));
  }

  .ReussitesModal .modal-content {
    max-width: 95%;
  }

  .ReussitesModal .close {
    font-size: 30px;
    left: 15px;
  }
}


/* ************************************  START Swipper Image style  ******************************************* */

.large-padding {
  padding: 100px 0;
  background-color: #d7e6f0;
}

@media (max-width: 768px) {
  .large-padding {
    padding: 40px 0;
  }
}

/* Swiper Container */
.swiper {
  width: 100%;
  padding: 10px 0 30px;
}

.swiper-wrapper {
  padding-bottom: 20px;
}

/* Project Card Styles */
.case-studies-section-3 .case-studies-card-items {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 30px;
  border: 1px solid #f0f0f0;
}

.case-studies-section-3 .case-studies-card-items:hover {
  box-shadow: 0 20px 40px rgba(106, 71, 237, 0.12);
  transform: translateY(-10px);
  border-color: rgba(106, 71, 237, 0.2);
}

.case-studies-section-3 .case-studies-card-items .thumb-realisations {
  height: 320px;
  border-radius: 0;
  border: none;
  box-shadow: none !important;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
}

.case-studies-section-3 .case-studies-card-items .thumb-realisations img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  transition: transform 6s linear; /* Smooth scroll on hover */
  display: block;
}

/* Fix the conflict: only scroll, no scale in section-3 if we want the scroll effect */
.case-studies-section-3 .case-studies-card-items:hover .thumb-realisations img {
  transform: translateY(calc(-100% + 320px));
}

.case-studies-section-3 .case-studies-card-items .content {
  padding: 25px 25px 30px;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: #fff;
}

.case-studies-section-3 .case-studies-card-items .content .title h3 {
  margin-bottom: 8px;
}

.case-studies-section-3 .case-studies-card-items .content .title h3 a {
  font-size: 20px;
  font-weight: 700;
  color: #17012C;
}

.case-studies-section-3 .case-studies-card-items .content .title h3 a:hover {
  color: #6A47ED;
}

.case-studies-section-3 .case-studies-card-items .content .title p {
  color: #6A47ED;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-studies-section-3 .case-studies-card-items .content .icon {
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: #f3f0ff;
  color: #6A47ED;
  text-align: center;
  border-radius: 12px;
  display: inline-block;
  transition: all 0.3s ease;
}

.case-studies-section-3 .case-studies-card-items:hover .content .icon {
  background-color: #6A47ED;
  color: #fff;
  transform: rotate(45deg);
}

/* Badge style for project */
.case-studies-card-items .project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: #6A47ED;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

/* ── Graphic Design Portfolio cards ────────────────────────── */
.graphique-portfolio .case-studies-card-items {
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(106, 71, 237, 0.10);
}

.graphique-portfolio .case-studies-card-items:hover {
  box-shadow: 0 16px 44px rgba(106, 71, 237, 0.18);
  transform: translateY(-7px);
}

.graphique-portfolio .case-studies-card-items .thumb-realisations {
  height: 240px;
  background: linear-gradient(-135deg, #f5f3ff 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.graphique-portfolio .case-studies-card-items .thumb-realisations img {
  object-fit: contain;
  padding: 28px;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.graphique-portfolio .case-studies-card-items:hover .thumb-realisations img {
  transform: scale(1.07);
}

.graphique-portfolio .case-studies-card-items .content {
  border-top: 3px solid #6A47ED;
  padding: 16px 20px 20px;
}

.graphique-portfolio .case-studies-card-items .content .title h3 a {
  font-size: 17px;
  font-weight: 700;
  color: #17012C;
}

.graphique-portfolio .case-studies-card-items .content .title h3 a:hover {
  color: #6A47ED;
}

.graphique-portfolio .case-studies-card-items .content .title p {
  color: #6A47ED;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 4px;
}

.graphique-portfolio .case-studies-card-items .content .icon {
  background-color: #6A47ED;
  flex-shrink: 0;
}

.graphique-portfolio .case-studies-card-items .content .icon:hover {
  background-color: #17012C;
}

.card-body {
  padding: 20px 10px;
}

.image-container {
  height: 360px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.scroll-on-hover {
  width: 100%;
  height: auto;
  transition: transform 8s linear;
  display: block;
}

.image-container:hover .scroll-on-hover {
  transform: translateY(calc(-100% + 360px));
}





.case-studies-card-items {
  /* height: 360px; */
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.thumb-realisations img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s linear;
  display: block;
}

.case-studies-card-items:hover .thumb-realisations img {
  transform: translateY(calc(-100% + 360px));
}

/* Swiper Pagination */
.pagination-web .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #03218f;
  opacity: 0.5;
}

.pagination-web .swiper-pagination-bullet-active {
  background: #2563eb;
  opacity: 1;
}

/* Modal Styles */
.ReussitesModal {
  padding-top: 15px;
  display: none;
  position: fixed;
  z-index: 999999;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.ReussitesModal .modal-content {
  width: 80%;
  height: auto;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
}

.ReussitesModal .modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.ReussitesModal .close {
  position: fixed;
  left: 50px;
  top: 10px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .thumb-realisations {
    margin-bottom: 20px;
  }

  .image-container {
    height: 250px;
  }

  .image-container:hover .scroll-on-hover {
    transform: translateY(calc(-100% + 250px));
  }

  .universal-btn-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .universal-btn-wrapper a {
    width: 80%;
    text-align: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .image-container {
    height: 200px;
  }

  .image-container:hover .scroll-on-hover {
    transform: translateY(calc(-100% + 200px));
  }

  .ReussitesModal .modal-content {
    max-width: 95%;
  }

  .ReussitesModal .close {
    font-size: 30px;
    left: 15px;
  }
}

/* Button Styles */
.universal-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.crumina-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button--dark {
  background-color: #2d3748;
  color: white;
  border: 2px solid #2d3748;
}

.button--dark:hover {
  background-color: transparent;
  color: #2d3748;
}

.button--primary {
  background-color: #2563eb;
  color: white;
  border: 2px solid #2563eb;
}

.button--primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.button--bordered {
  background-color: transparent;
}

.button--l {
  font-size: 1.1rem;
}



.fw-bold {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #2d2b6d;
}



/* Modern Service Card Styles */
.service-card-modern {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #0066cc;
    transition: all 0.4s ease;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.1);
}

.service-card-modern:hover::before {
    width: 100%;
    opacity: 0.03;
}

.service-card-modern .content {
    position: relative;
    z-index: 2;
}

.service-card-modern h4 {
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 1.4;
}

.service-card-modern h4 a {
    color: inherit;
    transition: color 0.3s ease;
}

.service-card-modern h4 a:hover {
    color: #0066cc;
}

.service-card-modern p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-card-modern .link-btn {
    font-weight: 600;
    color: #0066cc;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}

.service-card-modern:hover .link-btn {
    gap: 15px;
}

/* ************************************  END Swipper Image style  ******************************************* */

/* Recent Posts Sidebar Widget Fix */
.main-sidebar .single-sidebar-widget .recent-post-area .recent-items .recent-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.main-sidebar .single-sidebar-widget .recent-post-area .recent-items .recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blog Grid Image Uniformity */
.news-box-items .news-image {
  height: 220px;
  overflow: hidden;
}

.news-box-items .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Premium Project Cards ──────────────────────────────────── */
.content-inner {
  padding: 80px 0;
  background: #f8f8f8;
}

.content-inner .section-head.style-1 {
  margin-bottom: 56px;
}

.content-inner .section-head .title {
  font-size: 30px;
  font-weight: 700;
  color: #17012C;
  margin-bottom: 14px;
}

.content-inner .section-head p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.dz-separator.style-1 {
  width: 56px;
  height: 3px;
  background-color: #6A47ED;
  border: none;
  margin: 14px auto 18px;
  border-radius: 2px;
}

.premium-project-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  margin-bottom: 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.premium-project-card:hover {
  box-shadow: 0 12px 40px rgba(106, 71, 237, 0.13);
  transform: translateY(-4px);
}

.project-number {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: #6A47ED;
  opacity: 0.15;
  margin-bottom: 6px;
}

.project-info .title {
  font-size: 22px;
  font-weight: 700;
  color: #6A47ED !important;
  margin-bottom: 12px;
}

.project-info .description {
  color: #555;
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 15px;
}

.deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deliverables li {
  padding: 5px 0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.deliverables li i {
  color: #6A47ED;
  margin-left: 8px;
}

.project-visuals {
  display: grid;
  grid-template-columns: 55% 1fr;
  grid-template-rows: 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 300px;
}

.project-visuals.equal-visuals {
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
}

.project-visuals.equal-visuals-3 {
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 240px;
}

.project-visuals.equal-visuals-3 .visual-box img {
  object-fit: contain;
  padding: 14px;
}

.project-visuals .main-visual {
  height: 100%;
}

.project-visuals .side-visuals {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.project-visuals .side-visuals .visual-box {
  flex: 1;
}

.visual-box {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.visual-box:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
  transform: translateY(-3px);
}

.visual-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
  transition: transform 0.4s ease;
}

.project-visuals.equal-visuals .visual-box img {
  object-fit: cover;
  padding: 0;
}

.visual-box:hover img {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .premium-project-card {
    padding: 28px 20px;
  }

  .project-info {
    margin-bottom: 24px;
  }

  .project-visuals,
  .project-visuals.equal-visuals {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .project-visuals,
  .project-visuals.equal-visuals {
    grid-template-columns: 1fr;
  }

  .content-inner {
    padding: 48px 0;
  }
}

/* Mega Menu Custom Styles */
.header-main .main-menu ul li .submenu.mega {
    display: flex !important;
    flex-direction: row !important;
    width: 1140px !important;
    right: 50% !important;
    transform: translateX(50%) translateY(20px) !important;
    padding: 30px 20px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15) !important;
}

.header-main .main-menu ul li .submenu.mega .row {
    width: 25% !important;
    padding: 0 15px !important;
    display: flex !important;
    flex-direction: column !important;
    border-left: 1px solid #f0f0f0;
}

.header-main .main-menu ul li .submenu.mega .row:last-child {
    border-left: none;
}

.mega-menu-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #17012C !important;
    margin-bottom: 5px !important;
    display: block !important;
    line-height: 1.2 !important;
}

.mega-menu-subtitle {
    font-size: 13px !important;
    color: #6A47ED !important;
    margin-bottom: 20px !important;
    display: block !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    height: 36px;
}

.mega-menu-column ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    
}

.mega-menu-column ul li {
    margin-bottom: 10px !important;
    
}

.mega-menu-column ul li a {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #444 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    display: inline-block !important;
}

.mega-menu-column ul li a:hover {
    color: #6A47ED !important;
    padding-right: 5px !important;
}

@media (max-width: 1200px) {
    .header-main .main-menu ul li .submenu.mega {
        width: 95vw !important;
    }
}

@media (max-width: 991px) {
    .header-main .main-menu ul li .submenu.mega {
        flex-direction: column !important;
        width: 100% !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 15px !important;
    }
    .header-main .main-menu ul li .submenu.mega .row {
        width: 100% !important;
        border-left: none !important;
        border-bottom: 1px solid #f0f0f0;
        padding: 15px 0 !important;
    }
}



/* start icon-item in section service */

.icon-item.wow.fadeInUp {
  display: flex;
  gap: 20px;
  margin-block: 16px;
  align-items: center;
}

/* end icon-item in section service */


section.cta-counter-section-2.section-padding.bg-cover {
  background-image: url(assets/img/cta-counter-bg.jpg);
  height: 480px;
  padding-bottom: 237px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* mobile */
@media (max-width: 991px) {
  section.cta-counter-section-2.section-padding.bg-cover {
    height: 750px !important;
  }

  .icon-items {
    width: 100% !important;
  }
}


/* Portfolio Cards Premium Design */
.portfolio-section {
  position: relative;
}

.portfolio-card {
  background: #fff;
  border-radius: 16px;
  padding: 60px 50px;
  margin-bottom: 50px;
  position: relative;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.portfolio-badge {
  position: absolute;
  top: -20px;
  right: 50px;
  font-size: 64px;
  font-weight: 700;
  color: #f0f0f0;
  z-index: 1;
  opacity: 0.5;
  font-family: 'Poppins', sans-serif;
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.portfolio-main-image {
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
}

.portfolio-main-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-main-image img {
  transform: scale(1.05);
}

.portfolio-thumbnails {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.portfolio-thumbnail {
  flex: 0 0 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-thumbnail:hover {
  border-color: #6a47ed;
  transform: scale(1.05);
}

.portfolio-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-details h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.portfolio-details>p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 35px;
}

.deliverables {
  margin-bottom: 35px;
}

.deliverables h5 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6a47ed;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checklist li {
  font-size: 15px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist li i {
  color: #6a47ed;
  font-size: 14px;
  flex-shrink: 0;
}

.portfolio-details .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #6a47ed;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.portfolio-details .link-btn:hover {
  color: #5738d1;
  border-bottom-color: #6a47ed;
  gap: 12px;
}

.portfolio-details .link-btn i {
  transition: transform 0.3s ease;
}

.portfolio-details .link-btn:hover i {
  transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .portfolio-card {
    padding: 40px;
  }

  .portfolio-badge {
    font-size: 48px;
    top: -15px;
    right: 30px;
  }

  .portfolio-details h3 {
    font-size: 26px;
  }

  .portfolio-image {
    min-height: 280px;
  }

  .portfolio-thumbnails {
    gap: 10px;
  }

  .portfolio-thumbnail {
    flex: 0 0 100px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .portfolio-card {
    padding: 30px;
  }

  .portfolio-badge {
    font-size: 36px;
    top: -10px;
    right: 20px;
  }

  .portfolio-image {
    min-height: 250px;
    margin-bottom: 20px;
  }

  .portfolio-details h3 {
    font-size: 22px;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .portfolio-thumbnails {
    gap: 8px;
  }

  .portfolio-thumbnail {
    flex: 0 0 80px;
    height: 60px;
  }
}

/* Gallery Section Styling */
.gallery-section {
  background: #f9f9f9;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
}

.gallery-item:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
  border-color: #6a47ed;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* conception graphique style */
/* Enhanced Atterra Project Styling */
.portfolio-card-atterra {
  background: linear-gradient(-135deg, #fff 0%, #f8f9ff 100%);
  border: 2px solid #e8e8f5 !important;
}

.portfolio-card-atterra:hover {
  border-color: #6a47ed !important;
  box-shadow: 0 15px 50px rgba(106, 71, 237, 0.15) !important;
}

.atterra-image {
  background: linear-gradient(-135deg, #f5f7ff 0%, #fff 100%);
  border-radius: 16px;
}

.atterra-details h3 {
  background: linear-gradient(-135deg, #1a1a1a 0%, #6a47ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.atterra-details .project-category {
  display: inline-block;
  background: linear-gradient(-135deg, #6a47ed 0%, #5738d1 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.thumbnail-large {
  flex: 0 0 140px !important;
  height: 90px !important;
}

.thumbnails-showcase {
  gap: 20px !important;
}

/* Enhanced LA Bahia Project Styling */
.portfolio-card-labahia {
  background: linear-gradient(-135deg, #fff 0%, #fffbf5 100%);
  border: 2px solid #f0e8e0 !important;
}

.portfolio-card-labahia:hover {
  border-color: #6a47ed !important;
  box-shadow: 0 15px 50px rgba(106, 71, 237, 0.12) !important;
}

/* .labahia-image {
  background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
  border-radius: 16px;
} */

/* Enhanced Gallery Cards with Overlay */
.gallery-clickable {
  cursor: pointer;
  position: relative;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(106, 71, 237, 0.8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 32px;
  color: #fff;
  z-index: 5;
}

.gallery-clickable:hover .gallery-item-overlay {
  opacity: 1;
}

/* Gallery Modal Styles */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #6a47ed;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-modal-close:hover {
  background: #5738d1;
  transform: rotate(-90deg);
}

.gallery-modal-header {
  padding: 30px;
  border-bottom: 2px solid #f0f0f0;
  text-align: center;
}

.gallery-modal-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.gallery-modal-body {
  padding: 40px;
}

.gallery-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.gallery-main-image {
  width: 100%;
  height: 400px;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.gallery-thumbnails-showcase {
  position: relative;
}

.thumbnails-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
}

.thumbnails-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background: #6a47ed;
  border-radius: 10px;
}

.gallery-thumbnail-item {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid #e8e8e8;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumbnail-item:hover {
  border-color: #6a47ed;
  transform: scale(1.1);
}

.gallery-thumbnail-item.active {
  border-color: #6a47ed;
  box-shadow: 0 0 15px rgba(106, 71, 237, 0.3);
}

.gallery-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #6a47ed;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.thumb-nav:hover {
  background: #5738d1;
  transform: translateY(-50%) scale(1.1);
}

.thumb-nav.prev {
  right: -60px;
}

.thumb-nav.next {
  left: -60px;
}

/* Responsive Gallery Modal */
@media (max-width: 768px) {
  .gallery-modal-body {
    padding: 20px;
  }

  .gallery-main-image {
    height: 300px;
  }

  .gallery-modal-close {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .thumb-nav {
    position: static;
    width: 36px;
    height: 36px;
    transform: none !important;
    margin: 0 5px;
  }

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

  .gallery-thumbnails-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .thumbnails-container {
    max-width: calc(100% - 100px);
  }
}

/* ===== DESIGN SYSTEM & GLOBAL STYLES ===== */
:root {
  --primary: #6A47ED;
  --primary-dark: #4F2DD6;
  --primary-light: #F5F2FF;
  --text-primary: #1A1A2E;
  --text-secondary: #666666;
  --bg-light: #F8F9FB;
  --border-color: #E5E7EB;
  --accent-teal: #00D4AA;
  --accent-gold: #FFB84D;
}

html {
  scroll-behavior: smooth;
}

* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HERO SECTION REDESIGN ===== */
.hero-section-redesigned {
  min-height: 100vh;
  background: linear-gradient(-135deg, #FFFFFF 0%, #F5F2FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.hero-floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: #6A47ED;
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: #00D4AA;
  bottom: 50px;
  right: -100px;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(-5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-subheading {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.btn-primary-hero {
  background: linear-gradient(-135deg, #6A47ED 0%, #4F2DD6 100%);
  color: #FFFFFF;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(106, 71, 237, 0.4);
}

.btn-secondary-hero {
  background: transparent;
  color: var(--primary);
  padding: 16px 40px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.btn-secondary-hero:hover {
  background: var(--primary-light);
}

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-visual-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(106, 71, 237, 0.2);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== CASE STUDY ENHANCEMENTS ===== */
.portfolio-card {
  background: linear-gradient(-135deg, #FFFFFF 0%, #F5F2FF 100%);
  border: 2px solid rgba(106, 71, 237, 0.15);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  margin-bottom: 64px;
  transition: all 0.3s ease;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(106, 71, 237, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.portfolio-card:hover {
  border-color: rgba(106, 71, 237, 0.3);
  box-shadow: 0 20px 60px rgba(106, 71, 237, 0.15);
  transform: translateY(-8px);
}

.portfolio-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(106, 71, 237, 0.1);
  z-index: 1;
}

.case-study-objective,
.case-study-results {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-right: 4px solid var(--primary);
  border-radius: 8px;
}

.case-study-objective h5,
.case-study-results h5 {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.case-study-objective p,
.case-study-results p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.portfolio-image {
  transition: transform 0.4s ease;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.02);
}

/* ===== GALLERY IMPROVEMENTS ===== */
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #F8F9FB;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(-135deg, rgba(106, 71, 237, 0.85) 0%, rgba(79, 45, 214, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-item:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(106, 71, 237, 0.2);
  transform: translateY(-12px) scale(1.02);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.3);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  gap: 12px;
}

.gallery-item-overlay i {
  font-size: 32px;
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay i {
  opacity: 1;
  transform: scale(1);
}

.gallery-item-overlay span {
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay span {
  opacity: 1;
  transform: scale(1);
}

.gallery-item-label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-align: center;
  z-index: 4;
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICES/BENEFITS IMPROVEMENTS ===== */
.benefit-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease forwards;
}

.benefit-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(-135deg, #6A47ED 0%, #4F2DD6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 28px;
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1) rotateZ(-10deg);
  box-shadow: 0 12px 30px rgba(106, 71, 237, 0.3);
}

.benefit-content h4 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
}

.benefit-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PRICING SECTION IMPROVEMENTS ===== */
.pricing-card {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-popular {
  border: 2px solid var(--primary);
  background: linear-gradient(-135deg, #FFFFFF 0%, #F5F2FF 100%);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(-135deg, #6A47ED 0%, #4F2DD6 100%);
  color: #FFFFFF;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 24px 60px rgba(106, 71, 237, 0.15);
  transform: translateY(-12px);
}

.pricing-tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 1.25rem;
}

.pricing-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.pricing-cta button {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pricing-cta .btn-primary {
  background: linear-gradient(-135deg, #6A47ED 0%, #4F2DD6 100%);
  color: #FFFFFF;
}

.pricing-cta .btn-primary:hover {
  box-shadow: 0 8px 20px rgba(106, 71, 237, 0.3);
}

.pricing-cta .btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.pricing-cta .btn-secondary:hover {
  background: var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .hero-section-redesigned {
    min-height: auto;
    padding: 40px 24px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-card {
    padding: 24px;
  }

  .benefit-item {
    gap: 16px;
  }

  .benefit-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

/* Fix for mega menu columns on mobile */
@media (max-width: 1199px) {
    .submenu.mega, 
    .mean-container .mean-nav ul li .submenu.mega,
    .offcanvas__menu ul li .submenu.mega {
        flex-direction: column !important;
    }
    .submenu.mega div.row, 
    .mean-container .mean-nav ul li .submenu.mega div.row,
    .offcanvas__menu ul li .submenu.mega div.row {
        width: 100% !important;
        flex-direction: column !important;
        margin: 0 !important;
    }
    .submenu.mega div.row .mega-menu-column {
        width: 100% !important;
        padding: 0 !important;
    }
}





/* Unflip breadcrumb images so they align with edges properly */
.breadcrumb-wrapper .left-shape img, 
.breadcrumb-wrapper .right-shape img {
    transform: scaleX(-1) !important;
}



/* Fix floating shapes in about section RTL conflicts */
.about-image .box-shape,
.about-image .gap-shape,
.about-image .circle-button {
    right: auto !important;
}



/* Fix flipped logo in testimonial section */
.testimonial-wrapper .testimonial-left .client-img img {
    transform: scaleX(1) !important;
}

/* Flip the CTA Rocket and Guy horizontally in Arabic */
[dir="rtl"] .cta-section .rokect-shape img,
[dir="rtl"] .cta-section .img-custom-anim-left img {
    transform: scaleX(-1);
}

/* Flip the CTA background image in Arabic */
[dir="rtl"] .cta-section .cta-wrapper.bg-cover {
    background-image: url("../img/cta-bg-rtl.jpg") !important;
}
