/* ============================================================================
 * styles.css — OmBI Solutions LLP
 * Custom CSS to supplement TailwindCSS classes.
 * ========================================================================= */

:root {
  --glow-color: rgba(34, 183, 232, 0.18); /* Intelligence Cyan glow */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Sophisticated mesh gradient background for high-end feel */
  background-color: #FAFBFD !important;
  background-image: 
    radial-gradient(at 0% 0%, rgba(34, 183, 232, 0.05) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(20, 61, 141, 0.04) 0px, transparent 55%),
    radial-gradient(at 50% 100%, rgba(139, 62, 168, 0.04) 0px, transparent 55%) !important;
  background-attachment: fixed !important;
}

/* Custom Scrollbar for a premium feel */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC; 
}
::-webkit-scrollbar-thumb {
  background: #143D8D; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22B7E8; 
}

/* 
 * Linear/Framer style Premium Hover Effects
 * Subtle borders, moving gradients, deep shadow on hover
 */
.service-card, .group {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover, .group:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(20, 61, 141, 0.07), 0 1px 3px rgba(0, 0, 0, 0.01), 0 0 0 1px rgba(34, 183, 232, 0.08); /* subtle outer brand glow line */
}

/* Glassmorphic card styling overrides for light theme - Avoid flat "pure white" look */
.bg-white\/70, 
.bg-white\/80, 
.bg-white\/90,
.bg-white {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(253, 254, 255, 0.60) 100%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-color: rgba(203, 213, 225, 0.45) !important; /* soft slate border */
  box-shadow: 
    0 10px 30px -10px rgba(20, 61, 141, 0.02),
    0 1px 3px rgba(0, 0, 0, 0.01) !important;
}

/* Navigation bar background override on scroll */
nav.bg-white\/95 {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
}

/* Hover effects for glassmorphic elements inside groups */
.group:hover .bg-white\/70,
.group:hover .bg-white\/80,
.group:hover .bg-white\/90,
.group:hover .bg-white {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 254, 255, 0.78) 100%) !important;
  border-color: rgba(34, 183, 232, 0.25) !important;
  box-shadow: 
    0 25px 45px -15px rgba(20, 61, 141, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.01) !important;
}

/* Moving glow effect behind cards using pseudo elements */
.service-card::before, .group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, var(--glow-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}
.service-card:hover::before, .group:hover::before {
  opacity: 1;
}

/* Bring card content above the glow */
.service-card > *, .group > * {
  position: relative;
  z-index: 10;
}

/* Dynamic Text Reveals (used by GSAP) */
.text-reveal-wrapper {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

/* Ensure no focus outline on mobile menu tap */
button:focus {
  outline: none;
}

/* Loader if needed */
.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #22B7E8;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero Grid Background */

@keyframes slideGrid {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

.hero-grid-bg {
  animation: slideGrid 20s linear infinite;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(20, 61, 141, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(20, 61, 141, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Premium Text Shadows for Hero */
h1 {
  text-shadow: 0 10px 30px rgba(20, 61, 141, 0.03);
}

/* Premium Logo Text Shine */
@keyframes textShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.animate-text-shine {
  background: linear-gradient(
    to right,
    #143D8D 20%,
    #22B7E8 30%,
    #8B3EA8 70%,
    #143D8D 80%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShine 4s linear infinite;
}

/* CSS Aurora Keyframes & Animations */
@keyframes auroraSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, 18%) scale(1.2); }
}
@keyframes auroraMedium {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14%, -10%) scale(0.85); }
}
@keyframes auroraFast {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, -15%) scale(1.15); }
}

.animate-aurora-slow {
  animation: auroraSlow 25s ease-in-out infinite;
}
.animate-aurora-medium {
  animation: auroraMedium 20s ease-in-out infinite;
}
.animate-aurora-fast {
  animation: auroraFast 18s ease-in-out infinite;
}

/* ============================================================================
 * OmBI Custom Tawk.to Chat Widget Styles (Stunning Framer/Linear Aesthetics)
 * ========================================================================= */

.ombi-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%; /* Perfect Circle shape */
  background: linear-gradient(135deg, #143D8D 0%, #22B7E8 50%, #8B3EA8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 10px 30px rgba(34, 183, 232, 0.3),
    0 2px 5px rgba(20, 61, 141, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  z-index: 99999;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ombiFloat 3s ease-in-out infinite;
}

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

.ombi-chat-trigger:hover {
  animation: none;
  transform: translateY(-8px) scale(1.08) rotate(8deg);
  box-shadow: 
    0 20px 40px rgba(34, 183, 232, 0.5),
    0 4px 10px rgba(20, 61, 141, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.ombi-chat-trigger:active {
  transform: translateY(-2px) scale(0.96);
}

.ombi-chat-trigger .chat-icon-close {
  display: none;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.ombi-chat-trigger.active {
  animation: none;
  transform: rotate(90deg);
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.ombi-chat-trigger.active .chat-icon-msg {
  display: none;
}

.ombi-chat-trigger.active .chat-icon-close {
  display: block;
}

/* Pulsing background aura */
.ombi-chat-pulsar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%; /* Perfect Circle shape */
  background: rgba(34, 183, 232, 0.35);
  z-index: 99998;
  pointer-events: none;
  animation: chatPulse 3s infinite;
  transition: all 0.5s ease;
}

.ombi-chat-trigger.active + .ombi-chat-pulsar {
  animation: none;
  opacity: 0;
}

@keyframes chatPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Live Status Indicator Dot */
.ombi-chat-status {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #FAFBFD;
  background-color: #10B981;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.ombi-chat-status.offline {
  background-color: #94A3B8;
}

.ombi-chat-status.away {
  background-color: #F59E0B;
}

/* Tooltip with pop-bounce and breathing glow animations */
.ombi-chat-tooltip {
  position: fixed;
  bottom: 33px;
  right: 94px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(253, 254, 255, 0.85));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 10px 25px -5px rgba(20, 61, 141, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  color: #143D8D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  z-index: 99997;
  pointer-events: none;
  opacity: 0;
  transform: translateX(12px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ombi-chat-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transform: rotate(-45deg);
}

.ombi-chat-tooltip.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: 
    tooltipPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
    tooltipGlowPulse 2.5s infinite ease-in-out;
}

@keyframes tooltipPop {
  0% {
    opacity: 0;
    transform: translateX(20px) scale(0.8) rotate(-3deg);
  }
  60% {
    transform: translateX(-4px) scale(1.04) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}

@keyframes tooltipGlowPulse {
  0%, 100% {
    box-shadow: 
      0 10px 25px -5px rgba(20, 61, 141, 0.08),
      0 0 0 0px rgba(34, 183, 232, 0);
  }
  50% {
    border-color: rgba(34, 183, 232, 0.45);
    box-shadow: 
      0 12px 30px -4px rgba(34, 183, 232, 0.15),
      0 0 10px 2px rgba(34, 183, 232, 0.1);
  }
}

/* Chat Drawer Panel */
.ombi-chat-drawer {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 370px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 130px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 
    0 10px 30px -10px rgba(20, 61, 141, 0.05),
    0 25px 60px -15px rgba(20, 61, 141, 0.12),
    0 40px 90px -20px rgba(20, 61, 141, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ombi-chat-drawer.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header styling */
.ombi-chat-header {
  background: linear-gradient(135deg, #143D8D 0%, #22B7E8 100%);
  padding: 22px 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 20px rgba(20, 61, 141, 0.08);
}

.ombi-chat-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ombi-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 20px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.ombi-chat-header-text h3 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(20, 61, 141, 0.15);
}

.ombi-chat-header-text p {
  font-size: 10px;
  opacity: 0.95;
  margin: 3px 0 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.ombi-chat-header-text p::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.ombi-chat-header-text p.offline::before {
  background-color: #94A3B8;
  box-shadow: none;
}

.ombi-chat-header-text p.away::before {
  background-color: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
}

.ombi-chat-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ombi-chat-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Body content styling */
.ombi-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ombi-chat-body::-webkit-scrollbar {
  width: 4px;
}
.ombi-chat-body::-webkit-scrollbar-track {
  background: transparent;
}
.ombi-chat-body::-webkit-scrollbar-thumb {
  background: rgba(20, 61, 141, 0.12);
  border-radius: 2px;
}
.ombi-chat-body::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 183, 232, 0.25);
}

/* Welcome Card */
.ombi-chat-welcome {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(253, 254, 255, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 
    0 10px 25px -10px rgba(20, 61, 141, 0.03),
    inset 0 1px 0 #ffffff;
}

.ombi-chat-welcome h4 {
  font-size: 14px;
  color: #143D8D;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.ombi-chat-welcome p {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Section Title */
.ombi-chat-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 1.2px;
  margin: 8px 0 2px 0;
}

/* Pre-chat Form */
.ombi-chat-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ombi-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ombi-form-group label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: -0.1px;
}

.ombi-form-group input,
.ombi-form-group select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: #1E293B;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
}

.ombi-form-group input::placeholder {
  color: #94A3B8;
}

.ombi-form-group input:focus,
.ombi-form-group select:focus {
  background: #ffffff;
  border-color: #22B7E8;
  box-shadow: 
    0 0 0 3px rgba(34, 183, 232, 0.12),
    0 4px 10px rgba(20, 61, 141, 0.02);
}

/* Buttons */
.ombi-chat-btn {
  background: linear-gradient(135deg, #143D8D 0%, #22B7E8 100%);
  color: white;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    0 8px 20px rgba(34, 183, 232, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ombi-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 25px rgba(34, 183, 232, 0.35);
  background: linear-gradient(135deg, #103273 0%, #22B7E8 100%);
}

.ombi-chat-btn:active {
  transform: translateY(0);
}

/* Quick Topic Buttons */
.ombi-chat-topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ombi-topic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ombi-topic-card:hover {
  background: #ffffff;
  border-color: rgba(34, 183, 232, 0.45);
  transform: translateX(4px);
  box-shadow: 
    0 10px 20px -8px rgba(20, 61, 141, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.01);
}

.ombi-topic-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ombi-topic-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ombi-topic-text {
  display: flex;
  flex-direction: column;
}

.ombi-topic-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.1px;
}

.ombi-topic-arrow {
  font-size: 10px;
  color: #94A3B8;
  transition: transform 0.3s ease, color 0.3s ease;
}

.ombi-topic-card:hover .ombi-topic-arrow {
  transform: translateX(2px);
  color: #22B7E8;
}

/* Alternative Contact Info Row */
.ombi-chat-alt-contacts {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.ombi-chat-alt-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ombi-chat-alt-btn:hover {
  background: #ffffff;
  border-color: rgba(34, 183, 232, 0.25);
  color: #143D8D;
  box-shadow: 0 4px 10px rgba(20, 61, 141, 0.03);
}

/* Footer credit */
.ombi-chat-footer {
  padding: 10px;
  text-align: center;
  font-size: 9px;
  font-weight: 500;
  color: #94A3B8;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  background: rgba(255, 255, 255, 0.4);
}
