/*
Theme Name: Infinia
Theme URI: https://infinia.alithemes.net
Author: Alithemes
Author URI: https://themeforest.net/user/alithemes
Description: Infinia - Multipurpose Business Startup WordPress Theme
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
Version: 2.1.0
Requires at least: 5.6
Tested up to: 5.6
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: infinia
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

.submenu{
	display:block !important;
}
.main-logo img{
    height: auto !important;
    width: 170px !important;
}

/* For Business Cards */

@keyframes border-flow {
    0% { 
      border-color: rgba(59, 130, 246, 0.4);
      box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4),
                  0 8px 24px rgba(0, 0, 0, 0.08);
    }
    50% { 
      border-color: rgba(37, 99, 235, 0.8);
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                  0 12px 32px rgba(59, 130, 246, 0.2);
    }
    100% { 
      border-color: rgba(59, 130, 246, 0.4);
      box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4),
                  0 8px 24px rgba(0, 0, 0, 0.08);
    }
  }

  @keyframes glow-rotate {
    0% { transform: rotate(0deg); opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { transform: rotate(360deg); opacity: 0.3; }
  }

  @keyframes shine-sweep {
    0% { left: -100%; }
    100% { left: 200%; }
  }

  @keyframes float-subtle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
  }

  .card-item {
    position: relative;
    max-width: 390px;
    min-height: 405px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid rgba(59, 130, 246, 0.5);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: float-subtle 5s ease-in-out infinite,
               border-flow 3s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Animated Rotating Glow Border */
  .card-border-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
      from 0deg,
      rgba(59, 130, 246, 0) 0deg,
      rgba(59, 130, 246, 0.8) 90deg,
      rgba(96, 165, 250, 0.6) 180deg,
      rgba(59, 130, 246, 0.8) 270deg,
      rgba(59, 130, 246, 0) 360deg
    );
    border-radius: 24px;
    animation: glow-rotate 4s linear infinite;
    pointer-events: none;
    z-index: 0;
  }

  /* Shine Sweep Effect */
  .card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 255, 255, 0.5) 50%, 
      transparent 100%);
    animation: shine-sweep 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    transform: skewX(-20deg);
  }

  /* Image Container - Fixed Height */
  .card-item img {
    position: relative;
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.5s ease;
    filter: brightness(1) saturate(1);
  }

  /* Content Container - Equal Height Distribution */
  .card-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 28px;
    z-index: 1;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  }

  .card-item h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .card-item p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    text-align: center;
    flex: 1;
    transition: color 0.3s ease;
  }

  /* HOVER STATE - Blue Accent */
  .card-item:hover,
  .card-item:focus {
    transform: translateY(-14px) scale(1.04);
    border-color: rgba(37, 99, 235, 1);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2),
                0 24px 48px rgba(59, 130, 246, 0.3),
                0 32px 64px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
    outline: none;
  }

  .card-item:hover .card-border-glow,
  .card-item:focus .card-border-glow {
    animation: glow-rotate 2s linear infinite;
  }

  .card-item:hover img,
  .card-item:focus img {
    transform: scale(1.1) rotateZ(1deg);
    filter: brightness(1.05) saturate(1.15) contrast(1.05);
  }

  .card-item:hover h3,
  .card-item:focus h3 {
    color: #2563eb;
    transform: scale(1.06);
    text-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  }

  .card-item:hover p,
  .card-item:focus p {
    color: #333333;
  }

  /* CONSISTENT GRID LAYOUT */
  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 390px));
    gap: 32px;
    padding: 20px;
    justify-content: center;
    align-items: stretch;
  }

  /* Mobile Optimization - Equal Heights Maintained */
  @media (max-width: 768px) {
    .card-item {
      max-width: 100%;
      min-height: 405px;
      border-radius: 20px;
      border-width: 2.5px;
    }

    .card-border-glow {
      border-radius: 20px;
    }

    .card-item img {
      height: 200px;
    }

    .card-content {
      padding: 20px 18px 24px;
    }

    .card-item h3 {
      font-size: 1.55rem;
      margin-bottom: 14px;
    }

    .card-item p {
      font-size: 0.92rem;
      line-height: 1.65;
    }

    .card-item:hover,
    .card-item:focus {
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                  0 18px 36px rgba(59, 130, 246, 0.25);
    }

    .cards-container {
      grid-template-columns: 1fr;
      gap: 24px;
      padding: 16px;
    }
  }

  /* Tablet Optimization */
  @media (min-width: 769px) and (max-width: 1024px) {
    .cards-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Desktop 3-column */
  @media (min-width: 1025px) {
    .cards-container {
      grid-template-columns: repeat(3, 390px);
    }
  }

  /* Accessibility */
  @media (prefers-reduced-motion: reduce) {
    .card-item,
    .card-border-glow,
    .card-shine {
      animation: none;
    }
    
    .card-item {
      border: 3px solid rgba(59, 130, 246, 0.6);
    }
  }

/* =============================================
   TEAM SECTION — PREMIUM OVERLAY SYSTEM
   Solid name/position · Hidden on hover
   ============================================= */

/* Card wrapper */
.row.mt-8.mb-4 [class*="col-"] .position-relative.d-inline-block.z-1 {
    cursor: pointer;
    display: block !important;
}

/* Kill default hover card */
.row.mt-8.mb-4 .position-relative.d-inline-block.z-1 > .hover-up {
    display: none !important;
}

/* Image container — overlay lives inside here */
.row.mt-8.mb-4 .zoom-img {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.4s ease;
}

.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:hover .zoom-img {
    box-shadow: 0 20px 56px rgba(109, 77, 242, 0.22);
}

/* Image */
.row.mt-8.mb-4 .zoom-img img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:hover .zoom-img img,
.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:focus-within .zoom-img img {
    transform: scale(1.09);
}

/* ── STATIC INFO BLOCK (always visible below image) ── */
.team-static-info {
    padding: 1.125rem 0.25rem 0.375rem;
    text-align: left;
    transition: opacity 0.38s ease, transform 0.38s ease;
    will-change: opacity, transform;
}

/* Fade + slide out on hover */
.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:hover .team-static-info,
.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:focus-within .team-static-info {
    opacity: 0;
    transform: translateY(7px);
    pointer-events: none;
}

/* Static name */
.team-static-name {
    font-family: 'Satoshi Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    font-weight: 700;
    color: #12112a;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Static position pill */
.team-static-position {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Satoshi Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(0.6875rem, 1.4vw, 0.8rem);
    font-weight: 600;
    color: #6d4df2;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    padding: 0.3rem 0.875rem 0.3rem 0.7rem;
    background: linear-gradient(135deg, rgba(109, 77, 242, 0.07) 0%, rgba(99, 102, 241, 0.11) 100%);
    border: 1px solid rgba(109, 77, 242, 0.22);
    border-radius: 20px;
}

/* Dot accent */
.team-static-position::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d4df2, #6366f1);
    flex-shrink: 0;
}

/* ── HOVER OVERLAY (lives inside .zoom-img) ── */
.team-vision-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(79, 70, 229, 0.93) 0%,
        rgba(109, 77, 242, 0.95) 45%,
        rgba(67, 56, 202, 0.96) 100%
    );
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(1.625rem, 4vw, 2.25rem);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.45s ease;
    will-change: transform, opacity;
    z-index: 10;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* Top shimmer */
.team-vision-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.65) 50%,
        transparent);
}

/* Noise texture for depth */
.team-vision-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* Show overlay on hover */
.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:hover .team-vision-overlay,
.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:focus-within .team-vision-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Overlay content animation */
.team-vision-content {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.42s ease 0.18s,
                transform 0.48s cubic-bezier(0.4, 0, 0.2, 1) 0.18s;
    will-change: opacity, transform;
    position: relative;
    z-index: 2;
}

.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:hover .team-vision-content,
.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:focus-within .team-vision-content {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay name */
.team-vision-name {
    font-family: 'Satoshi Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.125rem, 2.4vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

/* Overlay position pill */
.team-vision-position {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Satoshi Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.6875rem, 1.35vw, 0.8rem);
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    padding: 0.32rem 0.9rem 0.32rem 0.72rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    margin-bottom: 1.125rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.team-vision-position::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

/* Divider */
.team-vision-divider {
    width: 44px;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15));
    border-radius: 2px;
    margin: 0 0 1rem;
}

/* Vision text */
.team-vision-text {
    margin: 0;
    font-family: 'Satoshi Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.875rem, 1.85vw, 1rem);
    line-height: 1.72;
    font-weight: 450;
    color: rgba(255, 255, 255, 0.91);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

/* Staggered card delays */
.row.mt-8.mb-4 [class*="col-"]:nth-child(1) .team-vision-overlay { transition-delay: 0s;     }
.row.mt-8.mb-4 [class*="col-"]:nth-child(2) .team-vision-overlay { transition-delay: 0.04s;  }
.row.mt-8.mb-4 [class*="col-"]:nth-child(3) .team-vision-overlay { transition-delay: 0.08s;  }
.row.mt-8.mb-4 [class*="col-"]:nth-child(4) .team-vision-overlay { transition-delay: 0.12s;  }
.row.mt-8.mb-4 [class*="col-"]:nth-child(5) .team-vision-overlay { transition-delay: 0.16s;  }
.row.mt-8.mb-4 [class*="col-"]:nth-child(6) .team-vision-overlay { transition-delay: 0.20s;  }

/* Focus ring */
.row.mt-8.mb-4 .position-relative.d-inline-block.z-1:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 5px;
    border-radius: 16px;
}

/* Tablet */
@media (max-width: 991px) {
    .team-vision-overlay { padding: 1.625rem 1.5rem; }
    .team-static-name    { font-size: 1.125rem; }
}

/* Mobile */
@media (max-width: 767px) {
    .team-vision-overlay { padding: 1.375rem 1.25rem; }

    .row.mt-8.mb-4 .position-relative.d-inline-block.z-1:active .team-vision-overlay,
    .row.mt-8.mb-4 .position-relative.d-inline-block.z-1:active .team-vision-content {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .row.mt-8.mb-4 .position-relative.d-inline-block.z-1:active .team-static-info {
        opacity: 0;
        transform: translateY(7px);
    }
    .row.mt-8.mb-4 .position-relative.d-inline-block.z-1:active .zoom-img img {
        transform: scale(1.05);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .team-vision-overlay  { padding: 1.125rem 1rem; }
    .team-static-name     { font-size: 1rem; }
    .team-static-position { font-size: 0.6875rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-vision-overlay,
    .team-vision-content,
    .team-static-info,
    .row.mt-8.mb-4 .zoom-img img {
        transition-duration: 0.01ms !important;
    }
    .row.mt-8.mb-4 .position-relative.d-inline-block.z-1:hover .zoom-img img {
        transform: none;
    }
}

/* High contrast */
@media (prefers-contrast: high) {
    .team-vision-overlay {
        background: rgba(0, 0, 0, 0.96);
        border: 2px solid #ffffff;
    }
    .team-static-name     { color: #000000; }
    .team-static-position { border-color: #6d4df2; color: #4a00cc; }
}

/* GPU layers */
.row.mt-8.mb-4 .zoom-img,
.team-vision-overlay,
.team-vision-content,
.team-static-info {
    transform: translateZ(0);
    backface-visibility: hidden;
}


/*-------------------------------------- Logo Slider  */


    .logo-track {
      display: flex;
      width: max-content;
      animation: marquee-scroll 28s linear infinite;
      will-change: transform;
    }

    .logo-set {
      display: flex;
      align-items: center;
      gap: 70px;
      padding: 0 35px;
    }

    .logo-item {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 130px;
      height: 80px;
      flex-shrink: 0;
    }

    .logo-item img {
      max-width: 130px;
      max-height: 75px;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;

      /* Base — greyscale & dimmed */
      filter: grayscale(100%) opacity(0.5);
      transform: scale(1) translateY(0px);
      transition:
        filter 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
      border-radius: 6px;
    }

    /* Hover — full colour, lift + spring bounce + glow */
    .logo-item img:hover,
    .logo-item img:focus-visible {
      filter: grayscale(0%) opacity(1) drop-shadow(0 10px 22px rgba(0,0,0,0.18));
      transform: scale(1.14) translateY(-6px);
      outline: none;
      cursor: pointer;
    }

    /* Pause the marquee while hovering anywhere on the track */
    .logo-track:hover {
      animation-play-state: paused;
    }

    @keyframes marquee-scroll {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    @media (max-width: 768px) {
      .logo-set  { gap: 40px; padding: 0 20px; }
      .logo-item { width: 90px; height: 60px; }
      .logo-item img { max-width: 90px; max-height: 55px; }
    }

    @media (max-width: 480px) {
      .logo-set  { gap: 24px; padding: 0 12px; }
      .logo-item { width: 68px; height: 48px; }
      .logo-item img { max-width: 68px; max-height: 44px; }
    }
  