/* ============================================
   Custom Styles for Lorven Vista
   Global Variables & Font Overrides
   ============================================ */

:root {
  --_font-default: "Plus Jakarta Sans", sans-serif !important;
  --_font-accent: "Plus Jakarta Sans", sans-serif !important;
}

/* Hero Section - Forma Image Block
   ============================================ */

/* Hero Image Block Container - Perfect Centering */
.mxd-hero-04__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mxd-hero-04__imageblock {
  /* Light mode: Soft neutral background */
  background: rgba(237, 235, 245, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(159, 139, 231, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease;
  
  /* Flexbox for proper centering - Perfect alignment */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  padding: 2.5rem 2rem;
  min-height: 400px;
  
  /* Perfect centering - no skewing */
  margin: 0 auto;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  
  /* Rounded corners - non-angular appearance (soft, rounded frame) */
  /* Large border-radius creates smooth, pill-shaped container */
  border-radius: 3.5rem;
  -webkit-border-radius: 3.5rem;
  -moz-border-radius: 3.5rem;
}

/* Dark mode: Pure black and white theme */
[color-scheme="dark"] .mxd-hero-04__imageblock {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Forma Image - Static, Larger, and Perfectly Centered (SVG Optimized) */
/* Image fully visible with proper centering */
.mxd-hero-04__imageblock img {
  width: 100% !important;
  max-width: 450px !important;
  height: auto !important;
  transform: none !important;
  animation: none !important;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center center;
  /* SVG specific optimizations */
  max-height: 900px !important;
  /* Ensure full image visibility including right arm */
}

/* Text below forma - Corporate product title with trademark */
.mxd-hero-04__imageblock p.product-title {
  color: var(--st-bright);
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  line-height: 1.6;
  margin-top: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

/* Product name - Main title */
.mxd-hero-04__imageblock p.product-title .product-name {
  display: inline-block;
  font-weight: var(--fw-semibold);
  margin-right: 0.25rem;
}

/* Registered trademark symbol */
.mxd-hero-04__imageblock p.product-title .product-trademark {
  display: inline-block;
  font-size: 0.7em;
  vertical-align: super;
  font-weight: var(--fw-bold);
  margin-left: 0.15rem;
  margin-right: 0.5rem;
  opacity: 0.8;
}

/* Copyright text */
.mxd-hero-04__imageblock p.product-title .product-copyright {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  margin-top: 0.35rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
  font-style: italic;
}

/* Dark mode text color - Pure white for high contrast */
[color-scheme="dark"] .mxd-hero-04__imageblock p.product-title {
  color: #FFFFFF;
}

/* ============================================
   Work Details Page Design
   ============================================ */

.work-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 3rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 5rem;
  margin-bottom: 4rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.work-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.work-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
}

.work-hero__title {
  color: #fff !important;
  font-size: clamp(3rem, 6vw, 5.5rem) !important;
  font-weight: 800 !important;
  margin-bottom: 2rem !important;
  letter-spacing: -0.02em;
  line-height: 1;
}

.work-hero__tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.work-hero__tags span {
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  transition: all 0.3s ease;
}

.work-hero__tags span:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Work Stats/Features */
.work-about__section {
  padding: 4rem 0;
}

.work-info-card {
  background: rgba(120, 120, 120, 0.05);
  padding: 3rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(120, 120, 120, 0.1);
  height: 100%;
}

[color-scheme="dark"] .work-info-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.work-feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.work-feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.work-feature-list li i {
  color: #9f8be7;
  font-size: 1.4rem;
}

/* Preview Slider - Above Hero Section */
.work-preview-slider__container {
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
}

.work-preview-slider .swiper-slide {
  opacity: 0.5;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: scale(0.9);
}

.work-preview-slider .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.work-preview-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.work-preview-slide img {
  width: 100%;
  height: auto;
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  object-fit: cover;
  display: block;
}

/* Desktop/Mobile Image Classes */
.work-preview-slide img.mobile {
  display: none;
}

.work-preview-slide img.desktop {
  display: block;
}

@media only screen and (max-width: 767px) {
  .work-preview-slide img.mobile {
    display: block;
  }
  
  .work-preview-slide img.desktop {
    display: none;
  }
}

.work-preview-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

/* Gallery Grid Customization */
.work-slider-wrap {
  position: relative;
  padding: 4rem 0 15rem;
  margin-bottom: 0;
}

.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  width: 100%;
}

.gallery-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  aspect-ratio: 4/3;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-grid-item:hover {
  transform: translateY(-8px);
}

.gallery-grid-item .gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2.5rem;
}

.gallery-grid-item .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

@media only screen and (max-width: 991px) {
  .work-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

@media only screen and (max-width: 767px) {
  .work-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid-item {
    aspect-ratio: 16/10;
  }
}

.work-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 4rem;
}

.slider-nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--st-bright);
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.slider-nav-btn:hover {
  background: var(--st-base);
  color: white;
  border-color: var(--st-base);
  transform: translateY(-3px);
}

@media only screen and (max-width: 991px) {
  .work-hero {
    height: 35vh;
    min-height: 200px;
    padding: 3rem;
  }
}

@media only screen and (max-width: 767px) {
  .work-hero {
    height: 40vh;
    min-height: 200px;
    padding: 2.5rem;
    align-items: flex-end;
    text-align: left;
  }
  .work-hero__title {
    font-size: 2.5rem !important;
  }
  .work-hero__tags {
    justify-content: flex-start;
  }
  .work-info-card {
    padding: 2rem;
  }
}


[color-scheme="dark"] .mxd-hero-04__imageblock p.product-title .product-trademark {
  opacity: 0.9;
}

[color-scheme="dark"] .mxd-hero-04__imageblock p.product-title .product-copyright {
  opacity: 0.8;
}

/* Button positioning */
.mxd-hero-04__imageblock .hero-04-imageblock__btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

/* Responsive adjustments */
@media only screen and (max-width: 1200px) {
  .mxd-hero-04__imageblock {
    min-height: 350px;
    padding: 1.5rem 1rem;
  }
  
  .mxd-hero-04__imageblock {
    padding: 2rem 1.75rem;
  }
  
  .mxd-hero-04__imageblock img {
    width: 100% !important;
    max-width: 400px !important;
    max-height: 800px !important;
    transform: none !important;
  }
  
  .mxd-hero-04__imageblock p.product-title {
    font-size: 1.1rem;
  }
  
  .mxd-hero-04__imageblock p.product-title .product-copyright {
    font-size: 0.7rem;
  }
  
  .mxd-hero-04__aboutblock p {
    font-size: 1.1rem;
  }
}

@media only screen and (max-width: 768px) {
  .mxd-hero-04__imageblock {
    min-height: 300px;
    padding: 1rem 0.75rem;
  }
  
  .mxd-hero-04__imageblock {
    padding: 1.5rem 1.5rem;
  }
  
  .mxd-hero-04__imageblock img {
    width: 100% !important;
    max-width: 350px !important;
    max-height: 700px !important;
    transform: none !important;
  }
  
  .mxd-hero-04__imageblock p.product-title {
    font-size: 1rem;
    margin-top: 1rem;
    font-family: var(--_font-default);
    font-weight: var(--fw-semibold);
  }
  
  .mxd-hero-04__imageblock p.product-title .product-copyright {
    font-size: 0.65rem;
    margin-top: 0.3rem;
  }
  
  .mxd-hero-04__aboutblock p {
    font-size: 1.05rem;
  }
}

@media only screen and (max-width: 480px) {
  .mxd-hero-04__imageblock {
    min-height: 250px;
    padding: 0.75rem 0.5rem;
  }
  
  .mxd-hero-04__imageblock {
    padding: 1.25rem 1.25rem;
  }
  
  .mxd-hero-04__imageblock img {
    width: 100% !important;
    max-width: 300px !important;
    max-height: 600px !important;
    transform: none !important;
  }
  
  .mxd-hero-04__imageblock p.product-title {
    font-size: 0.95rem;
  }
  
  .mxd-hero-04__imageblock p.product-title .product-copyright {
    font-size: 0.6rem;
    margin-top: 0.25rem;
  }
  
  .mxd-hero-04__aboutblock p {
    font-size: 1rem;
  }
}

/* ============================================
   Team Logos Section - Avatars Replacement
   ============================================ */

/* Team Logos Container - Perfect Circle, Side by Side */
.mxd-avatars {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.mxd-avatars__item {
  flex-shrink: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Perfect Circle Team Logos */
.mxd-avatars__item.team-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mxd-avatars__item.team-logo:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.mxd-avatars__item.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* Dark mode team logo border */
[color-scheme="dark"] .mxd-avatars__item.team-logo {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--base-opp);
}

/* Remove overlap - ensure perfect side by side with gap */
.mxd-avatars__item.team-logo {
  position: relative;
  z-index: 1;
}

.mxd-avatars__item.team-logo:nth-child(2) {
  z-index: 2;
}

.mxd-avatars__item.team-logo:nth-child(3) {
  z-index: 3;
}

.mxd-avatars__item.team-logo:nth-child(4) {
  z-index: 4;
}

/* Responsive team logos */
@media only screen and (max-width: 768px) {
  .mxd-avatars__item.team-logo {
    width: 50px;
    height: 50px;
  }
  
  .mxd-avatars {
    gap: 0.25rem;
  }
}

/* ============================================
   Header Logo Centering
   ============================================ */

/* Center the header logo horizontally */
.mxd-header {
  position: relative;
}

/* Header logo - Left aligned (original layout restored) */
/* Removed centering to restore original header layout */

/* ============================================
   Hero About Block - Corporate Styling
   ============================================ */

/* Corporate About Block - Professional Color Scheme */
.mxd-hero-04__aboutblock {
  /* Light mode: Professional blue-gray background */
  background: rgba(159, 139, 231, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(159, 139, 231, 0.2);
  border-radius: var(--_radius-m);
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Dark mode: Pure black and white theme */
[color-scheme="dark"] .mxd-hero-04__aboutblock {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Corporate text styling - Site font compatibility, Larger size */
.mxd-hero-04__aboutblock p {
  color: var(--st-bright);
  font-family: var(--_font-default);
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: var(--fw-regular);
  margin: 0;
  text-align: left;
}

/* Dark mode text - Pure white for high contrast */
[color-scheme="dark"] .mxd-hero-04__aboutblock p {
  color: #FFFFFF;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
  .mxd-hero-04__aboutblock {
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
  }
  
  .mxd-hero-04__aboutblock p {
    font-size: 0.95rem;
    text-align: center;
    font-family: var(--_font-default);
    font-weight: var(--fw-regular);
  }
}

@media only screen and (max-width: 480px) {
  .mxd-hero-04__aboutblock {
    padding: 1rem 1.25rem;
  }
  
  .mxd-hero-04__aboutblock p {
    font-size: 0.9rem;
    font-family: var(--_font-default);
    font-weight: var(--fw-regular);
  }
}

/* ============================================
   Marquee - Continuous Scroll without gaps
   ============================================ */

/* Ensure marquee fills full width and has no gaps */
.hero-04-marquee {
  width: 100%;
  overflow: hidden;
}

.hero-04-marquee .marquee {
  width: 100%;
}

.hero-04-marquee .marquee-flex {
  display: flex;
  gap: 0;
  width: max-content;
  /* Slow down the marquee animation */
  animation-duration: 60s !important;
}

.hero-04-marquee .marquee__item {
  flex-shrink: 0;
  padding: 0 1.5rem;
}

/* Remove extra spacing between items */
.hero-04-marquee .marquee__item.text {
  white-space: nowrap;
}

/* Slow down GSAP marquee - override default speed */
.marquee-right--gsap .marquee__toright {
  animation-duration: 50s !important;
}

/* ============================================
   Text Selection Color - Black instead of Purple
   ============================================ */

/* Override text selection color to black */
::selection {
  background-color: #000000;
  color: #FFFFFF;
}

::-moz-selection {
  background-color: #000000;
  color: #FFFFFF;
}

/* ============================================
   Mobile Hero Section Optimization
   ============================================ */

@media only screen and (max-width: 768px) {
  /* Move content up - reduce top padding */
  .mxd-hero-section {
    padding-top: 1rem !important;
  }
  
  .mxd-hero-04__wrap {
    padding-top: 0.5rem !important;
  }
  
  /* Center team logos on mobile */
  .hero-04-headline__avatars {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .mxd-avatars-group {
    justify-content: center;
    width: 100%;
  }
  
  .mxd-avatars {
    justify-content: center !important;
  }
  
  /* Reduce spacing between elements */
  .mxd-hero-04__headline {
    margin-bottom: 0.5rem !important;
  }
  
  .hero-04-title {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Reduce hero title line height for tighter layout */
  .hero-04-title .hero-04-title__row {
    margin-bottom: 0 !important;
    line-height: 1.1 !important;
  }
  
  /* Reduce spacing in description lists */
  .mxd-hero-04__descr {
    margin-top: 0.5rem !important;
  }
  
  .mxd-paragraph__lists ul {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
  }
  
  .mxd-paragraph__lists ul li {
    margin-bottom: 0.25rem !important;
  }
}

@media only screen and (max-width: 480px) {
  /* Even tighter on small mobile */
  .mxd-hero-section {
    padding-top: 0.5rem !important;
  }
  
  .hero-04-title .hero-04-title__row {
    line-height: 1.05 !important;
  }
}

/* ============================================
   Services Section Enhancements
   ============================================ */

/* Redefine glass-text to be a seamless overlay instead of boxes */
.glass-text {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin-left: 0 !important;
  border-radius: 0 !important;
  z-index: 5;
  position: relative;
  width: 100%;
}

.mxd-services-cards__title.glass-text {
  margin-bottom: 20px;
}

/* Base card inner setup for seamless blur */
.mxd-services-cards__inner {
  position: relative;
  overflow: hidden;
}

/* Seamless blurring overlay on the left side */
.mxd-services-cards__inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70%; /* Covers the text area */
  height: 100%;
  z-index: 2;
  pointer-events: none;
  
  /* The Blur */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  /* Mask to fade out the blur smoothly to the right */
  mask-image: linear-gradient(90deg, black 25%, rgba(0,0,0,0.8) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, black 25%, rgba(0,0,0,0.8) 45%, transparent 100%);
}

.full-card-image {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  opacity: 0.8; /* Higher visibility since we have a better overlay */
}

.full-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Gradient overlay - integrated with blur for perfect transition */
.full-card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 13, 13, 1) 15%, rgba(13, 13, 13, 0.4) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Dark Mode Specific Fixes for Services Section */
[color-scheme="dark"] .mxd-services-cards__inner {
  background-color: #0d0d0d !important; /* Deep black to match site theme */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border for definition */
}

/* Ensure text remains crisp and light in dark mode for services cards */
[color-scheme="dark"] .mxd-services-cards__inner .opposite,
[color-scheme="dark"] .mxd-services-cards__inner .t-opposite,
[color-scheme="dark"] .mxd-services-cards__inner .mxd-services-cards__title p {
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Better readability over images */
}

[color-scheme="dark"] .mxd-services-cards__inner .tag-outline-opposite {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Improve the "milky" blur in dark mode */
[color-scheme="dark"] .mxd-services-cards__inner::after {
  background: rgba(13, 13, 13, 0.2); /* Tint the blur slightly dark */
  mask-image: linear-gradient(90deg, black 30%, rgba(0,0,0,0.8) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, black 30%, rgba(0,0,0,0.8) 50%, transparent 100%);
}

/* Add a subtle hover effect for better interactivity in dark mode */
[color-scheme="dark"] .mxd-services-cards__inner:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   CTA (Promo) Section Customization
   ============================================ */

.mxd-promo__inner {
  background-color: #000000 !important;
  overflow: hidden;
}

.mxd-promo__bg {
  filter: grayscale(100%) brightness(0.6);
  transition: transform 0.5s ease;
  z-index: 1;
}

.mxd-promo__inner:hover .mxd-promo__bg {
  transform: scale(1.05);
}

.mxd-promo__content {
  position: relative;
  z-index: 2; /* Ensure text is above background image */
}

/* Adjust button colors to match corporate theme (neutral) */
.mxd-promo__controls .btn-base {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border: none !important;
}

.mxd-promo__controls .btn-base:hover {
  background-color: #F0F0F0 !important;
}

/* ============================================
   Services Logo Styling
   ============================================ */

.services-logo {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.services-logo img {
  max-width: 350px;
  width: 100%;
  height: auto;
  display: block;
}

@media only screen and (max-width: 991px) {
  .services-logo {
    margin-top: 2rem;
  }
  
  .services-logo img {
    max-width: 280px;
  }
}

@media only screen and (max-width: 767px) {
  .services-logo {
    margin-top: 1.5rem;
  }
  
  .services-logo img {
    max-width: 220px;
  }
}

/* ============================================
   Lightbox Modal Styles
   ============================================ */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 10000;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  line-height: 1;
  padding: 0;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  z-index: 10001;
}

@media only screen and (max-width: 991px) {
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: 10px;
  }
}

/* ============================================
   Powered By Section - Footer
   ============================================ */

.mxd-footer__powered-by {
  padding: 2rem 0;
  margin-top: 3rem;
  background: transparent;
  overflow: visible;
}

[color-scheme="dark"] .mxd-footer__powered-by {
  background: transparent;
}

.powered-by-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: #FFFFFF;
  padding: 1.5rem 2.5rem;
  border-radius: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

[color-scheme="dark"] .powered-by-content {
  background: #1C1C1C;
  border-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.powered-by-content:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

[color-scheme="dark"] .powered-by-content:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.powered-by-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--_font-accent);
  font-size: 1rem;
  color: var(--st-medium);
  font-weight: var(--fw-regular);
  letter-spacing: 0.02em;
}

.powered-by-text span {
  opacity: 0.6;
  font-weight: var(--fw-medium);
}

.powered-by-text strong {
  font-family: var(--_font-accent);
  font-weight: var(--fw-bold);
  color: var(--st-bright);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[color-scheme="dark"] .powered-by-text {
  color: rgba(255, 255, 255, 0.7);
}

[color-scheme="dark"] .powered-by-text strong {
  color: #FFFFFF;
}

.powered-by-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.powered-by-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

@media only screen and (max-width: 767px) {
  .powered-by-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-radius: 2rem;
    overflow: hidden;
  }
  
  .powered-by-text {
    font-size: 0.9rem;
  }
  
  .powered-by-text strong {
    font-size: 1rem;
  }
  
  .powered-by-image {
    width: 35px;
    height: 35px;
  }
}

/* ============================================
   About Us & Contact Page Styles
   ============================================ */

.about-hero-content,
.about-hero-image {
  padding: 2rem 0;
}

.value-card {
  padding: 2rem 1.5rem;
  background: rgba(120, 120, 120, 0.03);
  border-radius: 2rem;
  border: 1px solid rgba(120, 120, 120, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.value-card:hover {
  background: rgba(120, 120, 120, 0.05);
  border-color: rgba(120, 120, 120, 0.15);
  transform: translateY(-5px);
}

[color-scheme="dark"] .value-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

[color-scheme="dark"] .value-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.process-step {
  padding: 1.5rem 0;
}

.contact-form-wrapper {
  background: rgba(120, 120, 120, 0.03);
  padding: 3rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(120, 120, 120, 0.08);
}

[color-scheme="dark"] .contact-form-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.contact-form .form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(120, 120, 120, 0.2);
  border-radius: 1rem;
  background: var(--base);
  color: var(--st-bright);
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--st-base);
  box-shadow: 0 0 0 3px rgba(159, 139, 231, 0.1);
}

[color-scheme="dark"] .contact-form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--st-opp-bright);
}

.contact-info-card {
  background: rgba(120, 120, 120, 0.03);
  padding: 3rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(120, 120, 120, 0.08);
  height: 100%;
}

[color-scheme="dark"] .contact-info-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.contact-info-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(120, 120, 120, 0.1);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

@media only screen and (max-width: 991px) {
  .contact-form-wrapper,
  .contact-info-card {
    padding: 2rem;
  }
}

@media only screen and (max-width: 767px) {
  .contact-form-wrapper,
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .value-card {
    padding: 1.5rem 1rem;
  }
}

/* ============================================
   Footer Spacing Fix - Prevent Overlap on Scroll
   ============================================ */

.mxd-footer {
  position: relative;
  z-index: 1;
  margin-top: 8rem;
  padding-top: 4rem;
}

.mxd-footer__text-wrap {
  position: relative;
  z-index: 1;
}

/* Ensure work-slider-wrap has proper spacing before footer */
.work-slider-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

/* ============================================
   About Us Page Enhancements
   ============================================ */

/* Main Page Container Fixes */
.about-page-wrapper {
  padding-top: 2rem;
}

/* Professional Content Box - The "Oval White Design" */
.about-content-box {
  background: white;
  border-radius: 4rem;
  padding: 5rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(120, 120, 120, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[color-scheme="dark"] .about-content-box {
  background: #1c1c1c; /* Pure dark surface */
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.about-content-box:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* Mobile Box Optimization */
@media (max-width: 768px) {
  .about-content-box {
    padding: 2.5rem 1.5rem !important;
    border-radius: 2rem !important;
  }
}

/* Force Footer to stay at bottom */
#mxd-footer {
  position: relative;
  z-index: 10;
  margin-top: 15rem !important; /* Extra large spacing to prevent overlap */
  background: var(--st-bg-color);
}

.mxd-footer__text-wrap {
  position: relative;
  z-index: 5;
  margin-bottom: -2rem;
}

[color-scheme="light"] .btn-accent {
  background-color: #111 !important;
  color: #fff !important;
}

[color-scheme="dark"] .btn-accent {
  background-color: #fff !important;
  color: #111 !important;
}

/* Form Controls Color Fixes */
.form-control {
  background: var(--base-tint) !important;
  color: var(--st-base) !important;
}

.form-control::placeholder {
  color: var(--st-muted) !important;
  opacity: 0.6;
}

[color-scheme="dark"] .form-control {
  color: white !important;
}

[color-scheme="dark"] .form-control::placeholder {
  color: rgba(255,255,255,0.4) !important;
}

select.form-control option {
  background-color: white;
  color: #333;
}

[color-scheme="dark"] select.form-control option {
  background-color: #1c1c1c;
  color: white;
}

/* Page Header Adjustments */
.mxd-section-page-header .page-header__title {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  line-height: 1.1;
  font-size: clamp(3.5rem, 8vw, 6rem);
}

@media only screen and (max-width: 768px) {
  .mxd-section-page-header .page-header__title {
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
  }
}

.mxd-section-page-header .page-header__subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  line-height: 1.5;
}

/* Value Cards V2 */
.value-card-v2 {
  background: var(--st-base-tint);
  padding: 3rem 2rem;
  border-radius: 2rem;
  height: 100%;
  border: 1px solid rgba(120, 120, 120, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.value-card-v2:hover {
  transform: translateY(-10px);
  background: var(--st-base-tint-v2);
  border-color: var(--st-base);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.value-icon-wrap {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

[color-scheme="dark"] .value-icon-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-card-v2 h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Process Steps V2 */
.process-step-v2 {
  padding: 2.5rem;
  position: relative;
  height: 100%;
}

.step-number {
  font-family: var(--_font-default);
  line-height: 1;
  opacity: 0.8;
}

/* About Section Typography */
.mxd-block__name h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.mxd-block__paragraph .t-large {
  line-height: 1.6;
  font-weight: 500;
}

.mxd-paragraph__lists ul {
  list-style: none;
  padding: 0;
}

.mxd-paragraph__lists ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.mxd-paragraph__lists ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--st-base);
  font-weight: bold;
}

/* Fix for reveal-type in dark mode or with custom fonts */
.reveal-type span {
  display: inline-block;
  vertical-align: top;
}

/* Footer Instagram Grid */
.footer-instagram-grid .insta-item {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
}

.footer-instagram-grid .insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.footer-instagram-grid .insta-item:hover img {
  transform: scale(1.1);
}

.footer-instagram-grid .insta-item::after {
  content: ""; /* Phosphor Instagram Icon */
  font-family: "Phosphor";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-instagram-grid .insta-item:hover::after {
  opacity: 1;
}

[color-scheme="dark"] .footer-blocks__card {
  background: #1c1c1c;
  border-color: rgba(255, 255, 255, 0.05);
}

/* Corporate Tint Background */
.bg-base-tint {
  background-color: rgba(120, 120, 120, 0.03) !important;
}

[color-scheme="dark"] .bg-base-tint {
  background-color: rgba(255, 255, 255, 0.02) !important;
}
