/* ==========================================================================
   MaAthMagic Business Services — stylesheet
   ========================================================================== */

:root {
  --bg: #060b14;
  --bg-darker: #04080f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f8fafc;
  --text-secondary: #b8c2d0;
  --text-muted: #7c8798;
  --accent-blue: #2f7fd1;
  --accent-blue-strong: #2163a6;
  --accent-blue-light: #93c5fd;
  --accent-gold: #c9a227;
  --icon-bg: rgba(59, 130, 246, 0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 110px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 18px;
}

.section-sub {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-blue-strong);
  color: #ffffff;
}

.btn-primary:hover {
  background: #256bb5;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img {
  height: 56px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 34px;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover,
nav a.active {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
#hero {
  padding-top: 90px;
  padding-bottom: 90px;
  text-align: center;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  text-align: center;
  font-size: clamp(1.6rem, 5.6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  white-space: normal;
  overflow-wrap: break-word;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 110px;
}

.hero-inner h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 26px;
}

.hero-inner .lead {
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.hero-services-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 46px;
}

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.98rem;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-light);
  margin-bottom: 22px;
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

/* ---------- About ---------- */
.about-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 34px;
}

.about-text p {
  margin-bottom: 22px;
  font-size: 1.05rem;
}

.why-india {
  margin-top: 90px;
  text-align: center;
}

.why-india h3 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.why-india > p {
  max-width: 640px;
  margin: 0 auto 46px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  text-align: left;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.mission-vision {
  text-align: center;
  padding: 70px 0 0;
}

.mission-vision h3 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.mission-vision p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.service-card p {
  margin: 12px 0 18px;
  font-size: 0.98rem;
}

.service-card h4 {
  font-size: 1.2rem;
}

.learn-more {
  color: var(--accent-blue-light);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Why Us ---------- */
.whyus-top {
  text-align: center;
  margin-bottom: 60px;
}

.whyus-top .section-sub {
  margin-bottom: 6px;
}

.whyus-list {
  max-width: 760px;
  margin: 0 auto 100px;
}

.whyus-item {
  display: flex;
  gap: 18px;
  border-left: 2px solid var(--border-strong);
  padding: 4px 0 30px 22px;
}

.whyus-item .arrow {
  color: var(--accent-blue-light);
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 2px;
}

.whyus-item h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.startups-heading {
  text-align: center;
  margin-bottom: 46px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.emoji-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.emoji-card .emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.emoji-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ---------- Process ---------- */
.process-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 1100px;
  margin: 0 auto 30px;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: var(--border-strong);
  z-index: 0;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-light);
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.step-icon svg {
  width: 30px;
  height: 30px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.process-step {
  text-align: center;
}

.process-step-icon-wrap {
  margin-bottom: 26px;
}

.process-step .card {
  text-align: center;
  padding: 24px 18px;
  height: 100%;
}

.process-step h4 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.92rem;
}

/* ---------- Careers ---------- */
.careers-top {
  text-align: center;
  margin-bottom: 60px;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 1000px;
  margin: 0 auto;
}

.careers-grid .card h3 {
  font-size: 1.4rem;
  margin-bottom: 26px;
}

.role-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}

.role-item .icon-box {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.role-item .icon-box svg {
  width: 18px;
  height: 18px;
}

.perk-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.perk-list .arrow {
  color: var(--accent-blue-light);
}

/* ---------- Contact ---------- */
.contact-top {
  text-align: center;
}

.contact-top .eyebrow-title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 6px;
}

.contact-top h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 26px;
}

.contact-top p {
  max-width: 720px;
  margin: 0 auto 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 26px;
}

.info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.info-row .icon-box {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.info-row .icon-box svg {
  width: 20px;
  height: 20px;
}

.info-row strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.consult-box {
  margin-top: 30px;
  background: var(--accent-blue-strong);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
}

.consult-box h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 16px;
}

.consult-box .btn {
  background: #fff;
  color: var(--accent-blue-strong);
}

.consult-box .btn:hover {
  background: #eef4fb;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-grid h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.footer-grid h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-grid p {
  max-width: 320px;
}

.footer-links li,
.footer-social li {
  margin-bottom: 14px;
}

.footer-links a,
.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-timeline {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  section {
    padding: 76px 0;
  }
  nav ul {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  nav ul.open {
    transform: translateY(0);
  }
  nav li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: flex;
  }
  .hero-pills {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-3,
  .grid-2,
  .careers-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
