/* HERO: static background image */
.hero-section{
  position: relative;
  overflow: hidden;

  /* Static image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat !important;
}

/* HERO: animated gradient overlay only */
.hero-section::before{
  content:"";
  position:absolute;
  inset:0;

  background: linear-gradient(135deg,
    #ff6b6b 0%,
    #ee5a6f 10%,
    #c44569 20%,
    #9b59b6 35%,
    #667eea 50%,
    #4299e1 65%,
    #06b6d4 80%,
    #14b8a6 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;

  opacity: 0.60;              /* increased: try 0.65–0.80 */
  pointer-events: none;       /* overlay won't block clicks */
  z-index: 1;
}

/* Keep all hero content above overlay */
.hero-section > *{
  position: relative;
  z-index: 2;
}

@keyframes gradientShift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* ---------- SERVICES SECTION ---------- */

/* Service Card Container */
.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.40s ease;
}

/* Top Gradient Border Animation */
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4299e1 0%, #ed8936 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-out;
  z-index: 1;
}

/* Card Hover Effects (Shadow only) */
.service-card:hover {
  box-shadow: 0px 20px 60px rgba(0,0,0,0.15);
}

/* Trigger Top Border Animation */
.service-card:hover::after {
  transform: scaleX(1);
}

/* Service Icon Styles */
.service-icon {
  transition: transform 0.40s ease;
  border-radius: 20px;
  background: linear-gradient(90deg, #4299e1 0%, #9333ea 100%);
}

/* Icon Hover Animation */
.service-card:hover .service-icon {
  transform: scale(1.10) rotate(5deg);
}

/* ---------- PROCESS SECTION ---------- */

.step-circle {
  /* Size and Shape */
  width: 70px;
  height: 70px;
  border-radius: 50%;
  
  /* Centering the circle itself */
  margin: 0 auto; 
  
  /* Gradient and Centering Content */
  background: linear-gradient(135deg, #4299e1, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Shadow for depth */
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

/* ---------- TESTIMONIAL SECTION ---------- */

/* 1. DESKTOP (Default - Keeps your original look) */
.testimonial-carousel {
    margin-left: 80px;
    margin-right: 80px;
}

/* 2. TABLET (Screens smaller than 992px) */
/* We cut the margin in half so it doesn't look squashed */
@media (max-width: 991px) {
    .testimonial-carousel {
        margin-left: 40px !important;
        margin-right: 40px !important;
    }
}

/* 3. MOBILE (Screens smaller than 768px) */
/* We use very small margins to give the text maximum room to breathe */
@media (max-width: 767px) {
    .testimonial-carousel {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}

/* ---------- FINAL CTA SECTION ---------- */

.final-cta {
    background: linear-gradient(90deg, #4299e1 0%, #9333ea 100%);
}

/* cta button styling */
.cta-button .zpbutton {
  transition: transform 0.30s ease, box-shadow 0.30s ease, background 0.30s ease;
}

.cta-button .zpbutton:hover{
  transform: translateY(-3px);
  box-shadow: 0px 12px 35px rgba(0,0,0,0.30);
}

/* ---------- PORTFOLIO HERO SECTION ---------- */

/* HERO: static background image */
.portfolio-hero{
  position: relative;
  overflow: hidden;

  /* Static image */
  background-size: cover;
  background-repeat: no-repeat !important;
}

/* Portfolio hero gradient overlay */
.portfolio-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, #667eea 0%, #4299e1 50%, #06b6d4 100%);
  opacity: 0.80;
  pointer-events: none;
  z-index: 1;
}

/* Keep all portfolio hero content above overlay */
.portfolio-hero > *{
  position: relative;
  z-index: 2;
}

/* ---------- 1. THE LAYOUT ENGINE (Flexbox) ---------- */
.portfolio-grid, 
.portfolio-grid .zpcol-body {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 50px !important; 
  align-items: flex-start !important;
  padding-bottom: 20px;
}

/* ---------- 2. THE ITEM (The Box) ---------- */
.filter-item {
  /* FORMULA: 50% width minus half the gap */
  width: calc(50% - 25px) !important;
  
  /* CRITICAL: This fixes the "shrunken" look by including padding in width */
  box-sizing: border-box !important;
  
  margin: 0 !important; 
  display: block !important; 
  
  position: relative;
  border-radius: 20px;
  background-color: #ffffff;
  overflow: hidden; /* Keeps the expanded video inside the box */
  
  transition: all 0.4s ease; 
  cursor: pointer;
  box-shadow: 0px 8px 30px 0px rgba(0,0,0,0.08); 
}

/* ---------- 3. HOVER EFFECT ---------- */
.filter-item:hover {
  transform: translateY(-8px);
  box-shadow: 0px 16px 50px rgba(0,0,0,0.15) !important;
}

/* ---------- 4. RESPONSIVENESS (768px to 1024px) ---------- */
/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {
  .portfolio-grid, 
  .portfolio-grid .zpcol-body {
    gap: 30px !important; /* Smaller gap for tablet */
  }

  .filter-item {
    /* Update math for 30px gap: 50% minus 15px */
    width: calc(50% - 15px) !important; 
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .filter-item {
    width: 100% !important; 
  }
}

/* ---------- 5. HIDING LOGIC ---------- */
.filter-item.hidden-item {
  display: none !important;
}

/* ---------- 6. VIDEO FIX (The Aspect-Ratio Method) ---------- */
.video-wrapper {
  /* 1. Stretch width to cover the card padding */
  width: calc(100% + 48px) !important;
  
  /* 2. Pull video to the edges */
  margin: -24px -24px 20px -24px !important;

  /* 3. THE FIX: Aspect-Ratio 
     This automatically calculates the perfect height based on the width 
     set in step 1. It is immune to padding changes on mobile. */
  aspect-ratio: 16 / 9 !important;
  
  /* 4. RESET OLD HACKS 
     We must turn off the old padding hack so it doesn't conflict */
  height: auto !important; 
  padding-bottom: 0 !important; 
  
  /* 5. Styling */
  position: relative !important;
  background: #000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

/* Ensure the YouTube iframe fills the new aspect-ratio box */
.video-wrapper iframe {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/*------ CASE STUDY SECTION ------*/

/* 1. Style the Icon Box (The Gradient Container) */
.case-icon figure {
  /* The Gradient Background */
  background: linear-gradient(90deg, #4299e1 0%, #9333ea 100%);
  border-radius: 20px;
  
  /* Spacing: Adds breathing room between the image and the box edges */
  padding: 15px; 
  
  /* Alignment: Centers the icon image inside this gradient box */
  display: flex !important;
  align-items: center;
  justify-content: center;
  
  /* Ensures the box wraps tightly around the icon and padding */
  width: fit-content;
  
  /* Adds space between the colored box and the text */
  margin-right: 20px !important; 
}

/* 2. Vertically Center the Text */
.case-icon .zpimageheadingtext-container {
  display: flex !important;
  align-items: center !important; 
}

/* Target the actual button inside your custom class */
.case-study-btn .zpbutton {
  transition: all 0.3s ease !important;
  transform: translateY(0); 
}

/* Apply hover effects ONLY to that inner button */
.case-study-btn .zpbutton:hover {
  transform: translateY(-2px) !important; /* Lifts just the button */
  box-shadow: 0px 8px 25px rgba(66, 153, 225, 0.4) !important;
}

/*------ CONTACT PAGE ------*/

/* 1. Reset the List Container */
.form-info-list ul {
  list-style: none !important; 
  padding-left: 0 !important;
}

/* 2. The List Item: Turn it into a "Row" */
.form-info-list li {
  display: flex !important; 
  align-items: flex-start;
  gap: 16px;
}

/* 3. The Checkmark Icon */
.form-info-list li::before {
  content: '✓';
  color: #4299e1;
  font-weight: 700;
  font-size: 20px;
  
  /* Matches the text line-height so they sit perfectly on the same baseline */
  line-height: 28px; 
  
  /* CRITICAL: Prevents the checkmark from shrinking if the text is long */
  flex-shrink: 0; 
}

/* Add class .method-card to each card container */
.method-card{
  transition: all 0.3s ease;
}

.method-card:hover{
  transform: translateY(-5px);
  box-shadow: 0px 8px 30px rgba(0,0,0,0.2) !important;
}

/* Apply Gradient to the Icon Background */
.method-card .method-icon .zpicon {
  background: linear-gradient(90deg, #4299e1 0%, #9333ea 100%) !important;
  
  /* Optional: Ensures no border color interferes with the gradient */
  border: none !important;
}

/*---- CONTACT FORM DESIGN -----*/

/* Target specific form ID to avoid breaking other forms */
[data-element-id="elm_tZ_lkVIvpwntrhKig_BEFA"] {

  /* 1. INPUTS, SELECTS, TEXTAREAS */
  /* We target all input types to match your ".form-input" design */
  input[type="text"], 
  input[type="email"], 
  select, 
  textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e2e8f0 !important;
    line-height: 24px !important;
    box-sizing: border-box !important; /* Ensures padding doesn't break width */
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
    height: auto !important; /* Overrides Zoho's fixed heights */
  }

  textarea {
    /* Gives it a proper height */
    min-height: 150px !important; 
    resize: vertical; /* Allows user to resize vertically if needed */
  }
    
  /* Focus State (Blue Glow) */
  input[type="text"]:focus, 
  input[type="email"]:focus, 
  select:focus, 
  textarea:focus {
    outline: none !important;
    border-color: #4299e1 !important;
    box-shadow: 0px 0px 0px 3px rgba(66, 153, 225, 0.1) !important;
  }

  /* 2. LABELS */
  .zpform-label label {
    margin-bottom: 8px !important;
    display: block !important;
  }
  
  /* The Asterisk (*) */
  .zpform-mandatory {
    color: #e53e3e !important; /* Red color */
  }

  /* 3. SUBMIT BUTTON (Full Width) */
  /* First, force the container to be full width */
  .zpform-button {
    width: 100% !important;
    display: block !important;
    text-align: center;
  }

  /* Style the actual button */
  .zpform-button input[type="submit"] {
    width: 100% !important; /* This makes it full width */
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
  }

  /* Hover State for Button */
  .zpform-button input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px rgba(237, 137, 54, 0.4) !important;
  }

  /* 4. LAYOUT SPACING */
  /* Adds space between form rows */
  .zpform-outer > li {
    margin-bottom: 24px !important;
    padding: 0 !important; /* Remove Zoho default padding */
  }
  
  /* 5. FILE UPLOAD (Dashed Box Style) */
  /* This targets the file input area to look more like the dashed box */
  .zpform-field-container input[type="file"] {
    padding: 12px 16px !important;
    border: 2px dashed #cbd5e0 !important;
    border-radius: 8px;
    width: 100% !important;
    background: #f7fafc;
  }
}

/* ---------- FAQ ACCORDION STYLING ---------- */

/* 2. THE HEADER (Your .faq-question style) */
.faq .zpaccordion {
  width: 100% !important;
  padding: 20px 24px !important;
  border-radius: 12px !important;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.04);
  
  /* Flexbox for alignment */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  
  /* Removing Zoho defaults */
  border: none !important; 
  margin-bottom: 20px !important;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0 !important;
}

/* Hover Effect */
.faq .zpaccordion:hover {
  background-color: #f7fafc !important;
}

/* 3. HIDE ZOHO DEFAULT ICONS */
.faq .zpaccordionicon {
  display: none !important;
}

/* 4. CREATE CUSTOM '+' ICON */
.faq .zpaccordion::after {
  content: '+' !important;
  font-size: 24px;
  color: #4299e1;
  font-weight: 400; /* Lighter weight often looks cleaner for symbols */
  transition: transform 0.3s ease;
  margin-left: 15px; /* Space between text and icon */
  line-height: 1;
}

/* 5. ACTIVE STATE (Rotate the icon) */
/* Zoho adds '.zpaccordion-active' when open */
.faq .zpaccordion.zpaccordion-active::after {
  transform: rotate(45deg); /* Turns + into x */
}

/* 6. CONTENT AREA STYLING */
.zpelement.faq .zpaccordion-container .zpaccordion-content {
  border: none !important;
  padding: 0 
}

/* ==========================================================================
   FOOTER MENU STYLING (Custom Class: .site-footer)
   ========================================================================== */

/* 1. RESET & CONTAINER LAYOUT (Applies to ALL Devices) */
.site-footer .zplink-list-container {
    display: flex !important;
    flex-direction: row !important;  /* Forces side-by-side layout */
    justify-content: center !important; /* Centers them */
    align-items: center !important;
    flex-wrap: wrap !important;      /* Allows wrapping if screen is too small */
    
    /* Default Gap */
    gap: 32px !important;
    margin-bottom: 24px !important;
    
    /* Reset Zoho Defaults */
    padding: 0 !important;
    margin-top: 0 !important;
    list-style: none !important;
}

/* Ensure list items don't have weird default margins */
.site-footer .zplink-list {
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. LINK STYLING */
.site-footer .zplink-text {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important; /* Prevents individual words from breaking */
}

/* 3. HOVER STATE */
.site-footer .zplink-text:hover {
    color: #4299e1 !important;
}

/* ==========================================================================
   RESPONSIVE: TABLET (Max-Width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .site-footer .zplink-list-container {
        gap: 20px !important; /* Reduce gap to fit more items on one line */
    }

    .site-footer .zplink-text {
        font-size: 15px !important;
    }
}

/* ==========================================================================
   RESPONSIVE: MOBILE (Max-Width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .site-footer .zplink-list-container {
        /* Keep them side-by-side but with tighter spacing */
        gap: 12px 16px !important; /* 12px vertical gap, 16px horizontal gap */
    }

    .site-footer .zplink-text {
        font-size: 14px !important;
        /* Add a little padding so they are still easy to tap */
        padding: 6px 0 !important; 
    }
}