/* ==========================================================
   Digital Master Minds — style.css
   Poppins | #22c55e green | #6D28D9 purple | #fff bg
   ========================================================== */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: #fff;
  color: #111827;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* ── Variables ── */
:root {
  --green:   #22c55e;
  --gl:      #dcfce7;
  --gb:      #bbf7d0;
  --purple:  #6D28D9;
  --ph:      #5B21B6;
  --gray:    #6B7280;
  --head:    #111827;
  --border:  #E5E7EB;
  --shadow:  0 8px 30px rgba(0,0,0,.08);
  --shad2:   0 16px 48px rgba(0,0,0,.13);
  --r-sm:    10px;
  --r-md:    14px;
  --r-lg:    20px;
  --nav-h:   120px;
  --ease:    0.28s cubic-bezier(.4,0,.2,1);
}

/* ── Utility ── */
.green { color: var(--green); }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
  animation: navIn .55s ease both;
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 18px rgba(0,0,0,.06);
  background: rgba(255,255,255,.97);
}
@keyframes navIn {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-img  { height: 120px; width: auto; object-fit: contain; display: block; }

/* Centre nav */
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%) scaleX(0);
  width: 18px; height: 2px;
  background: var(--green);
  border-radius: 99px;
  transition: transform var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--head); }
.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { font-weight: 600; }

/* Right */
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ==========================================================
   SHARED BUTTONS
   ========================================================== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  background: #fff;
  border: 2px solid var(--purple);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 16px rgba(109,40,217,.25);
  transform: translateY(-1px);
}
.btn-outline:active { transform: none; }

/* ==========================================================
   BURGER
   ========================================================== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--ease);
}
.burger:hover { background: #f3f4f6; }
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--head);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   MOBILE NAV
   ========================================================== */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: #fff;
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.mobile-nav.open { max-height: 380px; }
.m-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  padding: 10px 12px;
  border-radius: 8px;
  transition: color var(--ease), background var(--ease);
}
.m-link:hover { color: var(--head); background: #f9fafb; }
.m-btn { margin-top: 10px; width: fit-content; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 64px) 24px 90px;
  overflow: hidden;
}

/* Blobs */
.hero-blob {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(100px);
  opacity: .055;
  pointer-events: none;
  z-index: 0;
}
.hero-blob.left  { left: -160px; top: 8%; }
.hero-blob.right { right: -160px; top: 30%; }

.hero-body {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Badge pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  background: var(--gl);
  border: 1px solid var(--gb);
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 30px;
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite;
}
.modal-icon i {
  display: inline-block;
  animation: zoomIn 0.4s ease-out forwards;
}

@keyframes zoomIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/* Heading */
.hero-h1 {
  font-size: 64px;
  font-weight: 700;
  color: var(--head);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}
.break { display: none; }

/* Para */
.hero-p {
  font-size: 18px;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* Hero CTA */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 34px;
  font-size: 15px;
  font-weight: 600;
  color: var(--purple);
  background: #fff;
  border: 2px solid var(--purple);
  border-radius: 12px;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn-hero:hover {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 24px rgba(109,40,217,.28);
  transform: translateY(-2px);
}
.btn-hero i { transition: transform var(--ease); }
.btn-hero:hover i { transform: rotate(-20deg) scale(1.1); }

/* ==========================================================
   TOOLS SECTION
   ========================================================== */
.tools-sec {
  padding: 100px 0;
  background: #fff;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  background: var(--gl);
  border: 1px solid var(--gb);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.sec-h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--head);
  letter-spacing: -.02em;
  margin-bottom: 14px;
  text-align: center;
}
.sec-p {
  font-size: 16px;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto 60px;
  line-height: 1.75;
  text-align: center;
}

/* ── Cards Grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shad2);
  border-color: #d1d5db;
}

/* Icon box */
.icon-box {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
}
.c-icon { width: 48px; height: 48px; transition: transform .3s ease; }
.card:hover .c-icon { transform: scale(1.06) rotate(-4deg); }

/* Card text */
.card-h {
  font-size: 22px;
  font-weight: 700;
  color: var(--head);
}
.card-p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 260px;
  flex: 1;
}

/* Card button */
.card-btn {
  height: 42px;
  padding: 0 24px;
  font-size: 13.5px;
  align-self: flex-start;
  margin-top: 4px;
}

/* ==========================================================
   CONTACT SECTION
   ========================================================== */
.contact-sec {
  padding: 100px 0;
  background: #fafafa;
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-info { padding-top: 8px; }

.perk-list { display: flex; flex-direction: column; gap: 12px; }
.perk-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray);
}
.perk-list li i { color: var(--green); font-size: 16px; }

/* Form */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.f-group { display: flex; flex-direction: column; gap: 6px; }
.f-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--head);
}
.f-group input,
.f-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--head);
  background: #fafafa;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  resize: vertical;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.f-group input::placeholder,
.f-group textarea::placeholder { color: #9CA3AF; }
.f-group input:focus,
.f-group textarea:focus {
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(109,40,217,.1);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--purple);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  align-self: flex-start;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-submit:hover {
  background: var(--ph);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(109,40,217,.28);
}
.btn-submit:active { transform: none; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 48px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
}

/* Col 1 */
.f-brand { max-width: 380px; }
.f-logo  { height: 120px; width: auto; object-fit: contain; margin-bottom: 14px; }
.f-name  { font-size: 17px; font-weight: 700; color: var(--head); margin-bottom: 10px; }
.f-desc  { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 24px; }

/* Socials */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--gray);
  font-size: 14px;
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.soc:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--gl);
  transform: translateY(-2px);
}

/* Footer cols */
.f-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  margin-bottom: 20px;
}
.f-list { display: flex; flex-direction: column; gap: 10px; }
.f-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.f-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.f-list a {
  font-size: 14px;
  color: var(--gray);
  position: relative;
  transition: color var(--ease);
}
.f-list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1.5px;
  background: var(--green);
  transition: width var(--ease);
}
.f-list a:hover { color: var(--head); }
.f-list a:hover::after { width: 100%; }

/* Footer bar */
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 22px 32px;
  text-align: center;
}
.footer-bar p { font-size: 13px; color: var(--gray); }

/* ==========================================================
   SCROLL ANIMATIONS
   ========================================================== */
.anim-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.card.anim-up {
  transition-delay: var(--d, 0ms);
}

/* ==========================================================
   TOOL PAGES  (iframe embed layout)
   ========================================================== */
.tool-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: var(--nav-h);
}
.tool-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
}
.tool-crumb a { color: var(--green); font-weight: 500; }
.tool-crumb a:hover { text-decoration: underline; }
.tool-crumb .sep { color: var(--border); }
.tool-frame-wrap { flex: 1; display: flex; }
.tool-frame {
  flex: 1;
  width: 100%;
  border: none;
  min-height: calc(100vh - var(--nav-h) - 46px);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet – 1024px */
@media (max-width: 1024px) {
  .hero-h1 { font-size: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .f-brand { grid-column: 1 / -1; max-width: 100%; }
}

/* Nav collapse – 900px */
@media (max-width: 900px) {
  .nav-links { display: none; }
  #btn-enquiry { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
}

/* Tablet – 768px */
@media (max-width: 768px) {
  .hero-h1 { font-size: 44px; }
  .hero-p  { font-size: 16px; }
  .cards   { grid-template-columns: repeat(2,1fr); }
  .sec-h2  { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}

/* Mobile – 580px */
@media (max-width: 580px) {
  .hero-h1 { font-size: 34px; letter-spacing: -.015em; }
  .hero-p  { font-size: 15px; }
  .cards   { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .f-brand { grid-column: auto; }
  .container { padding: 0 20px; }
  .nav-wrap  { padding: 0 18px; }
}

/* Mobile – 420px */
@media (max-width: 420px) {
  .hero-h1   { font-size: 30px; }
  .logo-img  { height: 90px; }
}
/* ── Modal Styles ── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal.show { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #777;
}
.modal-icon {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}
