/* ═══════════════════════════════════════════════════════════════
   Level IT Up — Animation & Interaction Styles
   Layout/spacing/colors handled by Tailwind CSS.
   This file covers: keyframes, cursor, scroll fx, hero bg,
   reveal system, mobile menu, card effects, and misc CSS magic.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables (used by JS + CSS animations) ─────────────── */
:root {
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --glow-sm:    0 0 20px rgba(99,102,241,0.3);
  --glow-md:    0 0 40px rgba(99,102,241,0.4);
  --glow-lg:    0 0 80px rgba(99,102,241,0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base cursor ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: none;
  overflow-x: hidden;
}
@media (hover: none) { body, button, a { cursor: auto; } }

/* ── Custom Cursor ────────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--indigo-400);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  box-shadow: 0 0 10px var(--indigo-500), 0 0 20px var(--indigo-600);
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--indigo-500);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.6;
}
#cursor-ring.expanded {
  width: 56px; height: 56px;
  border-color: var(--indigo-400);
  opacity: 0.9;
}

/* ── Scroll Progress Bar ──────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-700), var(--indigo-500), var(--indigo-300));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--indigo-500);
}

/* ── Typography Helpers (used across sections) ────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--indigo-400);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--indigo-500);
  box-shadow: var(--glow-sm);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.7;
}
.highlight { color: var(--indigo-400); }

/* Hero gradient headline */
.line-2 {
  background: linear-gradient(135deg, var(--indigo-400) 0%, var(--indigo-300) 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  min-height: calc(2 * clamp(3rem, 8vw, 6rem));
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  background: var(--indigo-400);
  margin-left: 2px;
  border-radius: 2px;
  animation: blink-cursor 0.8s step-end infinite;
  vertical-align: baseline;
  /* Override the gradient clip so the cursor stays visible */
  -webkit-text-fill-color: var(--indigo-400);
  color: var(--indigo-400);
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

/* ── Language Switcher Active State ───────────────────────────── */
.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #475569;
  transition: var(--transition);
  cursor: none;
}
.lang-btn:hover { color: #94a3b8; }
.lang-btn.active {
  background: var(--indigo-600);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,0.5);
}

/* ── Navbar Scroll State ──────────────────────────────────────── */
#navbar.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(7, 7, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(99,102,241,0.2), var(--glow-sm);
}
#navbar { transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease; }

/* ── Nav Link Underline Hover ─────────────────────────────────── */
.nav-links a {
  position: relative;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--indigo-500);
  transition: width 0.3s;
  box-shadow: var(--glow-sm);
}
.nav-links a:hover, .nav-links a.active { color: #f1f5f9; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── Hamburger ────────────────────────────────────────────────── */
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #f1f5f9;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ──────────────────────────────────────────────── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  color: #94a3b8;
  transform: translateX(20px);
  opacity: 0;
  transition: color 0.2s, transform 0.4s ease, opacity 0.4s ease;
  cursor: none;
}
.mobile-menu.open a { transform: translateX(0); opacity: 1; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.13s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.23s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.28s; }
.mobile-menu a:hover { color: var(--indigo-400); }

/* ── Hero Background (orbs, grid, canvas) ─────────────────────── */
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float-orb 20s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--indigo-600), transparent 70%);
  top: -200px; left: -100px;
  animation-duration: 25s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -100px; right: -50px;
  animation-duration: 20s;
  animation-delay: -8s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--indigo-400), transparent 70%);
  top: 50%; right: 20%;
  animation-duration: 18s;
  animation-delay: -4s;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
#hero-canvas { position: absolute; inset: 0; z-index: 1; opacity: 0.5; }

/* Hero entry animations */
.hero-badge  { animation: fade-down 0.8s ease both; }
.hero-title  { animation: fade-up   0.8s ease 0.2s  both; }
.hero-sub    { animation: fade-up   0.8s ease 0.35s both; }
.hero-ctas   { animation: fade-up   0.8s ease 0.5s  both; }
.hero-stats  { animation: fade-up   0.8s ease 0.65s both; }
.scroll-indicator { animation: fade-in 1s ease 1.2s both; }

/* Hero badge pulse dot */
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-400);
  box-shadow: 0 0 8px var(--indigo-500);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Hero scroll indicator */
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(99,102,241,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--indigo-400);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* ── Reveal Animations ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible    { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ── Button Ripple ────────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; cursor: none; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

/* ── Service Card 3D / Glow ───────────────────────────────────── */
.service-card { transform-style: preserve-3d; cursor: none; }
.card-glow {
  position: absolute;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
.service-card:hover .card-glow { opacity: 1; }

/* ── About Animated Hexagons ──────────────────────────────────── */
.about-hex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.about-hex-svg:nth-child(1) { animation: rotate-ring 22s linear infinite reverse; }
.about-hex-svg:nth-child(2) { animation: rotate-ring 18s linear infinite; }
.about-hex-svg:nth-child(3) { animation: rotate-ring 14s linear infinite reverse; }
.about-center {
  position: absolute; inset: 30%;
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-500));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 24px rgba(99,102,241,0.5));
}

/* ── Map dark filter ──────────────────────────────────────────── */
.contact-map iframe {
  width: 100%; height: 400px; display: block;
  filter: invert(90%) hue-rotate(180deg) saturate(0.7) brightness(0.85);
}

/* ── Noise texture overlay ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.4;
}

/* ── Glow decorators ──────────────────────────────────────────── */
.glow-dot {
  position: absolute;
  width: 1px; height: 1px;
  background: var(--indigo-500);
  box-shadow: 0 0 60px 60px rgba(99,102,241,0.12);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Section top divider ──────────────────────────────────────── */
.section-divider-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-600), transparent);
}

/* ── Footer brand top glow ────────────────────────────────────── */
.footer-glow-top::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 300px; height: 1px;
  background: var(--indigo-600);
  box-shadow: var(--glow-sm);
}

/* ── Service Modal ────────────────────────────────────────────── */
.svc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 7, 20, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.svc-modal-overlay.is-open {
  opacity: 1;
}
.svc-modal-overlay[hidden] {
  display: none;
}
.svc-modal-panel {
  position: relative;
  background: linear-gradient(145deg, #0f1128, #111630);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(99,102,241,0.2), 0 24px 48px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  opacity: 0;
}
.svc-modal-overlay.is-open .svc-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.svc-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.svc-modal-close:hover {
  color: #e2e8f0;
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.4);
}
.svc-modal-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
}
.svc-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0.85rem;
  line-height: 1.3;
  padding-right: 2rem;
}
.svc-modal-detail {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.svc-modal-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.svc-modal-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.svc-modal-features li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--indigo-400);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(99,102,241,0.6);
}
.svc-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--indigo-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(79,70,229,0.35);
}
.svc-modal-cta:hover {
  background: var(--indigo-500);
  box-shadow: 0 6px 28px rgba(79,70,229,0.5);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */
@keyframes float-orb {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.05); }
  66%      { transform: translate(-20px, 30px) scale(0.97); }
}
@keyframes fade-up   { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fade-down { from { opacity:0; transform:translateY(-20px);} to { opacity:1; transform:translateY(0); } }
@keyframes fade-in   { from { opacity:0; } to { opacity:1; } }
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.4); }
}
@keyframes scroll-bounce {
  0%,100% { transform:translateY(0); opacity:1; }
  50%      { transform:translateY(8px); opacity:0.3; }
}
@keyframes ripple-anim { to { transform:scale(4); opacity:0; } }
@keyframes rotate-ring { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes orbit-dot {
  from { transform:rotate(0deg) translateX(50%) rotate(0deg) translate(-50%,-50%); }
  to   { transform:rotate(360deg) translateX(50%) rotate(-360deg) translate(-50%,-50%); }
}

/* ── Cookie Consent Banner ────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9990;
  padding: 0 1rem 1rem;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(13, 13, 43, 0.97);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 60px rgba(99, 102, 241, 0.15), 0 4px 40px rgba(0,0,0,0.5);
}

.cookie-banner-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 240px;
}

.cookie-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  color: var(--indigo-400);
  margin-top: 2px;
}

.cookie-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.cookie-text {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.cookie-more {
  font-size: 0.8125rem;
  color: var(--indigo-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: none;
}
.cookie-more:hover { color: var(--indigo-300); }

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.125rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: none;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.cookie-btn-outline {
  background: transparent;
  border-color: rgba(99, 102, 241, 0.35);
  color: #94a3b8;
}
.cookie-btn-outline:hover {
  border-color: rgba(99, 102, 241, 0.65);
  color: var(--indigo-400);
}

.cookie-btn-primary {
  background: var(--indigo-600);
  border-color: var(--indigo-600);
  color: #fff;
}
.cookie-btn-primary:hover {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
