/* ═══════════════════════════════════════════════
   EKLO DIGITAL — style.css
   Premium landing page · Dark theme · Blue palette
   ═══════════════════════════════════════════════ */

/* ─── Base Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Global Background Canvas ─── */
#global-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65; /* increased base canvas opacity to show stronger particles */
}

/* ─── Gradient Text ─── */
.text-gradient {
  background: linear-gradient(135deg, #5A57E6, #ABC7FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Casulo Video ─── */
.casulo-video {
  background: transparent;
  object-fit: contain;
  opacity: 0; /* starts hidden, GSAP animates in */
}

/* Mobile video (small animated logo) */
.casulo-video-mobile {
  height: 160px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: transparent;
  border-radius: 900px;
  box-shadow: none;
  margin: 0 auto;
  opacity: 1; /* parent #hero-logo controls visibility */
}

/* Desktop video */
.casulo-video-desktop {
  max-height: 65vh;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  background: transparent;
  border-radius: 900px;
  box-shadow: none;
}

/* Hero → site gradient transition */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #0A0820);
  pointer-events: none;
  z-index: 1;
}

/* ─── Scroll pulse ─── */
.scroll-pulse {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ─── NAVBAR ─── */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #5A57E6, #ABC7FF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.cta-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  background: linear-gradient(135deg, #18239B, #5A57E6);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
  border: none;
}

.cta-btn-nav:hover {
  background: linear-gradient(135deg, #5A57E6, #ABC7FF);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(90, 87, 230, 0.3);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 8, 32, 0.98);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: #fff;
}

/* Hamburger → X animation */
.hamburger .ham-line {
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger.active .ham-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .ham-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ─── CTA BUTTONS ─── */
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  background: #18239B;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.cta-btn-primary:hover {
  background: #5A57E6;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(90, 87, 230, 0.35);
}

.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
}

.cta-btn-outline:hover {
  border-color: rgba(90, 87, 230, 0.5);
  color: #fff;
  background: rgba(90, 87, 230, 0.08);
}

.cta-btn-large {
  padding: 20px 48px;
  font-size: 1.1rem;
}

/* ─── Section divider line ─── */
.section-divider-line {
  width: 100%;
  max-width: 1280px;
  height: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  transform: scaleX(0);
  transform-origin: left;
}

/* ─── Pillar background number ─── */
.pillar-bg-number {
  position: absolute;
  top: -20px;
  right: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pillar-bg-number.lg\:text-right {
  right: 0;
  left: auto;
}

/* ─── SERVICE CARDS ─── */
.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #5A57E6;
  box-shadow: 0 12px 40px rgba(90, 87, 230, 0.15);
}

.service-card-center:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 35, 155, 0.2), rgba(90, 87, 230, 0.1));
  border: 1px solid rgba(90, 87, 230, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5A57E6;
  margin-bottom: 20px;
}

.service-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(90, 87, 230, 0.08);
  color: rgba(171, 199, 255, 0.7);
  border: 1px solid rgba(90, 87, 230, 0.12);
}

/* ─── CASE CARDS (Legacy grid removed - now using Tailwind utility classes) ─── */
.case-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(90, 87, 230, 0.15);
  color: #ABC7FF;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(90, 87, 230, 0.2);
}

.top-center {
  object-position: top center;
}

/* ─── MARQUEE ─── */
.marquee-container {
  overflow: hidden;
  padding: 0 0;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-row {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  width: max-content;
}

.marquee-left {
  animation: marqueeLeft 35s linear infinite;
}

.marquee-right {
  animation: marqueeRight 30s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  transition: all 0.4s;
}

.marquee-item:hover {
  color: #ABC7FF;
  border-color: rgba(90, 87, 230, 0.3);
  background: rgba(90, 87, 230, 0.06);
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* ─── CTA GRADIENT ─── */
.cta-gradient {
  background: linear-gradient(135deg, #18239B 0%, #2C2865 100%);
}

/* ─── DIFF ITEMS ─── */
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.3s;
}

.diff-item:hover {
  border-color: rgba(90, 87, 230, 0.15);
  background: rgba(90, 87, 230, 0.03);
}

.diff-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #5A57E6;
  margin-top: 2px;
}

/* ─── GSAP reveal classes ─── */
.section-reveal {
  opacity: 0;
  transform: translateY(50px);
}

.section-headline {
  opacity: 0;
  transform: translateY(30px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .cta-btn-large {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .case-image {
    height: 200px;
  }

  .pillar-bg-number {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .cta-btn-primary {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 24px;
  }
}