/* ==========================================================================
   Otelier Enhancements
   - Frosted glass header
   - Scroll reveal animations (AOS overrides)
   - Auto-scrolling client logo ticker
   - Parallax backgrounds
   - Why Otelier differentiator cards
   - Equal-height cards & word-break protection
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. WORD-BREAK PROTECTION & EQUAL-HEIGHT CARDS
   -------------------------------------------------------------------------- */

/* Prevent SplitType character spans from breaking mid-word */
.text-reveal-anim .word {
  white-space: nowrap;
  display: inline-block;
}

/* --- Service cards (home: 4-col, services: within rows) --- */
.services-section-two .row > [class*="col-"] {
  display: flex;
}
.service_single_item-2 {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.service_single_item-2 .service-single-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service_single_item-2 .service_content {
  flex: 1;
}
.service_single_item-2 .service-img {
  margin-top: auto;
}
.service_single_item-2 .service-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* --- Process / Why Otelier cards (3-col) --- */
.process-border > [class*="col-"] {
  display: flex;
}
.process-single-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.process-single-box .process-content {
  flex: 1;
}
.process-single-box .process-thumb img {
  width: 100%;
  object-fit: cover;
}

/* --- Success / counter boxes (about + services: AI Enablement) --- */
.success-box-items-3 .row > [class*="col-"] {
  display: flex;
}
.success-box-counter {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 180px;
}
.success-box-counter h3 {
  margin-bottom: 8px;
}
.success-box-counter p {
  flex: 1;
}

/* --- Differentiator cards (home: 2x2 grid) --- */
.differentiator-grid {
  align-items: stretch;
}
.diff-card {
  display: flex;
  flex-direction: column;
}
.diff-card .diff-compare {
  flex: 1;
  align-items: stretch;
}

/* --- Icon box list items (about: Why Otelier) --- */
.icon-box-list li {
  display: flex;
  align-items: flex-start;
}
.icon-box-list li .content {
  flex: 1;
}

/* --- Contact detail items (contact page) --- */
.contact-details__info li {
  display: flex;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   1. FROSTED GLASS STICKY HEADER
   -------------------------------------------------------------------------- */
.sticky-header {
  background-color: rgba(17, 17, 17, 0.65) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(252, 219, 102, 0.08) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.sticky-header.fixed-header {
  background-color: rgba(17, 17, 17, 0.7) !important;
}

/* Also frost the main header when it sits on the page */
.main-header .header-lower {
  background-color: rgba(17, 17, 17, 0.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  transition: background-color 0.4s ease;
}

/* --------------------------------------------------------------------------
   2. SCROLL REVEAL ANIMATIONS (AOS enhancements)
   -------------------------------------------------------------------------- */
/* Smoother AOS defaults */
[data-aos] {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Custom reveal: fade-up-scale */
[data-aos="fade-up-scale"] {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition-property: opacity, transform;
}
[data-aos="fade-up-scale"].aos-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Custom reveal: fade-in-blur */
[data-aos="fade-in-blur"] {
  opacity: 0;
  filter: blur(8px);
  transition-property: opacity, filter;
}
[data-aos="fade-in-blur"].aos-animate {
  opacity: 1;
  filter: blur(0);
}

/* --------------------------------------------------------------------------
   3. AUTO-SCROLLING CLIENT LOGO TICKER
   -------------------------------------------------------------------------- */
.client-logo-ticker {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.client-logo-ticker__track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: ticker-scroll 25s linear infinite;
}

.client-logo-ticker__track:hover {
  animation-play-state: paused;
}

.client-logo-ticker__item {
  flex-shrink: 0;
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-ticker__item img {
  filter: grayscale(100%);
  opacity: 0.5;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.client-logo-ticker__item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

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

/* --------------------------------------------------------------------------
   4. PARALLAX BACKGROUNDS
   -------------------------------------------------------------------------- */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Disable fixed attachment on mobile (causes issues on iOS/Android) */
@media (max-width: 991px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Subtle overlay for better text readability on parallax sections */
.parallax-overlay {
  position: relative;
}
.parallax-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.5) 100%);
  pointer-events: none;
  z-index: 0;
}
.parallax-overlay > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   5. WHY OTELIER — DIFFERENTIATOR COMPARISON CARDS
   -------------------------------------------------------------------------- */
.differentiator-section {
  padding: 100px 0;
}

.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.diff-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(252, 219, 102, 0.1);
  border-radius: 12px;
  padding: 35px 30px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-color1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(252, 219, 102, 0.25);
  transform: translateY(-4px);
}

.diff-card:hover::before {
  opacity: 1;
}

.diff-card .diff-label {
  font-family: var(--heading-font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-color1);
  margin-bottom: 12px;
}

.diff-card .diff-title {
  font-family: var(--heading-font-family);
  font-size: 20px;
  font-weight: 600;
  color: var(--theme-color-white);
  margin-bottom: 10px;
}

.diff-card .diff-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
}

/* Comparison row: "Others" vs "Otelier" */
.diff-compare {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.diff-compare-col {
  flex: 1;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.diff-compare-col.others {
  background: rgba(255, 255, 255, 0.04);
  color: #888;
  border-left: 2px solid #444;
}

.diff-compare-col.otelier {
  background: rgba(252, 219, 102, 0.06);
  color: var(--theme-color-white);
  border-left: 2px solid var(--theme-color1);
}

.diff-compare-col strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.diff-compare-col.others strong {
  color: #666;
}

.diff-compare-col.otelier strong {
  color: var(--theme-color1);
}

@media (max-width: 767px) {
  .differentiator-grid {
    grid-template-columns: 1fr;
  }
  .diff-compare {
    flex-direction: column;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   6. ENHANCED SERVICE CARD HOVER
   -------------------------------------------------------------------------- */
.service_single_item-2 .service-single-inner {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.service_single_item-2:hover .service-single-inner {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   7. PROCESS CARD HOVER (Why Otelier)
   -------------------------------------------------------------------------- */
.process-single-box {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.process-single-box:hover {
  transform: translateY(-6px);
}

.process-single-box .process-thumb img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-single-box:hover .process-thumb img {
  transform: scale(1.05);
}
