/* =========================
RESET & ROOT
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #ff2b2b;
  --green: #16a34a;
  --blue: #2563eb;
  --purple: #9333ea;
  --yellow: #facc15;
  --lime: #84cc16;

  --dark: #0f172a;
  --light: #f8f8f8;
  --text-dark: #1f2933;
  --text-light: #ffffff;
}

/* =========================
GLOBAL
========================= */
body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* =========================
NAVBAR (ALWAYS VISIBLE)
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 4px solid var(--blue);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
}

/* =========================
HERO SECTION
========================= */
.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 2;
}
/* =========================
HERO TEXT COLOR
========================= */
.hero,
.hero h1,
.hero p {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-text {
  height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* even gaps everywhere */
}

.hero-text h1 {
  font-size: 2.8rem;
  color: var(--white);
}

.hero-text p {
  font-size: 1.1rem;
}

/* =========================
HERO BUTTONS
========================= */
.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-buttons .btn {
  background: #000;
  color: var(--green);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero-buttons {
  margin-top: 10px;
}

.hero-buttons .btn.secondary {
  color: var(--blue);
}

.hero-buttons .btn:hover {
  opacity: 0.85;
}

/* =========================
PILLS (SAME WIDTH)
========================= */
.pills {
  display: flex;
  gap: 6px;
  width: 100%;
}

.pill {
  flex: 1;
  padding: 16px 10px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin: 30px 0 25px;
}

.pill.red { background: var(--red); }
.pill.green { background: var(--green); }
.pill.blue { background: var(--blue); }
.pill.purple { background: var(--purple); }
.pill.yellow { background: var(--yellow); color: #000; }
.pill.lime { background: var(--lime); color: #000; }

/* =========================
MATRIX BACKGROUND
========================= */
#matrix-bg {
  position: fixed;          /* 🔑 fixed so it scrolls behind */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;               /* behind cards */
  pointer-events: none;
}


/* =========================
SECTIONS
========================= */
.section {
  position: relative;
  z-index: 1;
  background: transparent;   /* 🔥 let matrix show through */
}


.section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* =========================
GLASS HEADER (OUR SERVICES)
========================= */
.glass-header {
  width: fit-content;
  margin: 0 auto 50px auto;

  padding: 18px 50px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 2px solid #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);

  position: relative;
  z-index: 3; /* above matrix */
}

.glass-header h2 {
  margin: 0;
  color: #000;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* =========================
SERVICES GRID UNIFORM CARDS
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Glass service card with black border and uniform size */
.service-card {
  position: relative;
  z-index: 2;  /* 🔑 above matrix */

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 2px solid #000;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
}

/* Hover effect */
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Glow effect behind black border */
.service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  z-index: -1;
  filter: blur(14px);
  opacity: 0.6;
}

/* Glow colors */
.service-card.red::before { background: var(--red); }
.service-card.green::before { background: var(--green); }
.service-card.blue::before { background: var(--blue); }
.service-card.purple::before { background: var(--purple); }
.service-card.yellow::before { background: var(--yellow); }
.service-card.lime::before { background: var(--lime); }

/* Card text */
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.service-card p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Tech tags */
.service-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-tags span {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
}

/* =========================
SERVICES GRID - 3 CARDS PER ROW
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns */
  gap: 30px;
}

/* Glass service card with uniform size and black border */
.service-card {
  position: relative;
  width: 100%;
  height: 300px;
  padding: 30px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 2px solid #000; /* black border */
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Glow effect behind black border */
.service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  z-index: -1;
  filter: blur(14px);
  opacity: 0.6;
}

/* Glow colors */
.service-card.red::before { background: var(--red); }
.service-card.green::before { background: var(--green); }
.service-card.blue::before { background: var(--blue); }
.service-card.purple::before { background: var(--purple); }
.service-card.yellow::before { background: var(--yellow); }
.service-card.lime::before { background: var(--lime); }
/* =========================
WHY GRID
========================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  font-weight: 600;
}

/* =========================
CTA
========================= */
.cta {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--text-light);
  padding: 60px 0;
  text-align: center;
}

/* =========================
CONTACT
========================= */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: grid;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 2px solid var(--blue);
}

/* =========================
FOOTER
========================= */
.footer {
  background: var(--dark);
  color: #94a3b8;
  text-align: center;
  padding: 20px 0;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 900px) {
  .card { width: 48%; }
}

@media (max-width: 768px) {
  .hero-buttons { flex-direction: column; }
}

@media (max-width: 600px) {
  .card { width: 100%; }
}
/* =========================
CTA BUTTON – FORCE GLOW + PULSE
========================= */
.cta .btn.primary {
  background: #000000 !important;
  color: #ffffff !important;

  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8) !important;
  animation: ctaPulse 2s infinite ease-in-out !important;

  border-radius: 999px;
  position: relative;
}

/* Hover boost */
.cta .btn.primary:hover {
  transform: scale(1.06);
}

/* Pulse animation */
@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(255,255,255,1);
  }
  100% {
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
  }
}
/* =========================
HERO BUTTONS – WHITE GLOW + PULSE
========================= */
.hero-buttons .btn {
  background: #000000;
  color: #ffffff;

  box-shadow: 0 0 20px rgba(255,255,255,0.7);
  animation: heroPulse 2.2s infinite ease-in-out;

  border-radius: 999px;
  position: relative;
  transition: transform 0.3s ease;
}

/* Hover effect */
.hero-buttons .btn:hover {
  transform: scale(1.06);
}

/* Pulse animation */
@keyframes heroPulse {
  0% {
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(255,255,255,1);
  }
  100% {
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
  }
}
