/* ===================================================================
   meryjump — Digital Marketing / Web & Software Design / SEO
   Design system: dark neon-tech, glowing cyan/magenta accents
   All visuals are inline SVG / CSS — nothing loads from outside,
   so the theme renders identically with no internet connection.
   =================================================================== */

:root{
  --bg:         #07070b;
  --bg-soft:    #0e0e16;
  --surface:    #131320;
  --line:       rgba(255,255,255,.12);
  --line-soft:  rgba(255,255,255,.07);
  --text:       #ffffff;
  --text-mute:  #9d9dae;

  --neon-1:     #00f0ff;   /* cyan   */
  --neon-2:     #ff2ec4;   /* magenta */
  --neon-1-dim: rgba(0,240,255,.35);
  --neon-2-dim: rgba(255,46,196,.35);

  --font: 'Vazirmatn', 'Tahoma', sans-serif;
  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

h1,h2,h3,h4{ font-weight: 800; letter-spacing: -0.01em; margin: 0; }
p{ margin: 0; }

/* subtle background grid used on the body of every page */
body{
  background-image:
    radial-gradient(circle at 15% 0%, rgba(0,240,255,.07), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(255,46,196,.06), transparent 40%);
  background-attachment: fixed;
}

/* ---------------- Header / nav ---------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,7,11,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand{ display: flex; align-items: center; gap: .75rem; }

.brand img{
  height: 46px; width: auto;
  filter: invert(1) drop-shadow(0 0 6px rgba(0,240,255,.45));
}

.brand-name{ font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }

.brand-tag{
  display: block;
  font-size: .68rem;
  font-weight: 400;
  color: var(--text-mute);
  margin-top: 1px;
}

.main-nav{ display: flex; align-items: center; gap: 2.2rem; }

.main-nav a{
  font-size: .95rem;
  font-weight: 500;
  position: relative;
  padding: .3rem 0;
  color: var(--text-mute);
  transition: color .2s ease;
}
.main-nav a::after{
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  box-shadow: 0 0 8px var(--neon-1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.main-nav a:hover{ color: var(--text); }
.main-nav a:hover::after,
.main-nav a.active::after{ transform: scaleX(1); }
.main-nav a.active{ font-weight: 700; color: var(--text); }

.nav-cta{
  border: 1px solid var(--neon-1);
  color: var(--text) !important;
  padding: .55rem 1.3rem;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 0 14px var(--neon-1-dim);
  transition: background .2s ease, box-shadow .2s ease;
}
.nav-cta::after{ display:none; }
.nav-cta:hover{ background: var(--neon-1); color: var(--bg) !important; box-shadow: 0 0 26px var(--neon-1); }

.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  padding: .4rem .6rem;
}

/* ---------------- Hero / slider ---------------- */

.hero{ position: relative; border-bottom: 1px solid var(--line); }

.hero-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }

.hero-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 3rem 4.5rem 2rem;
  gap: 1.6rem;
  z-index: 2;
}

.hero-kicker{
  font-size: .9rem;
  color: var(--neon-1);
  border-right: 2px solid var(--neon-1);
  padding-right: .8rem;
  text-shadow: 0 0 10px var(--neon-1-dim);
  width: fit-content;
}

.hero-copy h1{
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  line-height: 1.25;
  font-weight: 900;
}

.hero-copy p{ color: var(--text-mute); font-size: 1.05rem; max-width: 34rem; }

.hero-actions{ display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .5rem; }

.btn{
  display: inline-block;
  padding: .85rem 1.8rem;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid var(--neon-1);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-solid{
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 0 22px var(--neon-1-dim);
}
.btn-solid:hover{ box-shadow: 0 0 34px var(--neon-1), 0 0 34px var(--neon-2-dim); }
.btn-outline{ color: var(--text); }
.btn-outline:hover{ background: var(--neon-1); color: var(--bg); box-shadow: 0 0 24px var(--neon-1); }

.hero-stats{
  display: flex;
  gap: 2.4rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.hero-stats b{
  display:block; font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span{ font-size: .8rem; color: var(--text-mute); }

.hero-slider{ position: relative; overflow: hidden; min-height: 460px; background: var(--bg-soft); }

.slide{ position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease; }
.slide.is-active{ opacity: 1; visibility: visible; }

.slide-caption{
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  background: rgba(7,7,11,.85);
  border: 1px solid var(--line);
  border-right: 3px solid var(--neon-1);
  padding: .8rem 1.3rem;
  max-width: 20rem;
  font-size: .85rem;
  font-weight: 600;
  z-index: 3;
}

.slide-dots{ position: absolute; left: 2rem; bottom: 2rem; display: flex; gap: .5rem; z-index: 3; }
.slide-dots button{
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
.slide-dots button.is-active{ background: var(--neon-1); box-shadow: 0 0 8px var(--neon-1); border-color: var(--neon-1); }

/* ---------------- Visual panels (replace photography) ---------------- */

.visual-panel{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  background-image:
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 34px);
  border: 1px solid var(--line);
  overflow: hidden;
}
.visual-panel::before{
  content: "";
  position: absolute;
  width: 70%; height: 70%;
  background: radial-gradient(circle, var(--neon-1-dim), transparent 70%);
  filter: blur(10px);
  opacity: .6;
}
.visual-panel svg{
  position: relative;
  width: 42%;
  height: 42%;
  overflow: visible;
}
.visual-panel svg path,
.visual-panel svg circle,
.visual-panel svg rect,
.visual-panel svg line,
.visual-panel svg polyline{
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.visual-panel svg .n1{ stroke: var(--neon-1); filter: drop-shadow(0 0 7px var(--neon-1)); }
.visual-panel svg .n2{ stroke: var(--neon-2); filter: drop-shadow(0 0 7px var(--neon-2)); }
.visual-panel svg .n1-fill{ fill: var(--neon-1); stroke: none; filter: drop-shadow(0 0 6px var(--neon-1)); }
.visual-panel svg .n2-fill{ fill: var(--neon-2); stroke: none; filter: drop-shadow(0 0 6px var(--neon-2)); }

.hero-slider .visual-panel{ min-height: 460px; border: none; border-radius: 0; }
.hero-slider .visual-panel svg{ width: 34%; height: 34%; }

/* ---------------- Section shell ---------------- */

.section{ padding: 5.5rem 0; }
.section-soft{ background: var(--bg-soft); }
.section-ink{ background: linear-gradient(180deg, #0b0b14, #07070b); }
.section-border{ border-bottom: 1px solid var(--line); }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
}
.section-head h2{ font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.section-head .index{ font-size: .85rem; color: var(--text-mute); white-space: nowrap; }
.section-lead{ max-width: 40rem; color: var(--text-mute); font-size: 1rem; margin-top: .6rem; }

/* ---------------- Service rows (visual + text) ---------------- */

.service-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child{ border-bottom: 1px solid var(--line); }
.service-row.reverse .service-media{ order: 2; }
.service-row.reverse .service-text{ order: 1; }

.service-media .visual-panel{ aspect-ratio: 4/3; }

.service-num{ font-size: .85rem; color: var(--neon-1); margin-bottom: .8rem; display: block; }
.service-text h3{ font-size: 1.5rem; margin-bottom: .9rem; }
.service-text p{ color: var(--text-mute); margin-bottom: 1.2rem; }

.service-list{ list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.service-list li{ font-size: .92rem; padding-right: 1.2rem; position: relative; color: var(--text-mute); }
.service-list li::before{
  content: "";
  position: absolute;
  right: 0; top: .65em;
  width: 6px; height: 1px;
  background: var(--neon-1);
  box-shadow: 0 0 5px var(--neon-1);
}

/* ---------------- Skills ---------------- */

.skills-grid{ display: grid; gap: 1.8rem; }
.skill-row{ display: grid; grid-template-columns: 12rem 1fr 3.5rem; align-items: center; gap: 1.2rem; }
.skill-name{ font-weight: 700; font-size: 1rem; }
.skill-track{ height: 4px; background: var(--line); position: relative; border-radius: 2px; overflow: hidden; }
.skill-fill{
  position: absolute; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--neon-2), var(--neon-1));
  box-shadow: 0 0 10px var(--neon-1);
  width: 0%;
  transition: width 1.1s cubic-bezier(.4,0,.2,1);
}
.skill-pct{
  font-size: .95rem; font-weight: 700; text-align: left;
  color: var(--neon-1); text-shadow: 0 0 8px var(--neon-1-dim);
}

/* ---------------- Cards ---------------- */

.card-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card{ background: var(--bg); padding: 2.4rem 2rem; }
.card h4{ font-size: 1.1rem; margin-bottom: .7rem; }
.card p{ color: var(--text-mute); font-size: .92rem; }
.card .card-num{ font-size: .8rem; color: var(--neon-1); display:block; margin-bottom: 1rem; }

/* ---------------- Portfolio grid ---------------- */

.work-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.work-item{ position: relative; overflow: hidden; display: block; }
.work-item .visual-panel{ min-height: 320px; border: none; transition: transform .5s ease; }
.work-item:hover .visual-panel{ transform: scale(1.04); }

.work-info{
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.6rem;
  color: var(--text);
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  z-index: 2;
}
.work-cat{ font-size: .78rem; color: var(--neon-1); }
.work-info h4{ font-size: 1.15rem; margin-top: .3rem; color: var(--text); }

/* ---------------- Process steps ---------------- */

.steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step{ padding: 2.2rem 1.6rem; border-left: 1px solid var(--line); }
.step:last-child{ border-left: none; }
.step-num{
  font-size: 1.6rem; font-weight: 900; display:block; margin-bottom: .8rem;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4{ font-size: 1.02rem; margin-bottom: .5rem; }
.step p{ font-size: .88rem; color: var(--text-mute); }

/* ---------------- About page ---------------- */

.about-hero{ display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 4.5rem 0; }
.about-hero .visual-panel{ aspect-ratio: 4/3; }
.about-hero h1{ font-size: clamp(1.9rem, 3vw, 2.8rem); margin-bottom: 1.1rem; }
.about-hero p{ color: var(--text-mute); margin-bottom: 1rem; }

.value-list{ display: grid; grid-template-columns: repeat(2,1fr); gap: 2.4rem 2rem; }
.value-list h4{ font-size: 1.05rem; margin-bottom: .5rem; }
.value-list p{ color: var(--text-mute); font-size: .9rem; }

.team-row{ display: flex; gap: 2rem; overflow-x: auto; padding-bottom: .5rem; }
.team-card{ min-width: 220px; }
.avatar-neon{
  width: 100%; aspect-ratio: 3/4;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
  position: relative;
  overflow: hidden;
}
.avatar-neon::before{
  content:"";
  position: absolute; inset: -20%;
  background: radial-gradient(circle, var(--neon-2-dim), transparent 65%);
  filter: blur(6px);
}
.avatar-neon span{
  position: relative;
  font-size: 2.6rem; font-weight: 800;
  color: var(--text);
  text-shadow: 0 0 18px var(--neon-1);
  border: 1px solid var(--neon-1);
  border-radius: 50%;
  width: 4.6rem; height: 4.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px var(--neon-1-dim), inset 0 0 12px var(--neon-1-dim);
}
.team-card b{ display:block; font-size: 1rem; }
.team-card span.role{ font-size: .82rem; color: var(--text-mute); }

/* ---------------- Contact page ---------------- */

.contact-grid{ display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info h1{ font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1.1rem; }
.contact-info > p{ color: var(--text-mute); margin-bottom: 2.2rem; max-width: 30rem; }

.contact-detail{ border-top: 1px solid var(--line); padding: 1.3rem 0; }
.contact-detail span{ display:block; font-size: .78rem; color: var(--text-mute); margin-bottom: .3rem; }
.contact-detail b{ font-size: 1.05rem; font-weight: 700; color: var(--neon-1); text-shadow: 0 0 8px var(--neon-1-dim); }

.contact-social{ display: flex; gap: 1rem; margin-top: 1.8rem; }
.contact-social a{
  border: 1px solid var(--neon-1);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--text);
  transition: background .2s, color .2s, box-shadow .2s;
}
.contact-social a:hover{ background: var(--neon-1); color: var(--bg); box-shadow: 0 0 18px var(--neon-1); }

.contact-form{ display: grid; gap: 1.2rem; }
.field{ display: grid; gap: .5rem; }
.field label{ font-size: .85rem; font-weight: 600; color: var(--text-mute); }
.field input, .field textarea{
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: .7rem .2rem;
  font-family: var(--font);
  font-size: .98rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder{ color: #55556a; }
.field input:focus, .field textarea:focus{ border-bottom-color: var(--neon-1); box-shadow: 0 4px 10px -6px var(--neon-1); }
.field textarea{ resize: vertical; min-height: 110px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.map-frame{ margin-top: 3rem; border: 1px solid var(--line); filter: grayscale(60%) invert(92%) contrast(90%); }
.map-frame iframe{ width: 100%; height: 320px; border: 0; display: block; }

/* ---------------- CTA band ---------------- */

.cta-band{ text-align: center; padding: 5rem 0; display: grid; gap: 1.6rem; justify-items: center; }
.cta-band h2{ font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 36rem; }

/* ---------------- Footer ---------------- */

.site-footer{ background: #050508; color: var(--text); padding: 4.5rem 0 0; border-top: 1px solid var(--line); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3.2rem; border-bottom: 1px solid var(--line); }

.footer-brand{ display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.footer-brand img{ height: 40px; filter: invert(1) drop-shadow(0 0 6px rgba(0,240,255,.45)); }
.footer-brand b{ font-size: 1.1rem; }

.footer-col p{ color: var(--text-mute); font-size: .9rem; }
.footer-col h5{ font-size: .95rem; margin-bottom: 1.1rem; font-weight: 700; }
.footer-links{ list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-links a{ color: var(--text-mute); font-size: .9rem; transition: color .2s; }
.footer-links a:hover{ color: var(--neon-1); }

.footer-social{ display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a{
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: var(--text);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.footer-social a:hover{ background: var(--neon-1); color: var(--bg); border-color: var(--neon-1); box-shadow: 0 0 16px var(--neon-1); }

.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; font-size: .82rem; color: #6d6d80; flex-wrap: wrap; gap: .8rem;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 991px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-slider{ min-height: 340px; order: -1; }
  .hero-slider .visual-panel{ min-height: 340px; }
  .hero-copy{ padding: 3rem 1.25rem; }
  .service-row{ grid-template-columns: 1fr; gap: 1.6rem; }
  .service-row.reverse .service-media{ order: 0; }
  .service-row.reverse .service-text{ order: 0; }
  .card-grid{ grid-template-columns: 1fr; }
  .work-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .step{ border-left: none; border-top: 1px solid var(--line); }
  .about-hero{ grid-template-columns: 1fr; }
  .value-list{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px){
  .main-nav{
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.25rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .nav-toggle{ display: block; }
  .skill-row{ grid-template-columns: 6.5rem 1fr 3rem; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
}
