/* Global background animation and layout */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at top, #020617 0%, #000000 45%, #020617 100%);
  background-size: 200% 200%;
  animation: bgShift 22s ease-in-out infinite;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}

@keyframes bgShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Shared hero gradient */
.hero-gradient {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.3), transparent 60%),
    linear-gradient(to bottom, #020617, #020617);
}

/* Hero layout and glow blobs */
.hero-section {
  position: relative;
  min-height: calc(100vh - 7rem); /* header plus footer space */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.65;
}

.hero-section::before {
  width: 260px;
  height: 260px;
  background: rgba(59, 130, 246, 0.5);
  top: 8%;
  left: -4%;
}

.hero-section::after {
  width: 320px;
  height: 320px;
  background: rgba(139, 92, 246, 0.6);
  bottom: -12%;
  right: -6%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Simple fade in for sections */
.section-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Main content width */
.main-container {
  max-width: 1350px;
  margin: 0 auto;
}

/* Cards */
.card-soft {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.55);
}

.card-light {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
}

/* Make sure page content clears fixed header and pushes footer down */
.page-wrapper {
  flex: 1;
  padding-top: 3rem;
}

/* Nav underline */
.nav-link {
  position: relative;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  border-radius: 9999px;
}

.hero-wide {
  max-width: 1750px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}


.footer-wide {
  width: 100%;
  padding-left: 48px;      /* EXACT 0.5 inch */
  padding-right: 48px;     /* EXACT 0.5 inch */
}


.about-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

/* Service card hover effect (same as About page) */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}


/* Prevent cutting off descenders like g, y, p */
.hero-section h1 {
  line-height: 1.15;          /* more breathing room */
  padding-bottom: 8px;        /* prevents clipping */
  overflow: visible !important;
}

.hero-section {
  overflow: visible !important;   /* stop clipping inside the hero container */
}


/* Fix clipping for large gradient titles used across pages */
.page-hero-title {
  line-height: 1.2;
  padding-bottom: 12px;
  overflow: visible !important;
  display: inline-block;
}

.page-hero-wrapper {
  overflow: visible !important;
}


.about-hero {
  overflow: visible !important;
}
