/* ============================================================
   Hafez Mahdi Hasan — Portfolio Design System
   Modern · Animated · Responsive · Exceptional
   ============================================================ */

:root {
  --bg: #05120e;
  --bg-soft: #081a13;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --surface-solid: #0d2319;
  --border: rgba(52, 211, 153, 0.14);
  --border-strong: rgba(52, 211, 153, 0.35);
  --emerald: #34d399;
  --emerald-deep: #10b981;
  --emerald-dark: #059669;
  --gold: #e8c566;
  --gold-bright: #f4d987;
  --text: #e8f5ef;
  --text-muted: #93b3a5;
  --text-dim: #5f8273;
  --gradient: linear-gradient(120deg, #34d399 0%, #10b981 45%, #e8c566 100%);
  --gradient-soft: linear-gradient(120deg, rgba(52, 211, 153, 0.16), rgba(232, 197, 102, 0.1));
  --font-bn: "Noto Sans Bengali", "DM Sans", sans-serif;
  --font-lat: "DM Sans", "Noto Sans Bengali", sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow-emerald: 0 0 60px rgba(16, 185, 129, 0.25);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mx: 50vw;
  --my: 50vh;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-bn);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at var(--mx) var(--my), rgba(16, 185, 129, 0.08), transparent 60%),
    radial-gradient(700px 420px at 80% 10%, rgba(232, 197, 102, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.4s;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-bn);
  font-weight: 700;
  line-height: 1.25;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--emerald-deep);
  color: #04231a;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 16px;
}

::selection {
  background: rgba(52, 211, 153, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--emerald-dark), #0b5c43);
  border-radius: 10px;
}

/* ---------- Decorative backgrounds ---------- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pattern-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2334d399' stroke-opacity='0.05'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* ---------- Custom cursor ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.09) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  pointer-events: none;
  z-index: 250;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow,
  .cursor-dot {
    opacity: 1;
  }
  .cursor-hover .cursor-dot {
    transform: scale(2.4) translate(-2px, -2px) !important;
    background: var(--gold);
    box-shadow: 0 0 16px rgba(232, 197, 102, 0.9);
  }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader--done {
  opacity: 0;
  visibility: hidden;
}
.preloader__mark {
  font-size: 56px;
  font-weight: 800;
  color: var(--emerald);
  animation: markPulse 1.6s var(--ease) infinite;
  text-shadow: 0 0 40px rgba(52, 211, 153, 0.6);
}
@keyframes markPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.75; }
}
.preloader__bar {
  width: 200px;
  height: 3px;
  background: rgba(52, 211, 153, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 0.2s ease-out;
}
.preloader__text {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  font-family: var(--font-bn);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.button--primary {
  background: var(--gradient);
  color: #04231a;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}
.button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(16, 185, 129, 0.5);
}
.button--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.button--ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  transform: translateY(-3px);
  background: rgba(52, 211, 153, 0.08);
}
.button--gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: #3b2c08;
  box-shadow: 0 8px 30px rgba(232, 197, 102, 0.3);
}
.button--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(232, 197, 102, 0.45);
}

/* ---------- Section scaffolding ---------- */
.section {
  position: relative;
  padding: 110px 0;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-heading--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  max-width: none;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 14px;
}
.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.section-kicker--gold {
  color: var(--gold);
}
.section-kicker--gold::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-heading h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-subtitle {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
}
.section-number {
  font-family: var(--font-lat);
  font-size: 90px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(52, 211, 153, 0.28);
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .section-number {
    display: none;
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  color: #04231a;
  font-size: 22px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.brand__text {
  font-family: var(--font-lat);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand__text span {
  color: var(--emerald);
}

/* ---------- Top contact bar ---------- */
.top-contact {
  background: rgba(7, 26, 19, 0.9);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  position: relative;
  z-index: 60;
  backdrop-filter: blur(12px);
}
.top-contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 16px;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
}
.availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.number-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(52, 211, 153, 0.08), transparent);
}
.number-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(52, 211, 153, 0.12) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shine 4.5s var(--ease) infinite;
}
@keyframes shine {
  0%, 55% { transform: translateX(-100%); }
  85%, 100% { transform: translateX(100%); }
}
.number-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  transition: color 0.3s;
}
.number-card a:hover {
  color: var(--emerald);
}
.number-card__divider {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}
.number-card__whatsapp svg {
  color: #25d366;
}
@media (max-width: 640px) {
  .availability {
    display: none;
  }
  .top-contact__inner {
    justify-content: center;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
  background: rgba(5, 18, 14, 0.55);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled {
  background: rgba(5, 18, 14, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.3s, background 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(52, 211, 153, 0.07);
}
.nav-link.is-active::after {
  width: 18px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-toggle {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--emerald);
  transition: background 0.3s, transform 0.3s;
  font-family: var(--font-lat);
}
.language-toggle:hover {
  background: rgba(52, 211, 153, 0.12);
  transform: translateY(-2px);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  place-items: center;
  color: var(--text);
  transition: background 0.3s;
}
.menu-toggle:hover {
  background: rgba(52, 211, 153, 0.1);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: rgba(7, 22, 16, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  padding: 110px 34px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  z-index: 90;
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 300px at 100% 0%, rgba(16, 185, 129, 0.1), transparent);
  pointer-events: none;
}
.mobile-menu .nav-link {
  font-size: 20px;
  padding: 14px 18px;
  border-radius: 14px;
}
body.menu-open .mobile-menu {
  transform: none;
}
body.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 85;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 190px);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--one {
  width: 520px;
  height: 520px;
  background: rgba(16, 185, 129, 0.14);
  top: -140px;
  left: -120px;
  animation: float 14s var(--ease) infinite;
}
.hero__glow--two {
  width: 440px;
  height: 440px;
  background: rgba(232, 197, 102, 0.1);
  bottom: -160px;
  right: -100px;
  animation: float 18s var(--ease) infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--emerald);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-90px) translateX(40px); opacity: 0; }
}
.hero__content {
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--emerald);
  font-family: var(--font-lat);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 26px;
}
.hero__hello {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero__name {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  background: linear-gradient(120deg, #fff 20%, #b9f5df 60%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--emerald);
  min-height: 2em;
  margin-bottom: 20px;
}
.typewriter__caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--emerald);
  margin-left: 4px;
  vertical-align: -2px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero__desc {
  color: var(--text-muted);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}
.stat:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.stat strong {
  font-family: var(--font-lat);
  font-size: 30px;
  font-weight: 700;
  color: var(--emerald);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.stat__plus {
  color: var(--gold);
  font-size: 22px;
}
.stat__focus {
  font-size: 18px !important;
  color: var(--gold) !important;
  font-family: var(--font-bn) !important;
}
.stat span:last-child {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Hero visual ---------- */
.hero__visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.orbit::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(232, 197, 102, 0.8);
}
.orbit--one {
  width: 460px;
  height: 460px;
  animation: spin 26s linear infinite;
}
.orbit--two {
  width: 540px;
  height: 540px;
  border-style: dashed;
  animation: spin 40s linear infinite reverse;
}
.orbit--two::before {
  background: var(--emerald);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
  top: auto;
  bottom: 10%;
}
.orbit--three {
  width: 380px;
  height: 380px;
  border-color: rgba(232, 197, 102, 0.18);
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.portrait-frame {
  position: relative;
  width: 380px;
  height: 460px;
  border-radius: 220px 220px 28px 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 80px rgba(16, 185, 129, 0.18);
  animation: portraitFloat 6s var(--ease) infinite;
}
@keyframes portraitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}
.portrait-frame:hover img {
  transform: scale(1.06);
}
.portrait-frame__dots {
  position: absolute;
  top: 22px;
  right: -6px;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(rgba(52, 211, 153, 0.5) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.6;
}
.portrait-frame__ring {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 205px 205px 18px 18px;
  pointer-events: none;
}
.portrait-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7, 22, 16, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.portrait-chip--top {
  top: 42px;
  left: -64px;
  color: var(--emerald);
  animation: chipFloat 5s var(--ease) infinite;
}
.portrait-chip--bottom {
  bottom: 40px;
  right: -52px;
  animation: chipFloat 5s var(--ease) infinite 0.8s;
}
.portrait-chip--bottom span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.scroll-cue {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  transition: color 0.3s;
}
.scroll-cue:hover {
  color: var(--emerald);
}
.scroll-cue svg {
  animation: bounceDown 1.8s var(--ease) infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 30px;
  }
  .hero__desc {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__stats {
    justify-content: center;
  }
  .hero__visual {
    order: -1;
    min-height: 480px;
  }
  .portrait-frame {
    width: 300px;
    height: 370px;
  }
  .orbit--one {
    width: 360px;
    height: 360px;
  }
  .orbit--two {
    width: 420px;
    height: 420px;
  }
  .portrait-chip--top {
    left: -10px;
  }
  .portrait-chip--bottom {
    right: -10px;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 26px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.05), transparent);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
}
.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  font-family: var(--font-lat);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__group span:hover {
  color: var(--emerald);
}
.marquee__group i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about {
  background: linear-gradient(180deg, transparent, rgba(13, 35, 25, 0.35));
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about__copy p {
  margin-bottom: 20px;
}
.about__copy .lead {
  font-size: 19.5px;
  color: #cfe9de;
}
.signature {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.signature__name {
  font-family: var(--font-lat);
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.signature__role {
  color: var(--text-muted);
  font-size: 15px;
}
.principles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.principle {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
  will-change: transform;
}
.principle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(52, 211, 153, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
}
.principle:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.principle:hover::before {
  opacity: 1;
}
.principle__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(52, 211, 153, 0.05));
  border: 1px solid var(--border-strong);
  color: var(--emerald);
}
.principle__body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.principle__body p {
  color: var(--text-muted);
  font-size: 15px;
}
.principle__num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-lat);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
}
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Expertise ---------- */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service {
  position: relative;
  padding: 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
  will-change: transform;
}
.service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.service:hover::after {
  transform: scaleX(1);
}
.service__glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.14), transparent 70%);
  transition: transform 0.5s var(--ease);
}
.service:hover .service__glow {
  transform: scale(1.7);
}
.service__icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-dark));
  color: #04231a;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.35);
  margin-bottom: 22px;
}
.service h3 {
  font-size: 21px;
  margin-bottom: 10px;
  font-family: var(--font-lat);
}
.service p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 20px;
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service__tags span {
  font-family: var(--font-lat);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.06);
  transition: background 0.3s;
}
.service:hover .service__tags span {
  background: rgba(52, 211, 153, 0.14);
}
@media (max-width: 760px) {
  .expertise__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Projects ---------- */
.projects {
  background: linear-gradient(180deg, rgba(13, 35, 25, 0.35), transparent);
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.3s var(--ease);
  background: var(--surface);
}
.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-2px);
}
.filter-btn.is-active {
  background: var(--gradient);
  color: #04231a;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: opacity 0.25s;
}
@media (max-width: 1100px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
}
.project-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-solid);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
  will-change: transform;
}
.project-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.project-card__featured {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: #3b2c08;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.card__media {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  background: var(--surface-solid);
}
.card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.card__media--photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease), opacity 0.3s;
}
.card__media.is-fallback img {
  opacity: 0;
  z-index: 0;
}
.project-card:hover .card__media img {
  transform: scale(1.08);
}
.card__media-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 18, 14, 0.85));
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover .card__media-shade {
  opacity: 1;
}
.card__media-icon {
  position: relative;
  z-index: 2;
  color: var(--text);
  opacity: 0.9;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .card__media-icon {
  transform: scale(1.15) rotate(-4deg);
}
.card__media-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
}
.card__body {
  padding: 20px 22px 24px;
}
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.card__store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-lat);
  font-size: 12px;
  color: var(--text-dim);
}
.card__body h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}
.card__body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.projects__footer {
  margin-top: 44px;
  text-align: center;
}

/* ---------- Tone variants ---------- */
.tone-violet {
  --tone: #a78bfa;
  --tone-soft: rgba(167, 139, 250, 0.16);
}
.tone-emerald {
  --tone: #34d399;
  --tone-soft: rgba(52, 211, 153, 0.16);
}
.tone-blue {
  --tone: #60a5fa;
  --tone-soft: rgba(96, 165, 250, 0.16);
}
.tone-amber {
  --tone: #fbbf24;
  --tone-soft: rgba(251, 191, 36, 0.16);
}
.tone-rose {
  --tone: #fb7185;
  --tone-soft: rgba(251, 113, 133, 0.16);
}
.card__icon,
.card__media--icon {
  background: linear-gradient(135deg, var(--tone-soft), transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  color: var(--tone);
}
.tone-violet .card__icon,
.tone-violet .card__media--icon { color: var(--tone); }
.tone-emerald .card__icon,
.tone-emerald .card__media--icon { color: var(--tone); }
.tone-blue .card__icon,
.tone-blue .card__media--icon { color: var(--tone); }
.tone-amber .card__icon,
.tone-amber .card__media--icon { color: var(--tone); }
.tone-rose .card__icon,
.tone-rose .card__media--icon { color: var(--tone); }
.project-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--tone-soft);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 8, 0.82);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface-solid), #08160f);
  box-shadow: var(--shadow);
  transform: translateY(26px) scale(0.97);
  transition: transform 0.4s var(--ease);
}
.modal.is-open .modal__panel {
  transform: none;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 18, 14, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s;
}
.modal__close:hover {
  background: var(--emerald);
  color: #04231a;
  transform: rotate(90deg);
}
.modal__media {
  position: relative;
  height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tone-soft), transparent 70%);
}
.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.modal__media span {
  color: var(--tone, var(--emerald));
  opacity: 0.9;
}
.modal__content {
  padding: 30px;
}
.modal__store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-lat);
  font-size: 13px;
  color: var(--emerald);
  margin-bottom: 12px;
}
.modal__content h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.modal__desc {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.modal__tags {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}
.tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.tag--cat {
  background: var(--tone-soft);
  color: var(--tone, var(--emerald));
  border: 1px solid color-mix(in srgb, var(--tone, var(--emerald)) 35%, transparent);
}
.tag--featured {
  background: linear-gradient(120deg, rgba(232, 197, 102, 0.2), transparent);
  color: var(--gold);
  border: 1px solid rgba(232, 197, 102, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal__link {
  width: 100%;
  justify-content: center;
}

/* ---------- Journey ---------- */
.journey {
  background: linear-gradient(180deg, transparent, rgba(13, 35, 25, 0.35));
}
.timeline {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald), var(--emerald-dark), rgba(52, 211, 153, 0.15));
  border-radius: 2px;
}
.timeline__item {
  position: relative;
  padding: 0 0 42px 8px;
}
.timeline__item:last-child {
  padding-bottom: 0;
}
.timeline__marker {
  position: absolute;
  left: -40px;
  top: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}
.timeline__icon {
  color: var(--emerald);
  display: grid;
  place-items: center;
}
.timeline__card {
  padding: 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.timeline__card:hover {
  border-color: var(--border-strong);
  transform: translateX(8px);
  box-shadow: var(--shadow);
}
.timeline__phase {
  display: inline-block;
  font-family: var(--font-lat);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(232, 197, 102, 0.1);
  border: 1px solid rgba(232, 197, 102, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.timeline__card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.timeline__card p {
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ---------- Ruqyah ---------- */
.ruqyah__panel {
  position: relative;
  border: 1px solid rgba(232, 197, 102, 0.22);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(232, 197, 102, 0.1), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(16, 185, 129, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(13, 35, 25, 0.9), rgba(8, 22, 16, 0.95));
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.ruqyah__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e8c566' stroke-opacity='0.07'%3E%3Cpath d='M45 0 L90 45 L45 90 L0 45 Z'/%3E%3Cpath d='M45 15 L75 45 L45 75 L15 45 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.ruqyah__content {
  position: relative;
  z-index: 1;
}
.ruqyah__content h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 18px;
}
.ruqyah__desc {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 26px;
  max-width: 560px;
}
.ruqyah__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.ruqyah__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.ruqyah__points svg {
  color: var(--gold);
  flex-shrink: 0;
}
.ruqyah__ayat {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px;
  border: 1px solid rgba(232, 197, 102, 0.3);
  border-radius: 20px;
  background: rgba(232, 197, 102, 0.05);
  font-family: "Noto Naskh Arabic", serif;
  line-height: 2.1;
}
.ruqyah__ayat span {
  display: block;
  font-size: clamp(20px, 2.6vw, 27px);
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.ruqyah__ayat small {
  color: var(--text-muted);
  font-family: var(--font-bn);
  font-size: 13px;
}
@media (max-width: 900px) {
  .ruqyah__panel {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.contact-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact-card:hover::before {
  transform: scaleY(1);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.04));
  border: 1px solid var(--border-strong);
  color: var(--emerald);
  transition: transform 0.3s;
}
.contact-card:hover .contact-card__icon {
  transform: scale(1.1) rotate(-6deg);
}
.contact-card__label {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.contact-card__value {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  overflow-wrap: anywhere;
}
.contact-card__arrow {
  margin-left: auto;
  color: var(--text-dim);
  transition: transform 0.3s, color 0.3s;
}
.contact-card:hover .contact-card__arrow {
  transform: translate(3px, -3px);
  color: var(--emerald);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 18, 14, 0.7);
  padding: 44px 0;
  position: relative;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__line {
  color: var(--text-muted);
  font-size: 15px;
}
.footer__rights {
  color: var(--text-dim);
  font-size: 13.5px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 110;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #04231a;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.35s, transform 0.35s var(--ease);
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.55);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
