/* Land & ROW — Shared Styles */

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BACKGROUNDS
   ============================================================ */
.hero-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14,165,233,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 80% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
              #020617;
}

.section-gradient {
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(14,165,233,0.06) 0%, transparent 70%),
              #0f172a;
}

.grid-pattern {
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.dot-pattern {
  background-image: radial-gradient(rgba(14,165,233,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   CARDS
   ============================================================ */
.card-glass {
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148,163,184,0.08);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card-glass:hover {
  border-color: rgba(14,165,233,0.25);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(14,165,233,0.1);
}

.card-service {
  background: linear-gradient(145deg, rgba(15,23,42,0.8), rgba(7,10,20,0.8));
  border: 1px solid rgba(148,163,184,0.08);
  transition: all 0.3s ease;
}
.card-service:hover {
  border-color: rgba(14,165,233,0.2);
  box-shadow: 0 0 40px rgba(14,165,233,0.08);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #F59E0B;
  color: #0c0a00;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: #FBBF24;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148,163,184,0.2);
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  border-color: rgba(14,165,233,0.4);
  color: #0EA5E9;
  background: rgba(14,165,233,0.05);
}

.btn-sky {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #0EA5E9;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-sky:hover {
  background: #38BDF8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.3);
}

/* ============================================================
   SKILL CARDS
   ============================================================ */
.skill-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.skill-card:hover {
  border-color: rgba(14,165,233,0.3);
  background: rgba(14,165,233,0.04);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(14,165,233,0.15);
}
.skill-card.active {
  border-color: rgba(14,165,233,0.5);
  background: rgba(14,165,233,0.06);
  box-shadow: 0 0 0 1px rgba(14,165,233,0.3), 0 0 30px rgba(14,165,233,0.1);
}

/* ============================================================
   GLOWS & ACCENTS
   ============================================================ */
.glow-blue {
  box-shadow: 0 0 40px rgba(14,165,233,0.15), 0 0 80px rgba(14,165,233,0.06);
}

.glow-amber {
  box-shadow: 0 0 40px rgba(245,158,11,0.2), 0 0 80px rgba(245,158,11,0.08);
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 9999px;
  color: #38BDF8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-ai::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #0EA5E9;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* ============================================================
   BEFORE/AFTER
   ============================================================ */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.before-box {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 0.5rem;
  padding: 1rem;
}

.after-box {
  background: rgba(14,165,233,0.05);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 0.5rem;
  padding: 1rem;
}

/* ============================================================
   STATS
   ============================================================ */
.stat-card {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   NAV ACTIVE STATE
   ============================================================ */
nav a.active {
  color: #0EA5E9 !important;
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 0.5rem;
  color: #e2e8f0;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
  border-color: rgba(14,165,233,0.5);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

/* ============================================================
   TERMINAL / CODE BLOCK
   ============================================================ */
.terminal {
  background: #020617;
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.terminal-header {
  padding: 0.75rem 1rem;
  background: rgba(15,23,42,0.8);
  border-bottom: 1px solid rgba(148,163,184,0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-body {
  padding: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94a3b8;
}

.terminal-body .cmd { color: #0EA5E9; }
.terminal-body .out { color: #22d3ee; }
.terminal-body .ok  { color: #22c55e; }
.terminal-body .dim { color: #475569; }
.terminal-body .hl  { color: #F59E0B; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-line {
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #0EA5E9, #6366F1, rgba(99,102,241,0.1));
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(14,165,233,0.15);
  border: 2px solid #0EA5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(14,165,233,0.25);
}

/* ============================================================
   INDUSTRY TABS
   ============================================================ */
.industry-tab {
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: #94a3b8;
  background: transparent;
  white-space: nowrap;
}
.industry-tab:hover {
  color: #e2e8f0;
  background: rgba(148,163,184,0.05);
}
.industry-tab.active {
  color: #0EA5E9;
  background: rgba(14,165,233,0.08);
  border-color: rgba(14,165,233,0.25);
}

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.cat-pill {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(148,163,184,0.12);
  color: #94a3b8;
  background: transparent;
}
.cat-pill:hover {
  color: #e2e8f0;
  border-color: rgba(148,163,184,0.25);
}
.cat-pill.active {
  color: #0EA5E9;
  background: rgba(14,165,233,0.1);
  border-color: rgba(14,165,233,0.3);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ============================================================
   HERO BADGE PULSE
   ============================================================ */
@keyframes hero-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(14,165,233,0.1); }
  50% { box-shadow: 0 0 60px rgba(14,165,233,0.2); }
}

.hero-badge-glow {
  animation: hero-glow 4s ease infinite;
}

/* ============================================================
   NUMBER COUNTER
   ============================================================ */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
}

/* ============================================================
   PIPELINE FLOW ANIMATION
   ============================================================ */
@keyframes flow-right {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(200%); opacity: 0; }
}

.flow-particle {
  animation: flow-right 3s ease infinite;
}
.flow-particle:nth-child(2) { animation-delay: 1s; }
.flow-particle:nth-child(3) { animation-delay: 2s; }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(14,165,233,0.2), transparent);
}
