/*
 * GEF Elementor Widgets - Custom Styles
 * Extracted from index.html (lines 66-508)
 * All Tailwind utility classes are handled by the Tailwind CDN.
 * This file contains ONLY the custom CSS that Tailwind cannot produce.
 */

.sec { padding-top: 4rem; padding-bottom: 4rem; }
body {
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  color: #000000;
}
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: "Playfair Display", serif;
}
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ===== HERO ===== */
.hero-overlay {
  background:
    linear-gradient(160deg, rgba(0, 15, 31, 0.85) 0%, rgba(0, 15, 31, 0.65) 40%, rgba(0, 43, 92, 0.35) 100%);
}

/* Floating header capsule */
.header-inner {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-inner.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 43, 92, 0.08);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 30px rgba(0, 43, 92, 0.08);
}

/* Hero accent line */
.hero-accent-line {
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #00853F 0%, rgba(0, 133, 63, 0.2) 100%);
}

/* Hero CTA glow */
.hero-cta-primary {
  position: relative;
  overflow: hidden;
}
.hero-cta-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-cta-primary:hover::after { opacity: 1; }

/* Scroll indicator */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}
.scroll-indicator {
  animation: scroll-bounce 2s ease-in-out infinite;
}
.hero-img {
  transform: scale(1.1);
  transition: transform 14s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero-img.loaded { transform: scale(1); }

/* Gradient text for headings */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #9db3d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION ACCENT ===== */
.accent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00853F, #47b46f);
  box-shadow: 0 0 0 4px rgba(0, 133, 63, 0.2);
}

/* ===== SCROLL REVEALS ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ===== CARD HOVER ===== */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -15px rgba(0, 43, 92, 0.15);
  border-color: rgba(0, 43, 92, 0.2);
}

/* ===== PRODUCT CARDS ===== */
.product-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover img { transform: scale(1.1); }
.product-card .overlay-gradient {
  transition: opacity 0.5s ease;
}
.product-card:hover .overlay-gradient { opacity: 1; }

/* ===== INDUSTRY CARDS ===== */
.industry-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -15px rgba(0, 43, 92, 0.12);
}
.industry-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.industry-card:hover img { transform: scale(1.08); }

/* ===== STAT BAR ===== */
.stat-item { position: relative; }
.stat-item::after {
  content: ""; position: absolute; bottom: -8px; left: 0;
  width: 0; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, #002B5C, #577daf);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}
.stat-item.visible::after { width: 36px; }

/* ===== NAV LINK ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, #002B5C, #577daf);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 70%; }

/* ===== PROCESS CONNECTOR ===== */
@media (min-width: 640px) {
  .step-item:not(:last-child)::after {
    content: ""; position: absolute;
    top: 22px; left: calc(50% + 26px);
    width: calc(100% - 52px); height: 2px;
    background: repeating-linear-gradient(90deg, #d1d5db 0px, #d1d5db 5px, transparent 5px, transparent 10px);
  }
}

/* ===== GLOW TOP LINE ===== */
.glow-top { position: relative; }
.glow-top::before {
  content: ""; position: absolute; top: -1px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 43, 92, 0.6), transparent);
}

/* ===== CTA BUTTON EFFECT ===== */
.cta-primary {
  position: relative; overflow: hidden;
  transition: all 0.3s ease;
}
.cta-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #047857, #059669);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.cta-primary:hover::before { transform: scaleX(1); }
.cta-primary span { position: relative; z-index: 1; }

/* ===== MARQUEE ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 35s linear infinite;
}

/* ===== FLOATING ORB ===== */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.97); }
}
.float-orb {
  animation: float 8s ease-in-out infinite;
}
.float-orb-2 {
  animation: float 10s ease-in-out infinite reverse;
}

/* ===== CTA BACKGROUND ANIMATION ===== */
@keyframes cta-drift-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.07; }
  25% { transform: translate(60px, -40px) rotate(90deg); opacity: 0.12; }
  50% { transform: translate(20px, -80px) rotate(180deg); opacity: 0.06; }
  75% { transform: translate(-40px, -30px) rotate(270deg); opacity: 0.1; }
}
@keyframes cta-drift-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.06; }
  25% { transform: translate(-50px, 30px) rotate(-90deg); opacity: 0.1; }
  50% { transform: translate(-20px, 70px) rotate(-180deg); opacity: 0.05; }
  75% { transform: translate(30px, 40px) rotate(-270deg); opacity: 0.09; }
}
@keyframes cta-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.05; }
  50% { transform: translate(40px, -50px) scale(1.2); opacity: 0.1; }
}
@keyframes cta-line {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.cta-shape-1 { animation: cta-drift-1 14s ease-in-out infinite; }
.cta-shape-2 { animation: cta-drift-2 18s ease-in-out infinite; }
.cta-shape-3 { animation: cta-drift-3 12s ease-in-out infinite; }
.cta-shape-4 { animation: cta-drift-1 20s ease-in-out infinite reverse; }
.cta-line { animation: cta-line 6s linear infinite; }
.cta-line-2 { animation: cta-line 8s linear 2s infinite; }

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -15px rgba(0, 43, 92, 0.1);
}

/* ===== TESTIMONIAL SLIDER ===== */
.slider-wrapper { position: relative; overflow: hidden; }
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.slider-track > div { flex: 0 0 100%; padding: 0 8px; }
@media (min-width: 768px) { .slider-track > div { flex: 0 0 50%; } }
@media (min-width: 1024px) { .slider-track > div { flex: 0 0 33.333%; } }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.slider-btn:hover { background: #002B5C; color: white; border-color: #002B5C; }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.5rem; }
.slider-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.25); cursor: pointer; transition: all 0.3s; padding: 0;
}
.slider-dots button.active { background: white; width: 24px; border-radius: 4px; }

/* ===== FAQ TOGGLE ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s ease;
}
.faq-answer.open {
  max-height: 300px;
}
.faq-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ===== BACK TO TOP ===== */
.gef-back-to-top {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gef-back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== PROGRESS BAR (stats) ===== */
.progress-fill {
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.progress-fill.animate {
  width: var(--progress);
}

/* ===== PARALLAX SECTION ===== */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 1024px) {
  .parallax-bg { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible,
  .card-hover:hover, .industry-card:hover, .product-card:hover img,
  .industry-card:hover img, .hero-img, .hero-img.loaded {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .marquee-track { animation: none !important; }
  .float-orb, .float-orb-2 { animation: none !important; }
  .faq-answer { max-height: none !important; transition: none !important; }
  .progress-fill { width: var(--progress) !important; transition: none !important; }
  .gef-back-to-top { opacity: 1 !important; transform: none !important; }
}

/* Trust bar & features mobile slider */
.trust-slider,
.features-slider,
.cert-slider,
.products-slider,
.why-grid {
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.trust-slider::-webkit-scrollbar,
.features-slider::-webkit-scrollbar,
.cert-slider::-webkit-scrollbar,
.products-slider::-webkit-scrollbar,
.why-grid::-webkit-scrollbar { display: none; }
.trust-slider,
.features-slider,
.cert-slider,
.products-slider,
.why-grid { -ms-overflow-style: none; scrollbar-width: none; }
@media (min-width: 768px) {
  .trust-slider { scroll-snap-type: none; padding-bottom: 0; }
}
@media (min-width: 640px) {
  .features-slider,
  .cert-slider,
  .products-slider,
  .why-grid { scroll-snap-type: none; padding-bottom: 0; }
  .why-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible !important;
  }
  .why-grid > div {
    width: auto !important;
    display: contents !important;
  }
}

/* Center-align section text on mobile */
@media (max-width: 639px) {
  .sec { text-align: center; }
  .sec .mx-auto { text-align: center; }
  .sec h2, .sec h3, .sec p { text-align: center; }
  .sec .max-w-\[560px\],
  .sec .max-w-\[600px\],
  .sec .max-w-\[640px\] { margin-left: auto; margin-right: auto; }
  .sec .flex.items-center.gap-3.mb-4,
  .sec div.flex.items-center.gap-3 { justify-content: center; }
}

/* Generic mobile slider dots */
.mobile-slider-dots { display: none; }
@media (max-width: 639px) {
  .mobile-slider-dots {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 1rem;
  }
  .mobile-slider-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: none;
    background: rgba(0,43,92,0.15); cursor: pointer; transition: all 0.3s; padding: 0;
  }
  .mobile-slider-dots button.active {
    background: #00853F; width: 20px; border-radius: 4px;
  }
}

/* ===== ELEMENTOR WRAPPER OVERRIDES ===== */
/* Remove Elementor's default widget wrapper padding */
.elementor-widget-gef_header .elementor-widget-container,
.elementor-widget-gef_hero .elementor-widget-container,
.elementor-widget-gef_footer .elementor-widget-container {
  padding: 0;
  margin: 0;
}
