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

html {
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #0891b2;
  border-radius: 3px;
}

/* ============================================================
   GLASSMORPHISM
============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ============================================================
   GLOW EFFECTS
============================================================ */
.glow-cyan {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.25), 0 0 60px rgba(6, 182, 212, 0.08);
}

.glow-cyan-sm {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.text-glow {
  text-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}

/* ============================================================
   GRADIENT TEXT
============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar-blur {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ============================================================
   HERO BACKGROUNDS
============================================================ */
.hero-grid {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6, 182, 212, 0.15), transparent 70%);
}

/* ============================================================
   SERVICE CARDS — HOVER BORDER GLOW
============================================================ */
.card-hover {
  transition: all 0.3s ease;
  position: relative;
}

.card-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(6, 182, 212, 0), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.3s ease;
  opacity: 0;
}

.card-hover:hover::before {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(129, 140, 248, 0.4), rgba(6, 182, 212, 0.6));
  opacity: 1;
}

.card-hover:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07) !important;
}

/* ============================================================
   PRIMARY BUTTON — SHINE EFFECT
============================================================ */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

/* ============================================================
   FORM INPUTS
============================================================ */
.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.6);
  background: rgba(6, 182, 212, 0.04);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* ============================================================
   STAT CARDS — SCROLL ANIMATION
============================================================ */
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NOISE TEXTURE OVERLAY
============================================================ */
.noise-overlay::after {
  content: '';
  position: absolute;
  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;
  opacity: 0.4;
}

/* ============================================================
   ALPINE.JS — HIDE BEFORE INIT
============================================================ */
[x-cloak] {
  display: none !important;
}
