/* =========================================================
   GUIDEMEGENIUS — styles.css
   Brand theme: Navy + Royal Blue + Vibrant Green
   ========================================================= */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette (from logo/posts) */
  --navy:        #0a2c5c;
  --navy-dk:     #062046;
  --blue:        #1565c0;
  --blue-lt:     #2196f3;
  --blue-dk:     #0d47a1;
  --green:       #4caf50;
  --green-lt:    #8bc34a;
  --green-dk:    #2e7d32;

  /* Backgrounds */
  --bg:          #f4f8fc;
  --bg-alt:      #e6f0fa;
  --card:        #ffffff;

  /* Text */
  --text:        #0f2544;
  --muted:       #5a7391;

  /* Borders & accents */
  --border:      #cfe0f0;
  --border-strong: #a9c8e4;

  /* Shadows — soft blue tint */
  --shadow-sm:   0 4px 14px rgba(10, 44, 92, .06);
  --shadow:      0 10px 30px rgba(10, 44, 92, .10);
  --shadow-lg:   0 20px 50px rgba(10, 44, 92, .16);

  /* WhatsApp */
  --whatsapp:    #25d366;

  /* Shape & fonts */
  --radius:      14px;
  --radius-lg:   20px;
  --font:        'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(21, 101, 192, .3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-dk) 0%, var(--blue-dk) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(21, 101, 192, .4);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { background: #1eb958; color: #fff; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(10, 44, 92, .04);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px; color: var(--navy);
  letter-spacing: -0.3px;
}
.logo-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-lt) 0%, var(--blue-dk) 60%, var(--green) 100%);
  border-radius: 10px; color: #fff; font-size: 22px;
  box-shadow: 0 4px 12px rgba(21, 101, 192, .3);
}
.logo-text strong { color: var(--blue); }
.logo-text { color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 14.5px; color: var(--muted);
  transition: color .2s; font-weight: 600;
}
.nav-links a:hover { color: var(--blue); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

/* ---------- HERO ---------- */
.hero {
  padding: 90px 0 80px;
  background:
    radial-gradient(900px 500px at 12% 0%,  rgba(76, 175, 80, .12), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(33, 150, 243, .16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--blue-lt) 50%, var(--green) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(76, 175, 80, .35);
  border-radius: 999px;
  font-size: 13px;
  color: var(--green-dk);
  background: rgba(139, 195, 74, .15);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--navy);
  letter-spacing: -0.8px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px; color: var(--muted);
  max-width: 620px; margin-bottom: 30px;
}
.hero-sub strong { color: var(--navy); font-weight: 700; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 14px; color: var(--muted); font-weight: 600;
}

/* Hero side card */
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--blue-lt) 100%);
}
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(33, 150, 243, .08), transparent 70%);
  z-index: 0;
}
.hero-card > * { position: relative; z-index: 1; }

.grade-badge {
  width: 92px; height: 92px; margin: 0 auto 20px;
  display: grid; place-items: center;
  font-size: 34px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(21, 101, 192, .35);
}
.hero-card h3 {
  font-size: 20px; margin-bottom: 10px;
  color: var(--navy); font-weight: 800;
}
.hero-card p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.link-arrow {
  color: var(--blue); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s, transform .2s;
}
.link-arrow:hover { color: var(--green-dk); transform: translateX(3px); }

/* ---------- SECTION SHELL ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 55px; }
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--navy);
  letter-spacing: -0.6px;
}
.section-head h2 .accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- GRIDS ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- CARDS ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-lt);
  box-shadow: 0 16px 40px rgba(21, 101, 192, .15);
}
.card .icon {
  font-size: 28px; margin-bottom: 16px;
  width: 58px; height: 58px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(76, 175, 80, .15), rgba(33, 150, 243, .15));
  border-radius: 50%;
  color: var(--blue-dk);
}
.card h3 {
  font-size: 18px; margin-bottom: 10px;
  color: var(--navy); font-weight: 700;
}
.card p { color: var(--muted); font-size: 14.5px; }

.service ul { margin-top: 10px; }
.service li {
  color: var(--muted); font-size: 14px;
  padding: 6px 0 6px 22px; position: relative;
}
.service li::before {
  content: "✓"; color: var(--green-dk); font-weight: bold;
  position: absolute; left: 0;
}

/* ---------- EXPERT BANNER ---------- */
.expert-banner {
  padding: 70px 0;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(76, 175, 80, .1), rgba(33, 150, 243, .1)),
    #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.expert-banner h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.expert-banner p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- RECENT PROJECTS ---------- */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 38px;
}
.project-tabs .tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
}
.project-tabs .tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.project-tabs .tab.active {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(21, 101, 192, .3);
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-lt);
  box-shadow: 0 16px 40px rgba(21, 101, 192, .15);
}
.project-card h3 {
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--navy);
  font-weight: 700;
}
.project-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-card .tags span {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(33, 150, 243, .1);
  color: var(--blue-dk);
  border: 1px solid rgba(33, 150, 243, .2);
  font-weight: 600;
}
.project-card .read-more {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  transition: color .2s, transform .2s;
}
.project-card .read-more:hover {
  color: var(--green-dk);
  transform: translateX(3px);
}

.field-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  align-self: flex-start;
  color: #fff;
}
.field-badge.engineering  { background: linear-gradient(135deg, #2196f3, #0d47a1); }
.field-badge.software     { background: linear-gradient(135deg, #673ab7, #4527a0); }
.field-badge.stats        { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.field-badge.health       { background: linear-gradient(135deg, #e53935, #b71c1c); }
.field-badge.science      { background: linear-gradient(135deg, #fb8c00, #e65100); }

.projects-footer {
  text-align: center;
  margin-top: 45px;
}

.project-card.is-hidden { display: none; }

/* ---------- HOW IT WORKS ---------- */
.steps {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.steps li:hover {
  transform: translateY(-6px);
  border-color: var(--blue-lt);
  box-shadow: 0 16px 40px rgba(21, 101, 192, .15);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: #fff; font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(21, 101, 192, .3);
}
.steps h3 {
  font-size: 16px; margin-bottom: 8px;
  color: var(--navy); font-weight: 700;
}
.steps p { color: var(--muted); font-size: 14px; }

/* ---------- REVIEW CARDS ---------- */
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-lt);
  box-shadow: 0 16px 40px rgba(21, 101, 192, .15);
}
.review-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.review-head .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  flex-shrink: 0;
}
.review-head h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 6px;
  font-weight: 700;
}
.review-head .flag { font-size: 15px; }
.review-head .stars {
  color: #f5a524;
  font-size: 14px;
  letter-spacing: 1px;
}
.review-head .rating {
  color: var(--muted);
  font-size: 13px;
  margin-left: 4px;
  letter-spacing: 0;
}
.review-meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--navy);
  font-weight: 700;
  text-align: right;
  line-height: 1.3;
}
.review-meta small {
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
}
.review-card .project {
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
  margin-top: 4px;
}
.review-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.review-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.review-card .tags span {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(33, 150, 243, .1);
  color: var(--blue-dk);
  border: 1px solid rgba(33, 150, 243, .2);
  font-weight: 600;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-grid h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.contact-grid p { color: var(--muted); margin-bottom: 24px; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: grid; gap: 16px;
  box-shadow: var(--shadow);
}
.contact-form label { display: grid; gap: 6px; }
.contact-form span {
  font-size: 13px; color: var(--navy);
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  background: #f8fbfe;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-lt);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, .15);
}
.contact-form button { margin-top: 6px; justify-content: center; }
.form-note {
  font-size: 12.5px; color: var(--muted);
  text-align: center; margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--navy);
  color: #b6c8de;
}
.site-footer p { color: #b6c8de; }
.footer-links { margin-top: 12px; }
.footer-links a {
  color: #b6c8de;
  transition: color .2s;
  font-weight: 500;
}
.footer-links a:hover { color: var(--green-lt); }

/* ---------- FLOATING WHATSAPP ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 8px 30px rgba(37, 211, 102, .5);
  animation: pulse 2.2s infinite;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, .5); }
  50%      { box-shadow: 0 8px 40px rgba(37, 211, 102, .85); }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 65px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}/* ---------- LOGO IMAGE ---------- */
.logo-img {
  height: 52px;
  width: auto;
  border-radius: 0;
  display: block;
}

@media (max-width: 640px) {
  .logo-img { height: 44px; }
}