/* Custom CSS beyond Tailwind */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #0a0e1a; color: #e2e8f0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #243052; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0ea5e9; }

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

/* Dot grid pattern */
.dot-bg {
  background-image: radial-gradient(rgba(14, 165, 233, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glow effects */
.glow-blue { box-shadow: 0 0 30px rgba(14, 165, 233, 0.15), 0 0 60px rgba(14, 165, 233, 0.05); }
.glow-blue-strong { box-shadow: 0 0 40px rgba(14, 165, 233, 0.25), 0 0 80px rgba(14, 165, 233, 0.1); }
.text-glow { text-shadow: 0 0 40px rgba(14, 165, 233, 0.5); }

/* Glass morphism */
.glass {
  background: rgba(15, 22, 41, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 165, 233, 0.08);
}
.glass-card {
  background: rgba(15, 22, 41, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(14, 165, 233, 0.1);
  transition: all 0.3s ease;
}
.glass-card:hover {
  background: rgba(15, 22, 41, 0.7);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.08);
  transform: translateY(-4px);
}

/* Gradient borders */
.gradient-border {
  position: relative;
  background: #0f1629;
  border-radius: 16px;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), transparent 50%, rgba(56, 189, 248, 0.1));
  z-index: -1;
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8, #7dd3fc, #0ea5e9);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typing cursor */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #0ea5e9;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }
.float-anim-delay { animation: float 4s ease-in-out 1s infinite; }
.float-anim-delay2 { animation: float 4s ease-in-out 2s infinite; }

/* Pulse ring */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #0ea5e9;
  animation: pulse-ring 2s ease-out infinite;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Nav active state */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Process line */
.process-line {
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #0ea5e9, transparent);
}

/* FAQ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-top: 12px;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-icon.rotated {
  transform: rotate(45deg);
}

/* Button hover effect */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before {
  left: 100%;
}

/* Pricing card highlight */
.pricing-highlight {
  position: relative;
}
.pricing-highlight::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0ea5e9, #7dd3fc);
  z-index: -1;
}

/* Stat counter */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Portfolio overlay */
.portfolio-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* Testimonial card */
.testimonial-card {
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: scale(1.02);
}

/* Hero orb */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

/* Code block styling */
.code-block {
  background: rgba(15, 22, 41, 0.8);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}

/* === ICON SIZE & CENTERING FIXES === */

/* Social icons in glass containers */
.glass .fab,
.glass .fas,
.glass-card .fab,
.glass-card .fas {
  font-size: 1.8rem;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Social icon containers (the <a> tags) */
.glass .fab,
.glass .fas {
  font-size: 1.8rem;
}

/* W-10 h-10 containers */
.w-10.h-10 .fab,
.w-10.h-10 .fas {
  font-size: 1.8rem;
  line-height: 1 !important;
}

.w-9.h-9 .fab,
.w-9.h-9 .fas {
  font-size: 1.8rem;
  line-height: 1 !important;
}

/* Service icons (w-7 h-7 containers) */
.w-7.h-7 .fas,
.w-7.h-7 .fab {
  font-size: 1.8rem;
  line-height: 1 !important;
}

/* Process icons (w-8 h-8 containers) */
.w-8.h-8 .fas,
.w-8.h-8 .fab {
  font-size: 1.8rem;
  line-height: 1 !important;
}

/* Menu icons */
.w-5.h-5 .fas,
.w-5.h-5 .fab {
  font-size: 1.8rem;
  line-height: 1 !important;
}

.w-6.h-6 .fas,
.w-6.h-6 .fab {
  font-size: 1.8rem;
  line-height: 1 !important;
}

/* Contact icons (w-5 h-5 containers) */
.w-5.h-5 .fas,
.w-5.h-5 .fab {
  font-size: 1.8rem;
  line-height: 1 !important;
}

/* Back to top icon */
#back-to-top .fas {
  font-size: 1.8rem;
  line-height: 1 !important;
}

/* Ensure all icon containers use flex for centering */
.flex.items-center.justify-center .fas,
.flex.items-center.justify-center .fab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Make sure all flex containers with icons are properly centered */
.flex.items-center.justify-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Icon containers that are circles or squares */
.rounded-full .fas,
.rounded-full .fab,
.rounded-lg .fas,
.rounded-lg .fab,
.rounded-xl .fas,
.rounded-xl .fab,
.rounded-2xl .fas,
.rounded-2xl .fab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}    