/* Curved right-side image used on the main banner */
.right-image .curved-right{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  border-radius: 0 60px 60px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transition: transform .35s ease, box-shadow .35s ease;
}

.right-image .curved-right:hover{
  transform: translateX(6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
@media (max-width: 767px){
  .right-image .curved-right{ border-radius: 0 36px 36px 0; box-shadow: none; }
}

/* Navbar brand: small icon + text */
.logo{ display:flex; align-items:center; gap:10px; }
.logo .nav-logo-image{
  width:60px;
  height:auto;
  object-fit:contain;
  border-radius:0;
  box-shadow:none;
  display:inline-block;
  margin-right:8px;
}
.logo .nav-brand-text{
  font-family: 'Poppins', sans-serif; /* matches page font, nicer appearance */
  font-weight:400; /* normal weight to remove bolding */
  font-size:24px; /* bigger like original layout */
  color:#2a2a2a;
  letter-spacing:0; /* remove forced spacing */
  text-transform:none; /* keep original capitalization */
}
@media (max-width: 991px){
  .logo .nav-brand-text{ display:inline-block; font-size:20px; }
}
/* accent color for second word to match original DigiMedia look */
.logo .nav-brand-text em{
  color: #4da6e7;
  font-style: normal;
  font-weight:400; /* normal weight for even balance */
}

/* Social contact section */
.social-contact-section{
  padding: 30px 0;
}
.social-contact-section .section-heading h4{
  font-size: 35px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 15px;
}
.social-contact-section .section-heading h4 em{
  color: #4da6e7;
  font-style: normal;
}
.social-contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 800px;
}
.social-contact-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  background-color: #f7f7f7;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.35s ease;
  border: 2px solid transparent;
}
.social-contact-item i{
  font-size: 32px;
  color: #4da6e7;
  margin-bottom: 12px;
  display: block;
}
.social-contact-item span{
  color: #2a2a2a;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.social-contact-item:hover{
  background-color: #4da6e7;
  border-color: #4da6e7;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(77, 166, 231, 0.25);
}
.social-contact-item:hover i,
.social-contact-item:hover span{
  color: #fff;
}
@media (max-width: 767px){
  .social-contact-grid{
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }
  .social-contact-item{
    padding: 20px 15px;
  }
  .social-contact-item i{
    font-size: 28px;
  }
}

/* Service video styles */
.video-wrap{
  width:100%;
  max-width:92%; /* larger frame - adjusted per request */
  margin:0 auto;
  overflow:hidden;
  border-radius:8px;
  padding: 0 8px; /* gap between video columns */
  position:relative;
}
.service-video{
  width:100%;
  max-height:420px; /* slightly larger frame */
  height:auto;
  display:block;
  background-color:#000;
  border-radius:16px; /* stronger curve for better design */
  box-shadow: 0 14px 36px rgba(0,0,0,0.14);
  object-fit:cover;
}

/* Overlay button that appears on hover */
.video-overlay{
  position:absolute;
  left:0; right:0; top:0; bottom:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:0;
  transition:opacity .22s ease, background-color .22s ease;
  border-radius:16px;
}
.video-wrap:hover .video-overlay{ opacity:1; pointer-events:auto; background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.18)); }
.video-enhance{
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 16px;
  border-radius: 28px;
  font-weight:600;
  backdrop-filter: blur(4px);
  cursor: pointer;
  display:flex;
  align-items:center;
  gap:8px;
}
.video-enhance i{ font-size:16px; }
.video-enhance:hover{ background: rgba(77,166,231,0.95); border-color: rgba(77,166,231,0.95); }

@media (max-width: 767px){
  .video-wrap{ padding: 0; max-width:100%; }
  .service-video{ box-shadow: none; }
  .video-enhance{ backdrop-filter: none; }
}

/* Fullscreen video: show entire video without cropping */
video:fullscreen,
video:-webkit-full-screen,
video:-moz-full-screen {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

/* Services/Company Cards Section */
.services-cards{
  padding: 80px 0;
  background-color: #fff;
  }

/* smaller picture for custom t-shirts service */
.services ul.nacc li .right-image {
  display:flex;
  align-items:center;
  justify-content:center;
}
.services ul.nacc li .right-image img.small-img {
  max-width: 100%;
  max-height: 100%;
  object-fit:contain;
  /* previously limited dimensions removed so it fills container */
}

/* Clients Section */
.clients-section{
  padding: 80px 0;
  background-color: #fff; /* make white so logos pop */
}
.clients-section .section-heading{
  text-align: center;
  margin-bottom: 50px;
}
.clients-section .section-heading h6{
  font-size: 15px;
  font-weight: 700;
  color: #4da6e7;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.clients-section .section-heading h4{
  font-size: 35px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 25px;
  text-transform: capitalize;
}
.clients-section .section-heading h4 em{
  color: #4da6e7;
  font-style: normal;
}
.clients-section .line-dec{
  width: 50px;
  height: 2px;
  background-color: #4da6e7;
  margin: 0 auto;
}
.clients-grid{
  margin-top: 30px;
}
.client-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: all 0.35s ease;
  padding: 20px;
  /* removed background box per request */
  background: transparent;
  border-radius: 0;
}
.client-logo img{
  max-width: 180px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(10%);
  transition: all 0.35s ease;
}

/* GPU hardware-acceleration for Owl Carousel: offloads slide rendering
   to the compositor so autoplay scrolling stays smooth on mobile.
   Note: .owl-stage's transform is set dynamically by Owl Carousel itself
   to position slides, so we only hint layer promotion via will-change
   here rather than overriding the transform value (which would freeze
   the carousel in place). */
.owl-carousel .owl-stage {
    will-change: transform !important;
}
.owl-carousel .owl-item {
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

/* ==========================================================================
   TOP SECTION PADDING FIX (PREVENTS HEADER OVERLAP ON MOBILE)
   ========================================================================== */
@media screen and (max-width: 767px) {
    .services,
    #services {
        padding-top: 140px !important; /* Pushes the section down so header doesn't cover the heading */
    }
    
    .services .section-heading {
        margin-bottom: 30px !important;
    }
}
.client-logo:hover img{
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.15);
}
@media (max-width: 991px){
  .clients-section{
    padding: 60px 0;
  }
  .client-logo img{
    max-width: 120px;
    max-height: 70px;
  }
}
@media (max-width: 767px){
  .clients-section{
    padding: 50px 0;
  }
  .client-logo{
    min-height: 80px;
    padding: 15px;
  }
  .client-logo img{
    max-width: 100px;
    max-height: 60px;
    filter: none;
  }
}

.services-cards .section-heading{
  text-align: center;
  margin-bottom: 60px;
}

/* Mobile overrides for screens under 768px */
@media screen and (max-width: 768px) {
  .header-area {
    padding: 0 15px !important;
    height: auto !important;
    min-height: 70px !important;
  }
  .header-area .container {
    padding: 0 !important;
  }
  /* Force main nav container to align items properly */
  .header-area .main-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; /* Perfect vertical centering for logo and hamburger */
    justify-content: space-between !important;
    height: 70px !important;
    position: relative !important;
  }
  .header-area .main-nav .logo {
    margin: 0 !important;
    line-height: 1 !important;
  }
  /* Force hamburger menu icon to align vertically centered */
  .header-area .main-nav .menu-trigger {
    display: block !important;
    position: absolute !important;
    right: 15px !important;
    top: 55% !important; /* Move to center boundary */
    transform: translateY(-50%) !important; /* Absolute perfect vertical center trick */
    margin: 0 !important;
  }
  .header-area .main-nav .nav {
    margin-top: 0 !important;
    width: 100% !important;
  }

  .main-banner .left-content,
  .main-banner .left-content h2,
  .main-banner .left-content p {
    text-align: center !important;
  }
  .main-banner .left-content {
    padding: 0 15px !important;
  }
  .main-banner .left-content p {
    margin: 0 auto !important;
    max-width: 100% !important;
    padding: 0 15px !important;
  }

  .services ul.nacc li .row {
    gap: 25px !important;
  }
  .services ul.nacc li .col-lg-6 {
    margin-bottom: 25px !important;
  }
  .services ul.nacc li .video-wrap {
    margin-bottom: 25px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }
  .service-video {
    border-radius: 18px !important;
    margin-bottom: 25px !important;
  }

  .social-contact-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 10px !important;
  }
  .social-contact-item {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 18px 12px !important;
  }
  .social-contact-item i,
  .social-contact-item span {
    margin: 0 auto !important;
  }
}

.service-card,
.company-card{
  background: #f9f9f9;
  padding: 50px 30px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.35s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.service-card:hover,
.company-card:hover{
  transform: translateY(-12px);
  background: #fff;
  box-shadow: 0 20px 50px rgba(77, 166, 231, 0.2);
  border-color: #4da6e7;
}
.card-icon,
.company-icon{
  font-size: 56px;
  color: #4da6e7;
  display: inline-block;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(77, 166, 231, 0.1), rgba(77, 166, 231, 0.05));
  border-radius: 12px;
}
.company-logo{
  max-width: 70px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.service-card h5,
.company-card h5{
  font-size: 22px;
  font-weight: 700;
  color: #2a2a2a;
  margin: 0;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}
.service-card h5 em,
.company-card h5 em{
  color: #4da6e7;
  font-style: normal;
}
.service-card p{
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1200px){
  .service-card,
  .company-card{
    padding: 40px 25px;
    min-height: 180px;
  }
}
@media (max-width: 991px){
  .services-cards{
    padding: 60px 0;
  }
  .service-card,
  .company-card{
    padding: 35px 20px;
    min-height: 160px;
  }
  .card-icon,
  .company-icon{
    font-size: 48px;
    width: 70px;
    height: 70px;
  }
}
@media (max-width: 767px){
  .services-cards{
    padding: 50px 0;
  }
  .service-card,
  .company-card{
    padding: 30px 20px;
    margin-bottom: 20px;
    min-height: 140px;
  }
  .card-icon,
  .company-icon{
    font-size: 40px;
    width: 60px;
    height: 60px;
  }
  .service-card h5,
  .company-card h5{
    font-size: 18px;
  }
}

/* Global/Desktop Styles for Pre-Header (Slim Height Fix) */
.pre-header {
  background-color: #f7f7f7;
  height: 45px !important; /* Forces a slim modern bar on laptop */
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid #eee;
}

/* Ensure the layout container centers vertically on desktop */
.pre-header .container,
.pre-header .row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* --- Safe Mobile Only Responsive Fixes --- */
@media screen and (max-width: 768px) {
    
    /* 1. Two Videos Section (image_43746a.jpg Fix) */
    /* Target the container wrapping the two videos */
    .video-section-container, 
    .videos-wrapper { 
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        align-items: center !important;
    }
    .video-section-container video,
    .videos-wrapper video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* 2. Map and Social Grid Section (image_437184.png Fix) */
    /* Stack the map and the social cards vertically on mobile */
    .map-social-parent-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    .map-container-class, .map-container-class iframe {
        width: 100% !important;
        height: 300px !important;
    }
    /* Make the 6 social buttons display in a clean 2-column grid on mobile */
    .social-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* 3. Clients Logos Grid (image_4371a6.png Fix) */
    /* Force logos to stack nicely or wrap into columns instead of stretching */
    .clients-logo-wrapper, .logos-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        justify-items: center !important;
    }
    .clients-logo-wrapper img, .logos-grid img {
        max-width: 120px !important;
        height: auto !important;
    }
}

@media screen and (max-width: 768px) {
    .pre-header {
        display: block !important;
        padding: 8px 0 !important;
    }
    .pre-header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 10px !important;
        width: 100% !important;
    }
    .pre-header-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important; /* Tight spacing for email & icons */
    }
    .pre-header-socials {
        display: flex !important;
        gap: 8px !important;
    }
    .pre-header-left a, .pre-header-right a {
        font-size: 11px !important; /* Compact font to fit everything */
        white-space: nowrap !important;
    }
    .pre-header-left a i, .pre-header-right a i {
        font-size: 11px !important;
    }
}
@media screen and (max-width: 767px) {
  /* ==========================================================================
     THE ABSOLUTE FOOLPROOF POSITIONING FIX FOR PRE-HEADER MOBILE
     ========================================================================== */
  /* 1. Make the pre-header parent relative with a fixed height */
  .pre-header {
    position: relative !important;
    display: block !important;
    height: 70px !important; /* Forces enough height to hold items in one horizontal line */
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 2. Force the container to take full width */
  .pre-header .container,
  .pre-header .row {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. EMAIL: Force lock it to the middle-left side */
  .pre-header ul.left-info,
  .pre-header .left-content,
  .pre-header div[class*="col-"]:first-child {
    position: absolute !important;
    left: 12px !important;
    top: 15px !important; /* Clean alignment from top */
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  /* 4. MASTER FIX: Force Right Side Items (Phone & Social Icons) into one row on the extreme top-right */
  .pre-header ul.right-info,
  .pre-header .right-content,
  .pre-header div[class*="col-"]:nth-child(2) {
    position: absolute !important;
    right: 12px !important; /* Flushed to the absolute right side */
    top: 15px !important; /* Perfectly leveled with the email */
    display: flex !important;
    flex-direction: row !important; /* Strict horizontal row alignment */
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important; /* Clean space between phone text and social badges */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
  }

  /* Typography fixes to stop text breaking onto new lines */
  .pre-header li, 
  .pre-header span, 
  .pre-header a {
    font-size: 11px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* 5. Social Icons list layout reset */
  .pre-header ul.social-icons {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important; /* Space between fb and insta circles */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  /* 6. Perfect Circle Sizing and Centering */
  .pre-header ul.social-icons li,
  .pre-header ul.social-icons a {
    width: 24px !important; /* Scaled up from 20px */
    height: 24px !important; /* Scaled up from 20px */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #bbb !important;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Center alignment for 'f' and 'instagram' vectors inside the badges */
  .pre-header ul.social-icons li i,
  .pre-header ul.social-icons a i,
  .pre-header ul.social-icons i {
    font-size: 12px !important; /* Scaled up from 9px/10px */
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 24px !important; /* Matches the new 24px height for perfect vertical centering */
    text-align: center !important;
    display: block !important;
  }
}
