/* Deepthena shared styles */

@font-face {
  font-family: "Abel";
  src: url("/Abel/Abel-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-dark: #0f172a;
  --color-card: rgba(15, 23, 42, 0.78);
  --color-border: rgba(59, 130, 246, 0.4);
  --color-gradient-start: #3b82f6;
  --color-gradient-mid: #8b5cf6;
  --color-gradient-end: #06b6d4;
}

html {
  font-size: calc(16px + 1.5pt);
  width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Abel", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-dark);
  color: #f8fafc;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image: var(--page-bg, url("../../images/image-1.webp"));
  background-size: cover;
  background-position: center;
  filter: blur(45px);
  transform: scale(1.05);
  opacity: 0.8;
}

body::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  z-index: -1;
}

.header-glass,
.footer-glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.header-glass::before,
.footer-glass::before,
.header-glass::after,
.footer-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.header-glass::before {
  background-image: var(--header-bg, url("../../images/image-4.webp"));
  background-size: cover;
  background-position: center;
  filter: blur(30px);
  transform: scale(1.05);
  opacity: 0.7;
}

.header-glass::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.9));
}

.footer-glass::before {
  background-image: var(--footer-bg, url("../../images/image-2.webp"));
  background-size: cover;
  background-position: center;
  filter: blur(35px);
  transform: scale(1.05);
  opacity: 0.75;
}

.footer-glass::after {
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
}

.footer-glass {
  padding-top: clamp(2.5rem, 3vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 3vw, 3.75rem);
}

.header-glass > *,
.footer-glass > * {
  position: relative;
  z-index: 1;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:focus-visible {
  outline: 2px solid var(--color-gradient-start);
  outline-offset: 2px;
}

.section-eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-mid), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Header + ticker --- */

.scroller-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(12px);
}

.scroller-offset {
  padding-top: clamp(6rem, 6.5vw, 8rem);
  padding-bottom: clamp(3rem, 4vw, 5rem);
  display: block;
}

.scrolling-text-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.8), rgba(2, 6, 23, 0.9), rgba(6, 182, 212, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.65rem 1rem;
}

.scroller-track {
  --scroll-width: 100%;
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  min-width: 100%;
  white-space: nowrap;
  animation: scroll-left 65s linear infinite;
  will-change: transform;
}

.news-scroller {
  display: inline-flex;
  gap: 1.5rem;
  font-size: clamp(0.85rem, 3vw, 1rem);
  font-weight: 500;
  color: #dbeafe;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;
}

.news-scroller a {
  color: #bfdbfe;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.news-scroller a:hover {
  color: #fff;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95);
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-panel::before {
  background-image: var(--cta-bg, url('images/image-5.webp'));
  background-size: cover;
  background-position: center;
  filter: blur(22px);
  transform: scale(1.08);
  opacity: 0.55;
}

.cta-panel::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.85));
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-1 * var(--scroll-width)));
  }
}

@media (max-width: 768px) {
  .scroller-offset {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
  }

  .scroller-track {
    gap: 1rem;
  }

  .news-scroller {
    font-size: 0.925rem;
  }
}

@media (max-width: 640px) {
  .scroller-wrapper {
    position: sticky;
  }

  .scroller-offset {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
  }

  .scroller-track {
    animation: scroll-left 65s linear infinite;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .news-scroller {
    white-space: nowrap;
    line-height: 1.4;
  }

  .footer-glass {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroller-track {
    animation: none;
  }
}

/* --- Organic background accents --- */

@keyframes morphIndex {
  0% {
    border-radius: 42% 58% 63% 37% / 43% 45% 55% 57%;
  }

  50% {
    border-radius: 60% 40% 35% 65% / 55% 58% 42% 45%;
  }

  100% {
    border-radius: 45% 55% 62% 38% / 48% 38% 62% 52%;
  }
}

@keyframes floatTranslate {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(25px, -35px, 0) scale(1.05);
  }

  100% {
    transform: translate3d(-30px, 20px, 0) scale(0.98);
  }
}

@keyframes floatAcross {
  0% {
    transform: translate(-8%, -6%) scale(1);
  }

  100% {
    transform: translate(6%, 8%) scale(1.05);
  }
}

@keyframes floatAcrossReverse {
  0% {
    transform: translate(8%, 6%) scale(1);
  }

  100% {
    transform: translate(-6%, -8%) scale(0.95);
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.4;
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0.35));
  }

  50% {
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.65));
  }

  100% {
    opacity: 0.4;
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0.35));
  }
}

.organic-shape {
  position: absolute;
  opacity: 0.22;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.35), rgba(15, 23, 42, 0));
  animation: floatTranslate 24s ease-in-out infinite alternate, morphIndex 12s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

.organic-1 { width: 250px; height: 230px; top: 12%; left: 5%; }
.organic-2 { width: 190px; height: 210px; top: 70%; right: 8%; animation-delay: -3s; }
.organic-3 { width: 160px; height: 180px; bottom: 15%; left: 22%; animation-delay: -6s; }
.organic-4 { width: 220px; height: 200px; top: 35%; right: 6%; animation-delay: -9s; }
.organic-5 { width: 180px; height: 190px; top: 75%; left: 7%; animation-delay: -12s; }
.organic-6 { width: 210px; height: 190px; bottom: 18%; right: 10%; animation-delay: -15s; }
.organic-7 { width: 170px; height: 180px; top: 20%; left: 15%; animation-delay: -18s; }
.organic-8 { width: 230px; height: 210px; bottom: 25%; right: 12%; animation-delay: -21s; }

/* --- Buttons --- */

.primary-btn,
.cta-gradient {
  background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-mid), var(--color-gradient-end));
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(15, 118, 255, 0.25);
}

.primary-btn:hover,
.cta-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35);
}

.secondary-btn {
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  color: #cbd5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--color-gradient-start);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Card shells --- */
:is(
  .dark-card,
  .gradient-border-card,
  .it-consult-card,
  .values-card,
  .team-card,
  .approach-card,
  .testimonial-card,
  .stats-card,
  .stats-card-enhanced,
  .glass-card,
  .service-card,
  .process-card,
  .expertise-card,
  .success-card,
  .presence-card
) {
  position: relative;
  isolation: isolate;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

:is(
  .dark-card,
  .gradient-border-card,
  .it-consult-card,
  .values-card,
  .team-card,
  .approach-card,
  .testimonial-card,
  .stats-card,
  .stats-card-enhanced,
  .glass-card,
  .service-card,
  .process-card,
  .expertise-card,
  .success-card,
  .presence-card
)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg, var(--color-gradient-start), var(--color-gradient-mid), var(--color-gradient-end));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  transition: opacity 0.25s ease, filter 0.25s ease;
  z-index: -1;
}

:is(
  .dark-card,
  .gradient-border-card,
  .it-consult-card,
  .values-card,
  .team-card,
  .approach-card,
  .testimonial-card,
  .stats-card,
  .stats-card-enhanced,
  .glass-card,
  .service-card,
  .process-card,
  .expertise-card,
  .success-card,
  .presence-card
):hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(2, 6, 23, 0.7);
}

:is(
  .dark-card,
  .gradient-border-card,
  .it-consult-card,
  .values-card,
  .team-card,
  .approach-card,
  .testimonial-card,
  .stats-card,
  .stats-card-enhanced,
  .glass-card,
  .service-card,
  .process-card,
  .expertise-card,
  .success-card,
  .presence-card
):hover::before {
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.35));
}

.step-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(30, 64, 175, 0.35);
  color: #bfdbfe;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glass-card {
  backdrop-filter: blur(12px);
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.85), rgba(15, 23, 42, 0.95));
  border-radius: 24px;
}

.stats-card .glow-pulse,
.glow-pulse {
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.it-consult-card {
  background: rgba(30, 41, 59, 0.88);
}


.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.6), rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.55));
  opacity: 0.65;
  z-index: -1;
  filter: blur(6px);
}


/* --- Background section helpers --- */

.bg-section-1,
.bg-section-2,
.bg-section-3,
.bg-section-4,
.bg-section-5,
.bg-section-6,
.bg-section-7,
.bg-section-8,
.bg-section-9,
.bg-section-10,
.bg-section-11,
.bg-section-12 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.bg-section-1 { background-image: linear-gradient(140deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.88)), url("../../images/image-1.webp"); }
.bg-section-2 { background-image: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.9)), url("../../images/image-2.webp"); }
.bg-section-3 { background-image: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.88)), url("../../images/image-3.webp"); }
.bg-section-4 { background-image: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.88)), url("../../images/image-4.webp"); }
.bg-section-5 { background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(51, 65, 85, 0.88)), url("../../images/image-5.webp"); }
.bg-section-6 { background-image: linear-gradient(140deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88)), url("../../images/image-6.webp"); }
.bg-section-7 { background-image: linear-gradient(140deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.9)), url("../../images/images.jpg"); }
.bg-section-8 { background-image: linear-gradient(140deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.92)), url("../../images/image2.webp"); }
.bg-section-9 { background-image: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85)), url("../../images/dcf0aa40-133d-43a5-a2cd-6e56a1ced1b8.png"); }
.bg-section-10 { background-image: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85)), url("../../images/e572fc22-e4d0-425a-810a-4b9e67ef7606.png"); }
.bg-section-11 { background-image: linear-gradient(140deg, rgba(15, 23, 42, 0.9), rgba(88, 28, 135, 0.8)), url("../../images/84a9b6d2-19ce-4b7a-a58a-b05b62ca53a9.png"); }
.bg-section-12 { background-image: linear-gradient(140deg, rgba(15, 23, 42, 0.92), rgba(6, 95, 70, 0.8)), url("../../images/c8a48304-f5c3-46d6-8067-af095a44cb13.png"); }

.bg-section-1::before,
.bg-section-2::before,
.bg-section-3::before,
.bg-section-4::before,
.bg-section-5::before,
.bg-section-6::before,
.bg-section-7::before,
.bg-section-8::before,
.bg-section-9::before,
.bg-section-10::before,
.bg-section-11::before,
.bg-section-12::before,
.bg-section-1::after,
.bg-section-2::after,
.bg-section-3::after,
.bg-section-4::after,
.bg-section-5::after,
.bg-section-6::after,
.bg-section-7::after,
.bg-section-8::after,
.bg-section-9::after,
.bg-section-10::after,
.bg-section-11::after,
.bg-section-12::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(15, 23, 42, 0));
  opacity: 0.3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bg-section-1::before,
.bg-section-2::before,
.bg-section-3::before,
.bg-section-4::before,
.bg-section-5::before,
.bg-section-6::before,
.bg-section-7::before,
.bg-section-8::before,
.bg-section-9::before,
.bg-section-10::before,
.bg-section-11::before,
.bg-section-12::before {
  top: -25%;
  left: -15%;
  animation: floatAcross 38s ease-in-out infinite alternate;
}

.bg-section-1::after,
.bg-section-2::after,
.bg-section-3::after,
.bg-section-4::after,
.bg-section-5::after,
.bg-section-6::after,
.bg-section-7::after,
.bg-section-8::after,
.bg-section-9::after,
.bg-section-10::after,
.bg-section-11::after,
.bg-section-12::after {
  bottom: -20%;
  right: -12%;
  animation: floatAcrossReverse 40s ease-in-out infinite alternate;
}

.bg-section-1 > *,
.bg-section-2 > *,
.bg-section-3 > *,
.bg-section-4 > *,
.bg-section-5 > *,
.bg-section-6 > *,
.bg-section-7 > *,
.bg-section-8 > *,
.bg-section-9 > *,
.bg-section-10 > *,
.bg-section-11 > *,
.bg-section-12 > * {
  position: relative;
  z-index: 1;
}

/* --- Form elements --- */

.form-input,
.form-select,
.form-textarea,
textarea.form-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: #f8fafc;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(30, 41, 59, 0.9);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

/* --- Effects + utilities --- */

.parallax-effect {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.parallax-effect:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.6);
}

.fade-element {
  animation: fadeInOut 4s ease-in-out infinite;
}

.scale-element {
  animation: scalePulse 3s ease-in-out infinite;
}

@keyframes fadeInOut {
  0% { opacity: 0.25; }
  50% { opacity: 0.65; }
  100% { opacity: 0.25; }
}

@keyframes scalePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* --- Floating contact shapes --- */

@keyframes floatContact {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  25% { transform: translate3d(30px, -35px, 0) rotate(-8deg) scale(1.1); }
  50% { transform: translate3d(-35px, 30px, 0) rotate(12deg) scale(0.95); }
  75% { transform: translate3d(25px, 40px, 0) rotate(-12deg) scale(1.08); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}

@keyframes morphContact {
  0% { border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; }
  50% { border-radius: 55% 45% 45% 55% / 45% 60% 40% 55%; }
  100% { border-radius: 48% 52% 57% 43% / 58% 42% 48% 52%; }
}

.shape-1,
.shape-2,
.shape-3,
.shape-4,
.shape-5,
.shape-6,
.shape-7,
.shape-8,
.shape-9,
.shape-10 {
  position: absolute;
  opacity: 0.22;
  background: linear-gradient(120deg, rgba(148, 163, 184, 0.45), rgba(15, 23, 42, 0.6));
  border-radius: 45% 55% 50% 50%;
  animation: floatContact 30s ease-in-out infinite, morphContact 14s ease-in-out infinite;
  pointer-events: none;
  filter: blur(0px);
}

.shape-1 { width: 230px; height: 210px; top: 18%; left: 6%; }
.shape-2 { width: 190px; height: 190px; top: 68%; right: 10%; animation-duration: 34s; }
.shape-3 { width: 170px; height: 180px; bottom: 15%; left: 20%; animation-duration: 32s; }
.shape-4 { width: 210px; height: 190px; top: 32%; right: 8%; animation-duration: 28s; }
.shape-5 { width: 170px; height: 165px; top: 75%; left: 5%; animation-duration: 36s; }
.shape-6 { width: 220px; height: 200px; bottom: 12%; right: 14%; animation-duration: 38s; }
.shape-7 { width: 190px; height: 170px; top: 22%; left: 12%; animation-duration: 33s; }
.shape-8 { width: 240px; height: 210px; bottom: 25%; right: 16%; animation-duration: 37s; }
.shape-9 { width: 260px; height: 220px; top: 15%; right: 20%; animation-duration: 40s; }
.shape-10 { width: 270px; height: 230px; bottom: 28%; left: 15%; animation-duration: 42s; }

/* --- Widgets --- */

.el-chat-widget,
#elevenlabs-chat-widget,
button[aria-label="Start a chat"] {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 120;
  width: 56px;
  height: 56px;
}

@media (max-width: 768px) {
  .el-chat-widget,
  #elevenlabs-chat-widget,
  button[aria-label="Start a chat"] {
    right: 16px !important;
    bottom: 16px !important;
    width: 50px;
    height: 50px;
  }

  .el-chat-window,
  .elevenlabs-chat-window {
    width: 90vw !important;
    height: 70vh !important;
    bottom: 80px !important;
    right: 5vw !important;
    border-radius: 12px !important;
  }
}

#elevenlabs-agent-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
}

/* --- Utilities --- */

.max-w-prose {
  max-width: 60ch;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
