/* ---------- Basic Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #020617;
  color: #e6f7f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Animated background (behind everything) ---------- */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 20% 10%, rgba(0,229,176,0.06), transparent 8%),
              radial-gradient(circle at 85% 80%, rgba(0,183,214,0.04), transparent 8%);
}

/* Canvas covers the full viewport */
canvas#particles { width: 100%; height: 100%; display: block; }

/* ---------- HERO ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 6vw;
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, rgba(2,6,23,0.95) 0%, rgba(3,28,38,0.9) 100%);
}

/* center content area */
.hero-inner {
  width: 100%;
  max-width: 1100px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* SVG circuit sits behind the logo */
.circuit-svg {
  position: absolute;
  width: clamp(340px, 48vw, 620px);
  height: auto;
  left: 50%;
  transform: translateX(-50%);
  top: -10%;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* subtle slow rotate to give life */
.circuit-svg { animation: svg-rotate 40s linear infinite; transform-origin: center; }
@keyframes svg-rotate { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg); } }

/* Logo wrapper to place image above SVG */
.logo-wrap {
  width: clamp(150px, 28vw, 320px);
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* logo image */
.logo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0,229,176,0.06);
  transform-origin: center;
  transition: transform 0.6s ease;
}

/* hover / focus enlarge slightly */
.logo-wrap:hover .logo { transform: scale(1.03) rotate(-1deg); }

/* Title & tagline */
.site-title {
  margin-top: 26px;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(90deg, #00e5b0, #00d0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 3;
}

.tagline {
  margin-top: 12px;
  color: #cfeef0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  z-index: 3;
}

/* CTA */
.btn {
  display: inline-block;
  margin-top: 22px;
  background: linear-gradient(180deg,#085441,#0e8a6d);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(8,84,65,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 3;
}
.btn:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(8,84,65,0.24); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 120px) 6vw; position: relative; z-index: 2; }
.container { max-width: 1100px; margin: 0 auto; }

.section h2 {
  text-align: center;
  color: transparent;
  background: linear-gradient(90deg,#00e5b0,#00d0ff);
  -webkit-background-clip: text;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-bottom: 18px;
}

.section p { color: #c8eef0; text-align: center; line-height: 1.75; max-width: 920px; margin: 0 auto; }

/* dark section styles */
.dark { background: rgba(2,12,18,0.36); border-top: 1px solid rgba(0,255,255,0.03); backdrop-filter: blur(6px); }

/* cards grid */
.cards { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.card {
  background: linear-gradient(180deg, rgba(11,18,24,0.6), rgba(9,14,18,0.55));
  padding: 26px;
  border-radius: 14px;
  width: min(420px, 46%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  border: 1px solid rgba(0,255,255,0.06);
  transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(0,0,0,0.55); }

/* services grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; margin-top: 18px; }
.service-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(8,12,18,0.5);
  border: 1px solid rgba(0,255,255,0.04);
  text-align: center;
  transition: transform .22s ease, background .25s ease;
}
.service-card:hover { transform: translateY(-8px); background: rgba(8,84,65,0.16); }

/* contact center */
.contact-center { text-align: center; color: #d4fbf4; }
.contact-center a { color: #a8fff0; text-decoration: none; }

/* footer */
footer {
  padding: 22px 6vw;
  text-align: center;
  color: #93eae3;
  background: #01090c;
  border-top: 1px solid rgba(0,255,255,0.02);
}

/* ---------- SVG Circuit Animations (pure CSS) ---------- */
/* animate dash offset to create traveling light on traces */
.circuit-svg .ring-1 { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: dash-anim 8s linear infinite; opacity: 0.9; }
.circuit-svg .ring-2 { stroke-dashoffset: 0; transform-origin: center; animation: ring-pulse 6s ease-in-out infinite; opacity: 0.7; }
.circuit-svg .trace { stroke-dasharray: 260; stroke-dashoffset: 260; animation: trace-flow 3.6s linear infinite; opacity: 0.95; }
.circuit-svg .nodes circle { transform-origin: center; animation: node-pulse 2.8s ease-in-out infinite; opacity: 0.95; }

/* staggered variations for traces for organic feel */
.circuit-svg .t1 { animation-delay: 0s; }
.circuit-svg .t2 { animation-delay: 0.16s; }
.circuit-svg .t3 { animation-delay: 0.32s; }
.circuit-svg .t4 { animation-delay: 0.5s; }
.circuit-svg .t5 { animation-delay: 0.7s; }

@keyframes dash-anim {
  from { stroke-dashoffset: 1000; filter: drop-shadow(0 0 6px rgba(0,229,176,0.25)); }
  to { stroke-dashoffset: 0; }
}
@keyframes trace-flow {
  0% { stroke-dashoffset: 260; filter: drop-shadow(0 0 6px rgba(0,183,214,0.18)); opacity: 0.85; }
  50% { stroke-dashoffset: 130; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.85; }
}
@keyframes ring-pulse {
  0% { transform: scale(0.995); opacity: 0.78; filter: blur(0px); }
  50% { transform: scale(1.01); opacity: 1; filter: blur(1.2px); }
  100% { transform: scale(0.995); opacity: 0.78; filter: blur(0px); }
}
@keyframes node-pulse {
  0% { transform: scale(1); opacity: 0.85; filter: blur(0); }
  50% { transform: scale(1.35); opacity: 1; filter: blur(0.6px); }
  100% { transform: scale(1); opacity: 0.85; filter: blur(0); }
}

/* small responsiveness */
@media (max-width: 820px) {
  .circuit-svg { top: -6%; width: 74vw; }
  .hero { padding-top: 6vh; padding-bottom: 8vh; }
  .site-title { margin-top: 18px; }
  .cards { gap: 14px; }
}


/* ---- CONTACT SECTION STYLING ---- */
.contact-section {
  background: linear-gradient(180deg, rgba(2, 10, 14, 0.8), rgba(0, 60, 50, 0.3));
  border-top: 1px solid rgba(0,255,255,0.05);
  border-bottom: 1px solid rgba(0,255,255,0.05);
  padding-top: 90px;
  padding-bottom: 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 40px;
  justify-items: center;
}

.contact-card {
  background: rgba(10, 20, 25, 0.6);
  border: 1px solid rgba(0,255,255,0.04);
  border-radius: 14px;
  text-align: center;
  padding: 30px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform .25s ease, box-shadow .25s ease;
  max-width: 320px;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.55);
}

.contact-card h3 {
  margin-top: 14px;
  font-size: 1.1rem;
  color: #00e5b0;
}
.contact-card p {
  margin-top: 6px;
  color: #d6f5f0;
  line-height: 1.5;
  font-size: 0.95rem;
}
.contact-card a {
  color: #a8fff0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-card a:hover {
  color: #00ffc8;
}

.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 229, 176, 0.1);
  border: 1px solid rgba(0, 229, 176, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 0 12px rgba(0,229,176,0.1);
}
.icon-circle i {
  color: #00e5b0;
  font-size: 1.3rem;
}

/* ---- Social Icons ---- */
.social-links {
  margin-top: 50px;
  text-align: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 8px;
  background: rgba(0, 229, 176, 0.08);
  border: 1px solid rgba(0, 229, 176, 0.2);
  color: #00e5b0;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}
.social-links a:hover {
  background: #00e5b0;
  color: #031215;
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(0,229,176,0.4);
}

.services-section {
  background: radial-gradient(circle at center, rgba(8,84,65,0.15) 0%, #020a0c 90%);
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
  color: #e5fff7;
  text-shadow: 0 0 10px rgba(0,255,200,0.3);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 40px;
}

.services-col {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.service-card {
  background: rgba(8,20,18,0.8);
  border: 1px solid rgba(0,255,200,0.08);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: left;
  color: #d7fff5;
  box-shadow: 0 0 12px rgba(0,255,200,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(0,255,200,0.25);
}

.service-card h3 {
  font-size: 1.1rem;
  color: #00e5b0;
  margin-top: 8px;
}
.service-card p {
  margin-top: 8px;
  line-height: 1.5;
  font-size: 0.95rem;
}
.tag {
  display: inline-block;
  background: rgba(0,255,200,0.1);
  color: #00ffc8;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.8rem;
  margin-top: 6px;
}

.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0,255,200,0.1);
  border: 1px solid rgba(0,255,200,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ffc8;
  font-size: 1.2rem;
  box-shadow: 0 0 12px rgba(0,255,200,0.1);
}

/* --- Core Center Glow --- */
.services-center {
  position: relative;
}
.core-glow {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,200,0.25), rgba(0,255,200,0.05) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ffc8;
  font-size: 3rem;
  box-shadow: 0 0 80px rgba(0,255,200,0.3);
  animation: pulseGlow 3s infinite ease-in-out;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 50px rgba(0,255,200,0.2); transform: scale(1); }
  50% { box-shadow: 0 0 90px rgba(0,255,200,0.5); transform: scale(1.08); }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-center {
    order: -1;
    margin-bottom: 40px;
  }
  .service-card {
    text-align: center;
  }
}

.who-we-are-section {
  position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(8,84,65,0.1) 0%, #010a09 90%);
  padding: 120px 0;
  overflow: hidden;
  color: #eafff8;
}

.who-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://assets.codepen.io/927786/circuit-pattern.svg');
  background-repeat: repeat;
  background-size: 800px;
  opacity: 0.07;
  animation: moveCircuit 20s linear infinite;
  z-index: 0;
}

@keyframes moveCircuit {
  0% { background-position: 0 0; }
  100% { background-position: 800px 800px; }
}

.about-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 30px;
  animation: fadeInUp 1s ease-out both;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00ffc8;
  text-shadow: 0 0 15px rgba(0,255,200,0.4);
  margin-bottom: 25px;
}

.lead-text {
  font-size: 1.2rem;
  color: #d0fff4;
  margin-bottom: 25px;
  line-height: 1.7;
}

.about-content p {
  color: #c2f2e7;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  background: linear-gradient(90deg, #00ffc8 0%, #085441 100%);
  color: #02150f;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(0,255,200,0.2);
}
.cta-button:hover {
  background: linear-gradient(90deg, #00e5b0 0%, #06a078 100%);
  box-shadow: 0 0 30px rgba(0,255,200,0.4);
}

/* Scroll animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .lead-text {
    font-size: 1rem;
  }
}

.mission-vision-section {
  position: relative;
  background: radial-gradient(circle at 70% 50%, rgba(8,84,65,0.1) 0%, #020a09 85%);
  padding: 120px 0;
  overflow: hidden;
  color: #eafff8;
}

.mv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://assets.codepen.io/927786/circuit-pattern.svg');
  background-repeat: repeat;
  background-size: 700px;
  opacity: 0.05;
  animation: moveCircuits 25s linear infinite;
  z-index: 0;
}

@keyframes moveCircuits {
  0% { background-position: 0 0; }
  100% { background-position: 700px 700px; }
}

.mv-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.mv-image img {
  max-width: 480px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(0,255,200,0.15);
  animation: floatGlow 6s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mv-content {
  flex: 1;
  min-width: 320px;
}

.mv-content .section-title {
  color: #00ffc8;
  font-size: 2.3rem;
  text-shadow: 0 0 15px rgba(0,255,200,0.4);
  margin-bottom: 30px;
}

.mv-block {
  margin-bottom: 40px;
  background: rgba(8,20,18,0.8);
  border: 1px solid rgba(0,255,200,0.08);
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(0,255,200,0.05);
  transition: all 0.4s ease;
}

.mv-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0,255,200,0.25);
}

.mv-block h3 {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: #00ffc8;
  margin-bottom: 10px;
}

.mv-block h3 i {
  margin-right: 10px;
  color: #00ffc8;
  font-size: 1.2rem;
}

.mv-block p {
  font-size: 1rem;
  color: #d8fff3;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .mv-container {
    flex-direction: column;
    text-align: center;
  }
  .mv-content {
    order: 2;
  }
  .mv-image {
    order: 1;
    margin-bottom: 40px;
  }
  .mv-content .section-title {
    font-size: 2rem;
  }
}
